INFO: No output directory specified (--dir) INFO: Using directory: "TOF_Reflectometer_20241118_023224" INFO: Regenerating c-file: TOF_Reflectometer.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas -t -o ./TOF_Reflectometer.c TOF_Reflectometer.instr CFLAGS= ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas 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 4511: 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 7253: warning: statement is unreachable [code_is_unreachable] return 1; ^ "./TOF_Reflectometer.c", line 9584: warning: variable "numerator" was declared but never referenced [declared_but_not_referenced] double numerator; ^ "./TOF_Reflectometer.c", line 9585: warning: variable "denominator" was declared but never referenced [declared_but_not_referenced] double denominator; ^ "./TOF_Reflectometer.c", line 10509: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./TOF_Reflectometer.c", line 10497: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./TOF_Reflectometer.c", line 10550: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./TOF_Reflectometer.c", line 10622: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./TOF_Reflectometer.c", line 10671: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./TOF_Reflectometer.c", line 10732: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./TOF_Reflectometer.c", line 10781: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./TOF_Reflectometer.c", line 10842: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./TOF_Reflectometer.c", line 10891: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./TOF_Reflectometer.c", line 10952: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./TOF_Reflectometer.c", line 11001: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./TOF_Reflectometer.c", line 11098: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 11; ^ "./TOF_Reflectometer.c", line 11195: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 12; ^ "./TOF_Reflectometer.c", line 11243: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 13; ^ "./TOF_Reflectometer.c", line 11292: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 14; ^ "./TOF_Reflectometer.c", line 11350: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 15; ^ "./TOF_Reflectometer.c", line 11398: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 16; ^ "./TOF_Reflectometer.c", line 11447: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 17; ^ "./TOF_Reflectometer.c", line 11505: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 18; ^ "./TOF_Reflectometer.c", line 11554: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 19; ^ "./TOF_Reflectometer.c", line 11603: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 20; ^ "./TOF_Reflectometer.c", line 11667: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 21; ^ "./TOF_Reflectometer.c", line 11731: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 22; ^ "./TOF_Reflectometer.c", line 11917: warning: variable "sign_bl_angle" was set but never used [set_but_not_used] int sign_bl_angle; ^ "./TOF_Reflectometer.c", line 11926: 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 13034: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./TOF_Reflectometer.c", line 13034: warning: variable "j" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./TOF_Reflectometer.c", line 13514: warning: variable "z0" was set but never used [set_but_not_used] double x0,z0; ^ "./TOF_Reflectometer.c", line 13515: warning: variable "surf_sign" was set but never used [set_but_not_used] int surf_sign; ^ "./TOF_Reflectometer.c", line 13894: warning: enumerated type mixed with another type [mixed_enum_type] latestParticleCollision.side=0; ^ "./TOF_Reflectometer.c", line 13896: warning: enumerated type mixed with another type [mixed_enum_type] latestParticleCollision.collisionType=0; ^ "./TOF_Reflectometer.c", line 14116: warning: variable "phi" was declared but never referenced [declared_but_not_referenced] double cyl_t0, cyl_t1, dt, phi; ^ "./TOF_Reflectometer.c", line 15569: warning: variable "Length" was declared but never referenced [declared_but_not_referenced] double Length; ^ "./TOF_Reflectometer.c", line 15570: warning: variable "entranceHorizontalWidth" was declared but never referenced [declared_but_not_referenced] double entranceHorizontalWidth; ^ "./TOF_Reflectometer.c", line 15571: warning: variable "entranceVerticalWidth" was declared but never referenced [declared_but_not_referenced] double entranceVerticalWidth; ^ "./TOF_Reflectometer.c", line 15574: warning: variable "ellipseMajorAxis" was declared but never referenced [declared_but_not_referenced] double ellipseMajorAxis[4], ellipseMinorAxis[4]; ^ "./TOF_Reflectometer.c", line 15574: warning: variable "ellipseMinorAxis" was declared but never referenced [declared_but_not_referenced] double ellipseMajorAxis[4], ellipseMinorAxis[4]; ^ "./TOF_Reflectometer.c", line 15575: warning: variable "ellipseMajorOffset" was declared but never referenced [declared_but_not_referenced] double ellipseMajorOffset[4], ellipseMinorOffset[4]; ^ "./TOF_Reflectometer.c", line 15575: warning: variable "ellipseMinorOffset" was declared but never referenced [declared_but_not_referenced] double ellipseMajorOffset[4], ellipseMinorOffset[4]; ^ "./TOF_Reflectometer.c", line 15581: warning: variable "tempz" was declared but never referenced [declared_but_not_referenced] double tempz = 0; ^ "./TOF_Reflectometer.c", line 16171: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./TOF_Reflectometer.c", line 16172: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./TOF_Reflectometer.c", line 1520: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./TOF_Reflectometer.c", line 2923: 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: 208, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 217, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 231, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1567, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1571, Generating acc routine seq Generating NVIDIA GPU code str_len: 1580, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4132, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4563, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4574, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4583, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4595, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4607, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4617, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4627, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4635, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4645, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4667, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4674, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4720, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4755, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4766, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4783, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4794, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4810, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4839, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4850, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4854, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5031, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5062, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5079, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5178, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5262, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5328, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5405, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5677, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5687, Generating acc routine seq Generating NVIDIA GPU code _hash: 5713, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5754, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5765, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5770, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5778, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5786, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5793, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6452, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6488, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6548, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6565, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6680, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6735, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_spectrum: 6973, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_spectrum: 7000, Generating acc routine seq Generating NVIDIA GPU code ESS_2014_Schoenfeldt_cold_y0: 7014, Generating acc routine seq Generating NVIDIA GPU code ESS_2014_Schoenfeldt_thermal_y0: 7026, Generating acc routine seq Generating NVIDIA GPU code ESS_2014_Schoenfeldt_cold_x0: 7033, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal: 7058, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold: 7085, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_y0: 7110, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_y0: 7121, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_x0: 7132, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_x0: 7177, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_Y: 7228, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_Y: 7235, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_Theta120: 7242, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_Theta120: 7249, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_timedist: 7259, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_timedist: 7269, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 8435, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 8503, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 8582, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 9050, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 9066, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 9084, Generating acc routine seq Generating NVIDIA GPU code StdReflecFunc: 9193, Generating acc routine seq Generating NVIDIA GPU code TableReflecFunc: 9252, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_foverdf: 9567, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_newtonRapsonsMethod4thOrder: 9582, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_findNeutronEllipseIntersection: 9603, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_handleGuideIntersection: 9659, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_ReflectionOnEllipticSurface: 9846, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_handleReflection: 9906, Generating acc routine seq Generating NVIDIA GPU code init: 13283, 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: 13326, Generating acc routine seq Generating NVIDIA GPU code class_ESS_butterfly_trace: 13432, Generating acc routine seq Generating NVIDIA GPU code class_Mirror_trace: 13719, Generating acc routine seq Generating NVIDIA GPU code class_Elliptic_guide_gravity_trace: 13845, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 14050, Generating acc routine seq Generating NVIDIA GPU code class_TOF2Q_cylPSD_monitor_trace: 14094, Generating acc routine seq Generating NVIDIA GPU code raytrace: 14193, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 14552, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 14566, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 14552, Local memory used for .inl_particle_17413,particleN,.inl_.inl_mcneutron_0_17428,.inl_.X2047_17430,.inl_.inl_.X2248_15_17429 14566, Generating implicit firstprivate(seed,_particle) finally: 15182, 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: 5912, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===