INFO: No output directory specified (--dir) INFO: Using directory: "ILL_IN6_20241206_113943" INFO: Regenerating c-file: ILL_IN6.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -t -o ./ILL_IN6.c ILL_IN6.instr 2024-12-06 11:39:47.429 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Source_gen(0):read_table-lib :Monochromator_curved(0):read_table-lib :Monitor_nD(0):monitor_nd-lib :Monitor_nD(1):read_table-lib :Monitor_nD(2):interoff-lib :FermiChopper(0):ref-lib :ref-lib(0):read_table-lib :Isotropic_Sqw(0):read_table-lib :Isotropic_Sqw(1):interoff-lib 2024-12-06 11:39:47.430 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib monitor_nd-lib interoff-lib 2024-12-06 11:39:47.430 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib interoff-lib monitor_nd-lib 2024-12-06 11:39:47.430 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib monitor_nd-lib interoff-lib 2024-12-06 11:39:47.430 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib ref-lib 2024-12-06 11:39:47.430 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib monitor_nd-lib interoff-lib line 1259:4 missing '}' at ')' 2024-12-06 11:39:53.848 | ERROR | mccode_antlr.translators.c_listener:syntaxError:35 - Syntax error in parsing 1259,4 2024-12-06 11:39:53.849 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - MPI_MASTER( 2024-12-06 11:39:53.849 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - if (Sqw->verbose_output > 0) { 2024-12-06 11:39:53.849 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - printf( "Isotropic_Sqw: %s: Temperature computed from S(q,w) data from %s is T=%g [K].\n", 2024-12-06 11:39:53.849 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - Sqw->compname, file, T); 2024-12-06 11:39:53.849 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - ); 2024-12-06 11:39:53.849 | ERROR | mccode_antlr.translators.c_listener:syntaxError:41 - ~~~~^ missing '}' at ')' 2024-12-06 11:39:53.849 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - } 2024-12-06 11:39:53.849 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - } line 1263:2 mismatched input 'if' expecting 2024-12-06 11:39:53.862 | ERROR | mccode_antlr.translators.c_listener:syntaxError:35 - Syntax error in parsing 1263,2 2024-12-06 11:39:53.862 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - ); 2024-12-06 11:39:53.862 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - } 2024-12-06 11:39:53.862 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - } 2024-12-06 11:39:53.862 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - 2024-12-06 11:39:53.862 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - if (Sqw->Temperature == 0) { 2024-12-06 11:39:53.863 | ERROR | mccode_antlr.translators.c_listener:syntaxError:41 - ~~^ mismatched input 'if' expecting 2024-12-06 11:39:53.863 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - Sqw->Temperature = T_file ? T_file : T; /* 0: not set: we use file value, else computed */ 2024-12-06 11:39:53.863 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - } else if (Sqw->Temperature ==-1) { 2024-12-06 11:39:53.995 | INFO | mccode_antlr.translators.c_listener:visitDeclarator:304 - Could not convert an integer from CHAR_BUF_LENGTH due to invalid literal for int() with base 10: 'CHAR_BUF_LENGTH' The instrument has 18 parameters ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: -> SPLIT 10 at component Cradle -> SPLIT 10 at component Sample ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component Origin -> GPU kernel from component VCS -> GPU kernel from component SourceTarget -> SPLIT within buffer at component Cradle -> GPU kernel from component Mono1 -> GPU kernel from component Mono2 -> GPU kernel from component Mono3 -> GPU kernel from component mono_out -> GPU kernel from component SuppPos -> GPU kernel from component Mon_SuppInL -> GPU kernel from component Mon_SuppInT -> GPU kernel from component Suppressor -> GPU kernel from component Mon_SuppOutT -> GPU kernel from component SlitFC -> GPU kernel from component FermiPos -> GPU kernel from component FermiM -> GPU kernel from component Mon_FermiOutdT -> GPU kernel from component MonokMonitor -> GPU kernel from component Mon_SampleInT -> GPU kernel from component Mon_SampleInXY -> GPU kernel from component sample_pos -> SPLIT within buffer at component Sample -> GPU kernel from component Out -> GPU kernel from component M_theta_t_all -> GPU kernel from component Detector_nM ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr finished INFO: Recompiling: ./ILL_IN6.out DEBUG: CMD: nvc -o ./ILL_IN6.out ./ILL_IN6.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./ILL_IN6.c", line 4545: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "/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. ^ "./ILL_IN6.c", line 8384: warning: variable "n" was declared but never referenced [declared_but_not_referenced] double n; ^ "./ILL_IN6.c", line 8363: warning: variable "w_c" was declared but never referenced [declared_but_not_referenced] double w_c = 0; ^ "./ILL_IN6.c", line 8364: warning: variable "w_l" was declared but never referenced [declared_but_not_referenced] double w_l = 0; ^ "./ILL_IN6.c", line 8275: warning: variable "w_c" was declared but never referenced [declared_but_not_referenced] t_Table w_c, w_l; ^ "./ILL_IN6.c", line 8275: warning: variable "w_l" was declared but never referenced [declared_but_not_referenced] t_Table w_c, w_l; ^ "./ILL_IN6.c", line 13594: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./ILL_IN6.c", line 13594: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./ILL_IN6.c", line 13621: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./ILL_IN6.c", line 13621: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./ILL_IN6.c", line 13745: 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; ^ "./ILL_IN6.c", line 13745: 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; ^ "./ILL_IN6.c", line 13745: 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; ^ "./ILL_IN6.c", line 13745: 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; ^ "./ILL_IN6.c", line 13745: 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; ^ "./ILL_IN6.c", line 13745: 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; ^ "./ILL_IN6.c", line 14102: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./ILL_IN6.c", line 15057: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ILL_IN6.c", line 17658: warning: variable "chopper_const" was declared but never referenced [declared_but_not_referenced] double chopper_const = 252.77; /*constant in chopper SPEED formula*/ ^ "./ILL_IN6.c", line 19198: warning: variable "zp2" was set but never used [set_but_not_used] double xp2, zp2,xp3=0,vxp2=0,vzp1=0; /* position, velocity */ ^ "./ILL_IN6.c", line 18996: warning: variable "X" was set but never used [set_but_not_used] double X[5],Z[5]; /* position of interaction locations in the Fermi chopper rotating frame ^ "./ILL_IN6.c", line 18996: warning: variable "Z" was set but never used [set_but_not_used] double X[5],Z[5]; /* position of interaction locations in the Fermi chopper rotating frame ^ "./ILL_IN6.c", line 19650: warning: variable "ti" was set but never used [set_but_not_used] double ki_x,ki_y,ki_z,ti,vi,ki; ^ "./ILL_IN6.c", line 19651: warning: variable "tf" was set but never used [set_but_not_used] double kf_x,kf_y,kf_z,tf,kf; ^ "./ILL_IN6.c", line 19651: warning: variable "kf" was set but never used [set_but_not_used] double kf_x,kf_y,kf_z,tf,kf; ^ "./ILL_IN6.c", line 20321: warning: variable "q" was declared but never referenced [declared_but_not_referenced] double q,qq; ^ "./ILL_IN6.c", line 20325: warning: variable "phi" was declared but never referenced [declared_but_not_referenced] double phi; ^ "./ILL_IN6.c", line 23381: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./ILL_IN6.c", line 23382: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./ILL_IN6.c", line 1554: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./ILL_IN6.c", line 2957: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 99, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 113, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 155, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 189, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 221, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 233, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 242, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 262, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1601, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1605, Generating acc routine seq Generating NVIDIA GPU code str_len: 1614, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4166, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4597, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4608, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4617, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4629, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4641, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4651, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4661, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4669, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4679, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4701, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4708, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4754, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4789, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4800, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4817, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4828, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4844, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4873, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4884, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4888, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5065, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5096, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5113, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5212, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5296, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5362, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5439, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5711, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5721, Generating acc routine seq Generating NVIDIA GPU code _hash: 5747, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5788, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5799, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5804, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5812, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5820, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5827, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6484, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6580, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6597, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6712, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6767, Generating acc routine seq Generating NVIDIA GPU code SG_Maxwell: 7535, Generating acc routine seq Generating NVIDIA GPU code GAUSS_monocurved: 7545, Generating acc routine seq Generating NVIDIA GPU code FC_zrot: 7594, Generating acc routine seq Generating NVIDIA GPU code FC_xrot: 7607, Generating acc routine seq Generating NVIDIA GPU code FC_xzrot_dt: 7633, Generating acc routine seq Generating NVIDIA GPU code FC_xzbrent: 7654, Generating acc routine seq Generating NVIDIA GPU code FC_xintersect: 7727, Generating acc routine seq Generating NVIDIA GPU code FC_zintersect: 7734, Generating acc routine seq Generating NVIDIA GPU code Sqw_search_SW: 8165, Generating acc routine seq Generating NVIDIA GPU code Sqw_search_Q_proba_per_w: 8202, Generating acc routine seq Generating NVIDIA GPU code Sqw_integrate_iqSq: 8238, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 10703, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 10771, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 10850, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 11318, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 11334, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 11352, Generating acc routine seq Generating NVIDIA GPU code StdReflecFunc: 11418, Generating acc routine seq Generating NVIDIA GPU code TableReflecFunc: 11477, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 12590, Generating acc routine seq Generating NVIDIA GPU code off_F: 13702, Generating acc routine seq Generating NVIDIA GPU code off_sign: 13707, Generating acc routine seq Generating NVIDIA GPU code off_normal: 13717, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 13743, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 13806, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 13937, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 13982, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 14099, Generating acc routine seq Generating NVIDIA GPU code off_compare: 14217, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 14229, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 14264, Generating acc routine seq Generating NVIDIA GPU code Min_int: 14515, Generating acc routine seq Generating NVIDIA GPU code merge: 14522, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 14626, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 14641, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 14695, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 14812, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 14834, Generating acc routine seq Generating NVIDIA GPU code init: 17703, Generating update device(iRATIO) 17728, Generating update device(Frequency) 17875, Generating update device(_MonokMonitor_var,_Suppressor_var,_SlitFC_var,_Mon_SuppOutT_var,_Mono1_var,_Mono2_var,_instrument_var,_SourceTarget_var,_Mon_SampleInXY_var,_Mon_SuppInL_var,_SuppPos_var,_Mon_SuppInT_var,_Sample_var,_FermiM_var,_Detector_nM_var,_M_theta_t_all_var,_Mono3_var,_Mon_FermiOutdT_var,_Mon_SampleInT_var,_sample_pos_var,_mono_out_var,_Out_var,_Origin_var,_FermiPos_var,_Cradle_var,_VCS_var) class_Progress_bar_trace: 17916, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 18006, Generating acc routine seq Generating NVIDIA GPU code class_Arm_trace: 18215, Generating acc routine seq Generating NVIDIA GPU code class_Monochromator_curved_trace: 18258, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 18638, Generating acc routine seq Generating NVIDIA GPU code class_FermiChopper_trace: 18953, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 19535, Generating acc routine seq Generating NVIDIA GPU code class_Isotropic_Sqw_trace: 19579, Generating acc routine seq Generating NVIDIA GPU code 19898, Reference argument passing prevents parallelization: u1z Reference argument passing prevents parallelization: u1y Reference argument passing prevents parallelization: u1x Reference argument passing prevents parallelization: solid_angle class_PSD_monitor_4PI_trace: 20218, Generating acc routine seq Generating NVIDIA GPU code class_Sqw_monitor_trace: 20296, Generating acc routine seq Generating NVIDIA GPU code raytrace: 20445, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 20994, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 21008, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 20994, Local memory used for .inl_particle_27232,particleN,.inl_.inl_mcneutron_0_27247,.inl_.X2370_27249,.inl_.inl_.X2576_15_27248 21008, Generating implicit firstprivate(seed,_particle) finally: 22363, Generating update self(_MonokMonitor_var,_Suppressor_var,_SlitFC_var,_Mon_SuppOutT_var,_Mono1_var,_Mono2_var,_instrument_var,_SourceTarget_var,_Mon_SampleInXY_var,_Mon_SuppInL_var,_SuppPos_var,_Mon_SuppInT_var,_Sample_var,_FermiM_var,_Detector_nM_var,_M_theta_t_all_var,_Mono3_var,_Mon_FermiOutdT_var,_Mon_SampleInT_var,_sample_pos_var,_mono_out_var,_Out_var,_Origin_var,_FermiPos_var,_Cradle_var,_VCS_var) mcenabletrace: 5946, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===