INFO: No output directory specified (--dir) INFO: Using directory: "Test_Guides_Curved_20241206_140057" INFO: Regenerating c-file: Test_Guides_Curved.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -t -o ./Test_Guides_Curved.c Test_Guides_Curved.instr Downloading file 'mcstas-comps/optics/Pol_bender.comp' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.14/mcstas-comps/optics/Pol_bender.comp' to '/home/nexmap/pkwi/.cache/mcstas/v3.5.14'. 2024-12-06 14:01:02.398 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Source_gen(0):read_table-lib :Monitor_nD(0):monitor_nd-lib :Monitor_nD(1):read_table-lib :Monitor_nD(2):interoff-lib :Guide_curved(0):ref-lib :ref-lib(0):read_table-lib :Elliptic_guide_gravity(0):ref-lib :Pol_bender(0):pol-lib :Pol_bender(1):ref-lib :Bender(0):ref-lib 2024-12-06 14:01:02.399 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib monitor_nd-lib pol-lib interoff-lib 2024-12-06 14:01:02.399 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib pol-lib monitor_nd-lib interoff-lib 2024-12-06 14:01:02.400 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib pol-lib monitor_nd-lib interoff-lib 2024-12-06 14:01:02.400 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib pol-lib monitor_nd-lib interoff-lib 2024-12-06 14:01:02.400 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib monitor_nd-lib interoff-lib pol-lib 2024-12-06 14:01:02.400 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib monitor_nd-lib pol-lib interoff-lib 2024-12-06 14:01:06.613 | INFO | mccode_antlr.translators.c:include_source:331 - pol-lib.c requested interpolation-lib but is has not been included yet! No initialization present? ----------------------------------------------------------- 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 Monitor1_xt -> GPU kernel from component Guide_Position -> GPU kernel from component GuideR -> GPU kernel from component GuideEl -> GPU kernel from component GuideB -> GPU kernel from component GuideB2 -> GPU kernel from component RArm -> GPU kernel from component Monitor2_xy1 -> GPU kernel from component Monitor2_xy2 -> GPU kernel from component BArm -> GPU kernel from component Monitor2_xy3 -> GPU kernel from component Monitor2_xy4 -> GPU kernel from component dummy ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr finished INFO: Recompiling: ./Test_Guides_Curved.out DEBUG: CMD: nvc -o ./Test_Guides_Curved.out ./Test_Guides_Curved.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./Test_Guides_Curved.c", line 4489: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./Test_Guides_Curved.c", line 7783: warning: variable "numerator" was declared but never referenced [declared_but_not_referenced] double numerator; ^ "./Test_Guides_Curved.c", line 7784: warning: variable "denominator" was declared but never referenced [declared_but_not_referenced] double denominator; ^ "./Test_Guides_Curved.c", line 12249: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./Test_Guides_Curved.c", line 12249: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./Test_Guides_Curved.c", line 12276: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./Test_Guides_Curved.c", line 12276: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "/usr/include/math.h", line 30: warning: #warning directive: A macro called log was already defined when was included. [warning_directive] # warning A macro called log was already defined when was included. ^ "/usr/include/math.h", line 31: warning: #warning directive: This will cause compilation problems. [warning_directive] # warning This will cause compilation problems. ^ "./Test_Guides_Curved.c", line 13015: warning: variable "count" was declared but never referenced [declared_but_not_referenced] long count=0; ^ "./Test_Guides_Curved.c", line 13107: warning: missing return statement at end of non-void function "interpolator_interpolate" [implicit_return_from_non_void_function] } // interpolator_interpolate ^ "./Test_Guides_Curved.c", line 13697: 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; ^ "./Test_Guides_Curved.c", line 13697: 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; ^ "./Test_Guides_Curved.c", line 13697: 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; ^ "./Test_Guides_Curved.c", line 13697: 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; ^ "./Test_Guides_Curved.c", line 13697: 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; ^ "./Test_Guides_Curved.c", line 13697: 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; ^ "./Test_Guides_Curved.c", line 14054: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./Test_Guides_Curved.c", line 14983: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_Guides_Curved.c", line 15773: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_Guides_Curved.c", line 17357: warning: incompatible redefinition of macro "strcmp" (declared at line 13063) [bad_macro_redef] #define strcmp(a,b) str_comp(a,b) ^ "./Test_Guides_Curved.c", line 17978: warning: variable "ii" was set but never used [set_but_not_used] int ii, i_bounce; ^ "./Test_Guides_Curved.c", line 18114: warning: enumerated type mixed with another type [mixed_enum_type] latestParticleCollision.side=0; ^ "./Test_Guides_Curved.c", line 18116: warning: enumerated type mixed with another type [mixed_enum_type] latestParticleCollision.collisionType=0; ^ "./Test_Guides_Curved.c", line 18529: warning: statement is unreachable [code_is_unreachable] break; ^ "./Test_Guides_Curved.c", line 18352: warning: variable "tMirror" was declared but never referenced [declared_but_not_referenced] double tLeft, tRight, tTop, tBot, tIn, tOut, tMirror; ^ "./Test_Guides_Curved.c", line 18308: warning: variable "endtime" was declared but never referenced [declared_but_not_referenced] double t11, t12, t21, t22, theta, alpha, endtime, phi; ^ "./Test_Guides_Curved.c", line 18309: warning: variable "i_bounce" was declared but never referenced [declared_but_not_referenced] int i_bounce; ^ "./Test_Guides_Curved.c", line 20389: warning: variable "Length" was declared but never referenced [declared_but_not_referenced] double Length; ^ "./Test_Guides_Curved.c", line 20390: warning: variable "entranceHorizontalWidth" was declared but never referenced [declared_but_not_referenced] double entranceHorizontalWidth; ^ "./Test_Guides_Curved.c", line 20391: warning: variable "entranceVerticalWidth" was declared but never referenced [declared_but_not_referenced] double entranceVerticalWidth; ^ "./Test_Guides_Curved.c", line 20394: warning: variable "ellipseMajorAxis" was declared but never referenced [declared_but_not_referenced] double ellipseMajorAxis[4], ellipseMinorAxis[4]; ^ "./Test_Guides_Curved.c", line 20394: warning: variable "ellipseMinorAxis" was declared but never referenced [declared_but_not_referenced] double ellipseMajorAxis[4], ellipseMinorAxis[4]; ^ "./Test_Guides_Curved.c", line 20395: warning: variable "ellipseMajorOffset" was declared but never referenced [declared_but_not_referenced] double ellipseMajorOffset[4], ellipseMinorOffset[4]; ^ "./Test_Guides_Curved.c", line 20395: warning: variable "ellipseMinorOffset" was declared but never referenced [declared_but_not_referenced] double ellipseMajorOffset[4], ellipseMinorOffset[4]; ^ "./Test_Guides_Curved.c", line 20401: warning: variable "tempz" was declared but never referenced [declared_but_not_referenced] double tempz = 0; ^ "./Test_Guides_Curved.c", line 21138: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Test_Guides_Curved.c", line 21139: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Test_Guides_Curved.c", line 1498: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Test_Guides_Curved.c", line 2901: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 89, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 103, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 136, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 161, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 184, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 196, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 205, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 216, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1545, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1549, Generating acc routine seq Generating NVIDIA GPU code str_len: 1558, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4110, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4541, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4552, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4561, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4573, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4585, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4595, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4605, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4613, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4623, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4645, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4652, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4698, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4733, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4744, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4761, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4772, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4788, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4817, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4828, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4832, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5009, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5040, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5057, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5156, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5240, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5306, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5383, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5655, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5665, Generating acc routine seq Generating NVIDIA GPU code _hash: 5691, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5732, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5743, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5748, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5756, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5764, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5771, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6428, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6524, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6541, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6656, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6711, Generating acc routine seq Generating NVIDIA GPU code SG_Maxwell: 7569, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_foverdf: 7766, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_newtonRapsonsMethod4thOrder: 7781, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_findNeutronEllipseIntersection: 7802, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_handleGuideIntersection: 7858, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_ReflectionOnEllipticSurface: 7989, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_handleReflection: 8049, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 9358, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 9426, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 9505, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 9973, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 9989, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 10007, Generating acc routine seq Generating NVIDIA GPU code StdReflecFunc: 10073, Generating acc routine seq Generating NVIDIA GPU code TableReflecFunc: 10132, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 11245, Generating acc routine seq Generating NVIDIA GPU code kdtree_squaredDistance: 12560, Generating acc routine seq Generating NVIDIA GPU code kdtree_borderCheck: 12577, Generating acc routine seq Generating NVIDIA GPU code kdtree_partition: 12611, Generating acc routine seq Generating NVIDIA GPU code kdtree_nearestNeighbour_helper: 12687, Generating acc routine seq Generating NVIDIA GPU code kdtree_nearestNeighbour: 12725, Generating acc routine seq Generating NVIDIA GPU code interpolator_offset: 12795, Generating acc routine seq Generating NVIDIA GPU code interpolator_load: 12999, Generating copyin(array[:prod]) [if not already present] interpolator_interpolate: 13060, Generating acc routine seq Generating NVIDIA GPU code interpolator_interpolate3_3: 13119, Generating acc routine seq Generating NVIDIA GPU code magnetic_field_dispatcher: 13206, Generating acc routine seq Generating NVIDIA GPU code mcmagnet_get_field: 13245, Generating acc routine seq Generating NVIDIA GPU code mcmagnet_push: 13286, Generating acc routine seq Generating NVIDIA GPU code mcmagnet_pop: 13319, Generating acc routine seq Generating NVIDIA GPU code const_magnetic_field: 13344, Generating acc routine seq Generating NVIDIA GPU code rot_magnetic_field: 13354, Generating acc routine seq Generating NVIDIA GPU code majorana_magnetic_field: 13368, Generating acc routine seq Generating NVIDIA GPU code gradient_magnetic_field: 13384, Generating acc routine seq Generating NVIDIA GPU code GetMonoPolFNFM: 13411, Generating acc routine seq Generating NVIDIA GPU code GetMonoPolRefProb: 13440, Generating acc routine seq Generating NVIDIA GPU code SetMonoPolRefOut: 13464, Generating acc routine seq Generating NVIDIA GPU code SetMonoPolTransOut: 13491, Generating acc routine seq Generating NVIDIA GPU code SimpleNumMagnetPrecession: 13511, Generating acc routine seq Generating NVIDIA GPU code 13544, Reference argument passing prevents parallelization: BzTemp Reference argument passing prevents parallelization: ByTemp Reference argument passing prevents parallelization: BxTemp GetConstantField: 13606, Generating acc routine seq Generating NVIDIA GPU code off_F: 13654, Generating acc routine seq Generating NVIDIA GPU code off_sign: 13659, Generating acc routine seq Generating NVIDIA GPU code off_normal: 13669, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 13695, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 13758, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 13889, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 13934, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 14051, Generating acc routine seq Generating NVIDIA GPU code off_compare: 14169, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 14181, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 14216, Generating acc routine seq Generating NVIDIA GPU code Min_int: 14467, Generating acc routine seq Generating NVIDIA GPU code merge: 14474, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 14578, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 14593, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 14647, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 14764, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 14786, Generating acc routine seq Generating NVIDIA GPU code init: 17327, Generating update device(_Monitor2_xy4_var,_RArm_var,_Guide_Position_var,_GuideR_var,_GuideEl_var,_GuideB_var,_GuideB2_var,_BArm_var,_Origin_var,_Monitor1_xt_var,_Monitor2_xy1_var,_Monitor2_xy2_var,_Monitor2_xy3_var,_Source_var,_instrument_var,_dummy_var) class_Progress_bar_trace: 17368, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 17458, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 17672, Generating acc routine seq Generating NVIDIA GPU code class_Guide_curved_trace: 17963, Generating acc routine seq Generating NVIDIA GPU code class_Elliptic_guide_gravity_trace: 18065, Generating acc routine seq Generating NVIDIA GPU code class_Pol_bender_trace: 18248, Generating acc routine seq Generating NVIDIA GPU code class_Bender_trace: 18595, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_4PI_trace: 18798, Generating acc routine seq Generating NVIDIA GPU code raytrace: 18882, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 19213, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 19227, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 19213, Local memory used for .inl_particle_23742,particleN,.inl_.inl_mcneutron_0_23757,.inl_.X2314_23759,.inl_.inl_.X2522_15_23758 19227, Generating implicit firstprivate(seed,_particle) finally: 19982, Generating update self(_Monitor2_xy4_var,_RArm_var,_Guide_Position_var,_GuideR_var,_GuideEl_var,_GuideB_var,_GuideB2_var,_BArm_var,_Origin_var,_Monitor1_xt_var,_Monitor2_xy1_var,_Monitor2_xy2_var,_Monitor2_xy3_var,_Source_var,_dummy_var,_instrument_var) mcenabletrace: 5890, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===