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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001367/0.001367, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.002057/0.002057, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.526/1.526, allocations: 223.3 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.802/2.802, allocations: 462.6 MB / 0.736 GB, free: 15.7 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003941/0.0003941, allocations: 9.781 kB / 0.9021 GB, free: 36.62 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3552/0.3557, allocations: 159.6 MB / 1.058 GB, free: 5.312 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.00167/0.3574, allocations: 1.14 MB / 1.059 GB, free: 4.164 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0006782/0.3581, allocations: 419.1 kB / 1.06 GB, free: 3.75 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.561e-05/0.3581, allocations: 0 / 1.06 GB, free: 3.75 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.695e-05/0.3581, allocations: 4 kB / 1.06 GB, free: 3.746 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.865e-05/0.3582, allocations: 7.875 kB / 1.06 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001687/0.3584, allocations: 11.98 kB / 1.06 GB, free: 3.727 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.471e-05/0.3585, allocations: 47.8 kB / 1.06 GB, free: 3.68 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.197e-05/0.3586, allocations: 19.95 kB / 1.06 GB, free: 3.66 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 5.347e-05/0.3587, allocations: 11.94 kB / 1.06 GB, free: 3.648 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.309e-05/0.3588, allocations: 19.91 kB / 1.06 GB, free: 3.629 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.609e-05/0.3588, allocations: 0 / 1.06 GB, free: 3.629 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.169e-05/0.3588, allocations: 4 kB / 1.06 GB, free: 3.625 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.968e-05/0.3588, allocations: 11.94 kB / 1.06 GB, free: 3.613 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.073e-05/0.3589, allocations: 29.7 kB / 1.06 GB, free: 3.578 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 7.484e-05/0.3589, allocations: 27.94 kB / 1.06 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.972e-06/0.359, allocations: 0 / 1.06 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.613e-06/0.359, allocations: 0 / 1.06 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.018e-06/0.359, allocations: 0 / 1.06 GB, free: 3.551 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.0005836/0.3596, allocations: 397.2 kB / 1.06 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.3596, allocations: 8.031 kB / 1.06 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.43e-05/0.3596, allocations: 4 kB / 1.06 GB, free: 3.098 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00013/0.3598, allocations: 170.9 kB / 1.06 GB, free: 2.891 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.981e-05/0.3598, allocations: 8 kB / 1.06 GB, free: 2.883 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.736e-05/0.3598, allocations: 3.953 kB / 1.06 GB, free: 2.879 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001102/0.3599, allocations: 49.62 kB / 1.06 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.113e-06/0.36, allocations: 0 / 1.06 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.469e-05/0.36, allocations: 8 kB / 1.06 GB, free: 2.816 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.36, allocations: 0 / 1.06 GB, free: 2.816 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.634e-05/0.36, allocations: 19.98 kB / 1.06 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004028/0.3605, allocations: 264.9 kB / 1.061 GB, free: 2.488 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 8.298e-05/0.3606, allocations: 46.5 kB / 1.061 GB, free: 2.434 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.604e-05/0.3606, allocations: 20.98 kB / 1.061 GB, free: 2.41 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.048e-05/0.3606, allocations: 0 / 1.061 GB, free: 2.41 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001864/0.3608, allocations: 109.1 kB / 1.061 GB, free: 2.285 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=9): time 1.383e-06/0.3608, allocations: 0 / 1.061 GB, free: 2.285 MB / 0.8106 GB Notification: Performance of matching and sorting (n=9): time 0.0002779/0.3611, allocations: 147.2 kB / 1.061 GB, free: 2.129 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.381e-05/0.3612, allocations: 81.11 kB / 1.061 GB, free: 2.031 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.91e-05/0.3613, allocations: 109.8 kB / 1.061 GB, free: 1.914 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.647e-05/0.3613, allocations: 29.7 kB / 1.061 GB, free: 1.879 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.237e-05/0.3613, allocations: 84.14 kB / 1.061 GB, free: 1.793 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.013e-05/0.3614, allocations: 19.73 kB / 1.061 GB, free: 1.773 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.789e-06/0.3614, allocations: 8 kB / 1.061 GB, free: 1.766 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001152/0.3615, allocations: 318.8 kB / 1.062 GB, free: 1.445 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.186e-05/0.3615, allocations: 15.98 kB / 1.062 GB, free: 1.43 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.022e-05/0.3616, allocations: 42.5 kB / 1.062 GB, free: 1.379 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.65e-05/0.3617, allocations: 45.7 kB / 1.062 GB, free: 1.328 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3617, allocations: 0 / 1.062 GB, free: 1.328 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001483/0.3618, allocations: 127.2 kB / 1.062 GB, free: 1.191 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.666e-05/0.3619, allocations: 33.7 kB / 1.062 GB, free: 1.152 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.519e-06/0.3619, allocations: 0 / 1.062 GB, free: 1.152 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.124e-05/0.3619, allocations: 0 / 1.062 GB, free: 1.152 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.774e-05/0.3619, allocations: 11.98 kB / 1.062 GB, free: 1.141 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.531e-06/0.362, allocations: 400 / 1.062 GB, free: 1.141 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.365e-05/0.362, allocations: 11.94 kB / 1.062 GB, free: 1.129 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.296e-06/0.362, allocations: 4 kB / 1.062 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 ($PRE.del.firstTrigger,del.firstTrigger,$whenCondition2,$whenCondition1,$whenCondition3,del.y,del.sampleTrigger,del.ySample,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000111/0.3622, allocations: 159.5 kB / 1.062 GB, free: 0.9531 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.594e-05/0.3622, allocations: 7.906 kB / 1.062 GB, free: 0.9453 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.51e-05/0.3622, allocations: 8.375 kB / 1.062 GB, free: 0.9375 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.3622, allocations: 0 / 1.062 GB, free: 0.9375 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.3622, allocations: 0 / 1.062 GB, free: 0.9375 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.3622, allocations: 4 kB / 1.062 GB, free: 0.9336 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003962/0.3626, allocations: 400.1 kB / 1.062 GB, free: 492 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.3626, allocations: 0 / 1.062 GB, free: 492 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.744e-06/0.3627, allocations: 8.375 kB / 1.062 GB, free: 484 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.3627, allocations: 0 / 1.062 GB, free: 484 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.387e-06/0.3627, allocations: 0 / 1.062 GB, free: 484 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-06/0.3627, allocations: 4 kB / 1.062 GB, free: 480 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.3627, allocations: 3.938 kB / 1.062 GB, free: 476 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002153/0.3629, allocations: 237.1 kB / 1.063 GB, free: 216 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.729e-05/0.363, allocations: 85.02 kB / 1.063 GB, free: 112 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.905e-05/0.363, allocations: 0 / 1.063 GB, free: 112 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000103/0.3631, allocations: 15.98 kB / 1.063 GB, free: 96 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.797e-05/0.3632, allocations: 11.98 kB / 1.063 GB, free: 84 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.61e-05/0.3632, allocations: 7.938 kB / 1.063 GB, free: 76 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.183e-05/0.3632, allocations: 95.33 kB / 1.063 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3632, allocations: 0 / 1.063 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002298/0.3635, allocations: 12 kB / 1.063 GB, free: 15.97 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001194/0.3636, allocations: 96.19 kB / 1.063 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001771/0.3638, allocations: 123.3 kB / 1.063 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.3638, allocations: 0 / 1.063 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.08e-05/0.3639, allocations: 91.34 kB / 1.063 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002886/0.3642, allocations: 15.94 kB / 1.063 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003605/0.3646, allocations: 156.8 kB / 1.063 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002678/0.3648, allocations: 0.6848 MB / 1.064 GB, free: 14.72 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.7e-05/0.3649, allocations: 3.984 kB / 1.064 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.482e-05/0.3649, allocations: 11.44 kB / 1.064 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.3649, allocations: 0 / 1.064 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of Templates: time 0.003045/0.368, allocations: 0.7491 MB / 1.065 GB, free: 13.96 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