INFO: No output directory specified (--dir) INFO: Using directory: "template_20240919_180029" INFO: Regenerating c-file: template.c DEBUG: CMD: /home/nexmap/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -t -o ./template.c template.instr line 33:18 mismatched input 'template' expecting Identifier 2024-09-19 18:00:31.727 | ERROR | mccode_antlr.reader.reader:syntaxError:19 - Syntax error in parsing Instrument /home/nexmap/pkwi/TESTS/2024-09-19/ANTLR_mpi_x_16_1e7_Linux_1e7/template/template.instr at 33,18 2024-09-19 18:00:31.727 | INFO | mccode_antlr.reader.reader:syntaxError:24 - * A reference/HTML link for more information 2024-09-19 18:00:31.727 | INFO | mccode_antlr.reader.reader:syntaxError:24 - * 2024-09-19 18:00:31.727 | INFO | mccode_antlr.reader.reader:syntaxError:24 - * %End 2024-09-19 18:00:31.727 | INFO | mccode_antlr.reader.reader:syntaxError:24 - *******************************************************************************/ 2024-09-19 18:00:31.728 | INFO | mccode_antlr.reader.reader:syntaxError:24 - DEFINE INSTRUMENT template(Par1=1) 2024-09-19 18:00:31.728 | ERROR | mccode_antlr.reader.reader:syntaxError:25 - ~~~~~~~~~~~~~~~~~~^ mismatched input 'template' expecting Identifier 2024-09-19 18:00:31.728 | INFO | mccode_antlr.reader.reader:syntaxError:27 - 2024-09-19 18:00:31.728 | INFO | mccode_antlr.reader.reader:syntaxError:27 - /* The DECLARE section allows us to declare variables or small */ Error: A JNI error has occurred, please check your installation and try again Exception in thread "main" java.lang.UnsupportedClassVersionError: org/antlr/v4/Tool has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:756) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:473) at java.net.URLClassLoader.access$100(URLClassLoader.java:74) at java.net.URLClassLoader$1.run(URLClassLoader.java:369) at java.net.URLClassLoader$1.run(URLClassLoader.java:363) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:362) at java.lang.ClassLoader.loadClass(ClassLoader.java:418) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352) at java.lang.ClassLoader.loadClass(ClassLoader.java:351) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:621) Error: A JNI error has occurred, please check your installation and try again Exception in thread "main" java.lang.UnsupportedClassVersionError: org/antlr/v4/Tool has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:756) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:473) at java.net.URLClassLoader.access$100(URLClassLoader.java:74) at java.net.URLClassLoader$1.run(URLClassLoader.java:369) at java.net.URLClassLoader$1.run(URLClassLoader.java:363) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:362) at java.lang.ClassLoader.loadClass(ClassLoader.java:418) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352) at java.lang.ClassLoader.loadClass(ClassLoader.java:351) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:621) No initialization present? ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: 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 80, 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.save(filename=config['output']) File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/mccode_antlr/translators/target.py", line 180, in save self.translate(reprocess=reprocess) File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/mccode_antlr/translators/target.py", line 162, in translate self.visit_raytrace_funnel() File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/mccode_antlr/translators/c.py", line 423, in visit_raytrace_funnel self.out(cogen_funnel(self.source, self.ok_to_skip)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/mccode_antlr/translators/c_raytrace.py", line 320, in cogen_funnel cpu_last = not source.components[0].cpu ~~~~~~~~~~~~~~~~~^^^ IndexError: tuple index out of range 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 ./template.c template.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 579, in main() File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mcrun.py", line 487, 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 ./template.c template.instr' returned non-zero exit status 1.