gaudirun.py from Gaudi.Configuration import * from Configurables import GaudiTesting__SleepyAlg as SleepyAlg from Configurables import StalledEventMonitor importOptions("Common.opts") alg = SleepyAlg("Sleepy", SleepTime = 11) sem = StalledEventMonitor(EventTimeout = 2) app = ApplicationMgr(TopAlg = [alg], EvtSel = "NONE", EvtMax = 2, StalledEventMonitoring = True) import re stdout = re.subn(r"size = [0-9]+(\.[0-9]*)? MB", "size = # MB", stdout)[0] findReferenceBlock(""" ApplicationMgr INFO Application Manager Started successfully Sleepy INFO Executing event 1 Sleepy INFO Sleeping for 11 seconds EventWatchdog WARNING More than 2s since the last BeginEvent EventWatchdog INFO Current memory usage is virtual size = # MB, resident set size = # MB EventWatchdog WARNING Other 2s passed EventWatchdog INFO Current memory usage is virtual size = # MB, resident set size = # MB EventWatchdog WARNING Other 2s passed EventWatchdog INFO Current memory usage is virtual size = # MB, resident set size = # MB EventWatchdog WARNING Other 2s passed EventWatchdog INFO Current memory usage is virtual size = # MB, resident set size = # MB EventWatchdog WARNING Other 2s passed EventWatchdog INFO Current memory usage is virtual size = # MB, resident set size = # MB Sleepy INFO Back from sleep EventWatchdog INFO Starting a new event after ~10s Sleepy INFO Executing event 2 Sleepy INFO Sleeping for 11 seconds EventWatchdog WARNING More than 2s since the last BeginEvent EventWatchdog INFO Current memory usage is virtual size = # MB, resident set size = # MB EventWatchdog WARNING Other 2s passed EventWatchdog INFO Current memory usage is virtual size = # MB, resident set size = # MB EventWatchdog WARNING Other 2s passed EventWatchdog INFO Current memory usage is virtual size = # MB, resident set size = # MB EventWatchdog WARNING Other 2s passed EventWatchdog INFO Current memory usage is virtual size = # MB, resident set size = # MB EventWatchdog WARNING Other 2s passed EventWatchdog INFO Current memory usage is virtual size = # MB, resident set size = # MB Sleepy INFO Back from sleep EventWatchdog INFO The last event took ~10s ApplicationMgr INFO Application Manager Stopped successfully """, stdout = stdout)