INFO: No output directory specified (--dir) INFO: Using directory: "Test_TasReso_20251212_034300" INFO: Regenerating c-file: Test_TasReso.c DEBUG: CMD: /Users/runner/miniconda3/envs/mcstas/bin/mcstas -t -o ./Test_TasReso.c Test_TasReso.instr CFLAGS= --> Added COMPONENT mono USERVAR ncol_4 with type int --> Added COMPONENT mono USERVAR nrow_4 with type int --> Added COMPONENT sample_reso USERVAR res_pi_10 with type double --> Added COMPONENT sample_reso USERVAR res_ki_x_10 with type double --> Added COMPONENT sample_reso USERVAR res_ki_y_10 with type double --> Added COMPONENT sample_reso USERVAR res_ki_z_10 with type double --> Added COMPONENT sample_reso USERVAR res_kf_x_10 with type double --> Added COMPONENT sample_reso USERVAR res_kf_y_10 with type double --> Added COMPONENT sample_reso USERVAR res_kf_z_10 with type double --> Added COMPONENT sample_reso USERVAR res_rx_10 with type double --> Added COMPONENT sample_reso USERVAR res_ry_10 with type double --> Added COMPONENT sample_reso USERVAR res_rz_10 with type double --> Added COMPONENT ana USERVAR ncol_14 with type int --> Added COMPONENT ana USERVAR nrow_14 with type int WARNING: The parameter mosaic_AB of sample_xtal is initialized using a static {,,,} vector. -> Such static vectors support literal numbers ONLY. -> Any vector use of variables or defines must happen via a DECLARE/INITIALIZE pointer. ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: ----------------------------------------------------------- DEBUG: CMD: /Users/runner/miniconda3/envs/mcstas/bin/mcstas finished INFO: Recompiling: ./Test_TasReso.out DEBUG: CMD: mpicc -o ./Test_TasReso.out ./Test_TasReso.c -lm -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,/Users/runner/miniconda3/envs/mcstas/lib -L/Users/runner/miniconda3/envs/mcstas/lib -ftree-vectorize -fPIC -fstack-protector-strong -O2 -pipe -isystem /Users/runner/miniconda3/envs/mcstas/include -DUSE_MPI -lmpi -headerpad_max_install_names -ftree-vectorize -fPIC -fstack-protector-strong -O2 -pipe -isystem /Users/runner/miniconda3/envs/mcstas/include -O2 -g -DNDEBUG -isysroot /Applications/Xcode_16.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk -D_DARWIN_C_SOURCE -I/Users/runner/miniconda3/envs/mcstas/include -Wl,-rpath,/Users/runner/miniconda3/envs/mcstas/lib -L/Users/runner/miniconda3/envs/mcstas/lib -fno-PIC -fPIE -flto -O3 -march=native -fno-math-errno -ftree-vectorize -g -DNDEBUG -D_POSIX_SOURCE -std=c99 -lm ./Test_TasReso.c:17882:34: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 17882 | sprintf(res_pi_var,"res_pi_%i",_comp->_index); | ~~ ^~~~~~~~~~~~~ | %li /Applications/Xcode_16.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_stdio.h:50:56: note: expanded from macro 'sprintf' 50 | __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) | ^~~~~~~~~~~ ./Test_TasReso.c:17883:38: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 17883 | sprintf(res_ki_x_var,"res_ki_x_%i",_comp->_index); | ~~ ^~~~~~~~~~~~~ | %li /Applications/Xcode_16.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_stdio.h:50:56: note: expanded from macro 'sprintf' 50 | __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) | ^~~~~~~~~~~ ./Test_TasReso.c:17884:38: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 17884 | sprintf(res_ki_y_var,"res_ki_y_%i",_comp->_index); | ~~ ^~~~~~~~~~~~~ | %li /Applications/Xcode_16.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_stdio.h:50:56: note: expanded from macro 'sprintf' 50 | __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) | ^~~~~~~~~~~ ./Test_TasReso.c:17885:38: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 17885 | sprintf(res_ki_z_var,"res_ki_z_%i",_comp->_index); | ~~ ^~~~~~~~~~~~~ | %li /Applications/Xcode_16.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_stdio.h:50:56: note: expanded from macro 'sprintf' 50 | __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) | ^~~~~~~~~~~ ./Test_TasReso.c:17886:38: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 17886 | sprintf(res_kf_x_var,"res_kf_x_%i",_comp->_index); | ~~ ^~~~~~~~~~~~~ | %li /Applications/Xcode_16.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_stdio.h:50:56: note: expanded from macro 'sprintf' 50 | __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) | ^~~~~~~~~~~ ./Test_TasReso.c:17887:38: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 17887 | sprintf(res_kf_y_var,"res_kf_y_%i",_comp->_index); | ~~ ^~~~~~~~~~~~~ | %li /Applications/Xcode_16.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_stdio.h:50:56: note: expanded from macro 'sprintf' 50 | __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) | ^~~~~~~~~~~ ./Test_TasReso.c:17888:38: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 17888 | sprintf(res_kf_z_var,"res_kf_z_%i",_comp->_index); | ~~ ^~~~~~~~~~~~~ | %li /Applications/Xcode_16.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_stdio.h:50:56: note: expanded from macro 'sprintf' 50 | __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) | ^~~~~~~~~~~ ./Test_TasReso.c:17889:34: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 17889 | sprintf(res_rx_var,"res_rx_%i",_comp->_index); | ~~ ^~~~~~~~~~~~~ | %li /Applications/Xcode_16.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_stdio.h:50:56: note: expanded from macro 'sprintf' 50 | __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) | ^~~~~~~~~~~ ./Test_TasReso.c:17890:34: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 17890 | sprintf(res_ry_var,"res_ry_%i",_comp->_index); | ~~ ^~~~~~~~~~~~~ | %li /Applications/Xcode_16.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_stdio.h:50:56: note: expanded from macro 'sprintf' 50 | __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) | ^~~~~~~~~~~ ./Test_TasReso.c:17891:34: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 17891 | sprintf(res_rz_var,"res_rz_%i",_comp->_index); | ~~ ^~~~~~~~~~~~~ | %li /Applications/Xcode_16.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_stdio.h:50:56: note: expanded from macro 'sprintf' 50 | __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) | ^~~~~~~~~~~ ./Test_TasReso.c:21087:53: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 21087 | if ((( _instrument_var._parameters.sample_num == 0 ))) // conditional WHEN execution | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ ./Test_TasReso.c:21087:53: note: remove extraneous parentheses around the comparison to silence this warning 21087 | if ((( _instrument_var._parameters.sample_num == 0 ))) // conditional WHEN execution | ~ ^ ~ ./Test_TasReso.c:21087:53: note: use '=' to turn this equality comparison into an assignment 21087 | if ((( _instrument_var._parameters.sample_num == 0 ))) // conditional WHEN execution | ^~ | = ./Test_TasReso.c:21109:53: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 21109 | if ((( _instrument_var._parameters.sample_num == 1 ))) // conditional WHEN execution | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ ./Test_TasReso.c:21109:53: note: remove extraneous parentheses around the comparison to silence this warning 21109 | if ((( _instrument_var._parameters.sample_num == 1 ))) // conditional WHEN execution | ~ ^ ~ ./Test_TasReso.c:21109:53: note: use '=' to turn this equality comparison into an assignment 21109 | if ((( _instrument_var._parameters.sample_num == 1 ))) // conditional WHEN execution | ^~ | = ./Test_TasReso.c:21131:53: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 21131 | if ((( _instrument_var._parameters.sample_num == 2 ))) // conditional WHEN execution | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ ./Test_TasReso.c:21131:53: note: remove extraneous parentheses around the comparison to silence this warning 21131 | if ((( _instrument_var._parameters.sample_num == 2 ))) // conditional WHEN execution | ~ ^ ~ ./Test_TasReso.c:21131:53: note: use '=' to turn this equality comparison into an assignment 21131 | if ((( _instrument_var._parameters.sample_num == 2 ))) // conditional WHEN execution | ^~ | = ./Test_TasReso.c:21310:53: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 21310 | if ((( _instrument_var._parameters.sample_num == 2 ))) // conditional WHEN execution | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ ./Test_TasReso.c:21310:53: note: remove extraneous parentheses around the comparison to silence this warning 21310 | if ((( _instrument_var._parameters.sample_num == 2 ))) // conditional WHEN execution | ~ ^ ~ ./Test_TasReso.c:21310:53: note: use '=' to turn this equality comparison into an assignment 21310 | if ((( _instrument_var._parameters.sample_num == 2 ))) // conditional WHEN execution | ^~ | = ./Test_TasReso.c:22085:66: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] 22085 | printf("Resolution calculation used %d neutron events.\n", num_events); | ~~ ^~~~~~~~~~ | %lu ./Test_TasReso.c:22042:22: note: expanded from macro 'num_events' 22042 | #define num_events (_comp->_parameters.num_events) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 15 warnings generated. ld: warning: duplicate -rpath '/Users/runner/miniconda3/envs/mcstas/lib' ignored ld: warning: duplicate -rpath '/Users/runner/miniconda3/envs/mcstas/lib' ignored DEBUG: CMD: mpicc finished DEBUG: CMD: otool -l ./Test_TasReso.out DEBUG: CMD: otool finished INFO: ===