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/Buildings 9.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay") translateModel(Buildings.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.564/1.564, allocations: 297.8 MB / 313.7 MB, free: 140 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008834/0.0008834, allocations: 174.9 kB / 384.6 MB, free: 10.87 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.237/1.237, allocations: 223.2 MB / 0.6626 GB, free: 4.336 MB / 490.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007931/0.0007931, allocations: 94.11 kB / 0.7808 GB, free: 50.27 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004117/0.0004118, allocations: 19.91 kB / 0.9088 GB, free: 2.895 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6032/0.6036, allocations: 120.3 MB / 1.026 GB, free: 55.95 MB / 0.7292 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1648/0.7684, allocations: 141.8 MB / 1.165 GB, free: 1.73 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001924/0.7687, allocations: 71.09 kB / 1.165 GB, free: 1.672 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.003047/0.7717, allocations: 1.237 MB / 1.166 GB, free: 0.7148 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.204e-06/0.7718, allocations: 0 / 1.166 GB, free: 0.7148 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 5.861e-06/0.7718, allocations: 4 kB / 1.166 GB, free: 0.7109 MB / 0.7292 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.0003708/0.7721, allocations: 382.5 kB / 1.166 GB, free: 304 kB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.26e-05/0.7722, allocations: 12.69 kB / 1.166 GB, free: 292 kB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.557e-05/0.7722, allocations: 1.938 kB / 1.166 GB, free: 292 kB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.738e-05/0.7723, allocations: 178.2 kB / 1.167 GB, free: 76 kB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.5e-05/0.7723, allocations: 5.25 kB / 1.167 GB, free: 72 kB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.04e-05/0.7724, allocations: 384 / 1.167 GB, free: 72 kB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.608e-05/0.7725, allocations: 59.78 kB / 1.167 GB, free: 16 kB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.674e-06/0.7725, allocations: 192 / 1.167 GB, free: 16 kB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.241e-05/0.7725, allocations: 8.594 kB / 1.167 GB, free: 8 kB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.577e-06/0.7725, allocations: 2.953 kB / 1.167 GB, free: 8 kB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.586e-05/0.7726, allocations: 14.42 kB / 1.167 GB, free: 0 / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003643/0.7729, allocations: 272.4 kB / 1.167 GB, free: 15.7 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 8.265e-05/0.773, allocations: 47.73 kB / 1.167 GB, free: 15.65 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.047e-05/0.7731, allocations: 23.03 kB / 1.167 GB, free: 15.63 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.836e-05/0.7731, allocations: 0.9062 kB / 1.167 GB, free: 15.63 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001431/0.7733, allocations: 100.4 kB / 1.167 GB, free: 15.52 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=9): time 1.442e-06/0.7733, allocations: 1.594 kB / 1.167 GB, free: 15.52 MB / 0.7448 GB Notification: Performance of matching and sorting (n=9): time 0.0002445/0.7735, allocations: 143.7 kB / 1.167 GB, free: 15.38 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.358e-05/0.7736, allocations: 81.77 kB / 1.167 GB, free: 15.28 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.343e-05/0.7737, allocations: 111.5 kB / 1.167 GB, free: 15.17 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.592e-05/0.7737, allocations: 25.7 kB / 1.167 GB, free: 15.14 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 4.07e-05/0.7737, allocations: 91.56 kB / 1.168 GB, free: 15.05 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.077e-05/0.7737, allocations: 20.52 kB / 1.168 GB, free: 15.03 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.747e-06/0.7738, allocations: 0.5312 kB / 1.168 GB, free: 15.03 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 9.712e-05/0.7739, allocations: 318.8 kB / 1.168 GB, free: 14.71 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.259e-05/0.7739, allocations: 14.06 kB / 1.168 GB, free: 14.7 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.117e-05/0.774, allocations: 39.05 kB / 1.168 GB, free: 14.66 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.289e-05/0.7741, allocations: 114.9 kB / 1.168 GB, free: 14.53 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.7741, allocations: 3.938 kB / 1.168 GB, free: 14.52 MB / 0.7448 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001409/0.7742, allocations: 121.1 kB / 1.168 GB, free: 14.4 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 2.744e-05/0.7742, allocations: 35.16 kB / 1.168 GB, free: 14.36 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.767e-06/0.7743, allocations: 1.438 kB / 1.168 GB, free: 14.36 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.096e-05/0.7743, allocations: 1.641 kB / 1.168 GB, free: 14.36 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.172e-05/0.7743, allocations: 10.89 kB / 1.168 GB, free: 14.35 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.591e-06/0.7743, allocations: 0.75 kB / 1.168 GB, free: 14.35 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.332e-05/0.7744, allocations: 12.41 kB / 1.168 GB, free: 14.34 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.755e-06/0.7744, allocations: 5.219 kB / 1.168 GB, free: 14.34 MB / 0.7448 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 9.099e-05/0.7745, allocations: 160.3 kB / 1.168 GB, free: 14.17 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.744e-05/0.7745, allocations: 10.31 kB / 1.168 GB, free: 14.16 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.386e-05/0.7746, allocations: 6.609 kB / 1.168 GB, free: 14.16 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.7746, allocations: 0 / 1.168 GB, free: 14.16 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.7746, allocations: 0.5625 kB / 1.168 GB, free: 14.16 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.7746, allocations: 0 / 1.168 GB, free: 14.16 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003405/0.7749, allocations: 399.5 kB / 1.169 GB, free: 13.73 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.775, allocations: 0 / 1.169 GB, free: 13.73 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.226e-06/0.775, allocations: 1.797 kB / 1.169 GB, free: 13.73 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.775, allocations: 4 kB / 1.169 GB, free: 13.73 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.07e-05/0.775, allocations: 5.953 kB / 1.169 GB, free: 13.73 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.775, allocations: 1.344 kB / 1.169 GB, free: 13.73 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.775, allocations: 0.8438 kB / 1.169 GB, free: 13.73 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001898/0.7752, allocations: 239.2 kB / 1.169 GB, free: 13.48 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 3.576e-05/0.7752, allocations: 84.91 kB / 1.169 GB, free: 13.38 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.774e-05/0.7753, allocations: 0.5156 kB / 1.169 GB, free: 13.38 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.996e-05/0.7754, allocations: 16.7 kB / 1.169 GB, free: 13.37 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.157e-05/0.7754, allocations: 9.109 kB / 1.169 GB, free: 13.37 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.423e-05/0.7754, allocations: 4.75 kB / 1.169 GB, free: 13.36 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 4.113e-05/0.7755, allocations: 91.39 kB / 1.169 GB, free: 13.28 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7755, allocations: 0.5 kB / 1.169 GB, free: 13.28 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002129/0.7757, allocations: 16 kB / 1.169 GB, free: 13.26 MB / 0.7448 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 9.286e-05/0.7758, allocations: 109.4 kB / 1.169 GB, free: 13.15 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001501/0.776, allocations: 109.5 kB / 1.169 GB, free: 13.04 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.382e-06/0.776, allocations: 0 / 1.169 GB, free: 13.04 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 8.002e-05/0.7761, allocations: 94.8 kB / 1.169 GB, free: 12.94 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002605/0.7763, allocations: 15.95 kB / 1.169 GB, free: 12.93 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002946/0.7766, allocations: 164.9 kB / 1.17 GB, free: 12.75 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001974/0.7768, allocations: 0.6885 MB / 1.17 GB, free: 12.04 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 2.689e-05/0.7769, allocations: 9.219 kB / 1.17 GB, free: 12.03 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.625e-05/0.7769, allocations: 11.95 kB / 1.17 GB, free: 12.02 MB / 0.7448 GB Notification: Performance of SimCode: time 2.5e-07/0.7769, allocations: 0 / 1.17 GB, free: 12.02 MB / 0.7448 GB Notification: Performance of Templates: time 0.002589/0.7795, allocations: 0.7384 MB / 1.171 GB, free: 11.61 MB / 0.7448 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 -lv LOG_STATS > Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1)