INFO: No output directory specified (--dir) INFO: Using directory: "TOF_Reflectometer_20241206_131339" INFO: Regenerating c-file: TOF_Reflectometer.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -t -o ./TOF_Reflectometer.c TOF_Reflectometer.instr Downloading file 'mcstas-comps/optics/Mirror.comp' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.14/mcstas-comps/optics/Mirror.comp' to '/home/nexmap/pkwi/.cache/mcstas/v3.5.14'. Downloading file 'mcstas-comps/monitors/TOF2Q_cylPSD_monitor.comp' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.14/mcstas-comps/monitors/TOF2Q_cylPSD_monitor.comp' to '/home/nexmap/pkwi/.cache/mcstas/v3.5.14'. 2024-12-06 13:13:42.862 | 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-06 13:13:42.862 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib ESS_butterfly-lib 2024-12-06 13:13:42.862 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib ESS_butterfly-lib 2024-12-06 13:13:42.862 | 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 finished INFO: Recompiling: ./TOF_Reflectometer.out DEBUG: CMD: nvc -o ./TOF_Reflectometer.out ./TOF_Reflectometer.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./TOF_Reflectometer.c", line 4509: 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 7574: warning: variable "numerator" was declared but never referenced [declared_but_not_referenced] double numerator; ^ "./TOF_Reflectometer.c", line 7575: warning: variable "denominator" was declared but never referenced [declared_but_not_referenced] double denominator; ^ "./TOF_Reflectometer.c", line 10305: warning: statement is unreachable [code_is_unreachable] return 1; ^ "./TOF_Reflectometer.c", line 10431: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./TOF_Reflectometer.c", line 11504: warning: variable "sign_bl_angle" was set but never used [set_but_not_used] int sign_bl_angle; ^ "./TOF_Reflectometer.c", line 11513: 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 12489: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./TOF_Reflectometer.c", line 12489: warning: variable "j" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./TOF_Reflectometer.c", line 12942: warning: variable "z0" was set but never used [set_but_not_used] double x0,z0; ^ "./TOF_Reflectometer.c", line 12943: warning: variable "surf_sign" was set but never used [set_but_not_used] int surf_sign; ^ "./TOF_Reflectometer.c", line 13331: warning: enumerated type mixed with another type [mixed_enum_type] latestParticleCollision.side=0; ^ "./TOF_Reflectometer.c", line 13333: warning: enumerated type mixed with another type [mixed_enum_type] latestParticleCollision.collisionType=0; ^ "./TOF_Reflectometer.c", line 13555: warning: variable "phi" was declared but never referenced [declared_but_not_referenced] double cyl_t0, cyl_t1, dt, phi; ^ "./TOF_Reflectometer.c", line 14919: warning: variable "Length" was declared but never referenced [declared_but_not_referenced] double Length; ^ "./TOF_Reflectometer.c", line 14920: warning: variable "entranceHorizontalWidth" was declared but never referenced [declared_but_not_referenced] double entranceHorizontalWidth; ^ "./TOF_Reflectometer.c", line 14921: warning: variable "entranceVerticalWidth" was declared but never referenced [declared_but_not_referenced] double entranceVerticalWidth; ^ "./TOF_Reflectometer.c", line 14924: warning: variable "ellipseMajorAxis" was declared but never referenced [declared_but_not_referenced] double ellipseMajorAxis[4], ellipseMinorAxis[4]; ^ "./TOF_Reflectometer.c", line 14924: warning: variable "ellipseMinorAxis" was declared but never referenced [declared_but_not_referenced] double ellipseMajorAxis[4], ellipseMinorAxis[4]; ^ "./TOF_Reflectometer.c", line 14925: warning: variable "ellipseMajorOffset" was declared but never referenced [declared_but_not_referenced] double ellipseMajorOffset[4], ellipseMinorOffset[4]; ^ "./TOF_Reflectometer.c", line 14925: warning: variable "ellipseMinorOffset" was declared but never referenced [declared_but_not_referenced] double ellipseMajorOffset[4], ellipseMinorOffset[4]; ^ "./TOF_Reflectometer.c", line 14931: warning: variable "tempz" was declared but never referenced [declared_but_not_referenced] double tempz = 0; ^ "./TOF_Reflectometer.c", line 15497: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./TOF_Reflectometer.c", line 15498: 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: 4130, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4561, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4572, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4581, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4593, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4605, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4615, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4625, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4633, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4643, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4665, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4672, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4718, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4753, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4764, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4781, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4792, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4808, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4837, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4848, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4852, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5029, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5060, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5077, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5176, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5260, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5326, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5403, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5675, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5685, Generating acc routine seq Generating NVIDIA GPU code _hash: 5711, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5752, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5763, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5768, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5776, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5784, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5791, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6448, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6544, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6561, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6676, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6731, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_foverdf: 7557, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_newtonRapsonsMethod4thOrder: 7572, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_findNeutronEllipseIntersection: 7593, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_handleGuideIntersection: 7649, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_ReflectionOnEllipticSurface: 7780, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_handleReflection: 7840, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 9088, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 9156, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 9235, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 9703, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 9719, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 9737, Generating acc routine seq Generating NVIDIA GPU code StdReflecFunc: 9803, Generating acc routine seq Generating NVIDIA GPU code TableReflecFunc: 9862, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_spectrum: 10025, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_spectrum: 10052, Generating acc routine seq Generating NVIDIA GPU code ESS_2014_Schoenfeldt_cold_y0: 10066, Generating acc routine seq Generating NVIDIA GPU code ESS_2014_Schoenfeldt_thermal_y0: 10078, Generating acc routine seq Generating NVIDIA GPU code ESS_2014_Schoenfeldt_cold_x0: 10085, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal: 10110, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold: 10137, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_y0: 10162, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_y0: 10173, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_x0: 10184, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_x0: 10229, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_Y: 10280, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_Y: 10287, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_Theta120: 10294, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_Theta120: 10301, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_timedist: 10311, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_timedist: 10321, Generating acc routine seq Generating NVIDIA GPU code init: 12713, 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: 12754, Generating acc routine seq Generating NVIDIA GPU code class_ESS_butterfly_trace: 12860, Generating acc routine seq Generating NVIDIA GPU code class_Mirror_trace: 13148, Generating acc routine seq Generating NVIDIA GPU code class_Elliptic_guide_gravity_trace: 13282, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 13489, Generating acc routine seq Generating NVIDIA GPU code class_TOF2Q_cylPSD_monitor_trace: 13533, Generating acc routine seq Generating NVIDIA GPU code raytrace: 13633, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 13992, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 14006, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 13992, Local memory used for .inl_particle_17410,particleN,.inl_.inl_mcneutron_0_17425,.inl_.X2050_17427,.inl_.inl_.X2251_15_17426 14006, Generating implicit firstprivate(seed,_particle) finally: 14583, 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: 5910, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===