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.001139/0.001139, allocations: 110.2 kB / 16.41 MB, free: 6.496 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.001175/0.001175, allocations: 187 kB / 17.34 MB, free: 5.762 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.24/1.24, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.365/2.365, allocations: 461.9 MB / 0.7355 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 64.14 kB / 1.055 GB, free: 7.77 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.665/0.6663, allocations: 157.4 MB / 1.208 GB, free: 13.69 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002349/0.6687, allocations: 1.427 MB / 1.21 GB, free: 12.26 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0006549/0.6693, allocations: 431 kB / 1.21 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.675e-05/0.6694, allocations: 0 / 1.21 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.888e-05/0.6694, allocations: 3.938 kB / 1.21 GB, free: 11.83 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 7.599e-05/0.6695, allocations: 3.938 kB / 1.21 GB, free: 11.83 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001426/0.6697, allocations: 27.92 kB / 1.21 GB, free: 11.8 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001057/0.6698, allocations: 55.83 kB / 1.21 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 7.607e-05/0.6699, allocations: 4 kB / 1.21 GB, free: 11.74 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 5.563e-05/0.6699, allocations: 19.92 kB / 1.21 GB, free: 11.72 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 6.068e-05/0.67, allocations: 23.86 kB / 1.21 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.841e-05/0.67, allocations: 4 kB / 1.21 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.058e-05/0.67, allocations: 0 / 1.21 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.305e-05/0.6701, allocations: 15.92 kB / 1.21 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.175e-05/0.6701, allocations: 19.94 kB / 1.21 GB, free: 11.66 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001067/0.6702, allocations: 43.81 kB / 1.21 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.6702, allocations: 4 kB / 1.21 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.483e-06/0.6702, allocations: 3.938 kB / 1.21 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.541e-06/0.6702, allocations: 0 / 1.21 GB, free: 11.61 MB / 0.9356 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.0005442/0.6708, allocations: 396.9 kB / 1.211 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.262e-05/0.6708, allocations: 12.03 kB / 1.211 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.263e-05/0.6709, allocations: 4.844 kB / 1.211 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001094/0.671, allocations: 178.1 kB / 1.211 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.251e-05/0.671, allocations: 8.359 kB / 1.211 GB, free: 10.94 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.072e-05/0.671, allocations: 4.375 kB / 1.211 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001056/0.6711, allocations: 61.92 kB / 1.211 GB, free: 10.87 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.162e-06/0.6712, allocations: 0 / 1.211 GB, free: 10.87 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.417e-06/0.6712, allocations: 0 / 1.211 GB, free: 10.87 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.626e-06/0.6712, allocations: 4 kB / 1.211 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.778e-05/0.6712, allocations: 12 kB / 1.211 GB, free: 10.85 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003633/0.6716, allocations: 284.8 kB / 1.211 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 7.717e-05/0.6717, allocations: 42.52 kB / 1.211 GB, free: 10.47 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.227e-05/0.6717, allocations: 20.97 kB / 1.211 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.32e-05/0.6717, allocations: 0 / 1.211 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001556/0.6719, allocations: 101.1 kB / 1.211 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=9): time 1.593e-06/0.6719, allocations: 0 / 1.211 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of matching and sorting (n=9): time 0.0002454/0.6722, allocations: 143.2 kB / 1.212 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.863e-05/0.6722, allocations: 85.09 kB / 1.212 GB, free: 10.08 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.709e-05/0.6723, allocations: 109.8 kB / 1.212 GB, free: 9.961 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.444e-05/0.6723, allocations: 25.7 kB / 1.212 GB, free: 9.93 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 4.154e-05/0.6724, allocations: 96.16 kB / 1.212 GB, free: 9.832 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.906e-05/0.6724, allocations: 15.81 kB / 1.212 GB, free: 9.816 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.437e-05/0.6724, allocations: 25.7 kB / 1.212 GB, free: 9.785 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001037/0.6726, allocations: 318.8 kB / 1.212 GB, free: 9.465 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.24e-05/0.6726, allocations: 19.98 kB / 1.212 GB, free: 9.445 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.656e-05/0.6726, allocations: 50.38 kB / 1.212 GB, free: 9.387 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001004/0.6728, allocations: 106.4 kB / 1.212 GB, free: 9.262 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.6728, allocations: 0 / 1.212 GB, free: 9.262 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001433/0.6729, allocations: 123.2 kB / 1.213 GB, free: 9.129 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.827e-05/0.6729, allocations: 37.75 kB / 1.213 GB, free: 9.086 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.673, allocations: 3.938 kB / 1.213 GB, free: 9.082 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.198e-05/0.673, allocations: 4 kB / 1.213 GB, free: 9.078 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.096e-05/0.673, allocations: 7.938 kB / 1.213 GB, free: 9.07 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.673, allocations: 0 / 1.213 GB, free: 9.07 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.31e-05/0.6731, allocations: 11.98 kB / 1.213 GB, free: 9.059 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.344e-05/0.6731, allocations: 4 kB / 1.213 GB, free: 9.055 MB / 0.9356 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 9.051e-05/0.6732, allocations: 147.5 kB / 1.213 GB, free: 8.895 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.58e-05/0.6732, allocations: 7.906 kB / 1.213 GB, free: 8.887 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.462e-05/0.6733, allocations: 16.36 kB / 1.213 GB, free: 8.867 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.6733, allocations: 0 / 1.213 GB, free: 8.867 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.6733, allocations: 0 / 1.213 GB, free: 8.867 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/0.6733, allocations: 0 / 1.213 GB, free: 8.867 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003536/0.6736, allocations: 404.1 kB / 1.213 GB, free: 8.41 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.6737, allocations: 0 / 1.213 GB, free: 8.41 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.137e-06/0.6737, allocations: 4 kB / 1.213 GB, free: 8.406 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.6737, allocations: 0 / 1.213 GB, free: 8.406 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.727e-06/0.6737, allocations: 0 / 1.213 GB, free: 8.406 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.6737, allocations: 4 kB / 1.213 GB, free: 8.402 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.6737, allocations: 8.062 kB / 1.213 GB, free: 8.395 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001916/0.6739, allocations: 233 kB / 1.213 GB, free: 8.145 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.26e-05/0.674, allocations: 89 kB / 1.213 GB, free: 8.039 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.862e-05/0.674, allocations: 0 / 1.213 GB, free: 8.039 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.832e-05/0.6741, allocations: 11.98 kB / 1.213 GB, free: 8.027 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.283e-05/0.6741, allocations: 15.92 kB / 1.214 GB, free: 8.012 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.153e-05/0.6742, allocations: 0 / 1.214 GB, free: 8.012 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.084e-05/0.6742, allocations: 99.25 kB / 1.214 GB, free: 7.914 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6742, allocations: 0 / 1.214 GB, free: 7.914 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002191/0.6744, allocations: 12 kB / 1.214 GB, free: 7.902 MB / 0.9356 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.004e-05/0.6745, allocations: 107.1 kB / 1.214 GB, free: 7.789 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.000155/0.6747, allocations: 124 kB / 1.214 GB, free: 7.656 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.6747, allocations: 0 / 1.214 GB, free: 7.656 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 8.201e-05/0.6748, allocations: 91.39 kB / 1.214 GB, free: 7.555 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002604/0.675, allocations: 12.12 kB / 1.214 GB, free: 7.543 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000306/0.6754, allocations: 171.3 kB / 1.214 GB, free: 7.344 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002255/0.6756, allocations: 0.6885 MB / 1.215 GB, free: 6.629 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.797e-05/0.6756, allocations: 15.44 kB / 1.215 GB, free: 6.613 MB / 0.9356 GB Notification: Performance of SimCode: time 2.31e-07/0.6756, allocations: 0 / 1.215 GB, free: 6.613 MB / 0.9356 GB Notification: Performance of Templates: time 0.001973/0.6776, allocations: 0.8976 MB / 1.216 GB, free: 5.723 MB / 0.9356 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches