Testing the Allpix installation CTEST

Hello,
I am new to Allpix and trying to install into my system (Ubuntu 18.04).
I have installed the latest root 6.24/06 and Geant4-11.0.0, which are working fine. I have installed as per instructions, and it is successfully installed. but when I run ctest 69% of tests are passed with 57 tests failed. I get this message most of the time
1/182 Test #1: examples/example …***Failed Error regular expression found in output. Regex=[FATAL] 0.40 sec
4/182 Test #124: modules/DepositionReader/08-root_branches …***Failed Required regular expression not found. Regex=[(FATAL) [I:DepositionReader] Error in the configuration:[\
\ ]*Value “event” of key ‘branch_names’ in section ‘DepositionReader’ is not valid: With the current configuration, this parameter requires exactly 10 entries, one for each branch to be read
] 0.40 sec
and when I run an example with “sudo gdb --args bin/allpix -c examples/example.conf”

run
I get
"(gdb) run
Starting program: /home/qasimwm/allpix-squared/bin/allpix -c examples/example.conf
[Thread debugging using libthread_db enabled]
Using host libthread_db library “/lib/x86_64-linux-gnu/libthread_db.so.1”.
|10:49:41.857| (STATUS) Welcome to Allpix^2 v2.0.0+199^gdf26016f
|10:49:41.858| (STATUS) Initialized PRNG with system entropy seed 234597700654713872
[Detaching after fork from child process 11346]
[Detaching after fork from child process 11348]
[Detaching after fork from child process 11350]
[Detaching after fork from child process 11352]
[Detaching after fork from child process 11354]
[Detaching after fork from child process 11356]
[Detaching after fork from child process 11360]
[Detaching after fork from child process 11362]
|10:49:42.443| (WARNING) Main ROOT file /home/qasimwm/allpix-squared/output/modules.root exists and will be overwritten.
|10:49:42.558| (STATUS) Loaded 9 modules
|10:49:42.558| (STATUS) Initializing 13 module instantiations
|10:49:42.560| (FATAL) [I:GeometryBuilderGeant4] Error during execution of run:
Geant4 environment variable G4LEVELGAMMADATA is not set, make sure to source a Geant4 environment with all datasets
Please check your configuration and modules. Cannot continue.
"
I have sourced the Geant4 environment but I still get the same errors
Can you please guide me what am I doing wrong or missing ?

169/182 Test #169: modules/GeometryBuilderGeant4/06-same_materials …***Failed Error regular expression found in output. Regex=[FATAL] 0.37 sec

Hi @qmalik ,

it seems like the Geant4 “data” is missing. This is a dataset that Geant4 requires for describing the physical processes.
Did you install Geant4 from source? If so, did you use the cmake option -DGEANT4_INSTALL_DATA=ON?

You can check this chapter of the documentation to see which options you need: 3 Installation

Cheers
Paul

Thanks paul for the prompt reply.
I have installed the Geant4 with cmake option

cmake -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_GDML=ON -DGEANT4_USE_QT=ON -DGEANT4_USE_XM=ON -DGEANT4_USE_OPENGL_X11=ON -DGEANT4_USE_SYSTEM_CLHEP=OFF /home/qasimwm/gEANT4/geant4/

But the same problem persists

Hi @qmalik ,

this seems odd. But the error message seems rather clear:

Geant4 environment variable G4LEVELGAMMADATA is not set, make sure to source a Geant4 environment with all datasets

So, would you mind to do the following:

  • Go to the directory from which youre running Allpix Squared
  • Source the Geant4 environment by doing source /path/to/your/installation/bin/geant4.sh
  • Do echo $G4LEVELGAMMADATA
  • What’s the return/printout of the echo command?
  • If it’s a file in your G4 installation path, go ahead with running the example from here

In addition: are you certain that the version of Geant4 you’re sourcing is the one that was used for compiling Allpix Squared?

Cheers
Paul

Hi @qmalik

you seem to be using an unpublished beta version of Geant4, 11.0 has not ben released yet. Would you mind checking if it works for you with Geant4 10.7?

Cheers,
Simon

Hi Paul,
Thank you for your suggestions,
Here is what I got
“source /home/qasimwm/gEANT4/geant4/build/bin/geant4.sh”

“echo $G4LEVELGAMMADATA”

“/home/qasimwm/gEANT4/geant4/build/share/Geant4-11.0.0/data/PhotonEvaporation5.7”

“are you certain that the version of Geant4 you’re sourcing is the one that was used for compiling Allpix Squared”
Yes
and if I run the example, I get the same errors.

Hi Simon,
I have installed the Geant4-10.7.2 version, followed the instructions given on “G4Training < Main < TWiki
recompiled the Allpix, but I still get the same error.
source /opt/applications/geant4/build/bin/geant4.sh
echo $G4LEVELGAMMADATA
“/opt/applications/geant4/build/share/Geant4-10.7.2/data/PhotonEvaporation5.7”

when I run “sudo gdb --args bin/allpix -c examples/example.conf”
then run
I get
"(gdb) run
Starting program: /home/qasimwm/allpix-squared/bin/allpix -c examples/example.conf
[Thread debugging using libthread_db enabled]
Using host libthread_db library “/lib/x86_64-linux-gnu/libthread_db.so.1”.
|13:33:06.099| (STATUS) Welcome to Allpix^2 v2.0.0+199^gdf26016f
|13:33:06.100| (STATUS) Initialized PRNG with system entropy seed 929283912780097186
[Detaching after fork from child process 31779]
[Detaching after fork from child process 31781]
[Detaching after fork from child process 31783]
[Detaching after fork from child process 31785]
[Detaching after fork from child process 31787]
[Detaching after fork from child process 31789]
[Detaching after fork from child process 31793]
[Detaching after fork from child process 31795]
|13:33:06.692| (WARNING) Main ROOT file /home/qasimwm/allpix-squared/output/modules.root exists and will be overwritten.
|13:33:06.699| (STATUS) Loaded 9 modules
|13:33:06.699| (STATUS) Initializing 13 module instantiations
|13:33:06.701| (FATAL) [I:GeometryBuilderGeant4] Error during execution of run:
Geant4 environment variable G4LEVELGAMMADATA is not set, make sure to source a Geant4 environment with all datasets
Please check your configuration and modules. Cannot continue.
[Inferior 1 (process 31775) exited with code 01]
"

