INFO: No output directory specified (--dir) INFO: Using directory: "SNS_ARCS_20241118_040826" INFO: Regenerating c-file: SNS_ARCS.c DEBUG: CMD: /home/nexmap/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -t -o ./SNS_ARCS.c SNS_ARCS.instr 2024-11-18 04:08:28.426 | INFO | mccode_antlr.instr.instance:set_parameter:120 - Multiple definitions of restore_neutron in component instance t_mon_detB 2024-11-18 04:08:28.428 | INFO | mccode_antlr.instr.instance:set_parameter:120 - Multiple definitions of restore_neutron in component instance t_mon_detA 2024-11-18 04:08:28.428 | INFO | mccode_antlr.instr.instance:set_parameter:120 - Multiple definitions of restore_neutron in component instance t_mon_detC 2024-11-18 04:08:28.502 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Guide_channeled(0):ref-lib :ref-lib(0):read_table-lib :Monitor_nD(0):monitor_nd-lib :Monitor_nD(1):read_table-lib :Monitor_nD(2):interoff-lib 2024-11-18 04:08:28.502 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib ref-lib 2024-11-18 04:08:28.502 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib monitor_nd-lib interoff-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 ./SNS_ARCS.c SNS_ARCS.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 ./SNS_ARCS.c SNS_ARCS.instr' returned non-zero exit status 1.