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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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=5000,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=5000,variableFilter="time|del.u|del.y",fileNamePrefix="Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001193/0.001193, allocations: 91.84 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.008847/0.008847, allocations: 169.6 kB / 16.26 MB, free: 6.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.426/1.426, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.871/2.871, allocations: 462.7 MB / 0.7364 GB, free: 296 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003818/0.0003818, allocations: 8.969 kB / 0.9028 GB, free: 36.68 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4442/0.4446, allocations: 159.6 MB / 1.059 GB, free: 5.492 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.00179/0.4464, allocations: 1.155 MB / 1.06 GB, free: 4.328 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0008011/0.4473, allocations: 442.8 kB / 1.06 GB, free: 3.891 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.407e-05/0.4473, allocations: 0 / 1.06 GB, free: 3.891 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.038e-05/0.4474, allocations: 3.938 kB / 1.06 GB, free: 3.887 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.384e-05/0.4475, allocations: 7.922 kB / 1.06 GB, free: 3.879 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001565/0.4476, allocations: 15.98 kB / 1.06 GB, free: 3.863 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001084/0.4477, allocations: 47.84 kB / 1.06 GB, free: 3.816 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.73e-05/0.4478, allocations: 4 kB / 1.06 GB, free: 3.812 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.333e-05/0.4479, allocations: 27.86 kB / 1.06 GB, free: 3.785 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.08e-05/0.448, allocations: 15.92 kB / 1.06 GB, free: 3.77 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.181e-05/0.448, allocations: 4 kB / 1.06 GB, free: 3.766 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.045e-05/0.448, allocations: 0 / 1.06 GB, free: 3.766 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.434e-05/0.4481, allocations: 7.938 kB / 1.06 GB, free: 3.758 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.192e-05/0.4481, allocations: 41.62 kB / 1.06 GB, free: 3.711 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001014/0.4482, allocations: 43.81 kB / 1.06 GB, free: 3.668 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.4482, allocations: 0 / 1.06 GB, free: 3.668 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.863e-06/0.4483, allocations: 0 / 1.06 GB, free: 3.668 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.428e-06/0.4483, allocations: 0 / 1.06 GB, free: 3.668 MB / 0.8106 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.0006051/0.4489, allocations: 394.6 kB / 1.061 GB, free: 3.23 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.4489, allocations: 12.03 kB / 1.061 GB, free: 3.219 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.478e-05/0.449, allocations: 4.875 kB / 1.061 GB, free: 3.215 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001479/0.4491, allocations: 184.2 kB / 1.061 GB, free: 2.996 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.708e-05/0.4491, allocations: 384 / 1.061 GB, free: 2.996 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.293e-05/0.4492, allocations: 4.375 kB / 1.061 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001254/0.4493, allocations: 61.94 kB / 1.061 GB, free: 2.926 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.273e-06/0.4493, allocations: 0 / 1.061 GB, free: 2.926 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.151e-05/0.4493, allocations: 0 / 1.061 GB, free: 2.926 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.393e-06/0.4493, allocations: 4 kB / 1.061 GB, free: 2.922 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.639e-05/0.4494, allocations: 15.98 kB / 1.061 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004396/0.4498, allocations: 272.8 kB / 1.061 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 9.788e-05/0.45, allocations: 50.5 kB / 1.061 GB, free: 2.531 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.762e-05/0.45, allocations: 16.98 kB / 1.061 GB, free: 2.512 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.921e-05/0.45, allocations: 0 / 1.061 GB, free: 2.512 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001851/0.4502, allocations: 109 kB / 1.061 GB, free: 2.387 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=9): time 1.253e-06/0.4502, allocations: 0 / 1.061 GB, free: 2.387 MB / 0.8106 GB Notification: Performance of matching and sorting (n=9): time 0.0002707/0.4505, allocations: 135.3 kB / 1.062 GB, free: 2.242 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.905e-05/0.4506, allocations: 81.11 kB / 1.062 GB, free: 2.145 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.068e-05/0.4507, allocations: 113.8 kB / 1.062 GB, free: 2.023 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.441e-05/0.4507, allocations: 25.7 kB / 1.062 GB, free: 1.992 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.979e-05/0.4507, allocations: 92.05 kB / 1.062 GB, free: 1.898 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.218e-05/0.4508, allocations: 19.86 kB / 1.062 GB, free: 1.879 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.853e-05/0.4508, allocations: 17.72 kB / 1.062 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001153/0.4509, allocations: 322.8 kB / 1.062 GB, free: 1.531 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.993e-05/0.451, allocations: 12 kB / 1.062 GB, free: 1.52 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.143e-05/0.451, allocations: 38.56 kB / 1.062 GB, free: 1.473 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.969e-05/0.4511, allocations: 117.9 kB / 1.062 GB, free: 1.336 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.4511, allocations: 3.938 kB / 1.062 GB, free: 1.332 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001535/0.4513, allocations: 119.3 kB / 1.063 GB, free: 1.203 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.791e-05/0.4513, allocations: 33.7 kB / 1.063 GB, free: 1.164 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.381e-06/0.4513, allocations: 384 / 1.063 GB, free: 1.164 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.741e-05/0.4514, allocations: 4 kB / 1.063 GB, free: 1.16 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.704e-05/0.4514, allocations: 4 kB / 1.063 GB, free: 1.156 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.4514, allocations: 11.98 kB / 1.063 GB, free: 1.145 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.255e-05/0.4515, allocations: 15.78 kB / 1.063 GB, free: 1.129 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.967e-06/0.4515, allocations: 4 kB / 1.063 GB, free: 1.125 MB / 0.8106 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.0001165/0.4516, allocations: 151.5 kB / 1.063 GB, free: 0.9609 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.372e-05/0.4517, allocations: 4 kB / 1.063 GB, free: 0.957 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.936e-05/0.4517, allocations: 8.375 kB / 1.063 GB, free: 0.9492 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.4517, allocations: 4 kB / 1.063 GB, free: 0.9453 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.4517, allocations: 4 kB / 1.063 GB, free: 0.9414 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.4517, allocations: 0 / 1.063 GB, free: 0.9414 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003802/0.4521, allocations: 404 kB / 1.063 GB, free: 496 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.4521, allocations: 0 / 1.063 GB, free: 496 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.937e-06/0.4521, allocations: 3.984 kB / 1.063 GB, free: 492 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.4521, allocations: 0 / 1.063 GB, free: 492 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.301e-05/0.4522, allocations: 4 kB / 1.063 GB, free: 488 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.766e-06/0.4522, allocations: 4.062 kB / 1.063 GB, free: 484 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.4522, allocations: 0 / 1.063 GB, free: 484 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002128/0.4524, allocations: 237.1 kB / 1.063 GB, free: 224 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.6e-05/0.4524, allocations: 81.02 kB / 1.063 GB, free: 124 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.033e-05/0.4525, allocations: 4 kB / 1.063 GB, free: 120 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001014/0.4526, allocations: 11.98 kB / 1.063 GB, free: 108 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.615e-05/0.4526, allocations: 19.91 kB / 1.063 GB, free: 88 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.62e-05/0.4527, allocations: 4 kB / 1.064 GB, free: 84 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.61e-05/0.4527, allocations: 87.36 kB / 1.064 GB, free: 15.99 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4527, allocations: 0 / 1.064 GB, free: 15.99 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002238/0.453, allocations: 16 kB / 1.064 GB, free: 15.98 MB / 0.8262 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.0001116/0.4531, allocations: 107.2 kB / 1.064 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001939/0.4533, allocations: 112.1 kB / 1.064 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.4533, allocations: 3.938 kB / 1.064 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.514e-05/0.4534, allocations: 87.39 kB / 1.064 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000287/0.4537, allocations: 20.05 kB / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003473/0.454, allocations: 164.6 kB / 1.064 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003567/0.4544, allocations: 0.6809 MB / 1.065 GB, free: 14.72 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.516e-05/0.4544, allocations: 4 kB / 1.065 GB, free: 14.72 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.51e-05/0.4545, allocations: 11.44 kB / 1.065 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of SimCode: time 2.51e-07/0.4545, allocations: 4 kB / 1.065 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of Templates: time 0.003198/0.4577, allocations: 0.7738 MB / 1.066 GB, free: 13.94 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) 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) Reference file matches