Hi @qmalik

you are running APSQ as root user - but you source the G4 environment as your local user. What does

sudo echo $G4LEVELGAMMADATA

tell you?

Simon

Hi Simon,
When I enter
sudo echo $G4LEVELGAMMADATA
I get
/opt/applications/geant4/build/share/Geant4-10.7.2/data/PhotonEvaporation5.7

Qasim

Okay, somehow I’m a bit at loss here - obviously you’re G4 setup send to be correct but APSQ doesn’t recognize it. What shell are you using?

Hi simon,
My current shell is bash.

Hi @qmalik

looking again through your posted snippets the only thing that strikes me is that you seem to have different versions in G4 installed in different locations, because once you mention

/home/qasimwm/gEANT4/geant4/build/share/Geant4-11.0.0/data/PhotonEvaporation5.7

the other time it is

/opt/applications/geant4/build/share/Geant4-10.7.2/data/PhotonEvaporation5.7

Furthermore you seem to source the geant4.sh file from the BUILD folder of your Geant4, not from the INSTALL folder - but the latter is what matters. Please do not source things from the build tree but always from the final location of your installation.

/Simon

Hi @simonspa,
Intially, I had Geant4-11.0.0, which I removed and installed Geant4-10.7.2, upon your suggestion to check if it works with a stable version.
Yes were right, I mistakenly sourced from build directory, which I have change now and built APSQ again, but it still gives the same response,

source /opt/applications/geant4/geant4_install/bin/geant4.sh
sudo echo $G4LEVELGAMMADATA
/opt/applications/geant4/geant4_install/share/Geant4-10.7.2/data/PhotonEvaporation5.7

…and APSQ still does not work? Because now the data path actually properly points to the installation directory.

Running CTEST gives the following result

qasimwm@qasimwm-Latitude-7480:~/allpix-squared/build$ sudo ctest
[sudo] password for qasimwm: 
Test project /home/qasimwm/allpix-squared/build
        Start   1: examples/example
  1/182 Test   #1: examples/example ........................................***Failed  Error regular expression found in output. Regex=[FATAL]  0.39 sec
        Start   2: examples/manual
  2/182 Test   #2: examples/manual .........................................***Failed    0.41 sec
        Start   3: examples/capacitive_coupling
  3/182 Test   #3: examples/capacitive_coupling ............................***Failed    0.37 sec
        Start   4: examples/corryvreckan_writer
  4/182 Test   #4: examples/corryvreckan_writer ............................***Failed  Error regular expression found in output. Regex=[FATAL]  0.38 sec
        Start   5: examples/eudet_rd53a
  5/182 Test   #5: examples/eudet_rd53a ....................................***Exception: SegFault  0.47 sec
        Start   6: examples/eudet_telescope
  6/182 Test   #6: examples/eudet_telescope ................................***Failed  Error regular expression found in output. Regex=[FATAL]  0.37 sec
        Start   7: examples/fast_simulation
  7/182 Test   #7: examples/fast_simulation ................................***Failed  Error regular expression found in output. Regex=[FATAL]  0.37 sec
        Start   8: examples/magnetic_field
  8/182 Test   #8: examples/magnetic_field .................................***Failed  Error regular expression found in output. Regex=[FATAL]  0.38 sec
        Start   9: examples/passive_volume
  9/182 Test   #9: examples/passive_volume .................................***Failed  Error regular expression found in output. Regex=[FATAL]  0.37 sec
        Start  10: examples/precise_dut
 10/182 Test  #10: examples/precise_dut ....................................***Failed  Error regular expression found in output. Regex=[FATAL]  0.37 sec
        Start  11: examples/replay_simulation
 11/182 Test  #11: examples/replay_simulation ..............................***Failed  Error regular expression found in output. Regex=[FATAL]  0.38 sec
        Start  12: examples/simple_diode
 12/182 Test  #12: examples/simple_diode ...................................***Failed  Error regular expression found in output. Regex=[FATAL]  0.37 sec
        Start  13: examples/source_measurement
 13/182 Test  #13: examples/source_measurement .............................***Failed  Error regular expression found in output. Regex=[FATAL]  0.37 sec
        Start  14: examples/tcad_field_simulation
 14/182 Test  #14: examples/tcad_field_simulation ..........................***Failed  Error regular expression found in output. Regex=[FATAL]  0.37 sec
        Start  15: performance/test_01_deposition
 15/182 Test  #15: performance/test_01_deposition ..........................***Failed  Error regular expression found in output. Regex=[FATAL]  0.38 sec
        Start  16: performance/test_02-1_propagation_generic
 16/182 Test  #16: performance/test_02-1_propagation_generic ...............***Failed  Error regular expression found in output. Regex=[FATAL]  0.37 sec
        Start  17: performance/test_02-2_propagation_project
 17/182 Test  #17: performance/test_02-2_propagation_project ...............***Failed  Error regular expression found in output. Regex=[FATAL]  0.37 sec
        Start  18: performance/test_02-3_propagation_generic_multithread
 18/182 Test  #18: performance/test_02-3_propagation_generic_multithread ...***Failed  Error regular expression found in output. Regex=[FATAL]  0.38 sec
        Start  19: performance/test_03_multithreading
 19/182 Test  #19: performance/test_03_multithreading ......................***Failed  Error regular expression found in output. Regex=[FATAL]  0.39 sec
        Start  20: core/test_01-10_globalconfig_log_prng
 20/182 Test  #20: core/test_01-10_globalconfig_log_prng ...................   Passed    0.46 sec
        Start  21: core/test_01-1_globalconfig_detectors
 21/182 Test  #21: core/test_01-1_globalconfig_detectors ...................   Passed    0.17 sec
        Start  22: core/test_01-2_globalconfig_modelpaths
 22/182 Test  #22: core/test_01-2_globalconfig_modelpaths ..................***Failed  Error regular expression found in output. Regex=[FATAL]  0.41 sec
        Start  23: core/test_01-3_globalconfig_log_format
 23/182 Test  #23: core/test_01-3_globalconfig_log_format ..................   Passed    0.41 sec
        Start  24: core/test_01-4_globalconfig_log_level
 24/182 Test  #24: core/test_01-4_globalconfig_log_level ...................   Passed    0.43 sec
        Start  25: core/test_01-5_globalconfig_log_file
 25/182 Test  #25: core/test_01-5_globalconfig_log_file ....................   Passed    0.37 sec
        Start  26: core/test_01-6_globalconfig_missing_model
