INFO: No output directory specified (--dir) INFO: Using directory: "External_component_test_20241206_155619" INFO: Regenerating c-file: External_component_test.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -t -o ./External_component_test.c External_component_test.instr 2024-12-06 15:56:23.674 | 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 2024-12-06 15:56:23.675 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib 2024-12-06 15:56:23.675 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib 2024-12-06 15:56:23.675 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib interoff-lib monitor_nd-lib 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_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 cryostat_wall -> GPU kernel from component cryostat_vacuum -> GPU kernel from component sample_exit Component test_sample is NOACC, CPUONLY=False ->FUNNEL mode enabled, SPLIT within buffer. -> GPU kernel from component test_sample -> GPU kernel from component cylinder_sample_powder Component test_sample_after is NOACC, CPUONLY=False ->FUNNEL mode enabled, SPLIT within buffer. -> GPU kernel from component test_sample_after -> GPU kernel from component m4pi -> 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 ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr finished INFO: Recompiling: ./External_component_test.out DEBUG: CMD: nvc -o ./External_component_test.out ./External_component_test.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./External_component_test.c", line 4503: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./External_component_test.c", line 8747: warning: variable "output" was declared but never referenced [declared_but_not_referenced] struct tagging_tree_node_struct *output; ^ "./External_component_test.c", line 9271: warning: variable "permanent_list_length" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,permanent_list_length = 0; ^ "./External_component_test.c", line 9294: warning: variable "geometry_output" was set but never used [set_but_not_used] int geometry_output; ^ "./External_component_test.c", line 9782: 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_test.c", line 9783: 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_test.c", line 9784: 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_test.c", line 9944: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./External_component_test.c", line 10164: warning: variable "output" was set but never used [set_but_not_used] int output; ^ "./External_component_test.c", line 10323: 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_test.c", line 10324: 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_test.c", line 10599: warning: statement is unreachable [code_is_unreachable] return 0; ^ "./External_component_test.c", line 10358: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./External_component_test.c", line 10360: 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_test.c", line 10361: 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_test.c", line 10362: 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_test.c", line 10386: warning: variable "verbal" was declared but never referenced [declared_but_not_referenced] int verbal = 0; ^ "./External_component_test.c", line 10395: warning: variable "tmp" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./External_component_test.c", line 10395: warning: variable "intersect_pos" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./External_component_test.c", line 10397: warning: variable "this_facet_t" was declared but never referenced [declared_but_not_referenced] double this_facet_t; ^ "./External_component_test.c", line 10446: warning: variable "C1" was declared but never referenced [declared_but_not_referenced] int C1 = counter; ^ "./External_component_test.c", line 10613: 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_test.c", line 10614: 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_test.c", line 10615: 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_test.c", line 10644: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./External_component_test.c", line 10702: warning: variable "output" was set but never used [set_but_not_used] int output; ^ "./External_component_test.c", line 10718: warning: variable "tmp" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./External_component_test.c", line 10718: warning: variable "intersect_pos" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./External_component_test.c", line 10719: warning: variable "UNION_EPSILON" was declared but never referenced [declared_but_not_referenced] double UNION_EPSILON = 0.0000001; ^ "./External_component_test.c", line 10720: warning: variable "this_facet_t" was declared but never referenced [declared_but_not_referenced] double this_facet_t; ^ "./External_component_test.c", line 11157: warning: variable "vector2" is used before its value is set [used_before_set] if (verbal == 1) printf("vector1 = (%f,%f,%f)\n",vector1.x,vector1.y,vector2.z); ^ "./External_component_test.c", line 11146: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./External_component_test.c", line 11223: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./External_component_test.c", line 11430: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./External_component_test.c", line 11528: warning: variable "solutions" was declared but never referenced [declared_but_not_referenced] int iterate,number_of_solutions,solutions,number_of_positions = 30; ^ "./External_component_test.c", line 11714: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./External_component_test.c", line 11907: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./External_component_test.c", line 11908: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./External_component_test.c", line 12442: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./External_component_test.c", line 12443: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./External_component_test.c", line 12842: warning: variable "square_center" is used before its value is set [used_before_set] Coords box_end_point = coords_sub(coords_set(0,0,-z_depth/2),square_center); ^ "./External_component_test.c", line 12702: 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_test.c", line 12707: 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_test.c", line 12708: 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_test.c", line 12709: 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_test.c", line 12716: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./External_component_test.c", line 12717: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./External_component_test.c", line 12840: warning: variable "square_offset" was declared but never referenced [declared_but_not_referenced] double square_offset; ^ "./External_component_test.c", line 13106: warning: variable "debug_dist" was set but never used [set_but_not_used] double debug_dist; ^ "./External_component_test.c", line 13172: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./External_component_test.c", line 13358: warning: variable "temp_pointer" was declared but never referenced [declared_but_not_referenced] int *temp_pointer; ^ "./External_component_test.c", line 13361: 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_test.c", line 13518: warning: variable "temp_pointer" was declared but never referenced [declared_but_not_referenced] int *temp_pointer; ^ "./External_component_test.c", line 13521: 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_test.c", line 14440: warning: variable "found_index" was declared but never referenced [declared_but_not_referenced] int mask_index,mask_mode,found_index,logic_ALL; ^ "./External_component_test.c", line 14349: warning: variable "mask_index" was declared but never referenced [declared_but_not_referenced] int volume_index,mask_volume_number,mask_index; ^ "./External_component_test.c", line 14652: 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_test.c", line 14842: 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_test.c", line 14991: warning: variable "string_output" was declared but never referenced [declared_but_not_referenced] char string_output[124]; ^ "./External_component_test.c", line 15395: warning: variable "mask_index" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,mask_index; ^ "./External_component_test.c", line 16217: warning: variable "count" is used before its value is set [used_before_set] for(line0=0; line0 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 ./External_component_test.out ./External_component_test.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC' returned non-zero exit status 2.