INFO: No output directory specified (--dir) INFO: Using directory: "Test_Mono_20250426_064258" INFO: Regenerating c-file: Test_Mono.c WARNING: Full-path code-generator "/home/nexmap/pkwi/McXtrace/mcxtrace/3.x-dev/bin/mcxtrace-antlr -I${MCXTRACE}" not found!! WARNING: Attempting replacement by "mcxtrace-antlr -I${MCXTRACE}" DEBUG: CMD: mcxtrace-antlr -I${MCXTRACE} -t -o ./Test_Mono.c Test_Mono.instr 2025-04-26 06:42:59.235 | ERROR | mccode_antlr.reader.reader:syntaxError:26 - Syntax error in parsing Instrument /home/nexmap/pkwi/xTESTS/2025-04-26/ANTLR_mpi_x_16_1e7_Linux_1e7/Test_Mono/Test_Mono.instr at 107,0 2025-04-26 06:42:59.235 | INFO | mccode_antlr.reader.reader:syntaxError:31 - COMPONENT Mono_Arm = Arm() 2025-04-26 06:42:59.236 | INFO | mccode_antlr.reader.reader:syntaxError:31 - AT (0, 0, L1) RELATIVE generic_source 2025-04-26 06:42:59.236 | INFO | mccode_antlr.reader.reader:syntaxError:31 - ROTATED (-OMM, 0, 0) RELATIVE generic_source 2025-04-26 06:42:59.236 | INFO | mccode_antlr.reader.reader:syntaxError:31 - 2025-04-26 06:42:59.236 | INFO | mccode_antlr.reader.reader:syntaxError:31 - % ------------------------------------------------------------------------------ 2025-04-26 06:42:59.236 | ERROR | mccode_antlr.reader.reader:syntaxError:32 - ^ mismatched input '%' expecting {End, Finally, Save} 2025-04-26 06:42:59.236 | INFO | mccode_antlr.reader.reader:syntaxError:34 - % rotation along X, monochromator surface is in the XZ plane 2025-04-26 06:42:59.236 | INFO | mccode_antlr.reader.reader:syntaxError:34 - 2025-04-26 06:43:16.322 | INFO | mccode_antlr.instr.instance:set_parameter:123 - Multiple definitions of xwidth in component instance emon_pre 2025-04-26 06:43:16.322 | INFO | mccode_antlr.instr.instance:set_parameter:125 - first-encountered value 0.1 retained 2025-04-26 06:43:16.322 | INFO | mccode_antlr.instr.instance:set_parameter:126 - newly-encountered value 0 dropped 2025-04-26 06:43:16.322 | INFO | mccode_antlr.instr.instance:set_parameter:123 - Multiple definitions of yheight in component instance emon_pre 2025-04-26 06:43:16.323 | INFO | mccode_antlr.instr.instance:set_parameter:125 - first-encountered value 0.1 retained 2025-04-26 06:43:16.323 | INFO | mccode_antlr.instr.instance:set_parameter:126 - newly-encountered value 0 dropped 2025-04-26 06:43:16.323 | INFO | mccode_antlr.instr.instance:set_parameter:123 - Multiple definitions of nE in component instance emon_pre 2025-04-26 06:43:22.019 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Source_flat(0):read_table-lib 2025-04-26 06:43:22.019 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib The instrument has 7 parameters ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component Origin -> GPU kernel from component generic_source -> GPU kernel from component psd_pre -> GPU kernel from component emon_pre -> GPU kernel from component Mono_Arm ----------------------------------------------------------- DEBUG: CMD: mcxtrace-antlr -I${MCXTRACE} finished INFO: Recompiling: ./Test_Mono.out DEBUG: CMD: mpicc -o ./Test_Mono.out ./Test_Mono.c -lm -DUSE_MPI -lmpi -fno-PIC -fPIE -flto -O3 -mtune=native -march=native -fno-math-errno -ftree-vectorize -g -DNDEBUG -D_POSIX_SOURCE -std=c99 -lm ./Test_Mono.c:5619:6: error: conflicting types for 'mt_srandom'; have 'void(uint32_t)' {aka 'void(unsigned int)'} 5619 | void mt_srandom(uint32_t seed) { | ^~~~~~~~~~ ./Test_Mono.c:887:6: note: previous declaration of 'mt_srandom' with type 'void(long unsigned int)' 887 | void mt_srandom (unsigned long x); | ^~~~~~~~~~ ./Test_Mono.c:5657:10: error: conflicting types for 'mt_random'; have 'uint32_t(void)' {aka 'unsigned int(void)'} 5657 | uint32_t mt_random(void) { | ^~~~~~~~~ ./Test_Mono.c:886:15: note: previous declaration of 'mt_random' with type 'long unsigned int(void)' 886 | unsigned long mt_random(void); | ^~~~~~~~~ INFO: call to mpicc failed with Command 'mpicc -o ./Test_Mono.out ./Test_Mono.c -lm -DUSE_MPI -lmpi -fno-PIC -fPIE -flto -O3 -mtune=native -march=native -fno-math-errno -ftree-vectorize -g -DNDEBUG -D_POSIX_SOURCE -std=c99 -lm' returned non-zero exit status 1. Traceback (most recent call last): File "/home/nexmap/pkwi/McXtrace/mcxtrace/3.x-dev/tools/Python/mxrun/mxrun.py", line 616, in main() File "/home/nexmap/pkwi/McXtrace/mcxtrace/3.x-dev/tools/Python/mxrun/mxrun.py", line 524, in main mcstas.prepare(options) File "/home/nexmap/pkwi/McXtrace/mcxtrace/3.x-dev/tools/Python/mxrun/mccode.py", line 311, in prepare Process(lexer.quote(options.cc)).run(args) File "/home/nexmap/pkwi/McXtrace/mcxtrace/3.x-dev/tools/Python/mxrun/mccode.py", line 77, in run raise err File "/home/nexmap/pkwi/McXtrace/mcxtrace/3.x-dev/tools/Python/mxrun/mccode.py", line 73, in run proc = run(command, shell=True, check=True, text=True, capture_output=pipe) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nexmap/pkwi/McXtrace/mcxtrace/3.x-dev/miniconda3/lib/python3.12/subprocess.py", line 571, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command 'mpicc -o ./Test_Mono.out ./Test_Mono.c -lm -DUSE_MPI -lmpi -fno-PIC -fPIE -flto -O3 -mtune=native -march=native -fno-math-errno -ftree-vectorize -g -DNDEBUG -D_POSIX_SOURCE -std=c99 -lm' returned non-zero exit status 1.