\\6/182 Test  #26: core/test_01-6_globalconfig_missing_model ...............***Failed  Required regular expression not found. Regex=[\(FATAL\) \[I:GeometryBuilderGeant4\] Error during execution of run:[\\
\\	 ]*Could not find a detector model of type 'missing_model'
]  0.37 sec
        Start  27: core/test_01-7_globalconfig_random_seed
 27/182 Test  #27: core/test_01-7_globalconfig_random_seed .................   Passed    0.37 sec
        Start  28: core/test_01-8_globalconfig_random_seed_core
 28/182 Test  #28: core/test_01-8_globalconfig_random_seed_core ............   Passed    0.39 sec
        Start  29: core/test_01-9_globalconfig_librarydirectory
 29/182 Test  #29: core/test_01-9_globalconfig_librarydirectory ............   Passed    0.41 sec
        Start  30: core/test_02-1_specialization_unique_name
 30/182 Test  #30: core/test_02-1_specialization_unique_name ...............   Passed    0.39 sec
        Start  31: core/test_02-2_specialization_unique_type
 31/182 Test  #31: core/test_02-2_specialization_unique_type ...............   Passed    0.38 sec
        Start  32: core/test_02-3_specialization_name
 32/182 Test  #32: core/test_02-3_specialization_name ......................   Passed    0.39 sec
        Start  33: core/test_02-4_specialization_type
 33/182 Test  #33: core/test_02-4_specialization_type ......................   Passed    0.38 sec
        Start  34: core/test_03-10-geometry_unique_detectors
 34/182 Test  #34: core/test_03-10-geometry_unique_detectors ...............   Passed    0.36 sec
        Start  35: core/test_03-11-geometry_unique_passive
 35/182 Test  #35: core/test_03-11-geometry_unique_passive .................   Passed    0.36 sec
        Start  36: core/test_03-12_geometry_invalid_name
 36/182 Test  #36: core/test_03-12_geometry_invalid_name ...................   Passed    0.36 sec
        Start  37: core/test_03-1_geometry_g4_coordinate_system
 37/182 Test  #37: core/test_03-1_geometry_g4_coordinate_system ............***Failed    0.38 sec
        Start  38: core/test_03-2_geometry_rotations
 38/182 Test  #38: core/test_03-2_geometry_rotations .......................***Failed  Error regular expression found in output. Regex=[FATAL]  0.40 sec
        Start  39: core/test_03-3_geometry_misaligned
 39/182 Test  #39: core/test_03-3_geometry_misaligned ......................***Failed  Error regular expression found in output. Regex=[FATAL]  0.38 sec
        Start  40: core/test_03-4_geometry_overwrite
 40/182 Test  #40: core/test_03-4_geometry_overwrite .......................***Failed  Error regular expression found in output. Regex=[FATAL]  0.38 sec
        Start  41: core/test_03-5_geometry_invalid_implant
