Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001546/0.001546, allocations: 104.6 kB / 18.84 MB, free: 3.023 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.001925/0.001925, allocations: 191.3 kB / 22.11 MB, free: 4.227 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.45/1.45, allocations: 225.6 MB / 250.8 MB, free: 2.922 MB / 190.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo): time 2.996/2.996, allocations: 495.8 MB / 0.7831 GB, free: 12.25 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-maint.12.x/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_12_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_12_Buildings.Controls.Discrete.Examples.BooleanDelay") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.003017/0.003017, allocations: 71.88 kB / 1.137 GB, free: 10.21 MB / 0.8731 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.9606/0.9636, allocations: 173.6 MB / 1.307 GB, free: 0.9297 MB / 0.9981 GB
Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.003829/0.9675, allocations: 1.439 MB / 1.308 GB, free: 15.94 MB / 1.014 GB
Notification: Performance of NFInst.instExpressions: time 0.001068/0.9685, allocations: 452.8 kB / 1.309 GB, free: 15.62 MB / 1.014 GB
Notification: Performance of NFInst.updateImplicitVariability: time 4.935e-05/0.9686, allocations: 0 / 1.309 GB, free: 15.62 MB / 1.014 GB
Notification: Performance of NFTyping.typeComponents: time 3.601e-05/0.9686, allocations: 2.125 kB / 1.309 GB, free: 15.62 MB / 1.014 GB
Notification: Performance of NFTyping.typeBindings: time 9.704e-05/0.9687, allocations: 15.39 kB / 1.309 GB, free: 15.61 MB / 1.014 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0001793/0.9689, allocations: 19.12 kB / 1.309 GB, free: 15.6 MB / 1.014 GB
Notification: Performance of NFFlatten.flatten: time 0.0001513/0.969, allocations: 53.33 kB / 1.309 GB, free: 15.57 MB / 1.014 GB
Notification: Performance of NFFlatten.resolveConnections: time 9.61e-05/0.9691, allocations: 4.031 kB / 1.309 GB, free: 15.57 MB / 1.014 GB
Notification: Performance of NFEvalConstants.evaluate: time 7.721e-05/0.9692, allocations: 35.61 kB / 1.309 GB, free: 15.55 MB / 1.014 GB
Notification: Performance of NFSimplifyModel.simplify: time 7.955e-05/0.9693, allocations: 18.56 kB / 1.309 GB, free: 15.54 MB / 1.014 GB
Notification: Performance of NFPackage.collectConstants: time 2.13e-05/0.9693, allocations: 4.156 kB / 1.309 GB, free: 15.54 MB / 1.014 GB
Notification: Performance of NFFlatten.collectFunctions: time 1.319e-05/0.9693, allocations: 3.094 kB / 1.309 GB, free: 15.54 MB / 1.014 GB
Notification: Performance of NFScalarize.scalarize: time 2.917e-05/0.9693, allocations: 6.969 kB / 1.309 GB, free: 15.54 MB / 1.014 GB
Notification: Performance of NFVerifyModel.verify: time 5.187e-05/0.9694, allocations: 20.61 kB / 1.309 GB, free: 15.53 MB / 1.014 GB
Notification: Performance of NFConvertDAE.convert: time 0.0001481/0.9695, allocations: 50.77 kB / 1.309 GB, free: 15.5 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/0.9696, allocations: 2.531 kB / 1.309 GB, free: 15.5 MB / 1.014 GB
Notification: Performance of FrontEnd: time 1.864e-06/0.9696, allocations: 0 / 1.309 GB, free: 15.5 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 1.041e-05/0.9696, allocations: 3.938 kB / 1.309 GB, free: 15.5 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.0006532/0.9702, allocations: 317.4 kB / 1.309 GB, free: 15.19 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.9703, allocations: 10.06 kB / 1.309 GB, free: 15.19 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 4.497e-05/0.9703, allocations: 12.3 kB / 1.309 GB, free: 15.18 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001291/0.9704, allocations: 107.1 kB / 1.309 GB, free: 15.06 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.767e-05/0.9705, allocations: 7.078 kB / 1.309 GB, free: 15.05 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.597e-05/0.9705, allocations: 3.172 kB / 1.309 GB, free: 15.05 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.00014/0.9706, allocations: 59.08 kB / 1.309 GB, free: 15.01 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.9706, allocations: 5.281 kB / 1.309 GB, free: 15 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.097e-05/0.9706, allocations: 0.6562 kB / 1.309 GB, free: 15 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.9706, allocations: 0.7812 kB / 1.309 GB, free: 15 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 6.186e-05/0.9707, allocations: 21.09 kB / 1.309 GB, free: 15 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004484/0.9711, allocations: 251.1 kB / 1.31 GB, free: 14.74 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0001005/0.9712, allocations: 39.08 kB / 1.31 GB, free: 14.71 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 4.388e-05/0.9713, allocations: 17.3 kB / 1.31 GB, free: 14.7 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 2.34e-05/0.9713, allocations: 5.156 kB / 1.31 GB, free: 14.69 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002282/0.9715, allocations: 99.62 kB / 1.31 GB, free: 14.6 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=9): time 1.572e-06/0.9715, allocations: 0.5625 kB / 1.31 GB, free: 14.6 MB / 1.014 GB
Notification: Performance of matching and sorting (n=9): time 0.000333/0.9719, allocations: 140.8 kB / 1.31 GB, free: 14.51 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 7.559e-05/0.9719, allocations: 88.94 kB / 1.31 GB, free: 14.41 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.951e-05/0.972, allocations: 108.4 kB / 1.31 GB, free: 14.31 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 2.113e-05/0.9721, allocations: 26.89 kB / 1.31 GB, free: 14.28 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 6.25e-05/0.9721, allocations: 90.44 kB / 1.31 GB, free: 14.19 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 2.354e-05/0.9722, allocations: 17.53 kB / 1.31 GB, free: 14.18 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 4.689e-05/0.9722, allocations: 23.58 kB / 1.31 GB, free: 14.16 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.0001438/0.9723, allocations: 327.1 kB / 1.31 GB, free: 13.83 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 3.827e-05/0.9724, allocations: 14.64 kB / 1.31 GB, free: 13.83 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 5.51e-05/0.9724, allocations: 37.8 kB / 1.311 GB, free: 13.8 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0001187/0.9726, allocations: 114.5 kB / 1.311 GB, free: 13.69 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.9726, allocations: 1.219 kB / 1.311 GB, free: 13.69 MB / 1.014 GB
Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001726/0.9727, allocations: 125.3 kB / 1.311 GB, free: 13.6 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 3.939e-05/0.9728, allocations: 35.09 kB / 1.311 GB, free: 13.57 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.9728, allocations: 0 / 1.311 GB, free: 13.57 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/0.9728, allocations: 6.203 kB / 1.311 GB, free: 13.56 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.912e-05/0.9728, allocations: 3.516 kB / 1.311 GB, free: 13.56 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.682e-06/0.9728, allocations: 5.062 kB / 1.311 GB, free: 13.56 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.062e-05/0.9729, allocations: 10.66 kB / 1.311 GB, free: 13.55 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.624e-06/0.9729, allocations: 3.656 kB / 1.311 GB, free: 13.55 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.0001281/0.9731, allocations: 164 kB / 1.311 GB, free: 13.39 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 1.613e-05/0.9731, allocations: 4.172 kB / 1.311 GB, free: 13.39 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.988e-05/0.9731, allocations: 10.19 kB / 1.311 GB, free: 13.38 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.9731, allocations: 1.156 kB / 1.311 GB, free: 13.38 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/0.9731, allocations: 0 / 1.311 GB, free: 13.38 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.471e-06/0.9731, allocations: 1.797 kB / 1.311 GB, free: 13.38 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004623/0.9736, allocations: 378.5 kB / 1.311 GB, free: 13.04 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.9736, allocations: 0 / 1.311 GB, free: 13.04 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.787e-06/0.9736, allocations: 1.672 kB / 1.311 GB, free: 13.04 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 2.514e-06/0.9736, allocations: 1.719 kB / 1.311 GB, free: 13.04 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.724e-05/0.9736, allocations: 7.109 kB / 1.311 GB, free: 13.04 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.9736, allocations: 64 / 1.311 GB, free: 13.04 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.9736, allocations: 4 kB / 1.311 GB, free: 13.03 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000264/0.9739, allocations: 237.5 kB / 1.312 GB, free: 12.84 MB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 1.508e-05/0.9739, allocations: 6.812 kB / 1.312 GB, free: 12.83 MB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.633e-05/0.9739, allocations: 7.031 kB / 1.312 GB, free: 12.83 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001202/0.974, allocations: 11.7 kB / 1.312 GB, free: 12.82 MB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 5.453e-05/0.9741, allocations: 11.25 kB / 1.312 GB, free: 12.82 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.541e-05/0.9741, allocations: 2.953 kB / 1.312 GB, free: 12.82 MB / 1.014 GB
Notification: Performance of sorting global known variables: time 5.534e-05/0.9742, allocations: 88.12 kB / 1.312 GB, free: 12.74 MB / 1.014 GB
Notification: Performance of sort global known variables: time 8e-08/0.9742, allocations: 0 / 1.312 GB, free: 12.74 MB / 1.014 GB
Notification: Performance of remove unused functions: time 0.0002395/0.9744, allocations: 18.28 kB / 1.312 GB, free: 12.74 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 9.975e-05/0.9745, allocations: 104.1 kB / 1.312 GB, free: 12.65 MB / 1.014 GB
Notification: Performance of simCode: created initialization part: time 0.000209/0.9747, allocations: 110.9 kB / 1.312 GB, free: 12.57 MB / 1.014 GB
Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.9747, allocations: 0 / 1.312 GB, free: 12.57 MB / 1.014 GB
Notification: Performance of simCode: created simulation system equations: time 9.685e-05/0.9748, allocations: 84.78 kB / 1.312 GB, free: 12.49 MB / 1.014 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002955/0.9751, allocations: 14.53 kB / 1.312 GB, free: 12.49 MB / 1.014 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00035/0.9755, allocations: 156.2 kB / 1.312 GB, free: 12.36 MB / 1.014 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003027/0.9758, allocations: 0.6917 MB / 1.313 GB, free: 11.65 MB / 1.014 GB
Notification: Performance of simCode: alias equations: time 2.835e-05/0.9758, allocations: 4.969 kB / 1.313 GB, free: 11.65 MB / 1.014 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 3.157e-05/0.9758, allocations: 11.44 kB / 1.313 GB, free: 11.64 MB / 1.014 GB
Notification: Performance of SimCode: time 7.32e-07/0.9758, allocations: 0 / 1.313 GB, free: 11.64 MB / 1.014 GB
Notification: Performance of Templates: time 0.00419/0.98, allocations: 0.907 MB / 1.314 GB, free: 11.54 MB / 1.014 GB
"
[Timeout remaining time 299]
make -j1 -f Buildings_12_Buildings.Controls.Discrete.Examples.BooleanDelay.makefile [Timeout 300]
(rm -f Buildings_12_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_12_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_12_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & ./Buildings_12_Buildings.Controls.Discrete.Examples.BooleanDelay  -abortSlowSimulation -alarm=400  -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) [Timeout 400]
diffSimulationResults("Buildings_12_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.456966236233711]