Geant4 produces huge stdout in debug builds
In sim11 debug builds Geant4 produces tons of messages on stdout like:
[...]
G4WT0 > ### pop requested out of 4 stacked tracks.
G4WT0 > Selected G4StackedTrack : 0x7f13c160a970 with G4Track 0x7f13bc8c8338 (trackID 7, parentID 1)
G4WT0 > Track 0x7f13bc8c8338 (trackID 7, parentID 1) is passed to G4TrackingManager.
G4WT0 > Track (trackID 7, parentID 1) is processed with stopping code 2
G4WT0 > ### pop requested out of 3 stacked tracks.
G4WT0 > Selected G4StackedTrack : 0x7f13c160a970 with G4Track 0x7f13bc8c8230 (trackID 6, parentID 1)
G4WT0 > Track 0x7f13bc8c8230 (trackID 6, parentID 1) is passed to G4TrackingManager.
G4WT0 > Track (trackID 6, parentID 1) is processed with stopping code 2
G4WT0 > ### pop requested out of 2 stacked tracks.
G4WT0 > Selected G4StackedTrack : 0x7f13c160a970 with G4Track 0x7f13bc8aa808 (trackID 5, parentID 1)
G4WT0 > Track 0x7f13bc8aa808 (trackID 5, parentID 1) is passed to G4TrackingManager.
G4WT0 > Track (trackID 5, parentID 1) is processed with stopping code 2
G4WT0 > ### pop requested out of 1 stacked tracks.
[...]
G4WT0 > ==== PDGcode 2212 Particle name proton
G4WT0 > Assigned charge : 1
G4WT0 > Momentum ( 0.14044277084844[GeV/c], -0.010682271465844[GeV/c], 4.1366784417944[GeV/c] )
G4WT0 > kinetic Energy : 3.30581808277 [GeV]
G4WT0 > Mass : 0.93827208 [GeV]
G4WT0 > Polarization ( 0, 0, 0 )
G4WT0 > Weight : 1
G4WT0 > ==== PDGcode -2212 Particle name anti_proton
G4WT0 > Assigned charge : -1
G4WT0 > Momentum ( -0.138893065665[GeV/c], 0.19017817586757[GeV/c], 3.1057991294546[GeV/c] )
G4WT0 > kinetic Energy : 2.314696064771 [GeV]
G4WT0 > Mass : 0.93827208 [GeV]
G4WT0 > Polarization ( 0, 0, 0 )
G4WT0 > Weight : 1
G4WT0 > ==== PDGcode 211 Particle name pi+
G4WT0 > Assigned charge : 1
G4WT0 > Momentum ( 0.023594388037216[GeV/c], 0.085092721757651[GeV/c], 0.16146837124547[GeV/c] )
G4WT0 > kinetic Energy : 0.091404402785829 [GeV]
G4WT0 > Mass : 0.13957061 [GeV]
G4WT0 > Polarization ( 0, 0, 0 )
G4WT0 > Weight : 1
[...]
The output is so big that CTest crashes:
2023-12-19 07:39:45,208:DEBUG : running ctest -T test -j 2
2023-12-19 07:39:45,208:DEBUG : apptainer command: /cvmfs/lhcbdev.cern.ch/nightly-environments/f9a316e58f691b4ec7ff8b98f67fded3865b6fe6171431b22b67c2755b0a582c/bin/apptainer exec --contain --bind /cvmfs --bind /home/lblocal/jenkins/tests/workspace/nightly-builds/tests:/workspace --bind /home/lblocal/jenkins/tests/workspace/nightly-builds/tests --pwd /workspace/build/Gauss/build --env PATH=/cvmfs/lhcb.cern.ch/lib/bin/x86_64-centos7:/cvmfs/lhcb.cern.ch/lib/bin/x86_64-centos7:/cvmfs/lhcb.cern.ch/lib/bin/Linux-x86_64:/cvmfs/lhcb.cern.ch/lib/bin:/cvmfs/lhcbdev.cern.ch/nightly-environments/f9a316e58f691b4ec7ff8b98f67fded3865b6fe6171431b22b67c2755b0a582c/bin:/cvmfs/lhcbdev.cern.ch/conda/miniconda/linux-64/1622055603/condabin:/usr/sue/bin:/usr/lib64/ccache:/usr/local/bin:/usr/bin:/opt/puppetlabs/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin /cvmfs/lhcb.cern.ch/containers/os-base/centos7-devel/prod/amd64 ctest -T test -j 2
2023-12-19 07:39:45,451:DEBUG : Site: lblhcbpr14.cern.ch
2023-12-19 07:39:45,451:DEBUG : Build name: Linux-g++
2023-12-19 07:39:45,453:DEBUG : Create new tag: 20231219-0639 - Experimental
2023-12-19 07:39:45,453:DEBUG : Test project /workspace/build/Gauss/build
2023-12-19 07:39:45,470:DEBUG : Start 26: Gauss.gauss-create-genfsr
2023-12-19 07:39:45,473:DEBUG : Start 1: GaussSys.gausssys
2023-12-19 07:39:47,216:DEBUG : 1/75 Test #26: Gauss.gauss-create-genfsr ...............................................***Skipped 1.75 sec
2023-12-19 07:39:47,217:DEBUG : Start 60: Gauss.gauss-read-genfsr
2023-12-19 07:39:48,698:DEBUG : 2/75 Test #60: Gauss.gauss-read-genfsr .................................................***Skipped 1.48 sec
2023-12-19 07:39:48,699:DEBUG : Start 56: Gauss.gauss-merge-genfsr
[...]
2023-12-19 07:43:11,898:DEBUG : 13/75 Test #1: GaussSys.gausssys ....................................................... Passed 206.42 sec
2023-12-19 07:43:11,938:DEBUG : Start 12: Gauss.gauss-run3-dd4hep
2023-12-19 07:47:53,693:DEBUG : 14/75 Test #11: Gauss.gauss-2016 ........................................................ Passed 283.46 sec
2023-12-19 07:50:32,106:DEBUG : terminate called after throwing an instance of 'std::bad_alloc'
2023-12-19 07:50:32,106:DEBUG : what(): std::bad_alloc
2023-12-19 07:50:32,381:DEBUG : command exited with code -6