\\1/182 Test  #41: core/test_03-5_geometry_invalid_implant .................***Failed  Required regular expression not found. Regex=[\(FATAL\) \[I:GeometryBuilderGeant4\] Error in the configuration:[\\
\\	 ]*Value 30mm 30mm of key 'implant_size' in global section is not valid: implant size cannot be larger than pixel pitch
]  0.39 sec
        Start  42: core/test_03-6_geometry_overlap
 42/182 Test  #42: core/test_03-6_geometry_overlap .........................***Failed  Error regular expression found in output. Regex=[FATAL]  0.37 sec
        Start  43: core/test_03-7_geometry_wrapper
 43/182 Test  #43: core/test_03-7_geometry_wrapper .........................***Failed  Error regular expression found in output. Regex=[FATAL]  0.37 sec
        Start  44: core/test_03-8_geometry_noposition
 44/182 Test  #44: core/test_03-8_geometry_noposition ......................   Passed    0.36 sec
        Start  45: core/test_03-9_geometry_nodetector
 45/182 Test  #45: core/test_03-9_geometry_nodetector ......................   Passed    0.37 sec
        Start  46: core/test_04-10_configuration_invalid_combination
 46/182 Test  #46: core/test_04-10_configuration_invalid_combination .......   Passed    0.37 sec
        Start  47: core/test_04-11_configuration_missing_key
 47/182 Test  #47: core/test_04-11_configuration_missing_key ...............   Passed    0.12 sec
        Start  48: core/test_04-12_configuration_matrix
 48/182 Test  #48: core/test_04-12_configuration_matrix ....................   Passed    0.39 sec
        Start  49: core/test_04-13_configuration_matrix_brackets
 49/182 Test  #49: core/test_04-13_configuration_matrix_brackets ...........   Passed    0.48 sec
        Start  50: core/test_04-1_module_config_cli_change
 50/182 Test  #50: core/test_04-1_module_config_cli_change .................   Passed    0.39 sec
        Start  51: core/test_04-2_module_config_cli_nochange
 51/182 Test  #51: core/test_04-2_module_config_cli_nochange ...............   Passed    0.46 sec
        Start  52: core/test_04-3_configuration_imbalanced_brackets
 52/182 Test  #52: core/test_04-3_configuration_imbalanced_brackets ........   Passed    0.41 sec
        Start  53: core/test_04-4_detector_config_cli_change
 53/182 Test  #53: core/test_04-4_detector_config_cli_change ...............***Failed  Error regular expression found in output. Regex=[FATAL]  0.41 sec
        Start  54: core/test_04-5_module_config_cli_detectors
 54/182 Test  #54: core/test_04-5_module_config_cli_detectors ..............***Failed  Error regular expression found in output. Regex=[FATAL]  0.41 sec
        Start  55: core/test_04-6_module_config_double_unique
 55/182 Test  #55: core/test_04-6_module_config_double_unique ..............   Passed    0.42 sec
        Start  56: core/test_04-7_module_config_empty_filter
 56/182 Test  #56: core/test_04-7_module_config_empty_filter ...............   Passed    0.39 sec
        Start  57: core/test_04-8_configuration_unused_key
 57/182 Test  #57: core/test_04-8_configuration_unused_key .................   Passed    0.39 sec
        Start  58: core/test_04-9_configuration_unused_key_module
 58/182 Test  #58: core/test_04-9_configuration_unused_key_module ..........   Passed    0.39 sec
        Start  59: core/test_05-1_overwrite_same_denied
 59/182 Test  #59: core/test_05-1_overwrite_same_denied ....................   Passed    0.50 sec
        Start  60: core/test_05-2_overwrite_module_allowed
 60/182 Test  #60: core/test_05-2_overwrite_module_allowed .................   Passed    0.37 sec
        Start  61: core/test_06-10_multithreading_physics_singlethr
 61/182 Test  #61: core/test_06-10_multithreading_physics_singlethr ........***Failed  Error regular expression found in output. Regex=[FATAL]  0.37 sec
        Start  62: core/test_06-1_multithreading
 62/182 Test  #62: core/test_06-1_multithreading ...........................   Passed    0.36 sec
        Start  63: core/test_06-2_multithreading_cli
 63/182 Test  #63: core/test_06-2_multithreading_cli .......................   Passed    0.39 sec
        Start  64: core/test_06-3_multithreading_concurrency
 64/182 Test  #64: core/test_06-3_multithreading_concurrency ...............   Passed    0.39 sec
        Start  65: core/test_06-4_multithreading_zeroworkers
 65/182 Test  #65: core/test_06-4_multithreading_zeroworkers ...............   Passed    0.40 sec
        Start  66: core/test_06-5_multithreading_buffers
 66/182 Test  #66: core/test_06-5_multithreading_buffers ...................   Passed    0.36 sec
        Start  67: core/test_06-6_multithreading_impossible
 67/182 Test  #67: core/test_06-6_multithreading_impossible ................   Passed    0.38 sec
        Start  68: core/test_06-7_multithreading_disabled
 68/182 Test  #68: core/test_06-7_multithreading_disabled ..................   Passed    0.36 sec
        Start  69: core/test_06-8_multithreading_buffered
 69/182 Test  #69: core/test_06-8_multithreading_buffered ..................***Failed  Error regular expression found in output. Regex=[FATAL]  0.39 sec
        Start  70: core/test_06-9_multithreading_physics
 70/182 Test  #70: core/test_06-9_multithreading_physics ...................***Failed  Error regular expression found in output. Regex=[FATAL]  0.38 sec
        Start  71: core/test_07-1_catch_exception
 71/182 Test  #71: core/test_07-1_catch_exception ..........................   Passed    0.38 sec
        Start  72: core/test_07-2_catch_exception_nomt
 72/182 Test  #72: core/test_07-2_catch_exception_nomt .....................   Passed    0.39 sec
        Start  73: core/test_08-10_physics_recombination_srh
 73/182 Test  #73: core/test_08-10_physics_recombination_srh ...............   Passed    0.37 sec
        Start  74: core/test_08-11_physics_recombination_auger
 74/182 Test  #74: core/test_08-11_physics_recombination_auger .............   Passed    0.37 sec
        Start  75: core/test_08-12_physics_recombination_combined
 75/182 Test  #75: core/test_08-12_physics_recombination_combined ..........   Passed    0.37 sec
        Start  76: core/test_08-1_physics_mobility_canali
 76/182 Test  #76: core/test_08-1_physics_mobility_canali ..................   Passed    0.41 sec
        Start  77: core/test_08-2_physics_mobility_hamburg
 77/182 Test  #77: core/test_08-2_physics_mobility_hamburg .................   Passed    0.41 sec
        Start  78: core/test_08-3_physics_mobility_hamburg_highfield
 78/182 Test  #78: core/test_08-3_physics_mobility_hamburg_highfield .......   Passed    0.39 sec
        Start  79: core/test_08-4_physics_mobility_masetti
 79/182 Test  #79: core/test_08-4_physics_mobility_masetti .................   Passed    0.40 sec
        Start  80: core/test_08-5_physics_mobility_masetti_canali
 80/182 Test  #80: core/test_08-5_physics_mobility_masetti_canali ..........   Passed    0.38 sec
        Start  81: core/test_08-6_physics_mobility_arora
 81/182 Test  #81: core/test_08-6_physics_mobility_arora ...................   Passed    0.39 sec
        Start  82: core/test_08-7_physics_mobility_invalid
 82/182 Test  #82: core/test_08-7_physics_mobility_invalid .................   Passed    0.38 sec
        Start  83: core/test_08-8_physics_mobility_doping
 83/182 Test  #83: core/test_08-8_physics_mobility_doping ..................   Passed    0.38 sec
        Start  84: core/test_08-9_physics_mobility_jacoboni
 84/182 Test  #84: core/test_08-9_physics_mobility_jacoboni ................   Passed    0.39 sec
        Start  85: core/test_9-1_executable_version
 85/182 Test  #85: core/test_9-1_executable_version ........................   Passed    0.12 sec
        Start  86: core/test_9-2_executable_help
 86/182 Test  #86: core/test_9-2_executable_help ...........................   Passed    0.13 sec
        Start  87: core/test_9-3_executable_loglevel_invalid
 87/182 Test  #87: core/test_9-3_executable_loglevel_invalid ...............   Passed    0.12 sec
        Start  88: core/test_9-4_executable_unrecognized_argument
 88/182 Test  #88: core/test_9-4_executable_unrecognized_argument ..........   Passed    0.13 sec
        Start  89: modules/CSADigitizer/01-pseudopulse
 89/182 Test  #89: modules/CSADigitizer/01-pseudopulse .....................   Passed    0.61 sec
        Start  90: modules/CSADigitizer/02-tot_pseudopulse
 90/182 Test  #90: modules/CSADigitizer/02-tot_pseudopulse .................   Passed    0.58 sec
        Start  91: modules/CSADigitizer/03-custom
 91/182 Test  #91: modules/CSADigitizer/03-custom ..........................   Passed    0.61 sec
        Start  92: modules/CSADigitizer/04-custom_mupix
 92/182 Test  #92: modules/CSADigitizer/04-custom_mupix ....................   Passed    4.38 sec
        Start  93: modules/CapacitiveTransfer/01-transfer
 93/182 Test  #93: modules/CapacitiveTransfer/01-transfer ..................   Passed    0.37 sec
        Start  94: modules/CorryvreckanWriter/01-corry
 94/182 Test  #94: modules/CorryvreckanWriter/01-corry .....................   Passed    0.44 sec
        Start  95: modules/CorryvreckanWriter/02-mc
 95/182 Test  #95: modules/CorryvreckanWriter/02-mc ........................   Passed    0.44 sec
        Start  96: modules/DefaultDigitizer/01-charge
 96/182 Test  #96: modules/DefaultDigitizer/01-charge ......................   Passed    0.37 sec
        Start  97: modules/DefaultDigitizer/02-qdc
 97/182 Test  #97: modules/DefaultDigitizer/02-qdc .........................   Passed    0.37 sec
        Start  98: modules/DefaultDigitizer/03-gain
 98/182 Test  #98: modules/DefaultDigitizer/03-gain ........................   Passed    0.39 sec
        Start  99: modules/DefaultDigitizer/04-toa
 99/182 Test  #99: modules/DefaultDigitizer/04-toa .........................   Passed    0.38 sec
        Start 100: modules/DefaultDigitizer/05-tdc
