INFO: No output directory specified (--dir) INFO: Using directory: "Supermirror_thin_substrate_20241222_104512" INFO: Regenerating c-file: Supermirror_thin_substrate.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS -t -o ./Supermirror_thin_substrate.c Supermirror_thin_substrate.instr 2024-12-22 10:45:31.805 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :SupermirrorFlat(0):supermirror-lib :supermirror-lib(0):polyhedron 2024-12-22 10:45:31.805 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to polyhedron supermirror-lib 2024-12-22 10:45:37.147 | INFO | mccode_antlr.translators.c:include_source:331 - polyhedron.c requested plane but is has not been included yet! The instrument has 22 parameters ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component source Component supermirror1 is NOACC, CPUONLY=False ->FUNNEL mode enabled, SPLIT within buffer. -> GPU kernel from component supermirror1 -> GPU kernel from component Move -> GPU kernel from component PSD_after_supermirror_zoom_in -> GPU kernel from component PSD_after_supermirror -> GPU kernel from component PSD_after_supermirror_zoom_out -> GPU kernel from component spectrum -> GPU kernel from component Pol_lambda -> GPU kernel from component Polmap_average -> GPU kernel from component Polmap_zoom_in -> GPU kernel from component Polmap -> GPU kernel from component Polmap_zoom_out ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS finished INFO: Recompiling: ./Supermirror_thin_substrate.out DEBUG: CMD: nvc -o ./Supermirror_thin_substrate.out ./Supermirror_thin_substrate.c -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined -Wl,-rpath,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -Wl,-rpath-link,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -L/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -mtune=haswell -fPIC -O2 -isystem /u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./Supermirror_thin_substrate.c", line 4490: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./Supermirror_thin_substrate.c", line 8024: warning: missing return statement at end of non-void function "line_plane_intersect" [implicit_return_from_non_void_function] } ^ "./Supermirror_thin_substrate.c", line 8216: warning: variable "len" was declared but never referenced [declared_but_not_referenced] int i,j,n,*m, skip; double dd,len; Coords *vp, dp1, dp2, dp1_cross_dp2, dp1_dot_dp2; ^ "./Supermirror_thin_substrate.c", line 8216: warning: variable "dp1_cross_dp2" was declared but never referenced [declared_but_not_referenced] int i,j,n,*m, skip; double dd,len; Coords *vp, dp1, dp2, dp1_cross_dp2, dp1_dot_dp2; ^ "./Supermirror_thin_substrate.c", line 8216: warning: variable "dp1_dot_dp2" was declared but never referenced [declared_but_not_referenced] int i,j,n,*m, skip; double dd,len; Coords *vp, dp1, dp2, dp1_cross_dp2, dp1_dot_dp2; ^ "./Supermirror_thin_substrate.c", line 8442: warning: variable "d1" was declared but never referenced [declared_but_not_referenced] double d1,d2,d3,denom; ^ "./Supermirror_thin_substrate.c", line 8442: warning: variable "d2" was declared but never referenced [declared_but_not_referenced] double d1,d2,d3,denom; ^ "./Supermirror_thin_substrate.c", line 8442: warning: variable "d3" was declared but never referenced [declared_but_not_referenced] double d1,d2,d3,denom; ^ "./Supermirror_thin_substrate.c", line 8442: warning: variable "denom" was declared but never referenced [declared_but_not_referenced] double d1,d2,d3,denom; ^ "./Supermirror_thin_substrate.c", line 8604: warning: variable "cosA" was declared but never referenced [declared_but_not_referenced] double l1,l2,cosA; ^ "./Supermirror_thin_substrate.c", line 8739: warning: variable "dtime" was declared but never referenced [declared_but_not_referenced] double dtime[a->nf]; ^ "./Supermirror_thin_substrate.c", line 8740: warning: variable "dpoint" was declared but never referenced [declared_but_not_referenced] Coords dpoint[a->nf]; ^ "./Supermirror_thin_substrate.c", line 8741: warning: variable "time" was declared but never referenced [declared_but_not_referenced] double time[a->nf]; ^ "./Supermirror_thin_substrate.c", line 8742: warning: variable "point" was declared but never referenced [declared_but_not_referenced] Coords point[a->nf]; ^ "./Supermirror_thin_substrate.c", line 8743: warning: variable "plane_number" was declared but never referenced [declared_but_not_referenced] int plane_number[a->nf]; ^ "./Supermirror_thin_substrate.c", line 8744: warning: variable "type" was declared but never referenced [declared_but_not_referenced] int type[a->nf]; ^ "./Supermirror_thin_substrate.c", line 10440: warning: missing return statement at end of non-void function "add_neutron_record" [implicit_return_from_non_void_function] } ^ "./Supermirror_thin_substrate.c", line 10400: warning: variable "j" was declared but never referenced [declared_but_not_referenced] int i,j,i_nr; ^ "./Supermirror_thin_substrate.c", line 10964: warning: variable "dL" was declared but never referenced [declared_but_not_referenced] double dt, dL; ^ "./Supermirror_thin_substrate.c", line 10966: warning: variable "abs" was declared but never referenced [declared_but_not_referenced] AbsorberParameters*abs = &(((sm->mat).abs)[plane]); ^ "./Supermirror_thin_substrate.c", line 11510: warning: variable "fn" was declared but never referenced [declared_but_not_referenced] Coords fn=state->fn; ^ "./Supermirror_thin_substrate.c", line 11511: warning: variable "v" was declared but never referenced [declared_but_not_referenced] Coords v=state->v; ^ "./Supermirror_thin_substrate.c", line 11704: warning: statement is unreachable [code_is_unreachable] break; ^ "./Supermirror_thin_substrate.c", line 11727: warning: statement is unreachable [code_is_unreachable] break; ^ "./Supermirror_thin_substrate.c", line 11735: warning: statement is unreachable [code_is_unreachable] break; ^ "./Supermirror_thin_substrate.c", line 11763: warning: statement is unreachable [code_is_unreachable] break; ^ "./Supermirror_thin_substrate.c", line 11789: warning: statement is unreachable [code_is_unreachable] break; ^ "./Supermirror_thin_substrate.c", line 11795: warning: statement is unreachable [code_is_unreachable] break; ^ "./Supermirror_thin_substrate.c", line 11831: warning: statement is unreachable [code_is_unreachable] break; ^ "./Supermirror_thin_substrate.c", line 11850: warning: statement is unreachable [code_is_unreachable] break; ^ "./Supermirror_thin_substrate.c", line 11859: warning: statement is unreachable [code_is_unreachable] break; ^ "./Supermirror_thin_substrate.c", line 11869: warning: statement is unreachable [code_is_unreachable] break; ^ "./Supermirror_thin_substrate.c", line 11879: warning: statement is unreachable [code_is_unreachable] break; ^ "./Supermirror_thin_substrate.c", line 11896: warning: statement is unreachable [code_is_unreachable] break; ^ "./Supermirror_thin_substrate.c", line 11905: warning: statement is unreachable [code_is_unreachable] break; ^ "./Supermirror_thin_substrate.c", line 11938: warning: statement is unreachable [code_is_unreachable] break; ^ "./Supermirror_thin_substrate.c", line 11945: warning: statement is unreachable [code_is_unreachable] break; ^ "./Supermirror_thin_substrate.c", line 11970: warning: statement is unreachable [code_is_unreachable] break; ^ "./Supermirror_thin_substrate.c", line 11993: warning: statement is unreachable [code_is_unreachable] break; ^ "./Supermirror_thin_substrate.c", line 12001: warning: statement is unreachable [code_is_unreachable] break; ^ "./Supermirror_thin_substrate.c", line 12049: warning: statement is unreachable [code_is_unreachable] break; ^ "./Supermirror_thin_substrate.c", line 12060: warning: statement is unreachable [code_is_unreachable] break; ^ "./Supermirror_thin_substrate.c", line 12079: warning: statement is unreachable [code_is_unreachable] break; ^ "./Supermirror_thin_substrate.c", line 12087: warning: statement is unreachable [code_is_unreachable] break; ^ "./Supermirror_thin_substrate.c", line 12110: warning: statement is unreachable [code_is_unreachable] break; ^ "./Supermirror_thin_substrate.c", line 12117: warning: statement is unreachable [code_is_unreachable] break; ^ "./Supermirror_thin_substrate.c", line 12125: warning: statement is unreachable [code_is_unreachable] break; ^ "./Supermirror_thin_substrate.c", line 12134: warning: statement is unreachable [code_is_unreachable] break; ^ "./Supermirror_thin_substrate.c", line 12146: warning: statement is unreachable [code_is_unreachable] break; ^ "./Supermirror_thin_substrate.c", line 12157: warning: statement is unreachable [code_is_unreachable] break; ^ "./Supermirror_thin_substrate.c", line 12274: warning: variable "event" was declared but never referenced [declared_but_not_referenced] char location[2][CHAR_BUF_LENGTH], event[CHAR_BUF_LENGTH]; ^ "./Supermirror_thin_substrate.c", line 12203: warning: variable "m" was declared but never referenced [declared_but_not_referenced] int sm_ir_n, m, sm_ir_r; ^ "./Supermirror_thin_substrate.c", line 12696: warning: variable "i" is used before its value is set [used_before_set] MPI_MASTER ( ^ "./Supermirror_thin_substrate.c", line 12847: warning: statement is unreachable [code_is_unreachable] return sm_Error; break; //neutron skips module, should have been caught in function IntersectStdSupermirrorFlat(...) ^ "./Supermirror_thin_substrate.c", line 12859: warning: statement is unreachable [code_is_unreachable] return sm_Exited; break; //scattered ^ "./Supermirror_thin_substrate.c", line 12866: warning: statement is unreachable [code_is_unreachable] return sm_Absorbed; break; //absorbed ^ "./Supermirror_thin_substrate.c", line 12871: warning: statement is unreachable [code_is_unreachable] return sm_Error; break; //something's wrong ^ "./Supermirror_thin_substrate.c", line 12875: warning: statement is unreachable [code_is_unreachable] return sm_Error; break; //something's wrong ^ "./Supermirror_thin_substrate.c", line 12901: warning: statement is unreachable [code_is_unreachable] return sm_Exited; break; //scattered ^ "./Supermirror_thin_substrate.c", line 12908: warning: statement is unreachable [code_is_unreachable] return sm_Absorbed; break; //absorbed ^ "./Supermirror_thin_substrate.c", line 12913: warning: statement is unreachable [code_is_unreachable] return sm_Error; break; //something's wrong ^ "./Supermirror_thin_substrate.c", line 12918: warning: statement is unreachable [code_is_unreachable] return sm_Error; break; //something's wrong ^ "./Supermirror_thin_substrate.c", line 12940: warning: statement is unreachable [code_is_unreachable] return sm_Exited; break; //scattered ^ "./Supermirror_thin_substrate.c", line 12947: warning: statement is unreachable [code_is_unreachable] return sm_Absorbed; break; //absorbed ^ "./Supermirror_thin_substrate.c", line 12952: warning: statement is unreachable [code_is_unreachable] return sm_Error; break; //something's wrong ^ "./Supermirror_thin_substrate.c", line 12957: warning: statement is unreachable [code_is_unreachable] return sm_Error; break; //something's wrong ^ "./Supermirror_thin_substrate.c", line 12973: warning: statement is unreachable [code_is_unreachable] break; //something's wrong ^ "./Supermirror_thin_substrate.c", line 12979: warning: statement is unreachable [code_is_unreachable] break; //something's wrong ^ "./Supermirror_thin_substrate.c", line 12998: warning: statement is unreachable [code_is_unreachable] return sm_Exited; break; //scattered ^ "./Supermirror_thin_substrate.c", line 13005: warning: statement is unreachable [code_is_unreachable] return sm_Absorbed; break; //absorbed ^ "./Supermirror_thin_substrate.c", line 13010: warning: statement is unreachable [code_is_unreachable] return sm_Error; break; //internal reflection, something's wrong ^ "./Supermirror_thin_substrate.c", line 13015: warning: statement is unreachable [code_is_unreachable] return sm_Error; break; //something's wrong ^ "./Supermirror_thin_substrate.c", line 13020: warning: statement is unreachable [code_is_unreachable] return sm_Error; break; //something's wrong ^ "./Supermirror_thin_substrate.c", line 13107: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Supermirror_thin_substrate.c", line 14623: warning: statement is unreachable [code_is_unreachable] break; ^ "./Supermirror_thin_substrate.c", line 16882: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Supermirror_thin_substrate.c", line 16883: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Supermirror_thin_substrate.c", line 1498: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Supermirror_thin_substrate.c", line 2901: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 89, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 103, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 136, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 161, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 184, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 196, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 205, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 216, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1545, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1549, Generating acc routine seq Generating NVIDIA GPU code str_len: 1558, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4111, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4542, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4553, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4562, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4574, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4586, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4596, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4606, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4614, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4624, Generating acc routine seq Generating NVIDIA GPU code coords_mirror: 4629, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code coords_print: 4646, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4653, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4699, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4734, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4745, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4762, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4773, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4789, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4818, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4829, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4833, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5010, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5041, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5058, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5157, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5241, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5307, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5384, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5656, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5666, Generating acc routine seq Generating NVIDIA GPU code _hash: 5692, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5733, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5744, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5749, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5757, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5765, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5772, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6429, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6525, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6542, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6657, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6712, Generating acc routine seq Generating NVIDIA GPU code point_to_plane_signed_distance: 7982, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code line_plane_intersect: 7999, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code check_point_with_respect_to_polyhedron: 8201, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code line_polyhedron_intersect: 8840, Accelerator restriction: unsupported statement type: opcode=DEALLOC supermirror_flat_inc_prefix: 9419, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code supermirror_flat_dec_prefix: 9425, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code NVC++-S-1058-Call to variadic function not supported - sprintf (./Supermirror_thin_substrate.c: 9448) NVC++/x86-64 Linux 24.7-0: compilation completed with severe errors INFO: call to nvc failed with Command 'nvc -o ./Supermirror_thin_substrate.out ./Supermirror_thin_substrate.c -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined -Wl,-rpath,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -Wl,-rpath-link,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -L/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -mtune=haswell -fPIC -O2 -isystem /u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC' returned non-zero exit status 2. Traceback (most recent call last): File "/u/data/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mcrun.py", line 595, in main() File "/u/data/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mcrun.py", line 503, in main mcstas.prepare(options) File "/u/data/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mccode.py", line 294, in prepare Process(lexer.quote(options.cc)).run(args) File "/u/data/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mccode.py", line 77, in run raise err File "/u/data/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mccode.py", line 73, in run proc = run(command, shell=True, check=True, text=True, capture_output=pipe) File "/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.10/subprocess.py", line 526, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command 'nvc -o ./Supermirror_thin_substrate.out ./Supermirror_thin_substrate.c -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined -Wl,-rpath,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -Wl,-rpath-link,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -L/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -mtune=haswell -fPIC -O2 -isystem /u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC' returned non-zero exit status 2.