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: "McStas_Single_crystal_20230301_011805" INFO: Regenerating c-file: McStas_Single_crystal.c DEBUG: CMD: mcstas -t -o ./McStas_Single_crystal.c /users/willend/TESTS/2023-03-01/McStas_DUAL_A100_DMSC_5e7/McStas_Single_crystal/McStas_Single_crystal.instr CFLAGS= -Wl,-rpath,CMD(mcpl-config --show libdir) -LCMD(mcpl-config --show libdir) -lmcpl -ICMD(mcpl-config --show includedir) -Wl,-rpath,CMD(mcpl-config --show libdir) -LCMD(mcpl-config --show libdir) -lmcpl -ICMD(mcpl-config --show includedir) WARNING: The parameter mosaic_AB of SX 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: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: ----------------------------------------------------------- INFO: Recompiling: ./McStas_Single_crystal.out --> launching cmd: mcpl-config --show libdir --> launching cmd: mcpl-config --show libdir --> launching cmd: mcpl-config --show includedir --> launching cmd: mcpl-config --show libdir --> launching cmd: mcpl-config --show libdir --> launching cmd: mcpl-config --show includedir DEBUG: CMD: nvc -o ./McStas_Single_crystal.out ./McStas_Single_crystal.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 -Wl,-rpath,/users/willend/McStas/mcstas/3.x-dev/lib -L/users/willend/McStas/mcstas/3.x-dev/lib -lmcpl -I/users/willend/McStas/mcstas/3.x-dev/include -Wl,-rpath,/users/willend/McStas/mcstas/3.x-dev/lib -L/users/willend/McStas/mcstas/3.x-dev/lib -lmcpl -I/users/willend/McStas/mcstas/3.x-dev/include "./McStas_Single_crystal.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) ^ "./McStas_Single_crystal.c", line 1675: warning: arithmetic on pointer to void or function type if (MPI_Recv((void*)(sbuf+offset*dsize), length, dtype, source, tag++, ^ "./McStas_Single_crystal.c", line 3393: warning: missing return statement at end of non-void function "siminfo_init" } /* siminfo_init */ ^ "./McStas_Single_crystal.c", line 7937: 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; ^ "./McStas_Single_crystal.c", line 7937: 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; ^ "./McStas_Single_crystal.c", line 7937: 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; ^ "./McStas_Single_crystal.c", line 7937: 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; ^ "./McStas_Single_crystal.c", line 7937: 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; ^ "./McStas_Single_crystal.c", line 7937: 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; ^ "./McStas_Single_crystal.c", line 8293: warning: variable "plane_Eq" was declared but never referenced double plane_Eq [4]; ^ "./McStas_Single_crystal.c", line 10108: warning: variable "jglobal" was declared but never referenced int jglobal=-1; ^ "./McStas_Single_crystal.c", line 10109: warning: variable "coherent_refl" was set but never used double coherent_refl,coherent_xsect; ^ "./McStas_Single_crystal.c", line 10109: warning: variable "coherent_xsect" was set but never used double coherent_refl,coherent_xsect; ^ "./McStas_Single_crystal.c", line 10492: warning: controlling expression is constant if("McStas_Single_crystal_in.mcpl" && strlen("McStas_Single_crystal_in.mcpl")) ^ "./McStas_Single_crystal.c", line 10493: warning: controlling expression is constant stracpy(_mcpl_in_var._parameters.filename, "McStas_Single_crystal_in.mcpl" ? "McStas_Single_crystal_in.mcpl" : "", 16384); ^ "./McStas_Single_crystal.c", line 10509: warning: variable "tc2" was set but never used Coords tc1, tc2; ^ "./McStas_Single_crystal.c", line 10591: warning: variable "tc2" was set but never used Coords tc1, tc2; ^ "./McStas_Single_crystal.c", line 10625: warning: controlling expression is constant if("" && strlen("")) ^ "./McStas_Single_crystal.c", line 10626: warning: controlling expression is constant stracpy(_mcpl_out_var._parameters.userflag, "" ? "" : "", 16384); ^ "./McStas_Single_crystal.c", line 10629: warning: controlling expression is constant if("McStas_Single_crystal_out.mcpl" && strlen("McStas_Single_crystal_out.mcpl")) ^ "./McStas_Single_crystal.c", line 10630: warning: controlling expression is constant stracpy(_mcpl_out_var._parameters.filename, "McStas_Single_crystal_out.mcpl" ? "McStas_Single_crystal_out.mcpl" : "", 16384); ^ "./McStas_Single_crystal.c", line 10633: warning: controlling expression is constant if("" && strlen("")) ^ "./McStas_Single_crystal.c", line 10634: warning: controlling expression is constant stracpy(_mcpl_out_var._parameters.userflagcomment, "" ? "" : "", 16384); ^ "./McStas_Single_crystal.c", line 10644: warning: variable "tc2" was set but never used Coords tc1, tc2; ^ "./McStas_Single_crystal.c", line 10703: warning: variable "line" was declared but never referenced char line[256]; ^ "./McStas_Single_crystal.c", line 10704: warning: variable "ncount" was declared but never referenced long long ncount; ^ "./McStas_Single_crystal.c", line 10920: warning: variable "as" was declared but never referenced double as, bs, cs; ^ "./McStas_Single_crystal.c", line 10920: warning: variable "bs" was declared but never referenced double as, bs, cs; ^ "./McStas_Single_crystal.c", line 10920: warning: variable "cs" was declared but never referenced double as, bs, cs; ^ "./McStas_Single_crystal.c", line 10921: warning: variable "i" was declared but never referenced int i=0; ^ "./McStas_Single_crystal.c", line 11122: warning: argument of type "unsigned char *" is incompatible with parameter of type "const char *" mcpl_hdr_add_data(outputfile, "mccode_instr_file", size, buffer); ^ "./McStas_Single_crystal.c", line 11113: warning: variable "status" was declared but never referenced int size,status; ^ "./McStas_Single_crystal.c", line 11326: warning: incompatible redefinition of macro "exit" (declared at line 464) #define exit(...) noprintf() ^ "./McStas_Single_crystal.c", line 11506: warning: variable "tmpx" was declared but never referenced double tmpx,tmpy,tmpz; ^ "./McStas_Single_crystal.c", line 11506: warning: variable "tmpy" was declared but never referenced double tmpx,tmpy,tmpz; ^ "./McStas_Single_crystal.c", line 11506: warning: variable "tmpz" was declared but never referenced double tmpx,tmpy,tmpz; ^ "./McStas_Single_crystal.c", line 11377: warning: variable "ncount" was set but never used long long ncount; ^ "./McStas_Single_crystal.c", line 11643: warning: variable "rho_x" was declared but never referenced double rho_x, rho_y, rho_z; /* the vector ki - tau */ ^ "./McStas_Single_crystal.c", line 11643: warning: variable "rho_y" was declared but never referenced double rho_x, rho_y, rho_z; /* the vector ki - tau */ ^ "./McStas_Single_crystal.c", line 11643: warning: variable "rho_z" was declared but never referenced double rho_x, rho_y, rho_z; /* the vector ki - tau */ ^ "./McStas_Single_crystal.c", line 11644: warning: variable "rho" was declared but never referenced double rho; ^ "./McStas_Single_crystal.c", line 11645: warning: variable "diff" was declared but never referenced double diff; /* Deviation from Bragg condition */ ^ "./McStas_Single_crystal.c", line 11646: warning: variable "ox" was declared but never referenced double ox, oy, oz; /* Origin of Ewald sphere tangent plane */ ^ "./McStas_Single_crystal.c", line 11646: warning: variable "oy" was declared but never referenced double ox, oy, oz; /* Origin of Ewald sphere tangent plane */ ^ "./McStas_Single_crystal.c", line 11646: warning: variable "oz" was declared but never referenced double ox, oy, oz; /* Origin of Ewald sphere tangent plane */ ^ "./McStas_Single_crystal.c", line 11647: warning: variable "b1x" was declared but never referenced double b1x, b1y, b1z; /* First vector spanning tangent plane */ ^ "./McStas_Single_crystal.c", line 11647: warning: variable "b1y" was declared but never referenced double b1x, b1y, b1z; /* First vector spanning tangent plane */ ^ "./McStas_Single_crystal.c", line 11647: warning: variable "b1z" was declared but never referenced double b1x, b1y, b1z; /* First vector spanning tangent plane */ ^ "./McStas_Single_crystal.c", line 11648: warning: variable "b2x" was declared but never referenced double b2x, b2y, b2z; /* Second vector spanning tangent plane */ ^ "./McStas_Single_crystal.c", line 11648: warning: variable "b2y" was declared but never referenced double b2x, b2y, b2z; /* Second vector spanning tangent plane */ ^ "./McStas_Single_crystal.c", line 11648: warning: variable "b2z" was declared but never referenced double b2x, b2y, b2z; /* Second vector spanning tangent plane */ ^ "./McStas_Single_crystal.c", line 11649: warning: variable "n11" was declared but never referenced double n11, n12, n22; /* 2D Gauss description matrix N */ ^ "./McStas_Single_crystal.c", line 11649: warning: variable "n12" was declared but never referenced double n11, n12, n22; /* 2D Gauss description matrix N */ ^ "./McStas_Single_crystal.c", line 11649: warning: variable "n22" was declared but never referenced double n11, n12, n22; /* 2D Gauss description matrix N */ ^ "./McStas_Single_crystal.c", line 11650: warning: variable "det_N" was declared but never referenced double det_N; /* Determinant of N */ ^ "./McStas_Single_crystal.c", line 11651: warning: variable "inv_n11" was declared but never referenced double inv_n11, inv_n12, inv_n22; /* Inverse of N */ ^ "./McStas_Single_crystal.c", line 11651: warning: variable "inv_n12" was declared but never referenced double inv_n11, inv_n12, inv_n22; /* Inverse of N */ ^ "./McStas_Single_crystal.c", line 11651: warning: variable "inv_n22" was declared but never referenced double inv_n11, inv_n12, inv_n22; /* Inverse of N */ ^ "./McStas_Single_crystal.c", line 11652: warning: variable "l11" was declared but never referenced double l11, l12, l22; /* Cholesky decomposition L of 1/2*inv(N) */ ^ "./McStas_Single_crystal.c", line 11652: warning: variable "l12" was declared but never referenced double l11, l12, l22; /* Cholesky decomposition L of 1/2*inv(N) */ ^ "./McStas_Single_crystal.c", line 11652: warning: variable "l22" was declared but never referenced double l11, l12, l22; /* Cholesky decomposition L of 1/2*inv(N) */ ^ "./McStas_Single_crystal.c", line 11653: warning: variable "det_L" was declared but never referenced double det_L; /* Determinant of L */ ^ "./McStas_Single_crystal.c", line 11654: warning: variable "Bt_D_O_x" was declared but never referenced double Bt_D_O_x, Bt_D_O_y; /* Temporaries */ ^ "./McStas_Single_crystal.c", line 11654: warning: variable "Bt_D_O_y" was declared but never referenced double Bt_D_O_x, Bt_D_O_y; /* Temporaries */ ^ "./McStas_Single_crystal.c", line 11655: warning: variable "y0x" was declared but never referenced double y0x, y0y; /* Center of 2D Gauss in plane coordinates */ ^ "./McStas_Single_crystal.c", line 11655: warning: variable "y0y" was declared but never referenced double y0x, y0y; /* Center of 2D Gauss in plane coordinates */ ^ "./McStas_Single_crystal.c", line 11656: warning: variable "alpha" was declared but never referenced double alpha; /* Offset of 2D Gauss center from 3D center */ ^ "./McStas_Single_crystal.c", line 11663: warning: variable "tot_xsect" was declared but never referenced double tot_xsect, tot_xlen; /* Total cross section and length */ ^ "./McStas_Single_crystal.c", line 11670: warning: variable "theta" was declared but never referenced double theta, phi; /* rotation angles for curved lattice option */ ^ "./McStas_Single_crystal.c", line 11670: warning: variable "phi" was declared but never referenced double theta, phi; /* rotation angles for curved lattice option */ ^ "./McStas_Single_crystal.c", line 11679: warning: variable "type" was set but never used char type; /* type of last event: t=transmit,c=coherent or i=incoherent */ ^ "./McStas_Single_crystal.c", line 13468: warning: variable "t" was declared but never referenced time_t t; ^ "./McStas_Single_crystal.c", line 13469: warning: variable "ct" was set but never used clock_t ct; ^ "./McStas_Single_crystal.c", line 1353: warning: variable "mcstartdate" was set but never used static long mcstartdate = 0; /* start simulation time */ ^ "./McStas_Single_crystal.c", line 2707: warning: function "strcpy_valid" was declared but never referenced static char *strcpy_valid(char *valid, char *original) ^ 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 Table_Index: 7021, Generating acc routine seq Generating Tesla code Table_Value: 7089, Generating acc routine seq Generating Tesla code Table_Value2d: 7168, Generating acc routine seq Generating Tesla code Table_Interp1d: 7606, Generating acc routine seq Generating Tesla code Table_Interp1d_nearest: 7622, Generating acc routine seq Generating Tesla code Table_Interp2d: 7640, Generating acc routine seq Generating Tesla code off_F: 7894, Generating acc routine seq Generating Tesla code off_sign: 7899, Generating acc routine seq Generating Tesla code off_normal: 7909, Generating acc routine seq Generating Tesla code off_pnpoly: 7935, Generating acc routine seq Generating Tesla code off_intersectPoly: 7998, Generating acc routine seq Generating Tesla code off_init_planes: 8129, Generating acc routine seq Generating Tesla code off_clip_3D_mod: 8174, Generating acc routine seq Generating Tesla code off_clip_3D_mod_grav: 8290, Generating acc routine seq Generating Tesla code off_compare: 8408, Generating acc routine seq Generating Tesla code off_cleanDouble: 8420, Generating acc routine seq Generating Tesla code off_cleanInOut: 8455, Generating acc routine seq Generating Tesla code Min_int: 8705, Generating acc routine seq Generating Tesla code merge: 8712, Generating acc routine seq Generating Tesla code p_to_quadratic: 8816, Generating implicit acc routine seq Generating acc routine seq Generating Tesla code quadraticSolve: 8831, Generating implicit acc routine seq Generating acc routine seq Generating Tesla code off_intersect_all: 8885, Generating acc routine seq Generating Tesla code off_intersect: 8996, Generating acc routine seq Generating Tesla code off_x_intersect: 9018, Generating acc routine seq Generating Tesla code SX_list_compare: 9666, Generating acc routine seq Generating Tesla code hkl_search: 10098, Generating acc routine seq Generating Tesla code hkl_select: 10210, Generating acc routine seq Generating Tesla code randrotate: 10225, Generating acc routine seq Generating Tesla code randderotate: 10233, Generating acc routine seq Generating Tesla code PGrotate: 10241, Generating acc routine seq Generating Tesla code PGderotate: 10249, Generating acc routine seq Generating Tesla code vec_rotate_2d: 10260, Generating acc routine seq Generating Tesla code init: 11298, Generating update device(_instrument_var,_mcpl_out_var,_mcpl_in_var,_SX_var) class_MCPL_input_trace: 11340, Generating acc routine seq Generating Tesla code class_Single_crystal_trace: 11586, Generating acc routine seq Generating Tesla code class_MCPL_output_trace: 12116, Generating acc routine seq Generating Tesla code raytrace: 12277, Generating acc routine seq Generating Tesla code raytrace_all: 12392, Generating Tesla code 12403, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 12392, Local memory used for particleN finally: 13105, Generating update self(_instrument_var,_mcpl_out_var,_mcpl_in_var,_SX_var) mcenabletrace: 5261, Generating update device(mcdotrace) INFO: ===