100/182 Test #100: modules/DefaultDigitizer/05-tdc .........................***Failed  Error regular expression found in output. Regex=[FATAL]  0.37 sec
        Start 101: modules/DefaultDigitizer/06-saturation
101/182 Test #101: modules/DefaultDigitizer/06-saturation ..................   Passed    0.38 sec
        Start 102: modules/DepositionGeant4/01-deposit
102/182 Test #102: modules/DepositionGeant4/01-deposit .....................***Failed  Error regular expression found in output. Regex=[FATAL]  0.38 sec
        Start 103: modules/DepositionGeant4/02-mc
103/182 Test #103: modules/DepositionGeant4/02-mc ..........................***Failed  Error regular expression found in output. Regex=[FATAL]  0.37 sec
        Start 104: modules/DepositionGeant4/03-track
104/182 Test #104: modules/DepositionGeant4/03-track .......................***Failed  Error regular expression found in output. Regex=[FATAL]  0.37 sec
        Start 105: modules/DepositionGeant4/04-source_point
105/182 Test #105: modules/DepositionGeant4/04-source_point ................***Failed  Error regular expression found in output. Regex=[FATAL]  0.36 sec
        Start 106: modules/DepositionGeant4/05-source_square
106/182 Test #106: modules/DepositionGeant4/05-source_square ...............***Failed  Error regular expression found in output. Regex=[FATAL]  0.37 sec
        Start 107: modules/DepositionGeant4/06-source_sphere
107/182 Test #107: modules/DepositionGeant4/06-source_sphere ...............***Failed  Error regular expression found in output. Regex=[FATAL]  0.38 sec
        Start 108: modules/DepositionGeant4/07-source_macro
108/182 Test #108: modules/DepositionGeant4/07-source_macro ................***Failed  Error regular expression found in output. Regex=[FATAL]  0.38 sec
        Start 109: modules/DepositionGeant4/08-fano
109/182 Test #109: modules/DepositionGeant4/08-fano ........................***Failed  Error regular expression found in output. Regex=[FATAL]  0.41 sec
        Start 110: modules/DepositionGeant4/09-ions
110/182 Test #110: modules/DepositionGeant4/09-ions ........................***Failed  Error regular expression found in output. Regex=[FATAL]  0.37 sec
        Start 111: modules/DepositionPointCharge/01-point
111/182 Test #111: modules/DepositionPointCharge/01-point ..................   Passed    0.39 sec
        Start 112: modules/DepositionPointCharge/02-scan
112/182 Test #112: modules/DepositionPointCharge/02-scan ...................   Passed    0.38 sec
        Start 113: modules/DepositionPointCharge/03-scan_cube
113/182 Test #113: modules/DepositionPointCharge/03-scan_cube ..............   Passed    0.38 sec
        Start 114: modules/DepositionPointCharge/04-mip
114/182 Test #114: modules/DepositionPointCharge/04-mip ....................   Passed    0.40 sec
        Start 115: modules/DepositionPointCharge/05-mip_position
115/182 Test #115: modules/DepositionPointCharge/05-mip_position ...........   Passed    0.38 sec
        Start 116: modules/DepositionPointCharge/05-spot
116/182 Test #116: modules/DepositionPointCharge/05-spot ...................   Passed    0.40 sec
        Start 117: modules/DepositionReader/01-csv
117/182 Test #117: modules/DepositionReader/01-csv .........................   Passed    0.45 sec
        Start 118: modules/DepositionReader/02-root
118/182 Test #118: modules/DepositionReader/02-root ........................***Failed  Error regular expression found in output. Regex=[FATAL]  0.41 sec
        Start 119: modules/DepositionReader/03-no_time_csv
119/182 Test #119: modules/DepositionReader/03-no_time_csv .................   Passed    0.45 sec
        Start 120: modules/DepositionReader/04-no_time_root
120/182 Test #120: modules/DepositionReader/04-no_time_root ................***Failed  Error regular expression found in output. Regex=[FATAL]  0.43 sec
        Start 121: modules/DepositionReader/05-no_mcp_csv
121/182 Test #121: modules/DepositionReader/05-no_mcp_csv ..................   Passed    0.42 sec
        Start 122: modules/DepositionReader/06-no_mcp_root
122/182 Test #122: modules/DepositionReader/06-no_mcp_root .................***Failed  Error regular expression found in output. Regex=[FATAL]  0.41 sec
        Start 123: modules/DepositionReader/07-root_notree
\\3/182 Test #123: modules/DepositionReader/07-root_notree .................***Failed  Required regular expression not found. Regex=[\(FATAL\) \[I:DepositionReader\] Error in the configuration:[\\
\\	 ]*Key 'tree_name' in section 'DepositionReader' does not exist
]  0.41 sec
        Start 124: modules/DepositionReader/08-root_branches
