INFO: No output directory specified (--dir) INFO: Using directory: "Conditional_test_20241222_112543" INFO: Regenerating c-file: Conditional_test.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS -t -o ./Conditional_test.c Conditional_test.instr 2024-12-22 11:26:28.128 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Powder_process(0):read_table-lib :Powder_process(1):interoff-lib 2024-12-22 11:26:28.129 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib interoff-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 Vanadium_incoherent -> GPU kernel from component Vanadium -> GPU kernel from component Al_incoherent -> GPU kernel from component Al_Powder -> GPU kernel from component Al -> GPU kernel from component Cu_incoherent -> GPU kernel from component Cu_Powder -> GPU kernel from component Cu -> GPU kernel from component a1 -> GPU kernel from component source -> GPU kernel from component sample_pos -> GPU kernel from component cryostat_wall -> GPU kernel from component cryostat_wall_vacuum -> GPU kernel from component sample_sphere -> GPU kernel from component sample_box -> GPU kernel from component sample_cone -> GPU kernel from component test_logger_1D -> GPU kernel from component test_logger_2D_space_zx -> GPU kernel from component test_logger_2D_space_zy -> GPU kernel from component scat_direction -> GPU kernel from component test_logger_2D_space_zx_con_time -> GPU kernel from component test_conditional_standard -> GPU kernel from component test_logger_2D_space_zx_con_PSD -> GPU kernel from component test_conditional_PSD Component sample is NOACC, CPUONLY=False ->FUNNEL mode enabled, SPLIT within buffer. -> GPU kernel from component sample -> GPU kernel from component detector -> GPU kernel from component detector_scat -> GPU kernel from component stop ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS finished INFO: Recompiling: ./Conditional_test.out DEBUG: CMD: nvc -o ./Conditional_test.out ./Conditional_test.c -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined -Wl,-rpath,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -Wl,-rpath-link,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -L/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -mtune=haswell -fPIC -O2 -isystem /u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./Conditional_test.c", line 4490: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./Conditional_test.c", line 8535: warning: variable "output" was declared but never referenced [declared_but_not_referenced] struct tagging_tree_node_struct *output; ^ "./Conditional_test.c", line 9059: warning: variable "permanent_list_length" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,permanent_list_length = 0; ^ "./Conditional_test.c", line 9082: warning: variable "geometry_output" was set but never used [set_but_not_used] int geometry_output; ^ "./Conditional_test.c", line 9570: warning: variable "x_vector" was declared but never referenced [declared_but_not_referenced] Coords x_vector = geometry->geometry_parameters.p_box_storage->x_vector; ^ "./Conditional_test.c", line 9571: warning: variable "y_vector" was declared but never referenced [declared_but_not_referenced] Coords y_vector = geometry->geometry_parameters.p_box_storage->y_vector; ^ "./Conditional_test.c", line 9572: warning: variable "z_vector" was declared but never referenced [declared_but_not_referenced] Coords z_vector = geometry->geometry_parameters.p_box_storage->z_vector; ^ "./Conditional_test.c", line 9732: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./Conditional_test.c", line 9952: warning: variable "output" was set but never used [set_but_not_used] int output; ^ "./Conditional_test.c", line 10111: 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; ^ "./Conditional_test.c", line 10112: 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; ^ "./Conditional_test.c", line 10387: warning: statement is unreachable [code_is_unreachable] return 0; ^ "./Conditional_test.c", line 10146: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./Conditional_test.c", line 10148: warning: variable "normal_x" was declared but never referenced [declared_but_not_referenced] double *normal_x = geometry->geometry_parameters.p_mesh_storage->normal_x; ^ "./Conditional_test.c", line 10149: warning: variable "normal_y" was declared but never referenced [declared_but_not_referenced] double *normal_y = geometry->geometry_parameters.p_mesh_storage->normal_y; ^ "./Conditional_test.c", line 10150: warning: variable "normal_z" was declared but never referenced [declared_but_not_referenced] double *normal_z = geometry->geometry_parameters.p_mesh_storage->normal_z; ^ "./Conditional_test.c", line 10174: warning: variable "verbal" was declared but never referenced [declared_but_not_referenced] int verbal = 0; ^ "./Conditional_test.c", line 10183: warning: variable "tmp" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Conditional_test.c", line 10183: warning: variable "intersect_pos" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Conditional_test.c", line 10185: warning: variable "this_facet_t" was declared but never referenced [declared_but_not_referenced] double this_facet_t; ^ "./Conditional_test.c", line 10234: warning: variable "C1" was declared but never referenced [declared_but_not_referenced] int C1 = counter; ^ "./Conditional_test.c", line 10401: warning: variable "normal_x" was declared but never referenced [declared_but_not_referenced] double *normal_x = geometry->geometry_parameters.p_mesh_storage->normal_x; ^ "./Conditional_test.c", line 10402: warning: variable "normal_y" was declared but never referenced [declared_but_not_referenced] double *normal_y = geometry->geometry_parameters.p_mesh_storage->normal_y; ^ "./Conditional_test.c", line 10403: warning: variable "normal_z" was declared but never referenced [declared_but_not_referenced] double *normal_z = geometry->geometry_parameters.p_mesh_storage->normal_z; ^ "./Conditional_test.c", line 10432: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./Conditional_test.c", line 10490: warning: variable "output" was set but never used [set_but_not_used] int output; ^ "./Conditional_test.c", line 10506: warning: variable "tmp" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Conditional_test.c", line 10506: warning: variable "intersect_pos" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Conditional_test.c", line 10507: warning: variable "UNION_EPSILON" was declared but never referenced [declared_but_not_referenced] double UNION_EPSILON = 0.0000001; ^ "./Conditional_test.c", line 10508: warning: variable "this_facet_t" was declared but never referenced [declared_but_not_referenced] double this_facet_t; ^ "./Conditional_test.c", line 10945: 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); ^ "./Conditional_test.c", line 10934: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Conditional_test.c", line 11011: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Conditional_test.c", line 11218: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Conditional_test.c", line 11316: warning: variable "solutions" was declared but never referenced [declared_but_not_referenced] int iterate,number_of_solutions,solutions,number_of_positions = 30; ^ "./Conditional_test.c", line 11502: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Conditional_test.c", line 11695: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./Conditional_test.c", line 11696: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./Conditional_test.c", line 12230: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./Conditional_test.c", line 12231: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./Conditional_test.c", line 12630: 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); ^ "./Conditional_test.c", line 12490: 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; ^ "./Conditional_test.c", line 12495: 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; ^ "./Conditional_test.c", line 12496: 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; ^ "./Conditional_test.c", line 12497: 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; ^ "./Conditional_test.c", line 12504: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./Conditional_test.c", line 12505: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./Conditional_test.c", line 12628: warning: variable "square_offset" was declared but never referenced [declared_but_not_referenced] double square_offset; ^ "./Conditional_test.c", line 12894: warning: variable "debug_dist" was set but never used [set_but_not_used] double debug_dist; ^ "./Conditional_test.c", line 12960: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Conditional_test.c", line 13146: warning: variable "temp_pointer" was declared but never referenced [declared_but_not_referenced] int *temp_pointer; ^ "./Conditional_test.c", line 13149: warning: variable "mask_global_index" was declared but never referenced [declared_but_not_referenced] int this_mask_status,mask_index,mask_global_index; ^ "./Conditional_test.c", line 13306: warning: variable "temp_pointer" was declared but never referenced [declared_but_not_referenced] int *temp_pointer; ^ "./Conditional_test.c", line 13309: warning: variable "mask_global_index" was declared but never referenced [declared_but_not_referenced] int this_mask_status,mask_index,mask_global_index; ^ "./Conditional_test.c", line 14228: warning: variable "found_index" was declared but never referenced [declared_but_not_referenced] int mask_index,mask_mode,found_index,logic_ALL; ^ "./Conditional_test.c", line 14137: warning: variable "mask_index" was declared but never referenced [declared_but_not_referenced] int volume_index,mask_volume_number,mask_index; ^ "./Conditional_test.c", line 14440: 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; ^ "./Conditional_test.c", line 14630: warning: variable "found_index" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,iterate2,found_index,I_index,I_volume; ^ "./Conditional_test.c", line 14779: warning: variable "string_output" was declared but never referenced [declared_but_not_referenced] char string_output[124]; ^ "./Conditional_test.c", line 15183: warning: variable "mask_index" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,mask_index; ^ "./Conditional_test.c", line 16162: 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 ./Conditional_test.out ./Conditional_test.c -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined -Wl,-rpath,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -Wl,-rpath-link,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -L/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -mtune=haswell -fPIC -O2 -isystem /u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC' returned non-zero exit status 2.