INFO: No output directory specified (--dir) INFO: Using directory: "Unit_test_abs_logger_event_20241222_114244" INFO: Regenerating c-file: Unit_test_abs_logger_event.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS -t -o ./Unit_test_abs_logger_event.c Unit_test_abs_logger_event.instr 2024-12-22 11:43:23.738 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Powder_process(0):read_table-lib :Powder_process(1):interoff-lib :Union_abs_logger_event(0):monitor_nd-lib 2024-12-22 11:43:23.738 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to monitor_nd-lib read_table-lib interoff-lib 2024-12-22 11:43:23.738 | 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 incoherent -> GPU kernel from component powder -> GPU kernel from component material -> GPU kernel from component Origin -> GPU kernel from component source -> GPU kernel from component geometry_center -> GPU kernel from component box -> GPU kernel from component sphere -> GPU kernel from component cylinder -> GPU kernel from component cone -> GPU kernel from component Union_abs_logger_event Component master is NOACC, CPUONLY=False ->FUNNEL mode enabled, SPLIT within buffer. -> GPU kernel from component master -> GPU kernel from component transmission -> GPU kernel from component stop ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS finished INFO: Recompiling: ./Unit_test_abs_logger_event.out DEBUG: CMD: nvc -o ./Unit_test_abs_logger_event.out ./Unit_test_abs_logger_event.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 "./Unit_test_abs_logger_event.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 " "./Unit_test_abs_logger_event.c", line 8735: warning: variable "output" was declared but never referenced [declared_but_not_referenced] struct tagging_tree_node_struct *output; ^ "./Unit_test_abs_logger_event.c", line 9259: warning: variable "permanent_list_length" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,permanent_list_length = 0; ^ "./Unit_test_abs_logger_event.c", line 9282: warning: variable "geometry_output" was set but never used [set_but_not_used] int geometry_output; ^ "./Unit_test_abs_logger_event.c", line 9770: warning: variable "x_vector" was declared but never referenced [declared_but_not_referenced] Coords x_vector = geometry->geometry_parameters.p_box_storage->x_vector; ^ "./Unit_test_abs_logger_event.c", line 9771: warning: variable "y_vector" was declared but never referenced [declared_but_not_referenced] Coords y_vector = geometry->geometry_parameters.p_box_storage->y_vector; ^ "./Unit_test_abs_logger_event.c", line 9772: warning: variable "z_vector" was declared but never referenced [declared_but_not_referenced] Coords z_vector = geometry->geometry_parameters.p_box_storage->z_vector; ^ "./Unit_test_abs_logger_event.c", line 9932: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./Unit_test_abs_logger_event.c", line 10152: warning: variable "output" was set but never used [set_but_not_used] int output; ^ "./Unit_test_abs_logger_event.c", line 10311: 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; ^ "./Unit_test_abs_logger_event.c", line 10312: 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; ^ "./Unit_test_abs_logger_event.c", line 10587: warning: statement is unreachable [code_is_unreachable] return 0; ^ "./Unit_test_abs_logger_event.c", line 10346: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./Unit_test_abs_logger_event.c", line 10348: warning: variable "normal_x" was declared but never referenced [declared_but_not_referenced] double *normal_x = geometry->geometry_parameters.p_mesh_storage->normal_x; ^ "./Unit_test_abs_logger_event.c", line 10349: warning: variable "normal_y" was declared but never referenced [declared_but_not_referenced] double *normal_y = geometry->geometry_parameters.p_mesh_storage->normal_y; ^ "./Unit_test_abs_logger_event.c", line 10350: warning: variable "normal_z" was declared but never referenced [declared_but_not_referenced] double *normal_z = geometry->geometry_parameters.p_mesh_storage->normal_z; ^ "./Unit_test_abs_logger_event.c", line 10374: warning: variable "verbal" was declared but never referenced [declared_but_not_referenced] int verbal = 0; ^ "./Unit_test_abs_logger_event.c", line 10383: warning: variable "tmp" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Unit_test_abs_logger_event.c", line 10383: warning: variable "intersect_pos" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Unit_test_abs_logger_event.c", line 10385: warning: variable "this_facet_t" was declared but never referenced [declared_but_not_referenced] double this_facet_t; ^ "./Unit_test_abs_logger_event.c", line 10434: warning: variable "C1" was declared but never referenced [declared_but_not_referenced] int C1 = counter; ^ "./Unit_test_abs_logger_event.c", line 10601: warning: variable "normal_x" was declared but never referenced [declared_but_not_referenced] double *normal_x = geometry->geometry_parameters.p_mesh_storage->normal_x; ^ "./Unit_test_abs_logger_event.c", line 10602: warning: variable "normal_y" was declared but never referenced [declared_but_not_referenced] double *normal_y = geometry->geometry_parameters.p_mesh_storage->normal_y; ^ "./Unit_test_abs_logger_event.c", line 10603: warning: variable "normal_z" was declared but never referenced [declared_but_not_referenced] double *normal_z = geometry->geometry_parameters.p_mesh_storage->normal_z; ^ "./Unit_test_abs_logger_event.c", line 10632: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./Unit_test_abs_logger_event.c", line 10690: warning: variable "output" was set but never used [set_but_not_used] int output; ^ "./Unit_test_abs_logger_event.c", line 10706: warning: variable "tmp" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Unit_test_abs_logger_event.c", line 10706: warning: variable "intersect_pos" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Unit_test_abs_logger_event.c", line 10707: warning: variable "UNION_EPSILON" was declared but never referenced [declared_but_not_referenced] double UNION_EPSILON = 0.0000001; ^ "./Unit_test_abs_logger_event.c", line 10708: warning: variable "this_facet_t" was declared but never referenced [declared_but_not_referenced] double this_facet_t; ^ "./Unit_test_abs_logger_event.c", line 11145: 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); ^ "./Unit_test_abs_logger_event.c", line 11134: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Unit_test_abs_logger_event.c", line 11211: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Unit_test_abs_logger_event.c", line 11418: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Unit_test_abs_logger_event.c", line 11516: warning: variable "solutions" was declared but never referenced [declared_but_not_referenced] int iterate,number_of_solutions,solutions,number_of_positions = 30; ^ "./Unit_test_abs_logger_event.c", line 11702: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Unit_test_abs_logger_event.c", line 11895: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./Unit_test_abs_logger_event.c", line 11896: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./Unit_test_abs_logger_event.c", line 12430: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./Unit_test_abs_logger_event.c", line 12431: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./Unit_test_abs_logger_event.c", line 12830: 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); ^ "./Unit_test_abs_logger_event.c", line 12690: 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; ^ "./Unit_test_abs_logger_event.c", line 12695: 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; ^ "./Unit_test_abs_logger_event.c", line 12696: 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; ^ "./Unit_test_abs_logger_event.c", line 12697: 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; ^ "./Unit_test_abs_logger_event.c", line 12704: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./Unit_test_abs_logger_event.c", line 12705: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./Unit_test_abs_logger_event.c", line 12828: warning: variable "square_offset" was declared but never referenced [declared_but_not_referenced] double square_offset; ^ "./Unit_test_abs_logger_event.c", line 13094: warning: variable "debug_dist" was set but never used [set_but_not_used] double debug_dist; ^ "./Unit_test_abs_logger_event.c", line 13160: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Unit_test_abs_logger_event.c", line 13346: warning: variable "temp_pointer" was declared but never referenced [declared_but_not_referenced] int *temp_pointer; ^ "./Unit_test_abs_logger_event.c", line 13349: warning: variable "mask_global_index" was declared but never referenced [declared_but_not_referenced] int this_mask_status,mask_index,mask_global_index; ^ "./Unit_test_abs_logger_event.c", line 13506: warning: variable "temp_pointer" was declared but never referenced [declared_but_not_referenced] int *temp_pointer; ^ "./Unit_test_abs_logger_event.c", line 13509: warning: variable "mask_global_index" was declared but never referenced [declared_but_not_referenced] int this_mask_status,mask_index,mask_global_index; ^ "./Unit_test_abs_logger_event.c", line 14428: warning: variable "found_index" was declared but never referenced [declared_but_not_referenced] int mask_index,mask_mode,found_index,logic_ALL; ^ "./Unit_test_abs_logger_event.c", line 14337: warning: variable "mask_index" was declared but never referenced [declared_but_not_referenced] int volume_index,mask_volume_number,mask_index; ^ "./Unit_test_abs_logger_event.c", line 14640: 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; ^ "./Unit_test_abs_logger_event.c", line 14830: warning: variable "found_index" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,iterate2,found_index,I_index,I_volume; ^ "./Unit_test_abs_logger_event.c", line 14979: warning: variable "string_output" was declared but never referenced [declared_but_not_referenced] char string_output[124]; ^ "./Unit_test_abs_logger_event.c", line 15383: warning: variable "mask_index" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,mask_index; ^ "./Unit_test_abs_logger_event.c", line 16268: 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 ./Unit_test_abs_logger_event.out ./Unit_test_abs_logger_event.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.