\\4/182 Test #124: modules/DepositionReader/08-root_branches ...............***Failed  Required regular expression not found. Regex=[\(FATAL\) \[I:DepositionReader\] Error in the configuration:[\\
\\	 ]*Value "event" of key 'branch_names' in section 'DepositionReader' is not valid: With the current configuration, this parameter requires exactly 10 entries, one for each branch to be read
]  0.41 sec
        Start 125: modules/DepositionReader/09-root_branch_wrong
\\5/182 Test #125: modules/DepositionReader/09-root_branch_wrong ...........***Failed  Required regular expression not found. Regex=[\(FATAL\) \[I:DepositionReader\] Error in the configuration:[\\
\\	 ]*Value "wrong_branch_name","energy","time","position\.x","position\.y","position\.z","detector","pdg_code","track_id","parent_id" of key 'branch_names' in section 'DepositionReader' is not valid: Could not read branch "wrong_branch_name"
]  0.41 sec
        Start 126: modules/DepositionReader/10-wrong_detector
126/182 Test #126: modules/DepositionReader/10-wrong_detector ..............   Passed    0.42 sec
        Start 127: modules/DepositionReader/11-outside_sensor
127/182 Test #127: modules/DepositionReader/11-outside_sensor ..............   Passed    0.42 sec
        Start 128: modules/DepositionReader/12-end_of_file
128/182 Test #128: modules/DepositionReader/12-end_of_file .................   Passed    0.42 sec
        Start 129: modules/DepositionReader/13-end_of_tree
129/182 Test #129: modules/DepositionReader/13-end_of_tree .................***Failed  Error regular expression found in output. Regex=[FATAL]  0.42 sec
        Start 130: modules/DepositionReader/14-truncate_csv
130/182 Test #130: modules/DepositionReader/14-truncate_csv ................   Passed    0.43 sec
        Start 131: modules/DepositionReader/15-truncate_root
131/182 Test #131: modules/DepositionReader/15-truncate_root ...............***Failed  Error regular expression found in output. Regex=[FATAL]  0.41 sec
        Start 132: modules/DepositionReader/16-mcp_ordered
132/182 Test #132: modules/DepositionReader/16-mcp_ordered .................   Passed    0.41 sec
        Start 133: modules/DepositionReader/17-mcp_unordered
133/182 Test #133: modules/DepositionReader/17-mcp_unordered ...............   Passed    0.41 sec
        Start 134: modules/DetectorHistogrammer/01-histogramming
134/182 Test #134: modules/DetectorHistogrammer/01-histogramming ...........   Passed    0.51 sec
        Start 135: modules/DopingProfileReader/01-regions
135/182 Test #135: modules/DopingProfileReader/01-regions ..................   Passed    0.39 sec
        Start 136: modules/DopingProfileReader/02-constant
136/182 Test #136: modules/DopingProfileReader/02-constant .................   Passed    0.40 sec
        Start 137: modules/ElectricFieldReader/01-linear
137/182 Test #137: modules/ElectricFieldReader/01-linear ...................   Passed    0.42 sec
        Start 138: modules/ElectricFieldReader/02-mesh
138/182 Test #138: modules/ElectricFieldReader/02-mesh .....................   Passed    0.47 sec
        Start 139: modules/ElectricFieldReader/03-linear_depth
139/182 Test #139: modules/ElectricFieldReader/03-linear_depth .............   Passed    0.40 sec
        Start 140: modules/ElectricFieldReader/04-linear_depletion_side
140/182 Test #140: modules/ElectricFieldReader/04-linear_depletion_side ....   Passed    0.37 sec
        Start 141: modules/ElectricFieldReader/05-constant
141/182 Test #141: modules/ElectricFieldReader/05-constant .................   Passed    0.37 sec
        Start 142: modules/ElectricFieldReader/06-mutually_exclusive
142/182 Test #142: modules/ElectricFieldReader/06-mutually_exclusive .......   Passed    0.40 sec
        Start 143: modules/ElectricFieldReader/07-sensor_thickness
143/182 Test #143: modules/ElectricFieldReader/07-sensor_thickness .........   Passed    0.38 sec
        Start 144: modules/ElectricFieldReader/08-mesh_offset
144/182 Test #144: modules/ElectricFieldReader/08-mesh_offset ..............   Passed    0.47 sec
        Start 145: modules/ElectricFieldReader/09-mesh_offset_negative
145/182 Test #145: modules/ElectricFieldReader/09-mesh_offset_negative .....   Passed    0.38 sec
        Start 146: modules/ElectricFieldReader/10-mesh_offset_large
146/182 Test #146: modules/ElectricFieldReader/10-mesh_offset_large ........   Passed    0.38 sec
        Start 147: modules/ElectricFieldReader/11-mesh_scale
147/182 Test #147: modules/ElectricFieldReader/11-mesh_scale ...............   Passed    0.46 sec
        Start 148: modules/ElectricFieldReader/12-parabolic
148/182 Test #148: modules/ElectricFieldReader/12-parabolic ................   Passed    0.38 sec
        Start 149: modules/ElectricFieldReader/13-parabolic_minimum_pos
149/182 Test #149: modules/ElectricFieldReader/13-parabolic_minimum_pos ....   Passed    0.40 sec
        Start 150: modules/ElectricFieldReader/14-custom_1d
150/182 Test #150: modules/ElectricFieldReader/14-custom_1d ................   Passed    0.39 sec
        Start 151: modules/ElectricFieldReader/15-custom_3d
151/182 Test #151: modules/ElectricFieldReader/15-custom_3d ................   Passed    0.39 sec
        Start 152: modules/ElectricFieldReader/16-custom_functions
152/182 Test #152: modules/ElectricFieldReader/16-custom_functions .........   Passed    0.39 sec
        Start 153: modules/ElectricFieldReader/17-custom_parameters_1d
153/182 Test #153: modules/ElectricFieldReader/17-custom_parameters_1d .....   Passed    0.38 sec
        Start 154: modules/ElectricFieldReader/18-custom_parameters_3d
154/182 Test #154: modules/ElectricFieldReader/18-custom_parameters_3d .....   Passed    0.38 sec
        Start 155: modules/ElectricFieldReader/19-linear-largefield
