INFO: No output directory specified (--dir) INFO: Using directory: "BTsimple_20241118_041052" INFO: Regenerating c-file: BTsimple.c DEBUG: CMD: /home/nexmap/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -t -o ./BTsimple.c BTsimple.instr 2024-11-18 04:10:54.529 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Source_gen(0):read_table-lib :Elliptic_guide_gravity(0):ref-lib :ref-lib(0):read_table-lib 2024-11-18 04:10:54.530 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib 2024-11-18 04:10:54.530 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib Traceback (most recent call last): File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr", line 8, in sys.exit(mcstas()) ^^^^^^^^ File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/mccode_antlr/commands.py", line 82, in mcstas mccode('mcstas', MCSTAS_REGISTRY, MCSTAS_GENERATOR) File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/mccode_antlr/commands.py", line 74, in mccode visitor = CTargetVisitor(instrument, generate=generator, config=config, verbose=config['verbose']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/mccode_antlr/translators/target.py", line 32, in __init__ self.__post_init__() File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/mccode_antlr/translators/c.py", line 259, in __post_init__ self._parse_libraries_for_typedefs() File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/mccode_antlr/translators/c.py", line 154, in _parse_libraries_for_typedefs defined_types = parse(block.to_c(), user_types=list(typedefs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/mccode_antlr/translators/c_listener.py", line 355, in extract_c_defined_types _, types = extract_c_declared_variables_and_defined_types(block, user_types, verbose=verbose) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/mccode_antlr/translators/c_listener.py", line 342, in extract_c_declared_variables_and_defined_types visitor.visitCompilationUnit(tree) File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/mccode_antlr/grammar/CVisitor.py", line 439, in visitCompilationUnit return self.visitChildren(ctx) ^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/antlr4/tree/Tree.py", line 44, in visitChildren childResult = c.accept(self) ^^^^^^^^^^^^^^ File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/mccode_antlr/grammar/CParser.py", line 8423, in accept return visitor.visitTranslationUnit(self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/mccode_antlr/grammar/CVisitor.py", line 444, in visitTranslationUnit return self.visitChildren(ctx) ^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/antlr4/tree/Tree.py", line 44, in visitChildren childResult = c.accept(self) ^^^^^^^^^^^^^^ File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/mccode_antlr/grammar/CParser.py", line 8493, in accept return visitor.visitExternalDeclaration(self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/mccode_antlr/grammar/CVisitor.py", line 449, in visitExternalDeclaration return self.visitChildren(ctx) ^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/antlr4/tree/Tree.py", line 44, in visitChildren childResult = c.accept(self) ^^^^^^^^^^^^^^ File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/mccode_antlr/grammar/CParser.py", line 8578, in accept return visitor.visitFunctionDefinition(self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/mccode_antlr/grammar/CVisitor.py", line 454, in visitFunctionDefinition return self.visitChildren(ctx) ^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/antlr4/tree/Tree.py", line 44, in visitChildren childResult = c.accept(self) ^^^^^^^^^^^^^^ File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/mccode_antlr/grammar/CParser.py", line 4849, in accept return visitor.visitDeclarator(self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/mccode_antlr/translators/c_listener.py", line 298, in visitDeclarator raise RuntimeError('No idea how to handle multi-level arrays') RuntimeError: No idea how to handle multi-level arrays INFO: call to /home/nexmap/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr failed with Command '/home/nexmap/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -t -o ./BTsimple.c BTsimple.instr' returned non-zero exit status 1. Traceback (most recent call last): File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mcrun.py", line 595, in main() File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mcrun.py", line 503, in main mcstas.prepare(options) File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mccode.py", line 149, in prepare Process(mccode_bin_abspath).run(['-t', '-o', self.cpath, self.path]) File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mccode.py", line 77, in run raise err File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mccode.py", line 73, in run proc = run(command, shell=True, check=True, text=True, capture_output=pipe) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/subprocess.py", line 571, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '/home/nexmap/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -t -o ./BTsimple.c BTsimple.instr' returned non-zero exit status 1.