INFO: No output directory specified (--dir) INFO: Using directory: "ESS_butterfly_tfocus_NOFOCUS_test_20241222_061003" INFO: Regenerating c-file: ESS_butterfly_tfocus_NOFOCUS_test.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS -t -o ./ESS_butterfly_tfocus_NOFOCUS_test.c ESS_butterfly_tfocus_NOFOCUS_test.instr 2024-12-22 06:10:22.043 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :ESS_butterfly(0):ESS_butterfly-lib :Monitor_nD(0):monitor_nd-lib :Monitor_nD(1):read_table-lib :Monitor_nD(2):interoff-lib 2024-12-22 06:10:22.043 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to ESS_butterfly-lib monitor_nd-lib read_table-lib interoff-lib 2024-12-22 06:10:22.043 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to monitor_nd-lib read_table-lib interoff-lib ESS_butterfly-lib The instrument has 14 parameters ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component origin -> GPU kernel from component Source -> GPU kernel from component AutoTOFL0 -> GPU kernel from component AutoTOF0 -> GPU kernel from component AutoL0 -> GPU kernel from component PSD0 -> GPU kernel from component PSD1 -> GPU kernel from component PSD2 -> GPU kernel from component Arm1 -> GPU kernel from component Arm2 -> GPU kernel from component MonND1 -> GPU kernel from component CWidth -> GPU kernel from component TWidth -> GPU kernel from component MonND2 -> GPU kernel from component MonND2_2 -> GPU kernel from component MonND3 -> GPU kernel from component MonND4 -> GPU kernel from component AutoTOFL -> GPU kernel from component BrillmonCOLD -> GPU kernel from component BrillmonCOLD_COLL -> GPU kernel from component BrillmonTHRM -> GPU kernel from component BrillmonTHRM_COLL -> GPU kernel from component AutoTOFLend ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS finished INFO: Recompiling: ./ESS_butterfly_tfocus_NOFOCUS_test.out DEBUG: CMD: nvc -o ./ESS_butterfly_tfocus_NOFOCUS_test.out ./ESS_butterfly_tfocus_NOFOCUS_test.c -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined -Wl,-rpath,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -Wl,-rpath-link,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -L/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -mtune=haswell -fPIC -O2 -isystem /u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 4552: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 8433: warning: statement is unreachable [code_is_unreachable] return 1; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 10464: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 10464: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 10491: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 10491: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 12033: warning: variable "minx" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 12033: warning: variable "maxx" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 12033: warning: variable "miny" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 12033: warning: variable "maxy" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 12033: warning: variable "minz" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 12033: warning: variable "maxz" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 12390: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 13314: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 13370: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 13762: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 13794: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 14716: warning: variable "sign_bl_angle" was set but never used [set_but_not_used] int sign_bl_angle; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 14725: warning: variable "sin_beamport_angle" was set but never used [set_but_not_used] double cos_beamport_angle, sin_beamport_angle; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 15709: warning: variable "z0" was set but never used [set_but_not_used] double x0,z0; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 15710: warning: variable "surf_sign" was set but never used [set_but_not_used] int surf_sign; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 16288: warning: variable "div" was declared but never referenced [declared_but_not_referenced] double div; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 18611: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 18612: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 1560: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 2963: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 100, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 114, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 157, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 192, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 225, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 237, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 246, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 267, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1607, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1611, Generating acc routine seq Generating NVIDIA GPU code str_len: 1620, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4173, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4604, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4615, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4624, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4636, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4648, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4658, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4668, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4676, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4686, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4708, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4715, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4761, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4796, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4807, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4824, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4835, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4851, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4880, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4891, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4895, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5072, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5103, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5120, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5219, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5303, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5369, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5446, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5718, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5728, Generating acc routine seq Generating NVIDIA GPU code _hash: 5754, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5795, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5806, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5811, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5819, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5827, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5834, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6491, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6587, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6604, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6719, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6774, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_spectrum: 8153, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_spectrum: 8180, Generating acc routine seq Generating NVIDIA GPU code ESS_2014_Schoenfeldt_cold_y0: 8194, Generating acc routine seq Generating NVIDIA GPU code ESS_2014_Schoenfeldt_thermal_y0: 8206, Generating acc routine seq Generating NVIDIA GPU code ESS_2014_Schoenfeldt_cold_x0: 8213, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal: 8238, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold: 8265, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_y0: 8290, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_y0: 8301, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_x0: 8312, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_x0: 8357, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_Y: 8408, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_Y: 8415, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_Theta120: 8422, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_Theta120: 8429, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_timedist: 8439, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_timedist: 8449, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 9445, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 11290, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 11358, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 11437, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 11905, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 11921, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 11939, Generating acc routine seq Generating NVIDIA GPU code off_F: 11990, Generating acc routine seq Generating NVIDIA GPU code off_sign: 11995, Generating acc routine seq Generating NVIDIA GPU code off_normal: 12005, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 12031, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 12094, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 12225, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 12270, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 12387, Generating acc routine seq Generating NVIDIA GPU code off_compare: 12505, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 12517, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 12552, Generating acc routine seq Generating NVIDIA GPU code Min_int: 12803, Generating acc routine seq Generating NVIDIA GPU code merge: 12810, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 12914, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 12929, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 12983, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 13100, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 13122, Generating acc routine seq Generating NVIDIA GPU code init: 15420, Generating update device(EminTh,TCollmax,TCollmin,EmaxC,EminC,EmaxTh) 15496, Generating update device(_origin_var,_instrument_var,_PSD2_var,_AutoTOF0_var,_AutoL0_var,_Arm2_var,_MonND4_var,_PSD0_var,_PSD1_var,_Arm1_var,_CWidth_var,_BrillmonTHRM_var,_Source_var,_MonND2_2_var,_MonND1_var,_MonND2_var,_MonND3_var,_AutoTOFL0_var,_BrillmonCOLD_COLL_var,_AutoTOFLend_var,_BrillmonTHRM_COLL_var,_BrillmonCOLD_var,_AutoTOFL_var,_TWidth_var) class_Progress_bar_trace: 15537, Generating acc routine seq Generating NVIDIA GPU code class_ESS_butterfly_trace: 15627, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 15954, Generating acc routine seq Generating NVIDIA GPU code class_Brilliance_monitor_trace: 16245, Generating acc routine seq Generating NVIDIA GPU code raytrace: 16394, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 16911, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 16925, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 16911, Local memory used for .inl_particle_20796,particleN,.inl_.inl_mcneutron_0_20811,.inl_.X2149_20813,.inl_.inl_.X2354_15_20812 16925, Generating implicit firstprivate(seed,_particle) finally: 17925, Generating update self(_instrument_var,_origin_var,_PSD2_var,_AutoTOF0_var,_AutoL0_var,_Arm2_var,_MonND4_var,_PSD0_var,_PSD1_var,_Arm1_var,_CWidth_var,_BrillmonTHRM_var,_Source_var,_MonND2_2_var,_MonND1_var,_MonND2_var,_MonND3_var,_AutoTOFL0_var,_BrillmonCOLD_COLL_var,_AutoTOFLend_var,_BrillmonTHRM_COLL_var,_BrillmonCOLD_var,_AutoTOFL_var,_TWidth_var) mcenabletrace: 5953, Generating update device(mcdotrace) /u/data/pkwi/McStas/mcstas/3.x-dev/tools/../miniconda3/bin//ld: warning: /tmp/pgcudafatB5KOgr2DYFIP7.o: missing .note.GNU-stack section implies executable stack /u/data/pkwi/McStas/mcstas/3.x-dev/tools/../miniconda3/bin//ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker DEBUG: CMD: nvc finished INFO: ===