155/182 Test #155: modules/ElectricFieldReader/19-linear-largefield ........   Passed    0.38 sec
        Start 156: modules/GenericPropagation/01-propagation
156/182 Test #156: modules/GenericPropagation/01-propagation ...............   Passed    0.38 sec
        Start 157: modules/GenericPropagation/02-magnetic
157/182 Test #157: modules/GenericPropagation/02-magnetic ..................   Passed    0.39 sec
        Start 158: modules/GenericPropagation/03-lifetime
158/182 Test #158: modules/GenericPropagation/03-lifetime ..................   Passed    0.48 sec
        Start 159: modules/GenericPropagation/04-mobility_unsuitable
159/182 Test #159: modules/GenericPropagation/04-mobility_unsuitable .......   Passed    0.37 sec
        Start 160: modules/GenericPropagation/05-mobility_nomodel
160/182 Test #160: modules/GenericPropagation/05-mobility_nomodel ..........   Passed    0.38 sec
        Start 161: modules/GenericPropagation/06-no_lifetime
161/182 Test #161: modules/GenericPropagation/06-no_lifetime ...............   Passed    0.50 sec
        Start 162: modules/GenericPropagation/07-lifetime_unsuitable
162/182 Test #162: modules/GenericPropagation/07-lifetime_unsuitable .......   Passed    0.39 sec
        Start 163: modules/GenericPropagation/08-lifetime_nomodel
163/182 Test #163: modules/GenericPropagation/08-lifetime_nomodel ..........   Passed    0.38 sec
        Start 164: modules/GeometryBuilderGeant4/01-build
164/182 Test #164: modules/GeometryBuilderGeant4/01-build ..................***Failed  Error regular expression found in output. Regex=[FATAL]  0.37 sec
        Start 165: modules/GeometryBuilderGeant4/02-addpoint
165/182 Test #165: modules/GeometryBuilderGeant4/02-addpoint ...............***Failed  Error regular expression found in output. Regex=[FATAL]  0.38 sec
        Start 166: modules/GeometryBuilderGeant4/03-addpoint_rotate
166/182 Test #166: modules/GeometryBuilderGeant4/03-addpoint_rotate ........***Failed  Error regular expression found in output. Regex=[FATAL]  0.37 sec
        Start 167: modules/GeometryBuilderGeant4/04-mothervolume
167/182 Test #167: modules/GeometryBuilderGeant4/04-mothervolume ...........***Failed  Error regular expression found in output. Regex=[FATAL]  0.38 sec
        Start 168: modules/GeometryBuilderGeant4/05-worldvolume
168/182 Test #168: modules/GeometryBuilderGeant4/05-worldvolume ............***Exception: SegFault  0.47 sec
        Start 169: modules/GeometryBuilderGeant4/06-same_materials
169/182 Test #169: modules/GeometryBuilderGeant4/06-same_materials .........***Failed  Error regular expression found in output. Regex=[FATAL]  0.37 sec
        Start 170: modules/MagneticFieldReader/01-constant
170/182 Test #170: modules/MagneticFieldReader/01-constant .................   Passed    0.38 sec
        Start 171: modules/MagneticFieldReader/02-local
171/182 Test #171: modules/MagneticFieldReader/02-local ....................   Passed    0.39 sec
        Start 172: modules/ProjectionPropagation/01-project
172/182 Test #172: modules/ProjectionPropagation/01-project ................   Passed    0.39 sec
        Start 173: modules/ProjectionPropagation/02-lifetime
173/182 Test #173: modules/ProjectionPropagation/02-lifetime ...............   Passed    0.40 sec
        Start 174: modules/PulseTransfer/01-pseudopulse
174/182 Test #174: modules/PulseTransfer/01-pseudopulse ....................   Passed    0.39 sec
        Start 175: modules/RCEWriter/02-write
175/182 Test #175: modules/RCEWriter/02-write ..............................   Passed    0.45 sec
        Start 179: modules/ROOTObjectWriter/01-write
176/182 Test #179: modules/ROOTObjectWriter/01-write .......................   Passed    0.50 sec
        Start 176: modules/ROOTObjectReader/01-reading
177/182 Test #176: modules/ROOTObjectReader/01-reading .....................   Passed    0.48 sec
        Start 177: modules/ROOTObjectReader/02-seed_mismatch
178/182 Test #177: modules/ROOTObjectReader/02-seed_mismatch ...............   Passed    0.52 sec
        Start 178: modules/ROOTObjectReader/03-seed_ignore
179/182 Test #178: modules/ROOTObjectReader/03-seed_ignore .................   Passed    0.47 sec
        Start 180: modules/SimpleTransfer/01-transfer
180/182 Test #180: modules/SimpleTransfer/01-transfer ......................   Passed    0.41 sec
        Start 181: modules/SimpleTransfer/02-implant
181/182 Test #181: modules/SimpleTransfer/02-implant .......................   Passed    0.49 sec
        Start 182: modules/TextWriter/01-write
182/182 Test #182: modules/TextWriter/01-write .............................   Passed    0.41 sec

69% tests passed, 57 tests failed out of 182

Alright, most pass, especially those not depending on external programs. Some fail because (I am guessing) your ROOT version is not built with Python support (not a requirement for APSQ but for one of the scripts used in testing) and all others that fail seem to involve Geant4.

Some even have a segfault… :thinking:

What version of Allpix Squared are you using?

Im using APSQ Version 2.0.0

Hi.
May I ask, why you are running allpix squared as a sudo user? Did you try running it as “yourself”?

Running the tests “myself” on a new machine with fresh installation of geant4, root gives me this
qasimwm@qasimwm-OptiPlex-9020M:~/allpix-squared$ gdb --args bin/allpix -c examples/example.conf
GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 9.2
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type “show copying” and “show warranty” for details.
This GDB was configured as “x86_64-linux-gnu”.
Type “show configuration” for configuration details.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.

