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.001278/0.001278, 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.001335/0.001335, allocations: 190.9 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.49/1.49, 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-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 3.268/3.268, allocations: 496 MB / 0.7835 GB, free: 33.5 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.002016/0.002016, allocations: 67.16 kB / 1.138 GB, free: 33.86 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.4275/0.4295, allocations: 173.6 MB / 1.307 GB, free: 1.84 MB / 0.9981 GB
Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.00268/0.4322, allocations: 1.452 MB / 1.309 GB, free: 388 kB / 0.9981 GB
Notification: Performance of NFInst.instExpressions: time 0.0009115/0.4331, allocations: 443 kB / 1.309 GB, free: 15.94 MB / 1.014 GB
Notification: Performance of NFInst.updateImplicitVariability: time 4.515e-05/0.4332, allocations: 0 / 1.309 GB, free: 15.94 MB / 1.014 GB
Notification: Performance of NFTyping.typeComponents: time 3.223e-05/0.4332, allocations: 7.875 kB / 1.309 GB, free: 15.93 MB / 1.014 GB
Notification: Performance of NFTyping.typeBindings: time 9.019e-05/0.4333, allocations: 15.92 kB / 1.309 GB, free: 15.92 MB / 1.014 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0001763/0.4335, allocations: 19.91 kB / 1.309 GB, free: 15.9 MB / 1.014 GB
Notification: Performance of NFFlatten.flatten: time 0.0001371/0.4336, allocations: 47.86 kB / 1.309 GB, free: 15.85 MB / 1.014 GB
Notification: Performance of NFFlatten.resolveConnections: time 9.646e-05/0.4337, allocations: 11.98 kB / 1.309 GB, free: 15.84 MB / 1.014 GB
Notification: Performance of NFEvalConstants.evaluate: time 6.498e-05/0.4337, allocations: 15.94 kB / 1.309 GB, free: 15.82 MB / 1.014 GB
Notification: Performance of NFSimplifyModel.simplify: time 7.5e-05/0.4338, allocations: 19.91 kB / 1.309 GB, free: 15.8 MB / 1.014 GB
Notification: Performance of NFPackage.collectConstants: time 2.133e-05/0.4338, allocations: 4 kB / 1.309 GB, free: 15.8 MB / 1.014 GB
Notification: Performance of NFFlatten.collectFunctions: time 1.579e-05/0.4339, allocations: 4 kB / 1.309 GB, free: 15.8 MB / 1.014 GB
Notification: Performance of NFScalarize.scalarize: time 2.961e-05/0.4339, allocations: 15.88 kB / 1.309 GB, free: 15.78 MB / 1.014 GB
Notification: Performance of NFVerifyModel.verify: time 4.978e-05/0.4339, allocations: 19.92 kB / 1.309 GB, free: 15.76 MB / 1.014 GB
Notification: Performance of NFConvertDAE.convert: time 0.0001299/0.4341, allocations: 39.83 kB / 1.309 GB, free: 15.72 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.4341, allocations: 7.938 kB / 1.309 GB, free: 15.71 MB / 1.014 GB
Notification: Performance of FrontEnd: time 1.383e-06/0.4341, allocations: 0 / 1.309 GB, free: 15.71 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 8.166e-06/0.4341, allocations: 3.984 kB / 1.309 GB, free: 15.71 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.0006735/0.4348, allocations: 315.9 kB / 1.31 GB, free: 15.37 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 4.523e-05/0.4348, allocations: 12.92 kB / 1.31 GB, free: 15.36 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 4.221e-05/0.4348, allocations: 4.891 kB / 1.31 GB, free: 15.35 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.00013/0.435, allocations: 114.5 kB / 1.31 GB, free: 15.21 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.535e-05/0.435, allocations: 8.375 kB / 1.31 GB, free: 15.21 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.657e-05/0.435, allocations: 384 / 1.31 GB, free: 15.21 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001348/0.4351, allocations: 61.92 kB / 1.31 GB, free: 15.14 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.4352, allocations: 0 / 1.31 GB, free: 15.14 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.442e-05/0.4352, allocations: 4 kB / 1.31 GB, free: 15.14 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.4352, allocations: 0 / 1.31 GB, free: 15.14 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 6.316e-05/0.4352, allocations: 19.98 kB / 1.31 GB, free: 15.12 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004628/0.4357, allocations: 239.9 kB / 1.31 GB, free: 14.84 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 9.125e-05/0.4358, allocations: 38.58 kB / 1.31 GB, free: 14.79 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 4.069e-05/0.4358, allocations: 20.97 kB / 1.31 GB, free: 14.77 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 2.162e-05/0.4359, allocations: 3.938 kB / 1.31 GB, free: 14.77 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001997/0.4361, allocations: 97.09 kB / 1.31 GB, free: 14.65 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=9): time 1.302e-06/0.4361, allocations: 0 / 1.31 GB, free: 14.65 MB / 1.014 GB
Notification: Performance of matching and sorting (n=9): time 0.0003137/0.4364, allocations: 147.3 kB / 1.31 GB, free: 14.5 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 7.029e-05/0.4364, allocations: 93.09 kB / 1.31 GB, free: 14.39 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.171e-05/0.4365, allocations: 109.9 kB / 1.311 GB, free: 14.27 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 2.207e-05/0.4365, allocations: 33.7 kB / 1.311 GB, free: 14.23 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 5.578e-05/0.4366, allocations: 80.14 kB / 1.311 GB, free: 14.15 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 2.86e-05/0.4366, allocations: 23.8 kB / 1.311 GB, free: 14.12 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 4.381e-05/0.4367, allocations: 25.7 kB / 1.311 GB, free: 14.09 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.0001392/0.4368, allocations: 322.8 kB / 1.311 GB, free: 13.77 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 3.573e-05/0.4369, allocations: 15.98 kB / 1.311 GB, free: 13.75 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 5.539e-05/0.4369, allocations: 42.56 kB / 1.311 GB, free: 13.7 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0001221/0.437, allocations: 105.9 kB / 1.311 GB, free: 13.58 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.354e-06/0.437, allocations: 4 kB / 1.311 GB, free: 13.57 MB / 1.014 GB
Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001771/0.4372, allocations: 123.3 kB / 1.311 GB, free: 13.44 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 4.194e-05/0.4373, allocations: 41.62 kB / 1.311 GB, free: 13.39 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.4373, allocations: 4.062 kB / 1.311 GB, free: 13.39 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.844e-05/0.4373, allocations: 3.984 kB / 1.311 GB, free: 13.39 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.75e-05/0.4373, allocations: 4 kB / 1.311 GB, free: 13.38 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.366e-06/0.4373, allocations: 3.938 kB / 1.311 GB, free: 13.38 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.722e-05/0.4374, allocations: 11.94 kB / 1.311 GB, free: 13.37 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.093e-06/0.4374, allocations: 4 kB / 1.311 GB, free: 13.36 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.0001375/0.4375, allocations: 155.4 kB / 1.311 GB, free: 13.2 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 1.586e-05/0.4376, allocations: 4 kB / 1.311 GB, free: 13.19 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.498e-05/0.4376, allocations: 12.36 kB / 1.312 GB, free: 13.18 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.943e-06/0.4376, allocations: 4 kB / 1.312 GB, free: 13.17 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.4376, allocations: 0 / 1.312 GB, free: 13.17 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.4376, allocations: 0 / 1.312 GB, free: 13.17 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004357/0.438, allocations: 371.2 kB / 1.312 GB, free: 12.75 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.438, allocations: 384 / 1.312 GB, free: 12.75 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.458e-06/0.4381, allocations: 4 kB / 1.312 GB, free: 12.75 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 3.516e-06/0.4381, allocations: 4 kB / 1.312 GB, free: 12.75 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.006e-05/0.4381, allocations: 0 / 1.312 GB, free: 12.75 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.504e-06/0.4381, allocations: 8 kB / 1.312 GB, free: 12.74 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.4381, allocations: 4 kB / 1.312 GB, free: 12.73 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002341/0.4383, allocations: 233.1 kB / 1.312 GB, free: 12.48 MB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 1.778e-05/0.4383, allocations: 11.94 kB / 1.312 GB, free: 12.47 MB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.349e-05/0.4384, allocations: 4 kB / 1.312 GB, free: 12.47 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001008/0.4385, allocations: 8 kB / 1.312 GB, free: 12.46 MB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 5.665e-05/0.4385, allocations: 11.92 kB / 1.312 GB, free: 12.45 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.683e-05/0.4385, allocations: 0 / 1.312 GB, free: 12.45 MB / 1.014 GB
Notification: Performance of sorting global known variables: time 6.229e-05/0.4386, allocations: 95.27 kB / 1.312 GB, free: 12.36 MB / 1.014 GB
Notification: Performance of sort global known variables: time 7e-08/0.4386, allocations: 0 / 1.312 GB, free: 12.36 MB / 1.014 GB
Notification: Performance of remove unused functions: time 0.0002272/0.4388, allocations: 16 kB / 1.312 GB, free: 12.34 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.0001096/0.4389, allocations: 106 kB / 1.312 GB, free: 12.23 MB / 1.014 GB
Notification: Performance of simCode: created initialization part: time 0.000199/0.4391, allocations: 107.4 kB / 1.312 GB, free: 12.11 MB / 1.014 GB
Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.4391, allocations: 0 / 1.312 GB, free: 12.11 MB / 1.014 GB
Notification: Performance of simCode: created simulation system equations: time 9.184e-05/0.4392, allocations: 79.33 kB / 1.313 GB, free: 12.02 MB / 1.014 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003122/0.4395, allocations: 24 kB / 1.313 GB, free: 12 MB / 1.014 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003753/0.4399, allocations: 154.3 kB / 1.313 GB, free: 11.82 MB / 1.014 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000318/0.4402, allocations: 0.6884 MB / 1.313 GB, free: 11.11 MB / 1.014 GB
Notification: Performance of simCode: alias equations: time 2.881e-05/0.4403, allocations: 4 kB / 1.313 GB, free: 11.11 MB / 1.014 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 2.882e-05/0.4403, allocations: 11.44 kB / 1.313 GB, free: 11.09 MB / 1.014 GB
Notification: Performance of SimCode: time 3.01e-07/0.4403, allocations: 0 / 1.313 GB, free: 11.09 MB / 1.014 GB
Notification: Performance of Templates: time 0.003606/0.4439, allocations: 0.9172 MB / 1.314 GB, free: 10.19 MB / 1.014 GB
"
[Timeout remaining time 300]
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.244703986681998]