INFO: No output directory specified (--dir) INFO: Using directory: "TOF_Reflectometer_20241222_093940" INFO: Regenerating c-file: TOF_Reflectometer.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS -t -o ./TOF_Reflectometer.c TOF_Reflectometer.instr 2024-12-22 09:40:04.175 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :ESS_butterfly(0):ESS_butterfly-lib :Mirror(0):read_table-lib :Mirror(1):ref-lib :ref-lib(0):read_table-lib :Elliptic_guide_gravity(0):ref-lib 2024-12-22 09:40:04.175 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib ESS_butterfly-lib 2024-12-22 09:40:04.175 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib ESS_butterfly-lib 2024-12-22 09:40:04.175 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib ESS_butterfly-lib The instrument has 10 parameters ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component Origin -> GPU kernel from component cold_source -> GPU kernel from component mirror_pos1 -> GPU kernel from component mirror1 -> GPU kernel from component mirror_pos0 -> GPU kernel from component mirror0 -> GPU kernel from component mirror_pos2 -> GPU kernel from component mirror2 -> GPU kernel from component guide_TT -> GPU kernel from component guide1 -> GPU kernel from component guide2 -> GPU kernel from component Slit1Arm -> GPU kernel from component Slit11Arm -> GPU kernel from component Slit1 -> GPU kernel from component Slit2Arm -> GPU kernel from component Slit22Arm -> GPU kernel from component Slit2 -> GPU kernel from component Hor_sampleArm -> GPU kernel from component Ver_sampleArm -> GPU kernel from component mirrorDirect -> GPU kernel from component mirror -> GPU kernel from component TOF2QcylPSD ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS finished INFO: Recompiling: ./TOF_Reflectometer.out DEBUG: CMD: nvc -o ./TOF_Reflectometer.out ./TOF_Reflectometer.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 "./TOF_Reflectometer.c", line 4510: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./TOF_Reflectometer.c", line 7575: warning: variable "numerator" was declared but never referenced [declared_but_not_referenced] double numerator; ^ "./TOF_Reflectometer.c", line 7576: warning: variable "denominator" was declared but never referenced [declared_but_not_referenced] double denominator; ^ "./TOF_Reflectometer.c", line 10306: warning: statement is unreachable [code_is_unreachable] return 1; ^ "./TOF_Reflectometer.c", line 10432: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./TOF_Reflectometer.c", line 11505: warning: variable "sign_bl_angle" was set but never used [set_but_not_used] int sign_bl_angle; ^ "./TOF_Reflectometer.c", line 11514: warning: variable "sin_beamport_angle" was set but never used [set_but_not_used] double cos_beamport_angle, sin_beamport_angle; ^ "./TOF_Reflectometer.c", line 12490: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./TOF_Reflectometer.c", line 12490: warning: variable "j" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./TOF_Reflectometer.c", line 12943: warning: variable "z0" was set but never used [set_but_not_used] double x0,z0; ^ "./TOF_Reflectometer.c", line 12944: warning: variable "surf_sign" was set but never used [set_but_not_used] int surf_sign; ^ "./TOF_Reflectometer.c", line 13332: warning: enumerated type mixed with another type [mixed_enum_type] latestParticleCollision.side=0; ^ "./TOF_Reflectometer.c", line 13334: warning: enumerated type mixed with another type [mixed_enum_type] latestParticleCollision.collisionType=0; ^ "./TOF_Reflectometer.c", line 13556: warning: variable "phi" was declared but never referenced [declared_but_not_referenced] double cyl_t0, cyl_t1, dt, phi; ^ "./TOF_Reflectometer.c", line 14920: warning: variable "Length" was declared but never referenced [declared_but_not_referenced] double Length; ^ "./TOF_Reflectometer.c", line 14921: warning: variable "entranceHorizontalWidth" was declared but never referenced [declared_but_not_referenced] double entranceHorizontalWidth; ^ "./TOF_Reflectometer.c", line 14922: warning: variable "entranceVerticalWidth" was declared but never referenced [declared_but_not_referenced] double entranceVerticalWidth; ^ "./TOF_Reflectometer.c", line 14925: warning: variable "ellipseMajorAxis" was declared but never referenced [declared_but_not_referenced] double ellipseMajorAxis[4], ellipseMinorAxis[4]; ^ "./TOF_Reflectometer.c", line 14925: warning: variable "ellipseMinorAxis" was declared but never referenced [declared_but_not_referenced] double ellipseMajorAxis[4], ellipseMinorAxis[4]; ^ "./TOF_Reflectometer.c", line 14926: warning: variable "ellipseMajorOffset" was declared but never referenced [declared_but_not_referenced] double ellipseMajorOffset[4], ellipseMinorOffset[4]; ^ "./TOF_Reflectometer.c", line 14926: warning: variable "ellipseMinorOffset" was declared but never referenced [declared_but_not_referenced] double ellipseMajorOffset[4], ellipseMinorOffset[4]; ^ "./TOF_Reflectometer.c", line 14932: warning: variable "tempz" was declared but never referenced [declared_but_not_referenced] double tempz = 0; ^ "./TOF_Reflectometer.c", line 15498: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./TOF_Reflectometer.c", line 15499: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./TOF_Reflectometer.c", line 1518: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./TOF_Reflectometer.c", line 2921: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 93, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 107, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 143, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 171, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 197, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 209, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 218, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 232, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1565, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1569, Generating acc routine seq Generating NVIDIA GPU code str_len: 1578, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4131, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4562, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4573, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4582, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4594, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4606, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4616, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4626, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4634, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4644, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4666, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4673, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4719, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4754, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4765, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4782, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4793, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4809, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4838, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4849, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4853, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5030, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5061, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5078, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5177, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5261, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5327, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5404, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5676, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5686, Generating acc routine seq Generating NVIDIA GPU code _hash: 5712, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5753, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5764, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5769, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5777, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5785, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5792, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6449, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6545, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6562, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6677, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6732, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_foverdf: 7558, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_newtonRapsonsMethod4thOrder: 7573, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_findNeutronEllipseIntersection: 7594, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_handleGuideIntersection: 7650, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_ReflectionOnEllipticSurface: 7781, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_handleReflection: 7841, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 9089, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 9157, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 9236, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 9704, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 9720, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 9738, Generating acc routine seq Generating NVIDIA GPU code StdReflecFunc: 9804, Generating acc routine seq Generating NVIDIA GPU code TableReflecFunc: 9863, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_spectrum: 10026, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_spectrum: 10053, Generating acc routine seq Generating NVIDIA GPU code ESS_2014_Schoenfeldt_cold_y0: 10067, Generating acc routine seq Generating NVIDIA GPU code ESS_2014_Schoenfeldt_thermal_y0: 10079, Generating acc routine seq Generating NVIDIA GPU code ESS_2014_Schoenfeldt_cold_x0: 10086, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal: 10111, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold: 10138, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_y0: 10163, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_y0: 10174, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_x0: 10185, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_x0: 10230, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_Y: 10281, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_Y: 10288, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_Theta120: 10295, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_Theta120: 10302, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_timedist: 10312, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_timedist: 10322, Generating acc routine seq Generating NVIDIA GPU code init: 12714, Generating update device(_Hor_sampleArm_var,_Ver_sampleArm_var,_mirror_pos0_var,_mirror0_var,_mirrorDirect_var,_instrument_var,_mirror_pos1_var,_mirror1_var,_guide2_var,_cold_source_var,_guide1_var,_Slit11Arm_var,_Origin_var,_Slit1Arm_var,_Slit22Arm_var,_Slit1_var,_Slit2Arm_var,_TOF2QcylPSD_var,_mirror2_var,_mirror_var,_mirror_pos2_var,_Slit2_var,_guide_TT_var) class_Progress_bar_trace: 12755, Generating acc routine seq Generating NVIDIA GPU code class_ESS_butterfly_trace: 12861, Generating acc routine seq Generating NVIDIA GPU code class_Mirror_trace: 13149, Generating acc routine seq Generating NVIDIA GPU code class_Elliptic_guide_gravity_trace: 13283, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 13490, Generating acc routine seq Generating NVIDIA GPU code class_TOF2Q_cylPSD_monitor_trace: 13534, Generating acc routine seq Generating NVIDIA GPU code raytrace: 13634, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 13993, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 14007, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 13993, Local memory used for .inl_particle_17410,particleN,.inl_.inl_mcneutron_0_17425,.inl_.X2050_17427,.inl_.inl_.X2251_15_17426 14007, Generating implicit firstprivate(seed,_particle) finally: 14584, Generating update self(_Hor_sampleArm_var,_Ver_sampleArm_var,_mirror_pos0_var,_mirror0_var,_mirrorDirect_var,_instrument_var,_mirror_pos1_var,_mirror1_var,_guide2_var,_cold_source_var,_guide1_var,_Slit11Arm_var,_Origin_var,_Slit1Arm_var,_Slit22Arm_var,_Slit1_var,_Slit2Arm_var,_TOF2QcylPSD_var,_mirror2_var,_mirror_var,_mirror_pos2_var,_Slit2_var,_guide_TT_var) mcenabletrace: 5911, Generating update device(mcdotrace) /u/data/pkwi/McStas/mcstas/3.x-dev/tools/../miniconda3/bin//ld: warning: /tmp/pgcudafatDikjhxQyyP-5U.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: ===