loading system configuration loading override configuration from /zhome/89/0/38697/McCode/tools/Python/mctest/../mccodelib/mcstas-test/McStas_GPU_PGCC_TESLA_KISS/mccode_config.json INFO: No output directory specified (--dir) INFO: Using directory: "ILL_H22_D1B_20220901_004924" INFO: Regenerating c-file: ILL_H22_D1B.c DEBUG: CMD: mcstas -t -o ./ILL_H22_D1B.c /zhome/89/0/38697/TESTS/2022-09-01/McStas_GPU_PGCC_TESLA_KISS_5e7/ILL_H22_D1B/ILL_H22_D1B.instr Info: 'Al_window' is a contributed component. Info: 'Filter_graphite' is a contributed component. Info: 'Exact_radial_coll' is a contributed component. CFLAGS= WARNING: The parameter format of Cryo_1 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 mono_cradle -> SPLIT N at component slit_D1B ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> SPLIT within buffer at component mono_cradle -> SPLIT within buffer at component slit_D1B ----------------------------------------------------------- INFO: Recompiling: ./ILL_H22_D1B.out DEBUG: CMD: nvc -o ./ILL_H22_D1B.out ./ILL_H22_D1B.c -lm -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./ILL_H22_D1B.c", line 12409: warning: variable "tc2" was declared but never referenced Coords tc1, tc2; ^ "./ILL_H22_D1B.c", line 12410: warning: variable "tr1" was declared but never referenced Rotation tr1; ^ "./ILL_H22_D1B.c", line 24028: warning: variable "Al_my_tot" was set but never used double Al_s_tot_lambda,Al_my_tot,Al_my_a ; /* total XS (barn), total scattering length (m-1), absorption scat. length */ ^ "./ILL_H22_D1B.c", line 24868: warning: variable "type" was set but never used char type = '\0'; ^ "./ILL_H22_D1B.c", line 24869: warning: variable "itype" was set but never used int itype = 0; ^ "./ILL_H22_D1B.c", line 24872: warning: variable "nb_reuses" was declared but never referenced int nb_reuses = line_info.nb_reuses; ^ "./ILL_H22_D1B.c", line 24875: warning: variable "vcache" was set but never used double vcache = line_info.v; ^ "./ILL_H22_D1B.c", line 24879: warning: variable "lfree" was set but never used double lfree = line_info.lfree; ^ "./ILL_H22_D1B.c", line 24881: warning: variable "xs_compute" was declared but never referenced long xs_compute = line_info.xs_compute; ^ "./ILL_H22_D1B.c", line 24882: warning: variable "xs_reuse" was declared but never referenced long xs_reuse = line_info.xs_reuse; ^ "./ILL_H22_D1B.c", line 24883: warning: variable "xs_calls" was declared but never referenced long xs_calls = line_info.xs_calls; ^ "./ILL_H22_D1B.c", line 24885: warning: variable "dq" was set but never used double dq = line_info.dq; ^ "./ILL_H22_D1B.c", line 32866: warning: variable "t" is used before its value is set mcstartdate = (long)t; /* set start date before parsing options and creating sim file */ ^ "./ILL_H22_D1B.c", line 32806: warning: variable "ct" was declared but never referenced clock_t ct; ^ "./ILL_H22_D1B.c", line 1284: warning: variable "mcstartdate" was set but never used static long mcstartdate = 0; /* start simulation time */ ^ "./ILL_H22_D1B.c", line 2525: warning: function "strcpy_valid" was declared but never referenced static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 91, Generating acc routine seq Generating Tesla code particle_getvar: 105, Generating acc routine seq Generating Tesla code particle_setvar: 131, Generating acc routine seq Generating Tesla code particle_restore: 144, Generating acc routine seq Generating Tesla code particle_getuservar_byid: 152, Generating acc routine seq Generating Tesla code particle_uservar_init: 164, Generating acc routine seq Generating Tesla code noprintf: 1316, Generating acc routine seq Generating Tesla code str_comp: 1320, Generating acc routine seq Generating Tesla code str_len: 1329, Generating acc routine seq Generating Tesla code mcget_ncount: 3503, Generating acc routine seq Generating Tesla code coords_set: 3740, Generating acc routine seq Generating Tesla code coords_get: 3751, Generating acc routine seq Generating Tesla code coords_add: 3760, Generating acc routine seq Generating Tesla code coords_sub: 3772, Generating acc routine seq Generating Tesla code coords_neg: 3784, Generating acc routine seq Generating Tesla code coords_scale: 3794, Generating acc routine seq Generating Tesla code coords_sp: 3804, Generating acc routine seq Generating Tesla code coords_xp: 3812, Generating acc routine seq Generating Tesla code coords_len: 3822, Generating acc routine seq Generating Tesla code coords_print: 3844, Generating acc routine seq Generating Tesla code coords_norm: 3851, Generating acc routine seq Generating Tesla code rot_set_rotation: 3897, Generating acc routine seq Generating Tesla code rot_test_identity: 3932, Generating acc routine seq Generating Tesla code rot_mul: 3943, Generating acc routine seq Generating Tesla code rot_copy: 3960, Generating acc routine seq Generating Tesla code rot_transpose: 3971, Generating acc routine seq Generating Tesla code rot_apply: 3987, Generating acc routine seq Generating Tesla code vec_prod_func: 4016, Generating acc routine seq Generating Tesla code scalar_prod: 4027, Generating acc routine seq Generating Tesla code norm_func: 4031, Generating acc routine seq Generating Tesla code mccoordschange: 4208, Generating acc routine seq Generating Tesla code mccoordschange_polarisation: 4239, Generating acc routine seq Generating Tesla code normal_vec: 4256, Generating acc routine seq Generating Tesla code solve_2nd_order: 4355, Generating acc routine seq Generating Tesla code _randvec_target_circle: 4439, Generating acc routine seq Generating Tesla code _randvec_target_rect_angular: 4505, Generating acc routine seq Generating Tesla code _randvec_target_rect_real: 4582, Generating acc routine seq Generating Tesla code kiss_srandom: 4854, Generating acc routine seq Generating Tesla code kiss_random: 4864, Generating acc routine seq Generating Tesla code _hash: 4890, Generating acc routine seq Generating Tesla code _randnorm2: 4931, Generating acc routine seq Generating Tesla code _randtriangle: 4942, Generating acc routine seq Generating Tesla code _rand01: 4947, Generating acc routine seq Generating Tesla code _randpm1: 4955, Generating acc routine seq Generating Tesla code _rand0max: 4963, Generating acc routine seq Generating Tesla code _randminmax: 4970, Generating acc routine seq Generating Tesla code mcsetstate: 5582, Generating acc routine seq Generating Tesla code inside_rectangle: 5674, Generating acc routine seq Generating Tesla code box_intersect: 5691, Generating acc routine seq Generating Tesla code cylinder_intersect: 5806, Generating acc routine seq Generating Tesla code sphere_intersect: 5861, Generating acc routine seq Generating Tesla code Table_Index: 6860, Generating acc routine seq Generating Tesla code Table_Value: 6928, Generating acc routine seq Generating Tesla code Table_Value2d: 7007, Generating acc routine seq Generating Tesla code Table_Interp1d: 7445, Generating acc routine seq Generating Tesla code Table_Interp1d_nearest: 7461, Generating acc routine seq Generating Tesla code Table_Interp2d: 7479, Generating acc routine seq Generating Tesla code SG_Maxwell: 7526, Generating acc routine seq Generating Tesla code StdReflecFunc: 7618, Generating acc routine seq Generating Tesla code TableReflecFunc: 7674, Generating acc routine seq Generating Tesla code Gravity_guide_Trace: 7821, Generating acc routine seq Generating Tesla code *** Error in `/appl/nvhpc/2021_219/Linux_x86_64/21.9/compilers/bin/tools/cpp2': free(): invalid next size (fast): 0x0000000001934560 *** ======= Backtrace: ========= /lib64/libc.so.6(+0x81329)[0x7efd341a7329] /appl/nvhpc/2021_219/Linux_x86_64/21.9/compilers/bin/tools/cpp2[0x6796ff] /appl/nvhpc/2021_219/Linux_x86_64/21.9/compilers/bin/tools/cpp2[0x51d992] /appl/nvhpc/2021_219/Linux_x86_64/21.9/compilers/bin/tools/cpp2[0x51f364] /appl/nvhpc/2021_219/Linux_x86_64/21.9/compilers/bin/tools/cpp2[0x4baa2e] /appl/nvhpc/2021_219/Linux_x86_64/21.9/compilers/bin/tools/cpp2[0x43f40b] /appl/nvhpc/2021_219/Linux_x86_64/21.9/compilers/bin/tools/cpp2[0x444ad8] /appl/nvhpc/2021_219/Linux_x86_64/21.9/compilers/bin/tools/cpp2[0x43c9fa] /appl/nvhpc/2021_219/Linux_x86_64/21.9/compilers/bin/tools/cpp2[0x44a00b] /appl/nvhpc/2021_219/Linux_x86_64/21.9/compilers/bin/tools/cpp2[0x480df3] /appl/nvhpc/2021_219/Linux_x86_64/21.9/compilers/bin/tools/cpp2[0x483e85] /appl/nvhpc/2021_219/Linux_x86_64/21.9/compilers/bin/tools/cpp2[0x40f2b9] /lib64/libc.so.6(__libc_start_main+0xf5)[0x7efd34148555] /appl/nvhpc/2021_219/Linux_x86_64/21.9/compilers/bin/tools/cpp2[0x4102ba] ======= Memory map: ======== 00400000-00988000 r-xp 00000000 00:126 23588625 /appl/nvhpc/2021_219/Linux_x86_64/21.9/compilers/bin/tools/cpp2 00b87000-00b88000 r--p 00587000 00:126 23588625 /appl/nvhpc/2021_219/Linux_x86_64/21.9/compilers/bin/tools/cpp2 00b88000-00c0e000 rw-p 00588000 00:126 23588625 /appl/nvhpc/2021_219/Linux_x86_64/21.9/compilers/bin/tools/cpp2 00c0e000-00d7b000 rw-p 00000000 00:00 0 010d9000-08965000 rw-p 00000000 00:00 0 [heap] 7efd30000000-7efd30021000 rw-p 00000000 00:00 0 7efd30021000-7efd34000000 ---p 00000000 00:00 0 7efd34126000-7efd342ea000 r-xp 00000000 08:15 2093078 /usr/lib64/libc-2.17.so 7efd342ea000-7efd344e9000 ---p 001c4000 08:15 2093078 /usr/lib64/libc-2.17.so 7efd344e9000-7efd344ed000 r--p 001c3000 08:15 2093078 /usr/lib64/libc-2.17.so 7efd344ed000-7efd344ef000 rw-p 001c7000 08:15 2093078 /usr/lib64/libc-2.17.so 7efd344ef000-7efd344f4000 rw-p 00000000 00:00 0 7efd344f4000-7efd3450b000 r-xp 00000000 00:126 76552264 /appl/gcc/8.3.0/lib64/libgcc_s.so.1 7efd3450b000-7efd3470a000 ---p 00017000 00:126 76552264 /appl/gcc/8.3.0/lib64/libgcc_s.so.1 7efd3470a000-7efd3470b000 rw-p 00016000 00:126 76552264 /appl/gcc/8.3.0/lib64/libgcc_s.so.1 7efd3470b000-7efd3480c000 r-xp 00000000 08:15 2093086 /usr/lib64/libm-2.17.so 7efd3480c000-7efd34a0b000 ---p 00101000 08:15 2093086 /usr/lib64/libm-2.17.so 7efd34a0b000-7efd34a0c000 r--p 00100000 08:15 2093086 /usr/lib64/libm-2.17.so 7efd34a0c000-7efd34a0d000 rw-p 00101000 08:15 2093086 /usr/lib64/libm-2.17.so 7efd34a0d000-7efd34b81000 r-xp 00000000 00:126 76553123 /appl/gcc/8.3.0/lib64/libstdc++.so.6.0.25 7efd34b81000-7efd34d81000 ---p 00174000 00:126 76553123 /appl/gcc/8.3.0/lib64/libstdc++.so.6.0.25 7efd34d81000-7efd34d8b000 r--p 00174000 00:126 76553123 /appl/gcc/8.3.0/lib64/libstdc++.so.6.0.25 7efd34d8b000-7efd34d8d000 rw-p 0017e000 00:126 76553123 /appl/gcc/8.3.0/lib64/libstdc++.so.6.0.25 7efd34d8d000-7efd34d91000 rw-p 00000000 00:00 0 7efd34d91000-7efd34db3000 r-xp 00000000 08:15 2098360 /usr/lib64/ld-2.17.so 7efd34f81000-7efd34f86000 rw-p 00000000 00:00 0 7efd34fa9000-7efd34fb2000 rw-p 00000000 00:00 0 7efd34fb2000-7efd34fb3000 r--p 00021000 08:15 2098360 /usr/lib64/ld-2.17.so 7efd34fb3000-7efd34fb4000 rw-p 00022000 08:15 2098360 /usr/lib64/ld-2.17.so 7efd34fb4000-7efd34fb5000 rw-p 00000000 00:00 0 7fff71c29000-7fff71c58000 rw-p 00000000 00:00 0 [stack] 7fff71c97000-7fff71c99000 r-xp 00000000 00:00 0 [vdso] ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall] nvc-Fatal-/appl/nvhpc/2021_219/Linux_x86_64/21.9/compilers/bin/tools/cpp2 TERMINATED by signal 6 Arguments to /appl/nvhpc/2021_219/Linux_x86_64/21.9/compilers/bin/tools/cpp2 /appl/nvhpc/2021_219/Linux_x86_64/21.9/compilers/bin/tools/cpp2 ./ILL_H22_D1B.c -opt 2 -terse 1 -inform warn -x 119 0xa10000 -x 122 0x40 -x 123 0x1000 -x 127 4 -x 127 17 -x 19 0x400000 -x 28 0x40000 -x 120 0x10000000 -x 70 0x8000 -x 122 1 -x 125 0x20000 -quad -vect 56 -y 34 16 -x 34 0x8 -x 32 20185088 -y 19 8 -y 35 0 -x 42 0x30 -x 39 0x40 -x 199 10 -x 39 0x80 -x 59 4 -tp skylake -x 120 0x1000 -astype 0 -x 121 1 -fn ./ILL_H22_D1B.c -il /tmp/nvcH9mJXr4714a.il -x 123 0x80000000 -x 123 4 -x 119 0x20 -def __pgnu_vsn=40805 -x 70 0x40000000 -x 183 4 -x 121 0x800 -x 6 0x20000 -x 122 0x400000 -y 125 0x100000 -autoinl 10 -x 168 400 -x 174 128000 -x 14 0x200000 -x 14 0x400000 -autoinl 10 -x 168 400 -x 174 128000 -x 14 0x200000 -x 14 0x400000 -x 249 110 -x 120 0x200000 -x 70 0x40000000 -x 8 0x40000000 -x 164 0x800000 -x 85 0x2000 -x 85 0x4000 -x 34 0x40000000 -x 53 0x800000 -x 206 0x02 -x 68 0x1 -x 39 4 -x 56 0x10 -x 26 0x10 -x 26 1 -x 56 0x4000 -accel tesla -x 180 0x4000400 -x 121 0xc00 -x 186 0x80 -x 180 0x4000400 -x 121 0xc00 -x 194 0x40000 -x 163 0x1 -x 186 0x80000 -cudaver 11040 -x 176 0x100 -cudacap 70 -cudaroot /appl/nvhpc/2021_219/Linux_x86_64/21.9/cuda/11.4 -cudaroot /appl/nvhpc/2021_219/Linux_x86_64/21.9/cuda/11.4 -x 176 0x100 -cudacap 70 -x 189 0x8000 -y 163 0xc0000000 -x 201 0xf0000000 -x 189 0x10 -y 189 0x4000000 -cudaroot /appl/nvhpc/2021_219/Linux_x86_64/21.9/cuda/11.4 -x 187 0x40000 -x 187 0x8000000 -x 9 1 -x 42 0x14200000 -x 72 0x1 -x 136 0x11 -x 37 0x480000 -x 9 1 -x 42 0x14200000 -x 72 0x1 -x 136 0x11 -x 37 0x480000 -x 129 2 -quad -x 119 0x10000000 -x 129 0x40000000 -x 0 0x1000000 -x 2 0x100000 -x 0 0x2000000 -x 161 16384 -x 162 16384 -x 194 0x20000000 -x 198 0x100 -gnuvsn 40805 -x 69 0x200 -x 123 0x400 -cmdline '+nvc /tmp/nvcH9mJXr4714a.il -o ./ILL_H22_D1B.out -lm -fast -Mvect=simd -Mflushz -Mcache_align -Minfo=accel -acc=gpu -gpu=managed -DOPENACC' -asm /tmp/nvcX9mtTF-FTss.ll