INFO: No output directory specified (--dir) INFO: Using directory: "HZB_FLEX_20241206_090750" INFO: Regenerating c-file: HZB_FLEX.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -t -o ./HZB_FLEX.c HZB_FLEX.instr Downloading file 'mcstas-comps/sources/Source_gen.comp' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.14/mcstas-comps/sources/Source_gen.comp' to '/home/nexmap/pkwi/.cache/mcstas/v3.5.14'. Downloading file 'mcstas-comps/optics/Selector.comp' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.14/mcstas-comps/optics/Selector.comp' to '/home/nexmap/pkwi/.cache/mcstas/v3.5.14'. Downloading file 'mcstas-comps/optics/Guide_tapering.comp' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.14/mcstas-comps/optics/Guide_tapering.comp' to '/home/nexmap/pkwi/.cache/mcstas/v3.5.14'. Downloading file 'mcstas-comps/optics/Monochromator_curved.comp' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.14/mcstas-comps/optics/Monochromator_curved.comp' to '/home/nexmap/pkwi/.cache/mcstas/v3.5.14'. Downloading file 'mcstas-comps/monitors/Divergence_monitor.comp' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.14/mcstas-comps/monitors/Divergence_monitor.comp' to '/home/nexmap/pkwi/.cache/mcstas/v3.5.14'. Downloading file 'mcstas-comps/monitors/PSDlin_monitor.comp' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.14/mcstas-comps/monitors/PSDlin_monitor.comp' to '/home/nexmap/pkwi/.cache/mcstas/v3.5.14'. 2024-12-06 09:07:56.967 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Source_gen(0):read_table-lib :Guide(0):read_table-lib :Guide(1):ref-lib :ref-lib(0):read_table-lib :Guide_curved(0):ref-lib :Guide_tapering(0):ref-lib :Guide_channeled(0):ref-lib :Monochromator_curved(0):read_table-lib 2024-12-06 09:07:56.967 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib 2024-12-06 09:07:56.967 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib 2024-12-06 09:07:56.968 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib 2024-12-06 09:07:56.968 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib 2024-12-06 09:07:56.968 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib 2024-12-06 09:07:56.968 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-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 Gen_Source -> GPU kernel from component NL1A_NL1B_NL2_NL3_InPile_Entrance_Window -> GPU kernel from component NL1A_NL1B_NL2_NL3_InPile -> GPU kernel from component NL1B_Straight1_Entrance_Window -> GPU kernel from component NL1B_Straight1 -> GPU kernel from component NL1B_Curved_Entrance_Window -> GPU kernel from component NL1B_Curved_Guide_1 -> GPU kernel from component NL1B_Velocity_Selector_Gap_Entrance_Window -> GPU kernel from component Before_selec -> GPU kernel from component SELEC -> GPU kernel from component After_selec -> GPU kernel from component NL1B_Curved_2_Entrance_Window -> GPU kernel from component NL1B_Curved_Guide_2 -> GPU kernel from component NL1B_Straight2_Entrance_Window -> GPU kernel from component NL1B_Straight2 -> GPU kernel from component NL1B_Elliptical_Entrance_Window -> GPU kernel from component elliptical_piece -> GPU kernel from component Virtual_source -> GPU kernel from component NL1B_Vertical_Guide_Entrance_Window -> GPU kernel from component NL1B_Vertical_Guide -> GPU kernel from component NL1B_Guide_Exit -> GPU kernel from component energy_endguide -> GPU kernel from component Mono_center -> GPU kernel from component Monochromator -> GPU kernel from component Mono_sample_arm -> GPU kernel from component energy_mono -> GPU kernel from component energy_pre_sample -> GPU kernel from component Sample_center -> GPU kernel from component Sample_analyser_arm -> GPU kernel from component div_mono -> GPU kernel from component div_mono_H -> GPU kernel from component psd_sam -> GPU kernel from component dpsd1 ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr finished INFO: Recompiling: ./HZB_FLEX.out DEBUG: CMD: nvc -o ./HZB_FLEX.out ./HZB_FLEX.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./HZB_FLEX.c", line 4497: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./HZB_FLEX.c", line 9574: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./HZB_FLEX.c", line 12663: warning: variable "SS" was declared but never referenced [declared_but_not_referenced] int SS=+1; ^ "./HZB_FLEX.c", line 13352: warning: variable "ii" was set but never used [set_but_not_used] int ii, i_bounce; ^ "./HZB_FLEX.c", line 13526: warning: variable "E" was set but never used [set_but_not_used] double E; ^ "./HZB_FLEX.c", line 13657: warning: variable "vlen2" was declared but never referenced [declared_but_not_referenced] double vlen2,nlen2; /* Vector lengths squared */ ^ "./HZB_FLEX.c", line 14617: warning: variable "v" was declared but never referenced [declared_but_not_referenced] double v, vn; ^ "./HZB_FLEX.c", line 18262: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./HZB_FLEX.c", line 18263: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./HZB_FLEX.c", line 1506: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./HZB_FLEX.c", line 2909: 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: 139, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 165, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 189, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 201, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 210, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 222, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1553, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1557, Generating acc routine seq Generating NVIDIA GPU code str_len: 1566, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4118, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4549, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4560, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4569, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4581, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4593, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4603, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4613, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4621, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4631, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4653, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4660, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4706, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4741, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4752, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4769, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4780, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4796, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4825, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4836, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4840, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5017, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5048, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5065, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5164, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5248, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5314, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5391, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5663, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5673, Generating acc routine seq Generating NVIDIA GPU code _hash: 5699, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5740, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5751, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5756, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5764, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5772, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5779, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6436, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6532, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6549, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6664, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6719, Generating acc routine seq Generating NVIDIA GPU code SG_Maxwell: 7058, Generating acc routine seq Generating NVIDIA GPU code GAUSS_monocurved: 7090, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 8569, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 8637, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 8716, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 9184, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 9200, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 9218, Generating acc routine seq Generating NVIDIA GPU code StdReflecFunc: 9284, Generating acc routine seq Generating NVIDIA GPU code TableReflecFunc: 9343, Generating acc routine seq Generating NVIDIA GPU code init: 12843, Generating update device(_NL1B_Vertical_Guide_var,_Before_selec_var,_Monochromator_var,_NL1A_NL1B_NL2_NL3_InPile_Entrance_Window_var,_NL1B_Guide_Exit_var,_NL1B_Straight1_Entrance_Window_var,_NL1B_Curved_2_Entrance_Window_var,_NL1B_Curved_Entrance_Window_var,_NL1B_Straight2_var,_After_selec_var,_Origin_var,_NL1A_NL1B_NL2_NL3_InPile_var,_NL1B_Curved_Guide_1_var,_NL1B_Straight1_var,_NL1B_Straight2_Entrance_Window_var,_NL1B_Curved_Guide_2_var,_dpsd1_var,_Sample_center_var,_NL1B_Velocity_Selector_Gap_Entrance_Window_var,_NL1B_Vertical_Guide_Entrance_Window_var,_NL1B_Elliptical_Entrance_Window_var,_elliptical_piece_var,_Gen_Source_var,_Mono_sample_arm_var,_Mono_center_var,_energy_endguide_var,_energy_mono_var,_Sample_analyser_arm_var,_SELEC_var,_div_mono_H_var,_Virtual_source_var,_psd_sam_var,_instrument_var,_div_mono_var,_energy_pre_sample_var) class_Progress_bar_trace: 12884, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 12974, Generating acc routine seq Generating NVIDIA GPU code class_Guide_trace: 13184, Generating acc routine seq Generating NVIDIA GPU code class_Guide_curved_trace: 13337, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 13439, Generating acc routine seq Generating NVIDIA GPU code class_Selector_trace: 13510, Generating acc routine seq Generating NVIDIA GPU code class_Guide_tapering_trace: 13593, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 13875, Generating acc routine seq Generating NVIDIA GPU code class_Guide_channeled_trace: 13919, Generating acc routine seq Generating NVIDIA GPU code class_E_monitor_trace: 14160, Generating acc routine seq Generating NVIDIA GPU code class_Monochromator_curved_trace: 14247, Generating acc routine seq Generating NVIDIA GPU code class_Divergence_monitor_trace: 14592, Generating acc routine seq Generating NVIDIA GPU code class_Div1D_monitor_trace: 14682, Generating acc routine seq Generating NVIDIA GPU code class_PSDlin_monitor_trace: 14765, Generating acc routine seq Generating NVIDIA GPU code raytrace: 14850, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 15411, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 15425, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 15411, Local memory used for .inl_particle_20486,particleN,.inl_.inl_mcneutron_0_20501,.inl_.X2217_20503,.inl_.inl_.X2420_15_20502 15425, Generating implicit firstprivate(seed,_particle) finally: 16846, Generating update self(_NL1B_Vertical_Guide_var,_Before_selec_var,_Monochromator_var,_NL1A_NL1B_NL2_NL3_InPile_Entrance_Window_var,_NL1B_Guide_Exit_var,_NL1B_Straight1_Entrance_Window_var,_NL1B_Curved_2_Entrance_Window_var,_NL1B_Curved_Entrance_Window_var,_NL1B_Straight2_var,_After_selec_var,_Origin_var,_NL1A_NL1B_NL2_NL3_InPile_var,_NL1B_Curved_Guide_1_var,_NL1B_Straight1_var,_NL1B_Straight2_Entrance_Window_var,_NL1B_Curved_Guide_2_var,_dpsd1_var,_Sample_center_var,_NL1B_Velocity_Selector_Gap_Entrance_Window_var,_NL1B_Vertical_Guide_Entrance_Window_var,_NL1B_Elliptical_Entrance_Window_var,_elliptical_piece_var,_Gen_Source_var,_Mono_sample_arm_var,_Mono_center_var,_energy_endguide_var,_energy_mono_var,_Sample_analyser_arm_var,_SELEC_var,_div_mono_H_var,_Virtual_source_var,_psd_sam_var,_instrument_var,_div_mono_var,_energy_pre_sample_var) mcenabletrace: 5898, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===