loading system configuration loading override configuration from /users/willend/McCode/tools/Python/mctest/../mccodelib/mcstas-test/McStas_DUAL_A100_DMSC/mccode_config.json INFO: No output directory specified (--dir) INFO: Using directory: "templateSasView_Mantid_20230301_021746" INFO: Regenerating c-file: templateSasView_Mantid.c DEBUG: CMD: mcstas -t -o ./templateSasView_Mantid.c /users/willend/TESTS/2023-03-01/McStas_DUAL_A100_DMSC_5e7/templateSasView_Mantid/templateSasView_Mantid.instr Info: 'PSD_monitor_rad' is a contributed component. CFLAGS= @NEXUSFLAGS@ WARNING: The parameter model_pars of sampleMantid is initialized using a static {,,,} vector. -> Such static vectors support literal numbers ONLY. -> Any vector use of variables or defines must happen via a DECLARE/INITIALIZE pointer. ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: -> SPLIT N at component sampleMantid ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> SPLIT within buffer at component sampleMantid ----------------------------------------------------------- INFO: Recompiling: ./templateSasView_Mantid.out DEBUG: CMD: nvc -o ./templateSasView_Mantid.out ./templateSasView_Mantid.c -lm -DUSE_MPI -lmpi -L/mnt/groupdata/apps/CentOS8_2/nvhpc/hpc_sdk/Linux_x86_64/21.2/comm_libs/mpi/lib -I/mnt/groupdata/apps/CentOS8_2/nvhpc/hpc_sdk/Linux_x86_64/21.2/comm_libs/mpi/include -ta:tesla,managed -DOPENACC -Minfo:accel -DUSE_NEXUS -lNeXus -I/users/willend/NeXus/include/nexus -L/users/willend/NeXus/lib64 -D__GNUC__ "./templateSasView_Mantid.c", line 1648: warning: arithmetic on pointer to void or function type if (MPI_Send((void*)(sbuf+offset*dsize), length, dtype, dest, tag++, MPI_COMM_WORLD) != MPI_SUCCESS) ^ "./templateSasView_Mantid.c", line 1675: warning: arithmetic on pointer to void or function type if (MPI_Recv((void*)(sbuf+offset*dsize), length, dtype, source, tag++, ^ "./templateSasView_Mantid.c", line 2826: warning: variable "fid" was declared but never referenced FILE *fid; /* for intrument source code/C/IDF */ ^ "./templateSasView_Mantid.c", line 3265: warning: missing return statement at end of non-void function "mcdetector_out_list_slaves" } ^ "./templateSasView_Mantid.c", line 3393: warning: missing return statement at end of non-void function "siminfo_init" } /* siminfo_init */ ^ "./templateSasView_Mantid.c", line 35952: warning: variable "form_vol" is used before its value is set return form_vol; ^ "./templateSasView_Mantid.c", line 37948: warning: variable "dt" was set but never used double dt, dy; ^ "./templateSasView_Mantid.c", line 37948: warning: variable "dy" was set but never used double dt, dy; ^ "./templateSasView_Mantid.c", line 37975: warning: variable "dx" was set but never used double dx, dy; ^ "./templateSasView_Mantid.c", line 37975: warning: variable "dy" was set but never used double dx, dy; ^ "./templateSasView_Mantid.c", line 39782: warning: variable "minx" was declared but never referenced MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./templateSasView_Mantid.c", line 39782: warning: variable "maxx" was declared but never referenced MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./templateSasView_Mantid.c", line 39782: warning: variable "miny" was declared but never referenced MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./templateSasView_Mantid.c", line 39782: warning: variable "maxy" was declared but never referenced MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./templateSasView_Mantid.c", line 39782: warning: variable "minz" was declared but never referenced MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./templateSasView_Mantid.c", line 39782: warning: variable "maxz" was declared but never referenced MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./templateSasView_Mantid.c", line 40138: warning: variable "plane_Eq" was declared but never referenced double plane_Eq [4]; ^ "./templateSasView_Mantid.c", line 41313: warning: controlling expression is constant if("NULL" && strlen("NULL")) ^ "./templateSasView_Mantid.c", line 41314: warning: controlling expression is constant stracpy(_a1_var._parameters.profile, "NULL" ? "NULL" : "", 16384); ^ "./templateSasView_Mantid.c", line 41324: warning: variable "tc2" was set but never used Coords tc1, tc2; ^ "./templateSasView_Mantid.c", line 41356: warning: variable "tc2" was set but never used Coords tc1, tc2; ^ "./templateSasView_Mantid.c", line 41532: warning: controlling expression is constant if("Edet1.dat" && strlen("Edet1.dat")) ^ "./templateSasView_Mantid.c", line 41533: warning: controlling expression is constant stracpy(_LdetectorPRE_var._parameters.filename, "Edet1.dat" ? "Edet1.dat" : "", 16384); ^ "./templateSasView_Mantid.c", line 41648: warning: controlling expression is constant if("PSD.dat" && strlen("PSD.dat")) ^ "./templateSasView_Mantid.c", line 41649: warning: controlling expression is constant stracpy(_detector_var._parameters.filename, "PSD.dat" ? "PSD.dat" : "", 16384); ^ "./templateSasView_Mantid.c", line 41700: warning: controlling expression is constant if("Edet.dat" && strlen("Edet.dat")) ^ "./templateSasView_Mantid.c", line 41701: warning: controlling expression is constant stracpy(_Ldetector_var._parameters.filename, "Edet.dat" ? "Edet.dat" : "", 16384); ^ "./templateSasView_Mantid.c", line 41754: warning: controlling expression is constant if("psd2.dat" && strlen("psd2.dat")) ^ "./templateSasView_Mantid.c", line 41755: warning: controlling expression is constant stracpy(_PSDrad_var._parameters.filename, "psd2.dat" ? "psd2.dat" : "", 16384); ^ "./templateSasView_Mantid.c", line 41758: warning: controlling expression is constant if("psd2_av.dat" && strlen("psd2_av.dat")) ^ "./templateSasView_Mantid.c", line 41759: warning: controlling expression is constant stracpy(_PSDrad_var._parameters.filename_av, "psd2_av.dat" ? "psd2_av.dat" : "", 16384); ^ "./templateSasView_Mantid.c", line 41802: warning: controlling expression is constant if("" && strlen("")) ^ "./templateSasView_Mantid.c", line 41803: warning: controlling expression is constant stracpy(_nD_Mantid_1_var._parameters.user1, "" ? "" : "", 16384); ^ "./templateSasView_Mantid.c", line 41806: warning: controlling expression is constant if("" && strlen("")) ^ "./templateSasView_Mantid.c", line 41807: warning: controlling expression is constant stracpy(_nD_Mantid_1_var._parameters.user2, "" ? "" : "", 16384); ^ "./templateSasView_Mantid.c", line 41810: warning: controlling expression is constant if("" && strlen("")) ^ "./templateSasView_Mantid.c", line 41811: warning: controlling expression is constant stracpy(_nD_Mantid_1_var._parameters.user3, "" ? "" : "", 16384); ^ "./templateSasView_Mantid.c", line 41828: warning: controlling expression is constant if("mantid square x limits=[-1.5 1.5] bins=198 y limits=[-1.5 1.5] bins=198, neutron pixel t, list all neutrons" && strlen("mantid square x limits=[-1.5 1.5] bins=198 y limits=[-1.5 1.5] bins=198, neutron pixel t, list all neutrons")) ^ "./templateSasView_Mantid.c", line 41829: warning: controlling expression is constant stracpy(_nD_Mantid_1_var._parameters.options, "mantid square x limits=[-1.5 1.5] bins=198 y limits=[-1.5 1.5] bins=198, neutron pixel t, list all neutrons" ? "mantid square x limits=[-1.5 1.5] bins=198 y limits=[-1.5 1.5] bins=198, neutron pixel t, list all neutrons" : "", 16384); ^ "./templateSasView_Mantid.c", line 41832: warning: controlling expression is constant if("bank01_events.dat" && strlen("bank01_events.dat")) ^ "./templateSasView_Mantid.c", line 41833: warning: controlling expression is constant stracpy(_nD_Mantid_1_var._parameters.filename, "bank01_events.dat" ? "bank01_events.dat" : "", 16384); ^ "./templateSasView_Mantid.c", line 41836: warning: controlling expression is constant if("NULL" && strlen("NULL")) ^ "./templateSasView_Mantid.c", line 41837: warning: controlling expression is constant stracpy(_nD_Mantid_1_var._parameters.geometry, "NULL" ? "NULL" : "", 16384); ^ "./templateSasView_Mantid.c", line 41841: warning: controlling expression is constant if("NULL" && strlen("NULL")) ^ "./templateSasView_Mantid.c", line 41842: warning: controlling expression is constant stracpy(_nD_Mantid_1_var._parameters.username1, "NULL" ? "NULL" : "", 16384); ^ "./templateSasView_Mantid.c", line 41845: warning: controlling expression is constant if("NULL" && strlen("NULL")) ^ "./templateSasView_Mantid.c", line 41846: warning: controlling expression is constant stracpy(_nD_Mantid_1_var._parameters.username2, "NULL" ? "NULL" : "", 16384); ^ "./templateSasView_Mantid.c", line 41849: warning: controlling expression is constant if("NULL" && strlen("NULL")) ^ "./templateSasView_Mantid.c", line 41850: warning: controlling expression is constant stracpy(_nD_Mantid_1_var._parameters.username3, "NULL" ? "NULL" : "", 16384); ^ "./templateSasView_Mantid.c", line 42607: warning: incompatible redefinition of macro "exit" (declared at line 464) #define exit(...) noprintf() ^ "./templateSasView_Mantid.c", line 42971: warning: variable "d_phi" was declared but never referenced double t0, t1, v, l_full, l, l_1, dt, d_phi, theta, my_s; ^ "./templateSasView_Mantid.c", line 42971: warning: variable "theta" was declared but never referenced double t0, t1, v, l_full, l, l_1, dt, d_phi, theta, my_s; ^ "./templateSasView_Mantid.c", line 42971: warning: variable "my_s" was declared but never referenced double t0, t1, v, l_full, l, l_1, dt, d_phi, theta, my_s; ^ "./templateSasView_Mantid.c", line 42972: warning: variable "axis_x" was declared but never referenced double aim_x=0, aim_y=0, aim_z=1, axis_x, axis_y, axis_z; ^ "./templateSasView_Mantid.c", line 42972: warning: variable "axis_y" was declared but never referenced double aim_x=0, aim_y=0, aim_z=1, axis_x, axis_y, axis_z; ^ "./templateSasView_Mantid.c", line 42972: warning: variable "axis_z" was declared but never referenced double aim_x=0, aim_y=0, aim_z=1, axis_x, axis_y, axis_z; ^ "./templateSasView_Mantid.c", line 42973: warning: variable "arg" was declared but never referenced double arg, tmp_vx, tmp_vy, tmp_vz, vout_x, vout_y, vout_z; ^ "./templateSasView_Mantid.c", line 42973: warning: variable "tmp_vx" was declared but never referenced double arg, tmp_vx, tmp_vy, tmp_vz, vout_x, vout_y, vout_z; ^ "./templateSasView_Mantid.c", line 42973: warning: variable "tmp_vy" was declared but never referenced double arg, tmp_vx, tmp_vy, tmp_vz, vout_x, vout_y, vout_z; ^ "./templateSasView_Mantid.c", line 42973: warning: variable "tmp_vz" was declared but never referenced double arg, tmp_vx, tmp_vy, tmp_vz, vout_x, vout_y, vout_z; ^ "./templateSasView_Mantid.c", line 42973: warning: variable "vout_x" was declared but never referenced double arg, tmp_vx, tmp_vy, tmp_vz, vout_x, vout_y, vout_z; ^ "./templateSasView_Mantid.c", line 42973: warning: variable "vout_y" was declared but never referenced double arg, tmp_vx, tmp_vy, tmp_vz, vout_x, vout_y, vout_z; ^ "./templateSasView_Mantid.c", line 42973: warning: variable "vout_z" was declared but never referenced double arg, tmp_vx, tmp_vy, tmp_vz, vout_x, vout_y, vout_z; ^ "./templateSasView_Mantid.c", line 42974: warning: variable "f" was declared but never referenced double f, solid_angle, vx_i, vy_i, vz_i, q, qx, qy, qz; ^ "./templateSasView_Mantid.c", line 45135: warning: variable "t" was declared but never referenced time_t t; ^ "./templateSasView_Mantid.c", line 45136: warning: variable "ct" was set but never used clock_t ct; ^ mcgenstate: 66, Generating acc routine seq Generating Tesla code particle_getvar: 80, Generating acc routine seq Generating Tesla code particle_getvar_void: 109, Generating acc routine seq Generating Tesla code particle_setvar_void: 133, Generating acc routine seq Generating Tesla code particle_setvar_void_array: 155, Generating acc routine seq Generating Tesla code particle_restore: 166, Generating acc routine seq Generating Tesla code particle_getuservar_byid: 175, Generating acc routine seq Generating Tesla code particle_uservar_init: 185, Generating acc routine seq Generating Tesla code noprintf: 1393, Generating acc routine seq Generating Tesla code str_comp: 1397, Generating acc routine seq Generating Tesla code str_len: 1406, Generating acc routine seq Generating Tesla code mcget_ncount: 3684, Generating acc routine seq Generating Tesla code coords_set: 3921, Generating acc routine seq Generating Tesla code coords_get: 3932, Generating acc routine seq Generating Tesla code coords_add: 3941, Generating acc routine seq Generating Tesla code coords_sub: 3953, Generating acc routine seq Generating Tesla code coords_neg: 3965, Generating acc routine seq Generating Tesla code coords_scale: 3975, Generating acc routine seq Generating Tesla code coords_sp: 3985, Generating acc routine seq Generating Tesla code coords_xp: 3993, Generating acc routine seq Generating Tesla code coords_len: 4003, Generating acc routine seq Generating Tesla code coords_print: 4025, Generating acc routine seq Generating Tesla code coords_norm: 4032, Generating acc routine seq Generating Tesla code rot_set_rotation: 4078, Generating acc routine seq Generating Tesla code rot_test_identity: 4113, Generating acc routine seq Generating Tesla code rot_mul: 4124, Generating acc routine seq Generating Tesla code rot_copy: 4141, Generating acc routine seq Generating Tesla code rot_transpose: 4152, Generating acc routine seq Generating Tesla code rot_apply: 4168, Generating acc routine seq Generating Tesla code vec_prod_func: 4197, Generating acc routine seq Generating Tesla code scalar_prod: 4208, Generating acc routine seq Generating Tesla code norm_func: 4212, Generating acc routine seq Generating Tesla code mccoordschange: 4389, Generating acc routine seq Generating Tesla code mccoordschange_polarisation: 4420, Generating acc routine seq Generating Tesla code normal_vec: 4437, Generating acc routine seq Generating Tesla code solve_2nd_order: 4536, Generating acc routine seq Generating Tesla code _randvec_target_circle: 4620, Generating acc routine seq Generating Tesla code _randvec_target_rect_angular: 4686, Generating acc routine seq Generating Tesla code _randvec_target_rect_real: 4763, Generating acc routine seq Generating Tesla code kiss_srandom: 5035, Generating acc routine seq Generating Tesla code kiss_random: 5045, Generating acc routine seq Generating Tesla code _hash: 5071, Generating acc routine seq Generating Tesla code _randnorm2: 5112, Generating acc routine seq Generating Tesla code _randtriangle: 5123, Generating acc routine seq Generating Tesla code _rand01: 5128, Generating acc routine seq Generating Tesla code _randpm1: 5136, Generating acc routine seq Generating Tesla code _rand0max: 5144, Generating acc routine seq Generating Tesla code _randminmax: 5151, Generating acc routine seq Generating Tesla code mcsetstate: 5768, Generating acc routine seq Generating Tesla code inside_rectangle: 5860, Generating acc routine seq Generating Tesla code box_intersect: 5877, Generating acc routine seq Generating Tesla code cylinder_intersect: 5992, Generating acc routine seq Generating Tesla code sphere_intersect: 6047, Generating acc routine seq Generating Tesla code getIq: 35596, Generating implicit acc routine seq Generating acc routine seq Generating Tesla code getFormVol: 35776, Generating implicit acc routine seq Generating acc routine seq Generating Tesla code Monitor_nD_Trace: 36958, Generating acc routine seq Generating Tesla code Table_Index: 38866, Generating acc routine seq Generating Tesla code Table_Value: 38934, Generating acc routine seq Generating Tesla code Table_Value2d: 39013, Generating acc routine seq Generating Tesla code Table_Interp1d: 39451, Generating acc routine seq Generating Tesla code Table_Interp1d_nearest: 39467, Generating acc routine seq Generating Tesla code Table_Interp2d: 39485, Generating acc routine seq Generating Tesla code off_F: 39739, Generating acc routine seq Generating Tesla code off_sign: 39744, Generating acc routine seq Generating Tesla code off_normal: 39754, Generating acc routine seq Generating Tesla code off_pnpoly: 39780, Generating acc routine seq Generating Tesla code off_intersectPoly: 39843, Generating acc routine seq Generating Tesla code off_init_planes: 39974, Generating acc routine seq Generating Tesla code off_clip_3D_mod: 40019, Generating acc routine seq Generating Tesla code off_clip_3D_mod_grav: 40135, Generating acc routine seq Generating Tesla code off_compare: 40253, Generating acc routine seq Generating Tesla code off_cleanDouble: 40265, Generating acc routine seq Generating Tesla code off_cleanInOut: 40300, Generating acc routine seq Generating Tesla code Min_int: 40550, Generating acc routine seq Generating Tesla code merge: 40557, Generating acc routine seq Generating Tesla code p_to_quadratic: 40661, Generating implicit acc routine seq Generating acc routine seq Generating Tesla code quadraticSolve: 40676, Generating implicit acc routine seq Generating acc routine seq Generating Tesla code off_intersect_all: 40730, Generating acc routine seq Generating Tesla code off_intersect: 40841, Generating acc routine seq Generating Tesla code off_x_intersect: 40863, Generating acc routine seq Generating Tesla code init: 42579, Generating update device(_PSDrad_var,_a1_var,_sourceMantid_var,_sampleMantid_var,_arm_var,_coll1_var,_nD_Mantid_1_var,_coll2_var,_LdetectorPRE_var,_Ldetector_var,_instrument_var,_detector_var) class_Progress_bar_trace: 42621, Generating acc routine seq Generating Tesla code class_Source_simple_trace: 42709, Generating acc routine seq Generating Tesla code class_Slit_trace: 42818, Generating acc routine seq Generating Tesla code class_L_monitor_trace: 42868, Generating acc routine seq Generating Tesla code class_SasView_model_trace: 42947, Generating acc routine seq Generating Tesla code class_PSD_monitor_trace: 43085, Generating acc routine seq Generating Tesla code class_PSD_monitor_rad_trace: 43162, Generating acc routine seq Generating Tesla code class_Monitor_nD_trace: 43227, Generating acc routine seq Generating Tesla code raytrace: 43527, Generating acc routine seq Generating Tesla code raytrace_all: 43810, Generating Tesla code 43821, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 43810, Local memory used for particleN finally: 44595, Generating update self(_PSDrad_var,_a1_var,_sourceMantid_var,_sampleMantid_var,_arm_var,_coll1_var,_nD_Mantid_1_var,_coll2_var,_LdetectorPRE_var,_Ldetector_var,_instrument_var,_detector_var) mcenabletrace: 5261, Generating update device(mcdotrace) INFO: ===