INFO: No output directory specified (--dir) INFO: Using directory: "ESS_butterfly_tfocus_test_20241206_090159" INFO: Regenerating c-file: ESS_butterfly_tfocus_test.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -t -o ./ESS_butterfly_tfocus_test.c ESS_butterfly_tfocus_test.instr 2024-12-06 09:02:03.514 | 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-06 09:02:03.515 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to monitor_nd-lib read_table-lib interoff-lib ESS_butterfly-lib 2024-12-06 09:02:03.515 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to ESS_butterfly-lib monitor_nd-lib read_table-lib interoff-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 finished INFO: Recompiling: ./ESS_butterfly_tfocus_test.out DEBUG: CMD: nvc -o ./ESS_butterfly_tfocus_test.out ./ESS_butterfly_tfocus_test.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./ESS_butterfly_tfocus_test.c", line 4527: 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_test.c", line 10082: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./ESS_butterfly_tfocus_test.c", line 10082: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./ESS_butterfly_tfocus_test.c", line 10109: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./ESS_butterfly_tfocus_test.c", line 10109: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./ESS_butterfly_tfocus_test.c", line 11651: 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_test.c", line 11651: 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_test.c", line 11651: 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_test.c", line 11651: 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_test.c", line 11651: 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_test.c", line 11651: 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_test.c", line 12008: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./ESS_butterfly_tfocus_test.c", line 13180: warning: statement is unreachable [code_is_unreachable] return 1; ^ "./ESS_butterfly_tfocus_test.c", line 13276: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ESS_butterfly_tfocus_test.c", line 13332: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ESS_butterfly_tfocus_test.c", line 13724: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ESS_butterfly_tfocus_test.c", line 13756: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ESS_butterfly_tfocus_test.c", line 14678: warning: variable "sign_bl_angle" was set but never used [set_but_not_used] int sign_bl_angle; ^ "./ESS_butterfly_tfocus_test.c", line 14687: warning: variable "sin_beamport_angle" was set but never used [set_but_not_used] double cos_beamport_angle, sin_beamport_angle; ^ "./ESS_butterfly_tfocus_test.c", line 15670: warning: variable "z0" was set but never used [set_but_not_used] double x0,z0; ^ "./ESS_butterfly_tfocus_test.c", line 15671: warning: variable "surf_sign" was set but never used [set_but_not_used] int surf_sign; ^ "./ESS_butterfly_tfocus_test.c", line 16241: warning: variable "div" was declared but never referenced [declared_but_not_referenced] double div; ^ "./ESS_butterfly_tfocus_test.c", line 18552: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./ESS_butterfly_tfocus_test.c", line 18553: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./ESS_butterfly_tfocus_test.c", line 1536: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./ESS_butterfly_tfocus_test.c", line 2939: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 96, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 110, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 149, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 180, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 209, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 221, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 230, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 247, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1583, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1587, Generating acc routine seq Generating NVIDIA GPU code str_len: 1596, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4148, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4579, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4590, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4599, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4611, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4623, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4633, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4643, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4651, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4661, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4683, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4690, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4736, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4771, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4782, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4799, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4810, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4826, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4855, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4866, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4870, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5047, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5078, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5095, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5194, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5278, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5344, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5421, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5693, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5703, Generating acc routine seq Generating NVIDIA GPU code _hash: 5729, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5770, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5781, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5786, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5794, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5802, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5809, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6466, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6562, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6579, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6694, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6749, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 9078, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 10908, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 10976, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 11055, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 11523, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 11539, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 11557, Generating acc routine seq Generating NVIDIA GPU code off_F: 11608, Generating acc routine seq Generating NVIDIA GPU code off_sign: 11613, Generating acc routine seq Generating NVIDIA GPU code off_normal: 11623, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 11649, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 11712, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 11843, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 11888, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 12005, Generating acc routine seq Generating NVIDIA GPU code off_compare: 12123, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 12135, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 12170, Generating acc routine seq Generating NVIDIA GPU code Min_int: 12421, Generating acc routine seq Generating NVIDIA GPU code merge: 12428, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 12532, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 12547, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 12601, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 12718, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 12740, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_spectrum: 12900, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_spectrum: 12927, Generating acc routine seq Generating NVIDIA GPU code ESS_2014_Schoenfeldt_cold_y0: 12941, Generating acc routine seq Generating NVIDIA GPU code ESS_2014_Schoenfeldt_thermal_y0: 12953, Generating acc routine seq Generating NVIDIA GPU code ESS_2014_Schoenfeldt_cold_x0: 12960, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal: 12985, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold: 13012, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_y0: 13037, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_y0: 13048, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_x0: 13059, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_x0: 13104, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_Y: 13155, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_Y: 13162, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_Theta120: 13169, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_Theta120: 13176, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_timedist: 13186, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_timedist: 13196, Generating acc routine seq Generating NVIDIA GPU code init: 15457, 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: 15498, Generating acc routine seq Generating NVIDIA GPU code class_ESS_butterfly_trace: 15588, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 15907, Generating acc routine seq Generating NVIDIA GPU code class_Brilliance_monitor_trace: 16198, Generating acc routine seq Generating NVIDIA GPU code raytrace: 16343, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 16860, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 16874, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 16860, Local memory used for .inl_particle_21166,particleN,.inl_.inl_mcneutron_0_21181,.inl_.X2145_21183,.inl_.inl_.X2350_15_21182 16874, Generating implicit firstprivate(seed,_particle) finally: 17870, 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: 5928, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===