Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001391/0.001391, allocations: 110 kB / 18.93 MB, free: 2.945 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001475/0.001475, allocations: 186.7 kB / 22.23 MB, free: 5.16 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.476/1.476, allocations: 225.6 MB / 251 MB, free: 13.02 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo): time 3.219/3.219, allocations: 495.7 MB / 0.7831 GB, free: 33.58 MB / 0.6231 GB
"
[Timeout remaining time 176]
Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo)
Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo)
Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo)
Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo)
Running command: translateModel(Buildings.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|del.u|del.y",fileNamePrefix="Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay")
translateModel(Buildings.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|del.u|del.y",fileNamePrefix="Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.002082/0.002082, allocations: 64.09 kB / 1.137 GB, free: 33.91 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3677/0.3698, allocations: 173.6 MB / 1.307 GB, free: 1.961 MB / 0.9981 GB
Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002923/0.3727, allocations: 1.454 MB / 1.308 GB, free: 0.4961 MB / 0.9981 GB
Notification: Performance of NFInst.instExpressions: time 0.0008838/0.3736, allocations: 446.9 kB / 1.309 GB, free: 56 kB / 0.9981 GB
Notification: Performance of NFInst.updateImplicitVariability: time 5.103e-05/0.3736, allocations: 0 / 1.309 GB, free: 56 kB / 0.9981 GB
Notification: Performance of NFTyping.typeComponents: time 3.063e-05/0.3736, allocations: 4 kB / 1.309 GB, free: 52 kB / 0.9981 GB
Notification: Performance of NFTyping.typeBindings: time 0.0001005/0.3737, allocations: 19.86 kB / 1.309 GB, free: 32 kB / 0.9981 GB
Notification: Performance of NFTyping.typeClassSections: time 0.000185/0.3739, allocations: 19.92 kB / 1.309 GB, free: 12 kB / 0.9981 GB
Notification: Performance of NFFlatten.flatten: time 0.0001538/0.3741, allocations: 43.91 kB / 1.309 GB, free: 15.97 MB / 1.014 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001018/0.3742, allocations: 11.92 kB / 1.309 GB, free: 15.96 MB / 1.014 GB
Notification: Performance of NFEvalConstants.evaluate: time 7.463e-05/0.3743, allocations: 19.88 kB / 1.309 GB, free: 15.94 MB / 1.014 GB
Notification: Performance of NFSimplifyModel.simplify: time 7.384e-05/0.3743, allocations: 19.92 kB / 1.309 GB, free: 15.92 MB / 1.014 GB
Notification: Performance of NFPackage.collectConstants: time 2.179e-05/0.3744, allocations: 4 kB / 1.309 GB, free: 15.91 MB / 1.014 GB
Notification: Performance of NFFlatten.collectFunctions: time 1.392e-05/0.3744, allocations: 4 kB / 1.309 GB, free: 15.91 MB / 1.014 GB
Notification: Performance of NFScalarize.scalarize: time 3.061e-05/0.3744, allocations: 11.92 kB / 1.309 GB, free: 15.9 MB / 1.014 GB
Notification: Performance of NFVerifyModel.verify: time 5.709e-05/0.3745, allocations: 23.94 kB / 1.309 GB, free: 15.88 MB / 1.014 GB
Notification: Performance of NFConvertDAE.convert: time 0.0001397/0.3746, allocations: 51.69 kB / 1.309 GB, free: 15.82 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.3746, allocations: 0 / 1.309 GB, free: 15.82 MB / 1.014 GB
Notification: Performance of FrontEnd: time 1.253e-06/0.3746, allocations: 0 / 1.309 GB, free: 15.82 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 5.75e-06/0.3746, allocations: 0 / 1.309 GB, free: 15.82 MB / 1.014 GB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 7
 * Number of variables: 7
Notification: Performance of Generate backend data structure: time 0.0006642/0.3753, allocations: 319.9 kB / 1.309 GB, free: 15.48 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.3753, allocations: 8.031 kB / 1.309 GB, free: 15.47 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 4.78e-05/0.3754, allocations: 8.891 kB / 1.309 GB, free: 15.46 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001241/0.3755, allocations: 110.5 kB / 1.309 GB, free: 15.33 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.613e-05/0.3755, allocations: 384 / 1.309 GB, free: 15.33 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.859e-05/0.3755, allocations: 8.375 kB / 1.309 GB, free: 15.32 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001371/0.3757, allocations: 53.98 kB / 1.309 GB, free: 15.26 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.3757, allocations: 0 / 1.309 GB, free: 15.26 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.166e-05/0.3757, allocations: 0 / 1.309 GB, free: 15.26 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.3757, allocations: 0 / 1.309 GB, free: 15.26 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 6.34e-05/0.3757, allocations: 23.94 kB / 1.31 GB, free: 15.24 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004859/0.3762, allocations: 251.8 kB / 1.31 GB, free: 14.95 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 9.255e-05/0.3763, allocations: 34.58 kB / 1.31 GB, free: 14.91 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 4.154e-05/0.3764, allocations: 20.97 kB / 1.31 GB, free: 14.88 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 2.199e-05/0.3764, allocations: 0 / 1.31 GB, free: 14.88 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002153/0.3766, allocations: 97.03 kB / 1.31 GB, free: 14.77 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=9): time 1.443e-06/0.3766, allocations: 0 / 1.31 GB, free: 14.77 MB / 1.014 GB
Notification: Performance of matching and sorting (n=9): time 0.0003278/0.3769, allocations: 151.3 kB / 1.31 GB, free: 14.61 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.706e-05/0.377, allocations: 77.11 kB / 1.31 GB, free: 14.52 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.79e-05/0.3771, allocations: 109.9 kB / 1.31 GB, free: 14.4 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 2.487e-05/0.3771, allocations: 33.69 kB / 1.31 GB, free: 14.36 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 5.82e-05/0.3772, allocations: 88.41 kB / 1.31 GB, free: 14.27 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 2.57e-05/0.3772, allocations: 23.8 kB / 1.31 GB, free: 14.25 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 5.419e-05/0.3773, allocations: 29.7 kB / 1.31 GB, free: 14.21 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.000144/0.3774, allocations: 318.7 kB / 1.311 GB, free: 13.89 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 4.423e-05/0.3775, allocations: 19.98 kB / 1.311 GB, free: 13.87 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 5.585e-05/0.3775, allocations: 38.52 kB / 1.311 GB, free: 13.82 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.000121/0.3776, allocations: 114.3 kB / 1.311 GB, free: 13.69 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3776, allocations: 0 / 1.311 GB, free: 13.69 MB / 1.014 GB
Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001851/0.3778, allocations: 127.3 kB / 1.311 GB, free: 13.55 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 3.81e-05/0.3779, allocations: 37.75 kB / 1.311 GB, free: 13.51 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.3779, allocations: 0 / 1.311 GB, free: 13.51 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.3779, allocations: 4 kB / 1.311 GB, free: 13.51 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.428e-05/0.3779, allocations: 0 / 1.311 GB, free: 13.51 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.3779, allocations: 4 kB / 1.311 GB, free: 13.5 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.442e-05/0.378, allocations: 11.94 kB / 1.311 GB, free: 13.49 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.898e-06/0.378, allocations: 4 kB / 1.311 GB, free: 13.49 MB / 1.014 GB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 3
 * Number of states: 0 ()
 * Number of discrete variables: 11 (del.firstTrigger,$PRE.del.firstTrigger,$whenCondition2,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,del.ySample,del.sampleTrigger,del.y,$whenCondition3,$whenCondition1)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (9):
 * Single equations (assignments): 8
 * Array equations: 0
 * Algorithm blocks: 1
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Performance of prepare postOptimizeDAE: time 0.0001324/0.3781, allocations: 164.1 kB / 1.311 GB, free: 13.31 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 1.691e-05/0.3782, allocations: 4 kB / 1.311 GB, free: 13.31 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.846e-05/0.3782, allocations: 8.375 kB / 1.311 GB, free: 13.3 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.858e-06/0.3782, allocations: 3.984 kB / 1.311 GB, free: 13.29 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.3782, allocations: 0 / 1.311 GB, free: 13.29 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.3782, allocations: 0 / 1.311 GB, free: 13.29 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004565/0.3787, allocations: 383.2 kB / 1.312 GB, free: 12.86 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.3787, allocations: 4 kB / 1.312 GB, free: 12.86 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.727e-06/0.3787, allocations: 0 / 1.312 GB, free: 12.86 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.3787, allocations: 0 / 1.312 GB, free: 12.86 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.838e-06/0.3787, allocations: 0 / 1.312 GB, free: 12.86 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.3787, allocations: 8 kB / 1.312 GB, free: 12.85 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3787, allocations: 0 / 1.312 GB, free: 12.85 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002468/0.3789, allocations: 229.1 kB / 1.312 GB, free: 12.61 MB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 1.631e-05/0.3789, allocations: 3.953 kB / 1.312 GB, free: 12.6 MB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.657e-05/0.379, allocations: 12.08 kB / 1.312 GB, free: 12.59 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001093/0.3791, allocations: 7.938 kB / 1.312 GB, free: 12.58 MB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 4.552e-05/0.3791, allocations: 11.92 kB / 1.312 GB, free: 12.57 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.668e-05/0.3791, allocations: 4 kB / 1.312 GB, free: 12.57 MB / 1.014 GB
Notification: Performance of sorting global known variables: time 6.254e-05/0.3792, allocations: 95.25 kB / 1.312 GB, free: 12.47 MB / 1.014 GB
Notification: Performance of sort global known variables: time 7e-08/0.3792, allocations: 0 / 1.312 GB, free: 12.47 MB / 1.014 GB
Notification: Performance of remove unused functions: time 0.000248/0.3795, allocations: 20 kB / 1.312 GB, free: 12.45 MB / 1.014 GB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 1
 * Number of states: 0 ()
 * Number of discrete variables: 9 (del.sampleTrigger,$whenCondition2,$whenCondition1,$whenCondition3,del.y,del.firstTrigger,del.ySample,booleanPulse.y,booleanPulse.pulseStart)
 * Number of discrete states: 3 (del.ySample,del.y,$whenCondition3)
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (7):
 * Single equations (assignments): 4
 * Array equations: 0
 * Algorithm blocks: 1
 * Record equations: 0
 * When equations: 2
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Performance of Backend phase and start with SimCode phase: time 0.0001111/0.3796, allocations: 101.7 kB / 1.312 GB, free: 12.35 MB / 1.014 GB
Notification: Performance of simCode: created initialization part: time 0.0002213/0.3798, allocations: 111.3 kB / 1.312 GB, free: 12.23 MB / 1.014 GB
Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.3798, allocations: 0 / 1.312 GB, free: 12.23 MB / 1.014 GB
Notification: Performance of simCode: created simulation system equations: time 9.481e-05/0.3799, allocations: 83.33 kB / 1.312 GB, free: 12.13 MB / 1.014 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003138/0.3802, allocations: 20.06 kB / 1.312 GB, free: 12.11 MB / 1.014 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003795/0.3806, allocations: 149.5 kB / 1.312 GB, free: 11.94 MB / 1.014 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003265/0.3809, allocations: 0.6923 MB / 1.313 GB, free: 11.22 MB / 1.014 GB
Notification: Performance of simCode: alias equations: time 2.929e-05/0.3809, allocations: 4 kB / 1.313 GB, free: 11.22 MB / 1.014 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 2.976e-05/0.381, allocations: 11.44 kB / 1.313 GB, free: 11.21 MB / 1.014 GB
Notification: Performance of SimCode: time 2.91e-07/0.381, allocations: 0 / 1.313 GB, free: 11.21 MB / 1.014 GB
Notification: Performance of Templates: time 0.003895/0.3849, allocations: 0.9133 MB / 1.314 GB, free: 10.3 MB / 1.014 GB
"
[Timeout remaining time 300]
make -j1 -f Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.makefile [Timeout 300]
(rm -f Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & ./Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay  -abortSlowSimulation -alarm=800  -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) [Timeout 800]
diffSimulationResults("Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300]
""
[Timeout remaining time 300]
Reference file matches
[Calling sys.exit(0), Time elapsed: 9.019762775860727]