INFO: No output directory specified (--dir) INFO: Using directory: "Test_box_20251212_140307" INFO: Regenerating c-file: Test_box.c WARNING: Full-path code-generator "/u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS" not found!! WARNING: Attempting replacement by "mcstas-antlr -I$MCSTAS" DEBUG: CMD: mcstas-antlr -I$MCSTAS -t -o ./Test_box.c Test_box.instr line 7988:6 no viable alternative at input 'print_1d_int_list(Volumes[volume_index]->geometry.mask_intersect_list,string_output)\n )' 2025-12-12 14:03:50.799 | ERROR | mccode_antlr.translators.c_listener:syntaxError:35 - Syntax error in parsing 7988,6 2025-12-12 14:03:50.801 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - if (verbal) sprintf(string_output,"Intersect check list for Volume %d",volume_index); 2025-12-12 14:03:50.801 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - if (verbal) print_1d_int_list(Volumes[volume_index]->geometry.intersect_check_list,string_output); 2025-12-12 14:03:50.801 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - if (verbal) sprintf(string_output,"Mask intersect check list for Volume %d",volume_index); 2025-12-12 14:03:50.801 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - if (verbal) print_1d_int_list(Volumes[volume_index]->geometry.mask_intersect_list,string_output) 2025-12-12 14:03:50.801 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - ); 2025-12-12 14:03:50.801 | ERROR | mccode_antlr.translators.c_listener:syntaxError:41 - ~~~~~~^ no viable alternative at input 'print_1d_int_list(Volumes[volume_index]->geometry.mask_intersect_list,string_output)\n )' 2025-12-12 14:03:50.801 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - } 2025-12-12 14:03:50.801 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - }; line 7988:6 mismatched input ')' expecting '}' 2025-12-12 14:03:50.817 | ERROR | mccode_antlr.translators.c_listener:syntaxError:35 - Syntax error in parsing 7988,6 2025-12-12 14:03:50.818 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - if (verbal) sprintf(string_output,"Intersect check list for Volume %d",volume_index); 2025-12-12 14:03:50.818 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - if (verbal) print_1d_int_list(Volumes[volume_index]->geometry.intersect_check_list,string_output); 2025-12-12 14:03:50.818 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - if (verbal) sprintf(string_output,"Mask intersect check list for Volume %d",volume_index); 2025-12-12 14:03:50.818 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - if (verbal) print_1d_int_list(Volumes[volume_index]->geometry.mask_intersect_list,string_output) 2025-12-12 14:03:50.818 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - ); 2025-12-12 14:03:50.818 | ERROR | mccode_antlr.translators.c_listener:syntaxError:41 - ~~~~~~^ mismatched input ')' expecting '}' 2025-12-12 14:03:50.818 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - } 2025-12-12 14:03:50.818 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - }; line 7990:0 mismatched input '}' expecting 2025-12-12 14:03:50.819 | ERROR | mccode_antlr.translators.c_listener:syntaxError:35 - Syntax error in parsing 7990,0 2025-12-12 14:03:50.819 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - if (verbal) sprintf(string_output,"Mask intersect check list for Volume %d",volume_index); 2025-12-12 14:03:50.819 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - if (verbal) print_1d_int_list(Volumes[volume_index]->geometry.mask_intersect_list,string_output) 2025-12-12 14:03:50.820 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - ); 2025-12-12 14:03:50.820 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - } 2025-12-12 14:03:50.820 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - }; 2025-12-12 14:03:50.820 | ERROR | mccode_antlr.translators.c_listener:syntaxError:41 - ^ mismatched input '}' expecting 2025-12-12 14:03:50.820 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - 2025-12-12 14:03:50.820 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - void generate_parents_lists(struct pointer_to_1d_int_list **parents_lists, struct Volume_struct **Volumes, int number_of_volumes, int verbal, int mask_mode) { No initialization present? ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component init -> GPU kernel from component test_incoherent -> GPU kernel from component test_material -> GPU kernel from component a1 -> GPU kernel from component source -> GPU kernel from component beam_center -> GPU kernel from component tube_point -> GPU kernel from component box_tube1 -> GPU kernel from component cylinder_tube1 -> GPU kernel from component cylinder_cross1 -> GPU kernel from component cylinder_cross2 -> GPU kernel from component box_totem1 -> GPU kernel from component box_totem2 -> GPU kernel from component box_totem3 Component test_sample is NOACC, CPUONLY=True ->FUNNEL mode enabled, SPLIT within buffer. -> GPU kernel from component m4pi_1 -> GPU kernel from component m4pi_2 -> GPU kernel from component arm_1 -> GPU kernel from component m4pi_both -> GPU kernel from component stop ----------------------------------------------------------- CFLAGS= -DFUNNEL DEBUG: CMD: mcstas-antlr -I$MCSTAS finished INFO: Recompiling: ./Test_box.out DEBUG: CMD: nvc -o ./Test_box.out ./Test_box.c -lm -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 -DUSE_MPI -lmpi -Wl,-rpath,/opt/nvidia/hpc_sdk/Linux_x86_64/25.9/comm_libs/12.9/openmpi4/openmpi-4.1.5/lib -L,/opt/nvidia/hpc_sdk/Linux_x86_64/25.9/comm_libs/12.9/openmpi4/openmpi-4.1.5/lib -I/opt/nvidia/hpc_sdk/Linux_x86_64/25.9/comm_libs/12.9/openmpi4/openmpi-4.1.5/include -fast -Minfo=accel -acc=gpu -gpu=mem:managed -DOPENACC -DFUNNEL "./Test_box.c", line 95: warning: Routine "mcgenstate" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_particle mcgenstate(void); ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./Test_box.c", line 97: warning: Routine "mcsetstate" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_particle mcsetstate(double x, double y, double z, double vx, double vy, double vz, double t, double sx, double sy, double sz, double p, int mcgravitation, void * mcMagnet, int allow_backprop); ^ "./Test_box.c", line 99: warning: Routine "mcgetstate" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_particle mcgetstate(_class_particle mcparticle, double * x, double * y, double * z, double * vx, double * vy, double * vz, double * t, double * sx, double * sy, double * sz, double * p); ^ "./Test_box.c", line 113: warning: Routine "particle_getvar" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double particle_getvar(_class_particle *p, char *name, int *suc); ^ "./Test_box.c", line 117: warning: Routine "str_comp" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int str_comp(char *str1, char *str2); ^ "./Test_box.c", line 147: warning: Routine "particle_getvar_void" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void* particle_getvar_void(_class_particle *p, char *name, int *suc); ^ "./Test_box.c", line 117: warning: Routine "str_comp" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int str_comp(char *str1, char *str2); ^ "./Test_box.c", line 181: warning: Routine "particle_setvar_void" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int particle_setvar_void(_class_particle *, char *, void*); ^ "./Test_box.c", line 208: warning: Routine "particle_setvar_void_array" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int particle_setvar_void_array(_class_particle *, char *, void*, int); ^ "./Test_box.c", line 221: warning: Routine "particle_restore" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void particle_restore(_class_particle *p, _class_particle *p0); ^ "./Test_box.c", line 238: warning: Routine "particle_getuservar_byid" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double particle_getuservar_byid(_class_particle *p, int id, int *suc){ ^ "./Test_box.c", line 250: warning: Routine "particle_uservar_init" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void particle_uservar_init(_class_particle *p){ ^ "./Test_box.c", line 319: warning: Routine "noprintf" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int noprintf(); ^ "./Test_box.c", line 321: warning: Routine "str_len" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] size_t str_len(const char *s); ^ "./Test_box.c", line 672: warning: Routine "mcget_ncount" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] unsigned long long int mcget_ncount(void); /* wrapper to set mcncount */ ^ "./Test_box.c", line 893: warning: Routine "_randnorm2" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double _randnorm2(randstate_t* state); ^ "./Test_box.c", line 910: warning: Routine "kiss_srandom" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] uint64_t *kiss_srandom(uint64_t state[7], uint64_t seed); ^ "./Test_box.c", line 912: warning: Routine "kiss_random" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] uint64_t kiss_random(uint64_t state[7]); ^ "./Test_box.c", line 920: warning: Routine "_rand01" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double _rand01(randstate_t* state); ^ "./Test_box.c", line 922: warning: Routine "_randpm1" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double _randpm1(randstate_t* state); ^ "./Test_box.c", line 924: warning: Routine "_rand0max" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double _rand0max(double max, randstate_t* state); ^ "./Test_box.c", line 926: warning: Routine "_randminmax" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double _randminmax(double min, double max, randstate_t* state); ^ "./Test_box.c", line 928: warning: Routine "_randtriangle" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double _randtriangle(randstate_t* state); ^ "./Test_box.c", line 1024: warning: Routine "coords_set" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] Coords coords_set(MCNUM x, MCNUM y, MCNUM z); ^ "./Test_box.c", line 1026: warning: Routine "coords_get" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] Coords coords_get(Coords a, MCNUM *x, MCNUM *y, MCNUM *z); ^ "./Test_box.c", line 1028: warning: Routine "coords_add" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] Coords coords_add(Coords a, Coords b); ^ "./Test_box.c", line 1030: warning: Routine "coords_sub" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] Coords coords_sub(Coords a, Coords b); ^ "./Test_box.c", line 1032: warning: Routine "coords_neg" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] Coords coords_neg(Coords a); ^ "./Test_box.c", line 1034: warning: Routine "coords_scale" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] Coords coords_scale(Coords b, double scale); ^ "./Test_box.c", line 1036: warning: Routine "coords_sp" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double coords_sp(Coords a, Coords b); ^ "./Test_box.c", line 1038: warning: Routine "coords_xp" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] Coords coords_xp(Coords b, Coords c); ^ "./Test_box.c", line 1040: warning: Routine "coords_len" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double coords_len(Coords a); ^ "./Test_box.c", line 4651: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ "./Test_box.c", line 5106: warning: variable "randstate" was declared but never referenced [declared_but_not_referenced] randstate_t randstate[7]; ^ "./Test_box.c", line 5025: warning: variable "newlen" was declared but never referenced [declared_but_not_referenced] long newlen = 0; ^ "./Test_box.c", line 6352: warning: variable "status" was set but never used [set_but_not_used] int status; ^ "./Test_box.c", line 8727: warning: variable "output" was declared but never referenced [declared_but_not_referenced] struct tagging_tree_node_struct *output; ^ "./Test_box.c", line 9283: warning: variable "permanent_list_length" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,permanent_list_length = 0; ^ "./Test_box.c", line 9310: warning: variable "geometry_output" was set but never used [set_but_not_used] int geometry_output; ^ "./Test_box.c", line 9835: warning: variable "x_vector" was declared but never referenced [declared_but_not_referenced] Coords x_vector = geometry->geometry_parameters.p_box_storage->x_vector; ^ "./Test_box.c", line 9836: warning: variable "y_vector" was declared but never referenced [declared_but_not_referenced] Coords y_vector = geometry->geometry_parameters.p_box_storage->y_vector; ^ "./Test_box.c", line 9837: warning: variable "z_vector" was declared but never referenced [declared_but_not_referenced] Coords z_vector = geometry->geometry_parameters.p_box_storage->z_vector; ^ "./Test_box.c", line 10059: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./Test_box.c", line 10121: warning: variable "rotated_nx" was declared but never referenced [declared_but_not_referenced] double rotated_nx, rotated_ny, rotated_nz; ^ "./Test_box.c", line 10121: warning: variable "rotated_ny" was declared but never referenced [declared_but_not_referenced] double rotated_nx, rotated_ny, rotated_nz; ^ "./Test_box.c", line 10121: warning: variable "rotated_nz" was declared but never referenced [declared_but_not_referenced] double rotated_nx, rotated_ny, rotated_nz; ^ "./Test_box.c", line 10342: warning: variable "output" was set but never used [set_but_not_used] int output = 0; ^ "./Test_box.c", line 10647: warning: variable "radius_top" was declared but never referenced [declared_but_not_referenced] double radius_top = geometry->geometry_parameters.p_cone_storage->cone_radius_top; ^ "./Test_box.c", line 10648: warning: variable "radius_bottom" was declared but never referenced [declared_but_not_referenced] double radius_bottom = geometry->geometry_parameters.p_cone_storage->cone_radius_bottom; ^ "./Test_box.c", line 10893: warning: statement is unreachable [code_is_unreachable] return 0; ^ "./Test_box.c", line 10684: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./Test_box.c", line 10686: warning: variable "normal_x" was declared but never referenced [declared_but_not_referenced] double *normal_x = geometry->geometry_parameters.p_mesh_storage->normal_x; ^ "./Test_box.c", line 10687: warning: variable "normal_y" was declared but never referenced [declared_but_not_referenced] double *normal_y = geometry->geometry_parameters.p_mesh_storage->normal_y; ^ "./Test_box.c", line 10688: warning: variable "normal_z" was declared but never referenced [declared_but_not_referenced] double *normal_z = geometry->geometry_parameters.p_mesh_storage->normal_z; ^ "./Test_box.c", line 10712: warning: variable "verbal" was declared but never referenced [declared_but_not_referenced] int verbal = 0; ^ "./Test_box.c", line 10721: warning: variable "tmp" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Test_box.c", line 10721: warning: variable "intersect_pos" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Test_box.c", line 10723: warning: variable "this_facet_t" was declared but never referenced [declared_but_not_referenced] double this_facet_t; ^ "./Test_box.c", line 10765: warning: variable "C1" was declared but never referenced [declared_but_not_referenced] int C1 = counter; ^ "./Test_box.c", line 10934: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i; ^ "./Test_box.c", line 10964: warning: variable "output" was set but never used [set_but_not_used] int output = 0; ^ "./Test_box.c", line 10983: warning: variable "tmp" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Test_box.c", line 10983: warning: variable "intersect_pos" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Test_box.c", line 10984: warning: variable "UNION_EPSILON" was declared but never referenced [declared_but_not_referenced] double UNION_EPSILON = 0.0000001; ^ "./Test_box.c", line 10985: warning: variable "this_facet_t" was declared but never referenced [declared_but_not_referenced] double this_facet_t; ^ "./Test_box.c", line 11222: warning: variable "rotated_coordinates" was declared but never referenced [declared_but_not_referenced] Coords rotated_coordinates; ^ "./Test_box.c", line 11388: warning: variable "y" was set but never used [set_but_not_used] double x, y, z, dt; ^ "./Test_box.c", line 11443: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Test_box.c", line 11520: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Test_box.c", line 11732: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Test_box.c", line 11830: warning: variable "solutions" was declared but never referenced [declared_but_not_referenced] int iterate,number_of_solutions,solutions,number_of_positions = 30; ^ "./Test_box.c", line 12021: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Test_box.c", line 12219: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./Test_box.c", line 12220: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./Test_box.c", line 12805: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./Test_box.c", line 12806: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./Test_box.c", line 13065: warning: variable "is_rectangle" was declared but never referenced [declared_but_not_referenced] int is_rectangle = geometry_box->geometry_parameters.p_box_storage->is_rectangle; ^ "./Test_box.c", line 13070: warning: variable "y_height2" was declared but never referenced [declared_but_not_referenced] double y_height2 = geometry_box->geometry_parameters.p_box_storage->y_height2; ^ "./Test_box.c", line 13071: warning: variable "x_vector" was declared but never referenced [declared_but_not_referenced] Coords x_vector = geometry_box->geometry_parameters.p_box_storage->x_vector; ^ "./Test_box.c", line 13072: warning: variable "y_vector" was declared but never referenced [declared_but_not_referenced] Coords y_vector = geometry_box->geometry_parameters.p_box_storage->y_vector; ^ "./Test_box.c", line 13079: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./Test_box.c", line 13080: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./Test_box.c", line 13203: warning: variable "square_offset" was declared but never referenced [declared_but_not_referenced] double square_offset; ^ "./Test_box.c", line 13497: warning: variable "debug_dist" was set but never used [set_but_not_used] double debug_dist; ^ "./Test_box.c", line 13563: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Test_box.c", line 13750: warning: variable "temp_pointer" was declared but never referenced [declared_but_not_referenced] int *temp_pointer; ^ "./Test_box.c", line 13753: warning: variable "mask_global_index" was declared but never referenced [declared_but_not_referenced] int this_mask_status,mask_index,mask_global_index; ^ "./Test_box.c", line 13910: warning: variable "temp_pointer" was declared but never referenced [declared_but_not_referenced] int *temp_pointer; ^ "./Test_box.c", line 13913: warning: variable "mask_global_index" was declared but never referenced [declared_but_not_referenced] int this_mask_status,mask_index,mask_global_index; ^ "./Test_box.c", line 14911: warning: variable "found_index" was declared but never referenced [declared_but_not_referenced] int mask_index,mask_mode,found_index,logic_ALL; ^ "./Test_box.c", line 14814: warning: variable "mask_index" was declared but never referenced [declared_but_not_referenced] int volume_index,mask_volume_number,mask_index; ^ "./Test_box.c", line 15133: warning: variable "mask_index" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,parent,mask_index,masked_volume_index,ANY_logic,true_parent_volume_number; ^ "./Test_box.c", line 15343: warning: variable "found_index" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,iterate2,found_index,I_index,I_volume; ^ "./Test_box.c", line 15504: warning: variable "string_output" was declared but never referenced [declared_but_not_referenced] char string_output[124]; ^ "./Test_box.c", line 15908: warning: variable "mask_index" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,mask_index; ^ "./Test_box.c", line 16969: warning: variable "choice" was declared but never referenced [declared_but_not_referenced] enum surface choice = surface->eSurface; ^ "./Test_box.c", line 17656: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_box.c", line 17702: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_box.c", line 17757: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_box.c", line 17809: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_box.c", line 19071: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_box.c", line 21318: warning: incompatible redefinition of macro "exit" (declared at line 651) [bad_macro_redef] #define exit(...) noprintf() ^ "./Test_box.c", line 21333: warning: Routine "class_Progress_bar_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_Progress_bar *class_Progress_bar_trace(_class_Progress_bar *_comp, _class_particle *_particle) { ^ "./Test_box.c", line 21423: warning: Routine "class_Source_div_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_Source_div *class_Source_div_trace(_class_Source_div *_comp, _class_particle *_particle) { ^ "./Test_box.c", line 21521: warning: Routine "class_Arm_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_Arm *class_Arm_trace(_class_Arm *_comp, _class_particle *_particle) { ^ "./Test_box.c", line 21555: warning: Routine "class_Union_master_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_Union_master *class_Union_master_trace(_class_Union_master *_comp, _class_particle *_particle) { ^ "./Test_box.c", line 22225: warning: variable "physics_output" was set but never used [set_but_not_used] int physics_output; ^ "./Test_box.c", line 23085: warning: variable "q_qc_quadratic_diff" was declared but never referenced [declared_but_not_referenced] double q_qc_quadratic_diff; ^ "./Test_box.c", line 23118: warning: variable "theta2" was set but never used [set_but_not_used] double theta1, theta2; ^ "./Test_box.c", line 21728: warning: variable "start_weight" was set but never used [set_but_not_used] double start_weight; ^ "./Test_box.c", line 23647: warning: Routine "class_PSD_monitor_4PI_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_PSD_monitor_4PI *class_PSD_monitor_4PI_trace(_class_PSD_monitor_4PI *_comp, _class_particle *_particle) { ^ "./Test_box.c", line 25964: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Test_box.c", line 25965: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Test_box.c", line 1528: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Test_box.c", line 2997: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 106, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 120, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 154, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 183, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 210, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 222, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 238, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 250, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1576, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1580, Generating acc routine seq Generating NVIDIA GPU code str_len: 1589, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4269, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4703, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4714, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4723, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4735, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4747, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4757, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4767, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4775, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4785, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4807, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4814, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4860, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4895, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4906, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4923, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4934, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4950, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4979, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4990, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4994, Generating acc routine seq Generating NVIDIA GPU code sort_absorb_last: 5029, Generating present(particles[:buffer_len],pbuffer[:buffer_len]) Generating implicit firstprivate(tidx) Generating NVIDIA GPU code 5036, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 5045, #pragma acc loop seq 5029, Generating implicit copy(lens[:]) [if not already present] 5036, Generating implicit firstprivate(ll,l) 5047, Accelerator restriction: induction variable live-out from loop: i 5048, Accelerator restriction: induction variable live-out from loop: i 5049, Accelerator restriction: induction variable live-out from loop: i 5050, Accelerator restriction: induction variable live-out from loop: i 5052, Accelerator restriction: induction variable live-out from loop: j 5053, Accelerator restriction: induction variable live-out from loop: j 5054, Accelerator restriction: induction variable live-out from loop: j 5055, Accelerator restriction: induction variable live-out from loop: j 5077, Generating present(pbuffer[:buffer_len]) Generating implicit firstprivate(tidx) Generating NVIDIA GPU code 5081, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 5084, #pragma acc loop seq 5077, Generating implicit copyin(lens[:]) [if not already present] Generating implicit copy(particles[:]) [if not already present] Generating implicit copyin(los[:]) [if not already present] 5084, Generating implicit firstprivate(l) 5101, Generating present(particles[:buffer_len]) Generating implicit firstprivate(accumlen,tidx,mult) Generating NVIDIA GPU code 5105, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 5112, #pragma acc loop seq 5101, Local memory used for targetbuffer,sourcebuffer mccoordschange: 5171, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5202, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5219, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5318, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5402, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5468, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5545, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5817, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5829, Generating acc routine seq Generating NVIDIA GPU code _hash: 5861, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5902, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5913, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5918, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5926, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5934, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5941, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6619, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6659, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6719, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6736, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6851, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6906, Generating acc routine seq Generating NVIDIA GPU code distance_between: 7696, Generating implicit acc routine seq Generating implicit acc routine seq Generating NVIDIA GPU code length_of_3vector: 7704, Generating implicit acc routine seq Generating implicit acc routine seq Generating NVIDIA GPU code length_of_position_vector: 7708, Generating implicit acc routine seq Generating implicit acc routine seq Generating NVIDIA GPU code coords_scalar_mult: 7719, Generating implicit acc routine seq Generating implicit acc routine seq Generating NVIDIA GPU code on_int_list: 7734, Generating implicit acc routine seq Generating implicit acc routine seq Generating NVIDIA GPU code print_1d_int_list: 8073, Generating implicit acc routine seq Generating implicit acc routine seq Generating NVIDIA GPU code update_current_mask_intersect_status: 8571, Generating implicit acc routine seq Generating implicit acc routine seq Generating NVIDIA GPU code make_tagging_tree_node: 8651, Generating implicit acc routine seq Generating implicit acc routine seq Generating NVIDIA GPU code NVC++-S-1058-Call to variadic function not supported - fprintf (./Test_box.c: 8678) NVC++/x86-64 Linux 25.9-0: compilation completed with severe errors INFO: call to nvc failed with Command 'nvc -o ./Test_box.out ./Test_box.c -lm -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 -DUSE_MPI -lmpi -Wl,-rpath,/opt/nvidia/hpc_sdk/Linux_x86_64/25.9/comm_libs/12.9/openmpi4/openmpi-4.1.5/lib -L,/opt/nvidia/hpc_sdk/Linux_x86_64/25.9/comm_libs/12.9/openmpi4/openmpi-4.1.5/lib -I/opt/nvidia/hpc_sdk/Linux_x86_64/25.9/comm_libs/12.9/openmpi4/openmpi-4.1.5/include -fast -Minfo=accel -acc=gpu -gpu=mem:managed -DOPENACC -DFUNNEL' returned non-zero exit status 2. ERROR: Compilation failed for ./Test_box.c using compiler nvc