INFO: No output directory specified (--dir) INFO: Using directory: "NuSTAR_1shell_con_20241123_055621" INFO: Regenerating c-file: NuSTAR_1shell_con.c DEBUG: CMD: /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/bin/mcxtrace -t -o ./NuSTAR_1shell_con.c NuSTAR_1shell_con.instr !!! WARNING: GROUP hyperoptics seems to include only one COMPONENT: !!! --> Shell_h_1 <-- !!! This may lead to unphysical simulation behaviour! CFLAGS= WARNING: --> USERVAR nid is of type long long and may need specific --> per-particle initialisation through an --> EXTEND block! ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/bin/mcxtrace finished INFO: Recompiling: ./NuSTAR_1shell_con.out DEBUG: CMD: nvc -o ./NuSTAR_1shell_con.out ./NuSTAR_1shell_con.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/McXtrace/mcxtrace/3.x-dev/miniconda3/lib -Wl,-rpath-link,/u/data/pkwi/McXtrace/mcxtrace/3.x-dev/miniconda3/lib -L/u/data/pkwi/McXtrace/mcxtrace/3.x-dev/miniconda3/lib -mtune=haswell -fPIC -O2 -isystem /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/miniconda3/include -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./NuSTAR_1shell_con.c", line 4512: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./NuSTAR_1shell_con.c", line 6635: warning: variable "ret" was declared but never referenced [declared_but_not_referenced] int ret=1,stat=0,plane_stat=0; ^ "./NuSTAR_1shell_con.c", line 6808: warning: variable "D" was declared but never referenced [declared_but_not_referenced] double A,B,C,D,k; ^ "./NuSTAR_1shell_con.c", line 8915: warning: integer conversion resulted in a change of sign [integer_sign_change] Vars->OFF_polyidx = -1; ^ "./NuSTAR_1shell_con.c", line 9917: warning: variable "ratio" was set but never used [set_but_not_used] double ratio; ^ "./NuSTAR_1shell_con.c", line 10432: warning: variable "y0" is used before its value is set [used_before_set] if (y0 < ymin) y0=ymin; ^ "./NuSTAR_1shell_con.c", line 10434: warning: variable "y1" is used before its value is set [used_before_set] if (y1 < ymin) y1=ymin; ^ "./NuSTAR_1shell_con.c", line 10806: 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; ^ "./NuSTAR_1shell_con.c", line 10806: 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; ^ "./NuSTAR_1shell_con.c", line 10806: 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; ^ "./NuSTAR_1shell_con.c", line 10806: 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; ^ "./NuSTAR_1shell_con.c", line 10806: 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; ^ "./NuSTAR_1shell_con.c", line 10806: 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; ^ "./NuSTAR_1shell_con.c", line 11163: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./NuSTAR_1shell_con.c", line 12422: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./NuSTAR_1shell_con.c", line 12410: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./NuSTAR_1shell_con.c", line 12463: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./NuSTAR_1shell_con.c", line 12537: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./NuSTAR_1shell_con.c", line 12586: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./NuSTAR_1shell_con.c", line 12635: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./NuSTAR_1shell_con.c", line 12698: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./NuSTAR_1shell_con.c", line 12747: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./NuSTAR_1shell_con.c", line 12796: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./NuSTAR_1shell_con.c", line 12866: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./NuSTAR_1shell_con.c", line 12929: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./NuSTAR_1shell_con.c", line 12999: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 11; ^ "./NuSTAR_1shell_con.c", line 13062: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 12; ^ "./NuSTAR_1shell_con.c", line 13158: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 13; ^ "./NuSTAR_1shell_con.c", line 13254: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 14; ^ "./NuSTAR_1shell_con.c", line 13317: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 15; ^ "./NuSTAR_1shell_con.c", line 13380: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 16; ^ "./NuSTAR_1shell_con.c", line 13443: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 17; ^ "./NuSTAR_1shell_con.c", line 13506: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 18; ^ "./NuSTAR_1shell_con.c", line 13569: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 19; ^ "./NuSTAR_1shell_con.c", line 13758: warning: variable "status" was set but never used [set_but_not_used] int status=0; ^ "./NuSTAR_1shell_con.c", line 13871: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./NuSTAR_1shell_con.c", line 13871: warning: variable "j" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./NuSTAR_1shell_con.c", line 13872: warning: variable "p1" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./NuSTAR_1shell_con.c", line 13872: warning: variable "p2" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./NuSTAR_1shell_con.c", line 13872: warning: variable "p3" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "./NuSTAR_1shell_con.c", line 14268: warning: variable "status" was set but never used [set_but_not_used] int status=0; ^ "./NuSTAR_1shell_con.c", line 14591: warning: variable "kk" was declared but never referenced [declared_but_not_referenced] double kk,theta_x,theta_y,l,e,k; ^ "./NuSTAR_1shell_con.c", line 14827: warning: variable "k" was declared but never referenced [declared_but_not_referenced] int i,j,k; ^ "./NuSTAR_1shell_con.c", line 14828: warning: variable "e" was declared but never referenced [declared_but_not_referenced] double e,p2; ^ "./NuSTAR_1shell_con.c", line 14962: warning: variable "wx" was declared but never referenced [declared_but_not_referenced] double wx,wy,wz; ^ "./NuSTAR_1shell_con.c", line 14962: warning: variable "wy" was declared but never referenced [declared_but_not_referenced] double wx,wy,wz; ^ "./NuSTAR_1shell_con.c", line 14962: warning: variable "wz" was declared but never referenced [declared_but_not_referenced] double wx,wy,wz; ^ "./NuSTAR_1shell_con.c", line 14952: warning: variable "i_small" was set but never used [set_but_not_used] int i_small; ^ "./NuSTAR_1shell_con.c", line 14956: warning: variable "nx" was declared but never referenced [declared_but_not_referenced] double nx,ny,nz; ^ "./NuSTAR_1shell_con.c", line 14956: warning: variable "ny" was declared but never referenced [declared_but_not_referenced] double nx,ny,nz; ^ "./NuSTAR_1shell_con.c", line 14956: warning: variable "nz" was declared but never referenced [declared_but_not_referenced] double nx,ny,nz; ^ "./NuSTAR_1shell_con.c", line 16908: warning: variable "k" was declared but never referenced [declared_but_not_referenced] int k; ^ "./NuSTAR_1shell_con.c", line 17323: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./NuSTAR_1shell_con.c", line 17324: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./NuSTAR_1shell_con.c", line 1521: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./NuSTAR_1shell_con.c", line 2924: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 91, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 105, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 144, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 175, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 204, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 215, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 224, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 240, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1568, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1572, Generating acc routine seq Generating NVIDIA GPU code str_len: 1581, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4133, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4564, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4575, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4584, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4596, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4608, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4618, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4628, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4636, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4646, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4668, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4675, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4721, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4756, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4767, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4784, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4795, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4811, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4840, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4851, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4855, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5032, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5063, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5080, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5179, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5263, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5329, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5406, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5678, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5688, Generating acc routine seq Generating NVIDIA GPU code _hash: 5714, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5755, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5766, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5771, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5779, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5787, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5794, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6436, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6469, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6530, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6546, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6632, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6700, Generating acc routine seq Generating NVIDIA GPU code plane_intersect: 6786, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code Table_Index: 7873, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 7941, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 8020, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 8488, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 8504, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 8522, Generating acc routine seq Generating NVIDIA GPU code intersect_cone: 8540, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 9510, Generating acc routine seq Generating NVIDIA GPU code off_F: 10763, Generating acc routine seq Generating NVIDIA GPU code off_sign: 10768, Generating acc routine seq Generating NVIDIA GPU code off_normal: 10778, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 10804, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 10867, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 10998, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 11043, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 11160, Generating acc routine seq Generating NVIDIA GPU code off_compare: 11278, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 11290, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 11325, Generating acc routine seq Generating NVIDIA GPU code Min_int: 11576, Generating acc routine seq Generating NVIDIA GPU code merge: 11583, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 11687, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 11702, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 11756, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 11873, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 11895, Generating acc routine seq Generating NVIDIA GPU code init: 14301, Generating update device(alphax) 14399, Generating update device(_FLmond_var,_paramon_var,_srcoffaxis_var,_src_var,_detector_post_optics_var,_misalign_var,_midopdet_var,_Shell_h_1_var,_medium_detectpr_var,_Origin_var,_big_detector_var,_optics_centre_var,_focal_detector_var,_Shell_p_1_var,_instrument_var,_detector_pre_optics_var,_srcradsym_var,_ultrafocal_detector_var,_superfocal_detector_var,_hypermon_var) class_Progress_bar_trace: 14440, Generating acc routine seq Generating NVIDIA GPU code class_Source_div_trace: 14552, Generating acc routine seq Generating NVIDIA GPU code class_Arm_trace: 14748, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 14807, Generating acc routine seq Generating NVIDIA GPU code class_Shell_c_trace: 14898, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 15132, Generating acc routine seq Generating NVIDIA GPU code raytrace: 15361, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 15819, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 15833, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 15819, Local memory used for .inl_particle_20688,particleN,.inl_.inl_mcphoton_0_20704,.inl_.X2084_20706,.inl_.inl_.X2286_13_20705 15833, Generating implicit firstprivate(seed,_particle) finally: 16634, Generating update self(_FLmond_var,_paramon_var,_srcoffaxis_var,_src_var,_detector_post_optics_var,_misalign_var,_midopdet_var,_Shell_h_1_var,_medium_detectpr_var,_Origin_var,_big_detector_var,_optics_centre_var,_focal_detector_var,_Shell_p_1_var,_instrument_var,_detector_pre_optics_var,_srcradsym_var,_ultrafocal_detector_var,_superfocal_detector_var,_hypermon_var) mcenabletrace: 5913, Generating update device(mcdotrace) /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/tools/../miniconda3/bin//ld: warning: /tmp/pgcudafatvqthf-dI2rlwJ.o: missing .note.GNU-stack section implies executable stack /u/data/pkwi/McXtrace/mcxtrace/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: ===