For help, type “help”.
Type “apropos word” to search for commands related to “word”…
Reading symbols from bin/allpix…
(gdb) run
Starting program: /home/qasimwm/allpix-squared/bin/allpix -c examples/example.conf
[Thread debugging using libthread_db enabled]
Using host libthread_db library “/usr/lib/x86_64-linux-gnu/libthread_db.so.1”.
|10:40:55.632| (STATUS) Welcome to Allpix^2 v2.0.0+234^g15565f2b
|10:40:55.632| (STATUS) Initialized PRNG with system entropy seed 7278815957684657716
[Detaching after vfork from child process 173507]
[Detaching after vfork from child process 173509]
[Detaching after vfork from child process 173511]
[Detaching after vfork from child process 173513]
[Detaching after vfork from child process 173515]
[Detaching after vfork from child process 173517]
[Detaching after vfork from child process 173521]
[Detaching after vfork from child process 173523]
|10:40:56.375| (WARNING) Main ROOT file /home/qasimwm/allpix-squared/output/modules.root exists and will be overwritten.
|10:40:56.388| (STATUS) Loaded 9 modules
|10:40:56.388| (STATUS) Initializing 13 module instantiations
Program received signal SIGABRT, Aborted.
0x00007ffff059918b in raise () from /usr/lib/x86_64-linux-gnu/libc.so.6
The backtrace " ```
thread apply all backtrace full

(gdb) thread apply all backtrace full

Thread 1 (Thread 0x7fffecaf5c40 (LWP 173503)):
#0  0x00007ffff059918b in raise () from /usr/lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#1  0x00007ffff0578859 in abort () from /usr/lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#2  0x00007ffff2aba7a6 in G4Exception(char const*, char const*, G4ExceptionSeverity, char const*) () from /home/qasimwm/Geant4/geant4-install/lib/libG4global.so
No symbol table info available.
#3  0x00007ffff2aba98b in G4Exception(char const*, char const*, G4ExceptionSeverity, std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >&) () from /home/qasimwm/Geant4/geant4-install/lib/libG4global.so
No symbol table info available.
#4  0x00007ffff54cdb41 in G4RunManager::G4RunManager(G4RunManager::RMType) () from /home/qasimwm/Geant4/geant4-install/lib/libG4run.so
No symbol table info available.
#5  0x00007ffff54d0735 in G4MTRunManager::G4MTRunManager() () from /home/qasimwm/Geant4/geant4-install/lib/libG4run.so
No symbol table info available.
#6  0x00007ffff24dc1b1 in allpix::MTRunManager::MTRunManager (this=0x5555573a8610) at /home/qasimwm/allpix-squared/src/tools/geant4/MTRunManager.cpp:20
        ui_g4 = <optimized out>
#7  0x00007ffff7d139f3 in std::make_unique<allpix::MTRunManager> () at /usr/include/c++/9/bits/unique_ptr.h:856
No locals.
#8  allpix::GeometryBuilderGeant4Module::initialize (this=0x555557342d70) at /home/qasimwm/allpix-squared/src/modules/GeometryBuilderGeant4/GeometryBuilderGeant4Module.cpp:118
        __func__ = "initialize"
        ui_g4 = 0x555557330260
#9  0x00007ffff207f9b2 in allpix::ModuleManager::initialize (this=0x5555556e0280) at /home/qasimwm/allpix-squared/src/core/module/ModuleManager.cpp:581
        directory = <optimized out>
        local_directory = <optimized out>
        end = <optimized out>
        module_name = "GeometryBuilderGeant4"
        start = <optimized out>
        old_settings = std::tuple containing = {[1] = allpix::LogLevel::INFO, [2] = allpix::LogFormat::DEFAULT, [3] = "", [4] = 0}
        module = std::shared_ptr<allpix::Module> (use count 1, weak count 0) = {get() = 0x555557342d70}
        __for_range = std::__cxx11::list = {[0] = std::shared_ptr<allpix::Module> (use count 1, weak count 0) = {get() = 0x555557342d70}, [1] = std::shared_ptr<allpix::Module> (use count 1, weak count 0) = {get() = 0x55555734b0d0}, [2] = std::shared_ptr<allpix::Module> (use count 1, weak count 0) = {get() = 0x5555573430f0}, [3] = std::shared_ptr<allpix::Module> (use count 1, weak count 0) = {get() = 0x555557363450}, [4] = std::shared_ptr<allpix::Module> (use count 1, weak count 0) = {get() = 0x55555736d4b0}, [5] = std::shared_ptr<allpix::Module> (use count 1, weak count 0) = {get() = 0x55555736a270}, [6] = std::shared_ptr<allpix::Module> (use count 1, weak count 0) = {get() = 0x555557359750}, [7] = std::shared_ptr<allpix::Module> (use count 1, weak count 0) = {get() = 0x555557328f60}, [8] = std::shared_ptr<allpix::Module> (use count 1, weak count 0) = {get() = 0x5555573449f0}, [9] = std::shared_ptr<allpix::Module> (use count 1, weak count 0) = {get() = 0x555557351ac0}, [10] = std::shared_ptr<allpix::Module> (use count 1, weak count 0) = {get() = 0x5555573521b0}, [11] = std::shared_ptr<allpix::Module> (use count 1, weak count 0) = {get() = 0x555557352690}, [12] = std::shared_ptr<allpix::Module> (use count 1, weak count 0) = {get() = 0x555557360480}}
        __for_begin = <optimized out>
        __for_end = <optimized out>
        global_config = <optimized out>
        __func__ = "initialize"
        threads_num = <optimized out>
        start_time = <optimized out>
        end_time = <optimized out>
#10 0x00007ffff20d3a0c in allpix::Allpix::initialize (this=0x5555556decc0) at /usr/include/c++/9/bits/unique_ptr.h:360
        __func__ = "initialize"
#11 0x000055555555981a in main (argc=<optimized out>, argv=<optimized out>) at /usr/include/c++/9/bits/unique_ptr.h:360
        print_help = <optimized out>
        return_code = <optimized out>
        config_file_name = "examples/example.conf"
        log_file_name = ""
        module_options = std::vector of length 0, capacity 0
        detector_options = std::vector of length 0, capacity 0
        __func__ = "main"
        log_file = <incomplete type>
(gdb)

Dear @qmalik

everything you have posted so far points to a problem with your Geant4. Please try to get Geant4 running properly and refer to their help forum at https://geant4-forum.web.cern.ch/ in case you need help.

All the best,
Simon