INFO: No output directory specified (--dir) INFO: Using directory: "External_component_20251212_143528" INFO: Regenerating c-file: External_component.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 ./External_component.c External_component.instr 2025-12-12 14:36:17.034 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Powder_process(0):read_table-lib :Powder_process(1):interoff-lib :PowderN(0):read_table-lib :PowderN(1):interoff-lib :Monitor_nD(0):monitor_nd-lib :Monitor_nD(1):read_table-lib :Monitor_nD(2):interoff-lib 2025-12-12 14:36:17.034 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib interoff-lib monitor_nd-lib 2025-12-12 14:36:17.034 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib 2025-12-12 14:36:17.034 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib 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:36:27.695 | ERROR | mccode_antlr.translators.c_listener:syntaxError:35 - Syntax error in parsing 7988,6 2025-12-12 14:36:27.697 | 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:36:27.697 | 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:36:27.697 | 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:36:27.697 | 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:36:27.697 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - ); 2025-12-12 14:36:27.697 | 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:36:27.697 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - } 2025-12-12 14:36:27.697 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - }; line 7988:6 mismatched input ')' expecting '}' 2025-12-12 14:36:27.712 | ERROR | mccode_antlr.translators.c_listener:syntaxError:35 - Syntax error in parsing 7988,6 2025-12-12 14:36:27.713 | 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:36:27.713 | 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:36:27.713 | 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:36:27.713 | 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:36:27.713 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - ); 2025-12-12 14:36:27.713 | ERROR | mccode_antlr.translators.c_listener:syntaxError:41 - ~~~~~~^ mismatched input ')' expecting '}' 2025-12-12 14:36:27.714 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - } 2025-12-12 14:36:27.714 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - }; line 7990:0 mismatched input '}' expecting 2025-12-12 14:36:27.714 | ERROR | mccode_antlr.translators.c_listener:syntaxError:35 - Syntax error in parsing 7990,0 2025-12-12 14:36:27.715 | 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:36:27.715 | 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:36:27.715 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - ); 2025-12-12 14:36:27.715 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - } 2025-12-12 14:36:27.715 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - }; 2025-12-12 14:36:27.715 | ERROR | mccode_antlr.translators.c_listener:syntaxError:41 - ^ mismatched input '}' expecting 2025-12-12 14:36:27.715 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - 2025-12-12 14:36:27.715 | 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 Al_incoherent -> GPU kernel from component Al_powder -> GPU kernel from component Al -> GPU kernel from component a1 -> GPU kernel from component source -> GPU kernel from component beam_center -> GPU kernel from component drum_center -> GPU kernel from component cryostat_mountin_plate -> GPU kernel from component cryostat_drum_walls -> GPU kernel from component cryostat_drum_vacuum -> GPU kernel from component outer_cryostat_wall -> GPU kernel from component outer_cryostat_vacuum -> GPU kernel from component inner_cryostat_wall -> GPU kernel from component inner_cryostat_vacuum -> GPU kernel from component sample_stick_walls -> GPU kernel from component sample_stick_vacuum -> GPU kernel from component sample_rod_bottom -> GPU kernel from component sample_rod -> GPU kernel from component sample_rod_collar_1 -> GPU kernel from component sample_rod_collar_2 -> GPU kernel from component sample_rod_collar_3 -> GPU kernel from component sample_rod_collar_4 -> GPU kernel from component sample_rod_collar_1_vacuum -> GPU kernel from component sample_rod_collar_2_vacuum -> GPU kernel from component sample_rod_collar_3_vacuum -> GPU kernel from component sample_rod_collar_4_vacuum -> GPU kernel from component sample_exit Component test_sample is NOACC, CPUONLY=True ->FUNNEL mode enabled, SPLIT within buffer. Component test_sample_after is NOACC, CPUONLY=True ->FUNNEL mode enabled, SPLIT within buffer. -> GPU kernel from component m4pi_before_and_after -> GPU kernel from component Banana_monitor -> GPU kernel from component Banana_monitor_powderN -> GPU kernel from component detector -> GPU kernel from component stop ----------------------------------------------------------- CFLAGS= -DFUNNEL DEBUG: CMD: mcstas-antlr -I$MCSTAS finished INFO: Recompiling: ./External_component.out DEBUG: CMD: nvc -o ./External_component.out ./External_component.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 "./External_component.c", line 96: 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 " "./External_component.c", line 98: 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); ^ "./External_component.c", line 100: 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); ^ "./External_component.c", line 114: 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); ^ "./External_component.c", line 118: 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); ^ "./External_component.c", line 149: 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); ^ "./External_component.c", line 118: 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); ^ "./External_component.c", line 184: 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*); ^ "./External_component.c", line 212: 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); ^ "./External_component.c", line 225: 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); ^ "./External_component.c", line 242: 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){ ^ "./External_component.c", line 255: 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){ ^ "./External_component.c", line 325: warning: Routine "noprintf" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int noprintf(); ^ "./External_component.c", line 327: 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); ^ "./External_component.c", line 678: 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 */ ^ "./External_component.c", line 899: 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); ^ "./External_component.c", line 916: 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); ^ "./External_component.c", line 918: 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]); ^ "./External_component.c", line 926: 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); ^ "./External_component.c", line 928: 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); ^ "./External_component.c", line 930: 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); ^ "./External_component.c", line 932: 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); ^ "./External_component.c", line 934: 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); ^ "./External_component.c", line 1030: 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); ^ "./External_component.c", line 1032: 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); ^ "./External_component.c", line 1034: 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); ^ "./External_component.c", line 1036: 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); ^ "./External_component.c", line 1038: 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); ^ "./External_component.c", line 1040: 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); ^ "./External_component.c", line 1042: 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); ^ "./External_component.c", line 1044: 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); ^ "./External_component.c", line 1046: 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); ^ "./External_component.c", line 4657: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ "./External_component.c", line 5112: warning: variable "randstate" was declared but never referenced [declared_but_not_referenced] randstate_t randstate[7]; ^ "./External_component.c", line 5031: warning: variable "newlen" was declared but never referenced [declared_but_not_referenced] long newlen = 0; ^ "./External_component.c", line 6358: warning: variable "status" was set but never used [set_but_not_used] int status; ^ "./External_component.c", line 7079: warning: Routine "Table_Index" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double Table_Index(t_Table Table, long i, long j); /* get indexed value */ ^ "./External_component.c", line 7081: warning: Routine "Table_Value" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double Table_Value(t_Table Table, double X, long j); /* search X in 1st column and return interpolated value in j-column */ ^ "./External_component.c", line 7088: warning: Routine "Table_Value2d" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double Table_Value2d(t_Table Table, double X, double Y); /* same as Table_Index with non-integer indices and 2d interpolation */ ^ "./External_component.c", line 7108: warning: Routine "Table_Interp1d" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double Table_Interp1d(double x, double x1, double y1, double x2, double y2); ^ "./External_component.c", line 7110: warning: Routine "Table_Interp1d_nearest" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double Table_Interp1d_nearest(double x, double x1, double y1, double x2, double y2); ^ "./External_component.c", line 7112: warning: Routine "Table_Interp2d" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double Table_Interp2d(double x, double y, double x1, double y1, double x2, double y2, ^ "./External_component.c", line 7237: warning: Routine "off_intersect_all" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int off_intersect_all(double* t0, double* t3, ^ "./External_component.c", line 7260: warning: Routine "off_intersect" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int off_intersect(double* t0, double* t3, ^ "./External_component.c", line 7281: warning: Routine "off_x_intersect" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int off_x_intersect(double *l0,double *l3, ^ "./External_component.c", line 7517: warning: Routine "Monitor_nD_Trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int Monitor_nD_Trace(MonitornD_Defines_type *, MonitornD_Variables_type *, _class_particle* _particle); ^ "./External_component.c", line 9296: warning: variable "output" was declared but never referenced [declared_but_not_referenced] struct tagging_tree_node_struct *output; ^ "./External_component.c", line 9852: warning: variable "permanent_list_length" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,permanent_list_length = 0; ^ "./External_component.c", line 9879: warning: variable "geometry_output" was set but never used [set_but_not_used] int geometry_output; ^ "./External_component.c", line 10404: warning: variable "x_vector" was declared but never referenced [declared_but_not_referenced] Coords x_vector = geometry->geometry_parameters.p_box_storage->x_vector; ^ "./External_component.c", line 10405: warning: variable "y_vector" was declared but never referenced [declared_but_not_referenced] Coords y_vector = geometry->geometry_parameters.p_box_storage->y_vector; ^ "./External_component.c", line 10406: warning: variable "z_vector" was declared but never referenced [declared_but_not_referenced] Coords z_vector = geometry->geometry_parameters.p_box_storage->z_vector; ^ "./External_component.c", line 10628: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./External_component.c", line 10690: warning: variable "rotated_nx" was declared but never referenced [declared_but_not_referenced] double rotated_nx, rotated_ny, rotated_nz; ^ "./External_component.c", line 10690: warning: variable "rotated_ny" was declared but never referenced [declared_but_not_referenced] double rotated_nx, rotated_ny, rotated_nz; ^ "./External_component.c", line 10690: warning: variable "rotated_nz" was declared but never referenced [declared_but_not_referenced] double rotated_nx, rotated_ny, rotated_nz; ^ "./External_component.c", line 10911: warning: variable "output" was set but never used [set_but_not_used] int output = 0; ^ "./External_component.c", line 11216: 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; ^ "./External_component.c", line 11217: 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; ^ "./External_component.c", line 11462: warning: statement is unreachable [code_is_unreachable] return 0; ^ "./External_component.c", line 11253: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./External_component.c", line 11255: warning: variable "normal_x" was declared but never referenced [declared_but_not_referenced] double *normal_x = geometry->geometry_parameters.p_mesh_storage->normal_x; ^ "./External_component.c", line 11256: warning: variable "normal_y" was declared but never referenced [declared_but_not_referenced] double *normal_y = geometry->geometry_parameters.p_mesh_storage->normal_y; ^ "./External_component.c", line 11257: warning: variable "normal_z" was declared but never referenced [declared_but_not_referenced] double *normal_z = geometry->geometry_parameters.p_mesh_storage->normal_z; ^ "./External_component.c", line 11281: warning: variable "verbal" was declared but never referenced [declared_but_not_referenced] int verbal = 0; ^ "./External_component.c", line 11290: warning: variable "tmp" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./External_component.c", line 11290: warning: variable "intersect_pos" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./External_component.c", line 11292: warning: variable "this_facet_t" was declared but never referenced [declared_but_not_referenced] double this_facet_t; ^ "./External_component.c", line 11334: warning: variable "C1" was declared but never referenced [declared_but_not_referenced] int C1 = counter; ^ "./External_component.c", line 11503: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i; ^ "./External_component.c", line 11533: warning: variable "output" was set but never used [set_but_not_used] int output = 0; ^ "./External_component.c", line 11552: warning: variable "tmp" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./External_component.c", line 11552: warning: variable "intersect_pos" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./External_component.c", line 11553: warning: variable "UNION_EPSILON" was declared but never referenced [declared_but_not_referenced] double UNION_EPSILON = 0.0000001; ^ "./External_component.c", line 11554: warning: variable "this_facet_t" was declared but never referenced [declared_but_not_referenced] double this_facet_t; ^ "./External_component.c", line 11791: warning: variable "rotated_coordinates" was declared but never referenced [declared_but_not_referenced] Coords rotated_coordinates; ^ "./External_component.c", line 11957: warning: variable "y" was set but never used [set_but_not_used] double x, y, z, dt; ^ "./External_component.c", line 12012: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./External_component.c", line 12089: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./External_component.c", line 12301: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./External_component.c", line 12399: warning: variable "solutions" was declared but never referenced [declared_but_not_referenced] int iterate,number_of_solutions,solutions,number_of_positions = 30; ^ "./External_component.c", line 12590: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./External_component.c", line 12788: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./External_component.c", line 12789: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./External_component.c", line 13374: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./External_component.c", line 13375: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./External_component.c", line 13634: 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; ^ "./External_component.c", line 13639: 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; ^ "./External_component.c", line 13640: 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; ^ "./External_component.c", line 13641: 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; ^ "./External_component.c", line 13648: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./External_component.c", line 13649: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./External_component.c", line 13772: warning: variable "square_offset" was declared but never referenced [declared_but_not_referenced] double square_offset; ^ "./External_component.c", line 14066: warning: variable "debug_dist" was set but never used [set_but_not_used] double debug_dist; ^ "./External_component.c", line 14132: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./External_component.c", line 14319: warning: variable "temp_pointer" was declared but never referenced [declared_but_not_referenced] int *temp_pointer; ^ "./External_component.c", line 14322: warning: variable "mask_global_index" was declared but never referenced [declared_but_not_referenced] int this_mask_status,mask_index,mask_global_index; ^ "./External_component.c", line 14479: warning: variable "temp_pointer" was declared but never referenced [declared_but_not_referenced] int *temp_pointer; ^ "./External_component.c", line 14482: warning: variable "mask_global_index" was declared but never referenced [declared_but_not_referenced] int this_mask_status,mask_index,mask_global_index; ^ "./External_component.c", line 15480: warning: variable "found_index" was declared but never referenced [declared_but_not_referenced] int mask_index,mask_mode,found_index,logic_ALL; ^ "./External_component.c", line 15383: warning: variable "mask_index" was declared but never referenced [declared_but_not_referenced] int volume_index,mask_volume_number,mask_index; ^ "./External_component.c", line 15702: 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; ^ "./External_component.c", line 15912: warning: variable "found_index" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,iterate2,found_index,I_index,I_volume; ^ "./External_component.c", line 16073: warning: variable "string_output" was declared but never referenced [declared_but_not_referenced] char string_output[124]; ^ "./External_component.c", line 16477: warning: variable "mask_index" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,mask_index; ^ "./External_component.c", line 17434: warning: variable "line_v" was declared but never referenced [declared_but_not_referenced] int line_v,line0,line; ^ "./External_component.c", line 18422: warning: variable "choice" was declared but never referenced [declared_but_not_referenced] enum surface choice = surface->eSurface; ^ "./External_component.c", line 20701: warning: Routine "off_F" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double off_F(double x, double y,double z,double A,double B,double C,double D) { ^ "./External_component.c", line 20706: warning: Routine "off_sign" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] char off_sign(double a) { ^ "./External_component.c", line 20715: warning: Routine "off_normal" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void off_normal(Coords* n, polygon p) ^ "./External_component.c", line 20741: warning: Routine "off_pnpoly" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int off_pnpoly(polygon p, Coords v) ^ "./External_component.c", line 20744: warning: variable "minx" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./External_component.c", line 20744: warning: variable "maxx" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./External_component.c", line 20744: warning: variable "miny" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./External_component.c", line 20744: warning: variable "maxy" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./External_component.c", line 20744: warning: variable "minz" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./External_component.c", line 20744: warning: variable "maxz" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./External_component.c", line 20804: warning: Routine "off_intersectPoly" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int off_intersectPoly(intersection *inter, Coords a, Coords b, polygon p) ^ "./External_component.c", line 20934: warning: Routine "off_init_planes" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void off_init_planes(Coords a, Coords b, ^ "./External_component.c", line 20978: warning: Routine "off_clip_3D_mod" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int off_clip_3D_mod(intersection* t, Coords a, Coords b, ^ "./External_component.c", line 21099: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./External_component.c", line 21211: warning: Routine "off_compare" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int off_compare (void const *a, void const *b) ^ "./External_component.c", line 21223: warning: Routine "off_cleanDouble" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int off_cleanDouble(intersection* t, int* t_size) ^ "./External_component.c", line 21258: warning: Routine "off_cleanInOut" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int off_cleanInOut(intersection* t, int* t_size) ^ "./External_component.c", line 21514: warning: Routine "Min_int" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int Min_int(int x, int y) { ^ "./External_component.c", line 21520: warning: Routine "merge" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void merge(intersection *arr, int l, int m, int r) ^ "./External_component.c", line 24042: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./External_component.c", line 24042: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./External_component.c", line 24069: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./External_component.c", line 24069: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./External_component.c", line 24159: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./External_component.c", line 24205: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./External_component.c", line 24276: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./External_component.c", line 24338: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./External_component.c", line 24390: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./External_component.c", line 27064: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./External_component.c", line 29743: warning: incompatible redefinition of macro "exit" (declared at line 657) [bad_macro_redef] #define exit(...) noprintf() ^ "./External_component.c", line 29759: 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) { ^ "./External_component.c", line 29849: 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) { ^ "./External_component.c", line 29949: 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) { ^ "./External_component.c", line 30619: warning: variable "physics_output" was set but never used [set_but_not_used] int physics_output; ^ "./External_component.c", line 31479: warning: variable "q_qc_quadratic_diff" was declared but never referenced [declared_but_not_referenced] double q_qc_quadratic_diff; ^ "./External_component.c", line 31512: warning: variable "theta2" was set but never used [set_but_not_used] double theta1, theta2; ^ "./External_component.c", line 30122: warning: variable "start_weight" was set but never used [set_but_not_used] double start_weight; ^ "./External_component.c", line 32047: warning: Routine "class_PowderN_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_PowderN *class_PowderN_trace(_class_PowderN *_comp, _class_particle *_particle) { ^ "./External_component.c", line 32096: warning: variable "type" was set but never used [set_but_not_used] char type = '\0'; ^ "./External_component.c", line 32097: warning: variable "itype" was set but never used [set_but_not_used] int itype = 0; ^ "./External_component.c", line 32100: warning: variable "nb_reuses" was declared but never referenced [declared_but_not_referenced] int nb_reuses = line_info.nb_reuses; ^ "./External_component.c", line 32103: warning: variable "vcache" was set but never used [set_but_not_used] double vcache = line_info.v; ^ "./External_component.c", line 32107: warning: variable "lfree" was set but never used [set_but_not_used] double lfree = line_info.lfree; ^ "./External_component.c", line 32108: warning: variable "xs_compute" was declared but never referenced [declared_but_not_referenced] long xs_compute = line_info.xs_compute; ^ "./External_component.c", line 32109: warning: variable "xs_reuse" was declared but never referenced [declared_but_not_referenced] long xs_reuse = line_info.xs_reuse; ^ "./External_component.c", line 32110: warning: variable "xs_calls" was declared but never referenced [declared_but_not_referenced] long xs_calls = line_info.xs_calls; ^ "./External_component.c", line 32111: warning: variable "dq" was set but never used [set_but_not_used] double dq = line_info.dq; ^ "./External_component.c", line 32523: 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) { ^ "./External_component.c", line 32601: warning: Routine "class_Monitor_nD_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_Monitor_nD *class_Monitor_nD_trace(_class_Monitor_nD *_comp, _class_particle *_particle) { ^ "./External_component.c", line 32891: warning: Routine "class_PSD_monitor_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_PSD_monitor *class_PSD_monitor_trace(_class_PSD_monitor *_comp, _class_particle *_particle) { ^ "./External_component.c", line 36113: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./External_component.c", line 36114: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./External_component.c", line 1534: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./External_component.c", line 3003: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 107, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 121, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 156, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 186, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 214, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 226, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 242, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 255, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1582, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1586, Generating acc routine seq Generating NVIDIA GPU code str_len: 1595, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4275, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4709, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4720, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4729, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4741, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4753, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4763, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4773, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4781, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4791, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4813, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4820, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4866, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4901, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4912, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4929, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4940, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4956, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4985, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4996, Generating acc routine seq Generating NVIDIA GPU code norm_func: 5000, Generating acc routine seq Generating NVIDIA GPU code sort_absorb_last: 5035, Generating present(particles[:buffer_len],pbuffer[:buffer_len]) Generating implicit firstprivate(tidx) Generating NVIDIA GPU code 5042, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 5051, #pragma acc loop seq 5035, Generating implicit copy(lens[:]) [if not already present] 5042, Generating implicit firstprivate(ll,l) 5053, Accelerator restriction: induction variable live-out from loop: i 5054, Accelerator restriction: induction variable live-out from loop: i 5055, Accelerator restriction: induction variable live-out from loop: i 5056, Accelerator restriction: induction variable live-out from loop: i 5058, Accelerator restriction: induction variable live-out from loop: j 5059, Accelerator restriction: induction variable live-out from loop: j 5060, Accelerator restriction: induction variable live-out from loop: j 5061, Accelerator restriction: induction variable live-out from loop: j 5083, Generating present(pbuffer[:buffer_len]) Generating implicit firstprivate(tidx) Generating NVIDIA GPU code 5087, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 5090, #pragma acc loop seq 5083, Generating implicit copyin(lens[:]) [if not already present] Generating implicit copy(particles[:]) [if not already present] Generating implicit copyin(los[:]) [if not already present] 5090, Generating implicit firstprivate(l) 5107, Generating present(particles[:buffer_len]) Generating implicit firstprivate(accumlen,tidx,mult) Generating NVIDIA GPU code 5111, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 5118, #pragma acc loop seq 5107, Local memory used for targetbuffer,sourcebuffer mccoordschange: 5177, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5208, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5225, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5324, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5408, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5474, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5551, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5823, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5835, Generating acc routine seq Generating NVIDIA GPU code _hash: 5867, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5908, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5919, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5924, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5932, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5940, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5947, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6625, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6665, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6725, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6742, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6857, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6912, Generating acc routine seq Generating NVIDIA GPU code distance_between: 8265, Generating implicit acc routine seq Generating implicit acc routine seq Generating NVIDIA GPU code length_of_3vector: 8273, Generating implicit acc routine seq Generating implicit acc routine seq Generating NVIDIA GPU code length_of_position_vector: 8277, Generating implicit acc routine seq Generating implicit acc routine seq Generating NVIDIA GPU code coords_scalar_mult: 8288, Generating implicit acc routine seq Generating implicit acc routine seq Generating NVIDIA GPU code on_int_list: 8303, Generating implicit acc routine seq Generating implicit acc routine seq Generating NVIDIA GPU code print_1d_int_list: 8642, Generating implicit acc routine seq Generating implicit acc routine seq Generating NVIDIA GPU code update_current_mask_intersect_status: 9140, Generating implicit acc routine seq Generating implicit acc routine seq Generating NVIDIA GPU code make_tagging_tree_node: 9220, Generating implicit acc routine seq Generating implicit acc routine seq Generating NVIDIA GPU code NVC++-S-1058-Call to variadic function not supported - fprintf (./External_component.c: 9247) NVC++/x86-64 Linux 25.9-0: compilation completed with severe errors INFO: call to nvc failed with Command 'nvc -o ./External_component.out ./External_component.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 ./External_component.c using compiler nvc