INFO: No output directory specified (--dir) INFO: Using directory: "ESS_butterfly_MCPL_test_20241222_060652" INFO: Regenerating c-file: ESS_butterfly_MCPL_test.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS -t -o ./ESS_butterfly_MCPL_test.c ESS_butterfly_MCPL_test.instr 2024-12-22 06:07:23.947 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :ESS_butterfly(0):ESS_butterfly-lib :Shape(0):read_table-lib :Shape(1):interoff-lib :Monitor_nD(0):monitor_nd-lib :Monitor_nD(1):read_table-lib :Monitor_nD(2):interoff-lib :Guide_curved(0):ref-lib :ref-lib(0):read_table-lib 2024-12-22 06:07:23.947 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib interoff-lib ESS_butterfly-lib monitor_nd-lib 2024-12-22 06:07:23.947 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib ESS_butterfly-lib ref-lib 2024-12-22 06:07:23.947 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib monitor_nd-lib interoff-lib ESS_butterfly-lib 2024-12-22 06:07:23.947 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib monitor_nd-lib interoff-lib ESS_butterfly-lib The instrument has 17 parameters ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component Origin -> GPU kernel from component vinROT2 -> GPU kernel from component vinROT1 -> GPU kernel from component vin -> GPU kernel from component Sphere1 -> GPU kernel from component Source -> GPU kernel from component Sphere0 -> GPU kernel from component Focus_cut -> GPU kernel from component BackTrace -> GPU kernel from component Arm1 -> GPU kernel from component Arm2 -> 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 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 PSD0x -> GPU kernel from component PSD1x -> GPU kernel from component PSD2x -> GPU kernel from component GuideR -> GPU kernel from component RArm -> GPU kernel from component RArm2 -> GPU kernel from component Monitor2_xy1 -> GPU kernel from component DummyArm1 -> GPU kernel from component DummyArm2 -> GPU kernel from component DummyArm3 -> GPU kernel from component DummyArm4 -> GPU kernel from component DummyArm5 ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS finished INFO: Recompiling: ./ESS_butterfly_MCPL_test.out --> launching cmd: mcpl-config --show libdir --> launching cmd: mcpl-config --show libdir --> launching cmd: mcpl-config --show includedir DEBUG: CMD: nvc -o ./ESS_butterfly_MCPL_test.out ./ESS_butterfly_MCPL_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 -Wl,-rpath,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -L/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -lmcpl -I/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include "./ESS_butterfly_MCPL_test.c", line 4540: 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_MCPL_test.c", line 10103: 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_MCPL_test.c", line 10103: 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_MCPL_test.c", line 10103: 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_MCPL_test.c", line 10103: 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_MCPL_test.c", line 10103: 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_MCPL_test.c", line 10103: 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_MCPL_test.c", line 10460: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./ESS_butterfly_MCPL_test.c", line 11632: warning: statement is unreachable [code_is_unreachable] return 1; ^ "./ESS_butterfly_MCPL_test.c", line 13663: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./ESS_butterfly_MCPL_test.c", line 13663: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./ESS_butterfly_MCPL_test.c", line 13690: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./ESS_butterfly_MCPL_test.c", line 13690: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./ESS_butterfly_MCPL_test.c", line 13823: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ESS_butterfly_MCPL_test.c", line 14043: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ESS_butterfly_MCPL_test.c", line 15710: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ESS_butterfly_MCPL_test.c", line 15742: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ESS_butterfly_MCPL_test.c", line 15774: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ESS_butterfly_MCPL_test.c", line 15806: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ESS_butterfly_MCPL_test.c", line 15838: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ESS_butterfly_MCPL_test.c", line 15937: warning: variable "line" was declared but never referenced [declared_but_not_referenced] char line[256]; ^ "./ESS_butterfly_MCPL_test.c", line 15938: warning: variable "ncount" was declared but never referenced [declared_but_not_referenced] long long ncount; ^ "./ESS_butterfly_MCPL_test.c", line 16230: warning: variable "sign_bl_angle" was set but never used [set_but_not_used] int sign_bl_angle; ^ "./ESS_butterfly_MCPL_test.c", line 16239: warning: variable "sin_beamport_angle" was set but never used [set_but_not_used] double cos_beamport_angle, sin_beamport_angle; ^ "./ESS_butterfly_MCPL_test.c", line 17430: warning: variable "tmpx" was declared but never referenced [declared_but_not_referenced] double tmpx,tmpy,tmpz; ^ "./ESS_butterfly_MCPL_test.c", line 17430: warning: variable "tmpy" was declared but never referenced [declared_but_not_referenced] double tmpx,tmpy,tmpz; ^ "./ESS_butterfly_MCPL_test.c", line 17430: warning: variable "tmpz" was declared but never referenced [declared_but_not_referenced] double tmpx,tmpy,tmpz; ^ "./ESS_butterfly_MCPL_test.c", line 17473: warning: incompatible redefinition of macro "Emin" (declared at line 17273) [bad_macro_redef] #define Emin (_particle->Emin) ^ "./ESS_butterfly_MCPL_test.c", line 17474: warning: incompatible redefinition of macro "Emax" (declared at line 17274) [bad_macro_redef] #define Emax (_particle->Emax) ^ "./ESS_butterfly_MCPL_test.c", line 17305: warning: variable "ncount" was set but never used [set_but_not_used] long long ncount; ^ "./ESS_butterfly_MCPL_test.c", line 17690: warning: variable "z0" was set but never used [set_but_not_used] double x0,z0; ^ "./ESS_butterfly_MCPL_test.c", line 17691: warning: variable "surf_sign" was set but never used [set_but_not_used] int surf_sign; ^ "./ESS_butterfly_MCPL_test.c", line 18343: warning: variable "div" was declared but never referenced [declared_but_not_referenced] double div; ^ "./ESS_butterfly_MCPL_test.c", line 18448: warning: variable "ii" was set but never used [set_but_not_used] int ii, i_bounce; ^ "./ESS_butterfly_MCPL_test.c", line 21684: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./ESS_butterfly_MCPL_test.c", line 21685: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./ESS_butterfly_MCPL_test.c", line 1548: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./ESS_butterfly_MCPL_test.c", line 2951: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 98, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 112, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 153, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 186, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 217, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 229, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 238, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 257, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1595, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1599, Generating acc routine seq Generating NVIDIA GPU code str_len: 1608, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4161, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4592, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4603, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4612, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4624, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4636, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4646, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4656, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4664, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4674, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4696, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4703, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4749, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4784, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4795, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4812, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4823, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4839, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4868, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4879, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4883, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5060, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5091, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5108, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5207, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5291, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5357, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5434, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5706, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5716, Generating acc routine seq Generating NVIDIA GPU code _hash: 5742, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5783, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5794, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5799, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5807, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5815, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5822, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6479, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6575, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6592, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6707, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6762, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 9119, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 9187, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 9266, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 9734, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 9750, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 9768, Generating acc routine seq Generating NVIDIA GPU code StdReflecFunc: 9834, Generating acc routine seq Generating NVIDIA GPU code TableReflecFunc: 9893, Generating acc routine seq Generating NVIDIA GPU code off_F: 10060, Generating acc routine seq Generating NVIDIA GPU code off_sign: 10065, Generating acc routine seq Generating NVIDIA GPU code off_normal: 10075, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 10101, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 10164, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 10295, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 10340, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 10457, Generating acc routine seq Generating NVIDIA GPU code off_compare: 10575, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 10587, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 10622, Generating acc routine seq Generating NVIDIA GPU code Min_int: 10873, Generating acc routine seq Generating NVIDIA GPU code merge: 10880, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 10984, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 10999, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 11053, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 11170, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 11192, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_spectrum: 11352, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_spectrum: 11379, Generating acc routine seq Generating NVIDIA GPU code ESS_2014_Schoenfeldt_cold_y0: 11393, Generating acc routine seq Generating NVIDIA GPU code ESS_2014_Schoenfeldt_thermal_y0: 11405, Generating acc routine seq Generating NVIDIA GPU code ESS_2014_Schoenfeldt_cold_x0: 11412, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal: 11437, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold: 11464, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_y0: 11489, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_y0: 11500, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_x0: 11511, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_x0: 11556, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_Y: 11607, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_Y: 11614, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_Theta120: 11621, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_Theta120: 11628, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_timedist: 11638, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_timedist: 11648, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 12644, Generating acc routine seq Generating NVIDIA GPU code init: 16977, Generating update device(TCollmin,TCollmax) 17015, Generating update device(EmaxTh,EmaxC,EminTh,EminC) 17136, Generating update device(_Monitor2_xy1_var,_vinROT1_var,_instrument_var,_vin_var,_vinROT2_var,_Sphere0_var,_RArm_var,_Source_var,_DummyArm5_var,_AutoTOFL_var,_Arm1_var,_AutoTOF0_var,_AutoL0_var,_Arm2_var,_Origin_var,_PSD0x_var,_PSD1x_var,_GuideR_var,_BrillmonTHRM_var,_Sphere1_var,_MonND2_2_var,_MonND1_var,_MonND2_var,_MonND3_var,_AutoTOFL0_var,_BrillmonCOLD_COLL_var,_BackTrace_var,_BrillmonTHRM_COLL_var,_BrillmonCOLD_var,_PSD0_var,_PSD1_var,_PSD2_var,_Focus_cut_var,_RArm2_var,_PSD2x_var,_MonND4_var,_CWidth_var,_DummyArm1_var,_DummyArm2_var,_DummyArm3_var,_DummyArm4_var,_TWidth_var) class_Progress_bar_trace: 17177, Generating acc routine seq Generating NVIDIA GPU code class_MCPL_input_trace: 17268, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_4PI_trace: 17530, Generating acc routine seq Generating NVIDIA GPU code class_ESS_butterfly_trace: 17608, Generating acc routine seq Generating NVIDIA GPU code class_Shape_trace: 17895, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 18010, Generating acc routine seq Generating NVIDIA GPU code class_Brilliance_monitor_trace: 18300, Generating acc routine seq Generating NVIDIA GPU code class_Guide_curved_trace: 18433, Generating acc routine seq Generating NVIDIA GPU code raytrace: 18549, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 19302, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 19316, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 19302, Local memory used for .inl_particle_26817,particleN,.inl_.inl_mcneutron_0_26832,.inl_.X2269_26834,.inl_.inl_.X2476_15_26833 19316, Generating implicit firstprivate(seed,_particle) finally: 20732, Generating update self(_Monitor2_xy1_var,_vinROT1_var,_instrument_var,_vin_var,_vinROT2_var,_Sphere0_var,_RArm_var,_Source_var,_DummyArm5_var,_AutoTOFL_var,_Arm1_var,_AutoTOF0_var,_AutoL0_var,_Arm2_var,_Origin_var,_PSD0x_var,_PSD1x_var,_GuideR_var,_BrillmonTHRM_var,_Sphere1_var,_MonND2_2_var,_MonND1_var,_MonND2_var,_MonND3_var,_AutoTOFL0_var,_BrillmonCOLD_COLL_var,_BackTrace_var,_BrillmonTHRM_COLL_var,_BrillmonCOLD_var,_PSD0_var,_PSD1_var,_PSD2_var,_Focus_cut_var,_RArm2_var,_PSD2x_var,_MonND4_var,_CWidth_var,_DummyArm1_var,_DummyArm2_var,_DummyArm3_var,_DummyArm4_var,_TWidth_var) mcenabletrace: 5941, Generating update device(mcdotrace) /u/data/pkwi/McStas/mcstas/3.x-dev/tools/../miniconda3/bin//ld: warning: /tmp/pgcudafatzyaOgl5FbnRpx.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: ===