Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.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(BuildingSystems.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay") translateModel(BuildingSystems.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001511/0.001511, allocations: 106.2 kB / 16.36 MB, free: 6.34 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.001717/0.001717, allocations: 198.2 kB / 17.3 MB, free: 5.879 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.258/1.258, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001973/0.001973, allocations: 280.7 kB / 291.4 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8939/0.8939, allocations: 169.3 MB / 0.4989 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001674/0.001674, allocations: 90.89 kB / 0.5967 GB, free: 14.43 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1597/0.1614, allocations: 86.97 MB / 0.6816 GB, free: 7.449 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Discrete.Examples.BooleanDelay): time 0.002545/0.164, allocations: 1.426 MB / 0.683 GB, free: 6.012 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006591/0.1647, allocations: 431 kB / 0.6834 GB, free: 5.586 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.565e-05/0.1647, allocations: 0 / 0.6834 GB, free: 5.586 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.897e-05/0.1648, allocations: 3.938 kB / 0.6834 GB, free: 5.582 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 7.574e-05/0.1648, allocations: 15.88 kB / 0.6834 GB, free: 5.566 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001388/0.165, allocations: 19.97 kB / 0.6834 GB, free: 5.547 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001078/0.1651, allocations: 51.84 kB / 0.6835 GB, free: 5.496 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.511e-05/0.1652, allocations: 8 kB / 0.6835 GB, free: 5.488 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.239e-05/0.1653, allocations: 23.86 kB / 0.6835 GB, free: 5.465 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.9e-05/0.1653, allocations: 19.92 kB / 0.6835 GB, free: 5.445 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.843e-05/0.1654, allocations: 4 kB / 0.6835 GB, free: 5.441 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.103e-05/0.1654, allocations: 4 kB / 0.6835 GB, free: 5.438 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.46e-05/0.1654, allocations: 19.84 kB / 0.6835 GB, free: 5.418 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.269e-05/0.1654, allocations: 19.94 kB / 0.6836 GB, free: 5.398 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 9.97e-05/0.1656, allocations: 43.77 kB / 0.6836 GB, free: 5.355 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.1656, allocations: 0 / 0.6836 GB, free: 5.355 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1656, allocations: 0 / 0.6836 GB, free: 5.355 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.438e-06/0.1656, allocations: 0 / 0.6836 GB, free: 5.355 MB / 494.1 MB 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.0005767/0.1662, allocations: 389.1 kB / 0.684 GB, free: 4.922 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.398e-05/0.1662, allocations: 12.03 kB / 0.684 GB, free: 4.91 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.284e-05/0.1662, allocations: 12.78 kB / 0.684 GB, free: 4.898 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001233/0.1664, allocations: 168.4 kB / 0.6842 GB, free: 4.695 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.119e-05/0.1664, allocations: 4.375 kB / 0.6842 GB, free: 4.691 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.579e-05/0.1664, allocations: 8.375 kB / 0.6842 GB, free: 4.684 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001084/0.1665, allocations: 46 kB / 0.6842 GB, free: 4.633 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.1665, allocations: 4 kB / 0.6842 GB, free: 4.629 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.128e-05/0.1666, allocations: 3.984 kB / 0.6842 GB, free: 4.625 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.698e-06/0.1666, allocations: 0 / 0.6842 GB, free: 4.625 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.386e-05/0.1666, allocations: 16 kB / 0.6842 GB, free: 4.609 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003673/0.167, allocations: 276.7 kB / 0.6845 GB, free: 4.289 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.697e-05/0.1671, allocations: 42.56 kB / 0.6845 GB, free: 4.238 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.835e-05/0.1671, allocations: 24.97 kB / 0.6846 GB, free: 4.211 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.423e-05/0.1672, allocations: 0 / 0.6846 GB, free: 4.211 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001516/0.1673, allocations: 101 kB / 0.6847 GB, free: 4.094 MB / 494.1 MB Notification: Performance of pre-optimization done (n=9): time 1.413e-06/0.1673, allocations: 4 kB / 0.6847 GB, free: 4.09 MB / 494.1 MB Notification: Performance of matching and sorting (n=9): time 0.0002687/0.1676, allocations: 139.3 kB / 0.6848 GB, free: 3.941 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.911e-05/0.1677, allocations: 85.11 kB / 0.6849 GB, free: 3.84 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.34e-05/0.1677, allocations: 109.8 kB / 0.685 GB, free: 3.723 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.7e-05/0.1678, allocations: 29.7 kB / 0.685 GB, free: 3.688 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.288e-05/0.1678, allocations: 88.12 kB / 0.6851 GB, free: 3.598 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.889e-05/0.1679, allocations: 20.52 kB / 0.6851 GB, free: 3.578 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.962e-05/0.1679, allocations: 21.72 kB / 0.6851 GB, free: 3.551 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001055/0.168, allocations: 326.8 kB / 0.6855 GB, free: 3.223 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.267e-05/0.168, allocations: 16.28 kB / 0.6855 GB, free: 3.207 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.565e-05/0.1681, allocations: 46.38 kB / 0.6855 GB, free: 3.152 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001022/0.1682, allocations: 113.9 kB / 0.6856 GB, free: 3.02 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.1682, allocations: 0 / 0.6856 GB, free: 3.02 MB / 494.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001466/0.1684, allocations: 131.2 kB / 0.6857 GB, free: 2.879 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.06e-05/0.1684, allocations: 41.69 kB / 0.6858 GB, free: 2.832 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-06/0.1684, allocations: 0 / 0.6858 GB, free: 2.832 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.311e-05/0.1684, allocations: 0 / 0.6858 GB, free: 2.832 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.907e-05/0.1685, allocations: 4 kB / 0.6858 GB, free: 2.828 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.019e-06/0.1685, allocations: 0 / 0.6858 GB, free: 2.828 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.87e-05/0.1686, allocations: 4.062 kB / 0.6858 GB, free: 2.824 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.113e-05/0.1686, allocations: 8 kB / 0.6858 GB, free: 2.816 MB / 494.1 MB 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.973e-05/0.1687, allocations: 167.2 kB / 0.686 GB, free: 2.641 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.463e-05/0.1687, allocations: 7.906 kB / 0.686 GB, free: 2.633 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.765e-05/0.1687, allocations: 8.375 kB / 0.686 GB, free: 2.625 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.1688, allocations: 4 kB / 0.686 GB, free: 2.621 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.1688, allocations: 0 / 0.686 GB, free: 2.621 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.177e-06/0.1688, allocations: 3.984 kB / 0.686 GB, free: 2.617 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003748/0.1691, allocations: 396.2 kB / 0.6864 GB, free: 2.168 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.1692, allocations: 0 / 0.6864 GB, free: 2.168 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.484e-06/0.1692, allocations: 0 / 0.6864 GB, free: 2.168 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.1692, allocations: 0 / 0.6864 GB, free: 2.168 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.146e-05/0.1692, allocations: 8 kB / 0.6864 GB, free: 2.16 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.1692, allocations: 0 / 0.6864 GB, free: 2.16 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.1692, allocations: 0 / 0.6864 GB, free: 2.16 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002092/0.1694, allocations: 241 kB / 0.6866 GB, free: 1.902 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.622e-05/0.1695, allocations: 77.11 kB / 0.6867 GB, free: 1.809 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.074e-05/0.1695, allocations: 7.984 kB / 0.6867 GB, free: 1.801 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.958e-05/0.1696, allocations: 4 kB / 0.6867 GB, free: 1.797 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.283e-05/0.1697, allocations: 19.92 kB / 0.6867 GB, free: 1.777 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.538e-05/0.1697, allocations: 4 kB / 0.6867 GB, free: 1.773 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.317e-05/0.1697, allocations: 91.89 kB / 0.6868 GB, free: 1.684 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1697, allocations: 7.875 kB / 0.6868 GB, free: 1.676 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002316/0.17, allocations: 16 kB / 0.6868 GB, free: 1.66 MB / 494.1 MB 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 8.671e-05/0.1701, allocations: 99.25 kB / 0.6869 GB, free: 1.555 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001925/0.1703, allocations: 119.3 kB / 0.687 GB, free: 1.426 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.1703, allocations: 4.125 kB / 0.687 GB, free: 1.422 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 8.256e-05/0.1704, allocations: 91.39 kB / 0.6871 GB, free: 1.32 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002813/0.1707, allocations: 17.31 kB / 0.6871 GB, free: 1.305 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003082/0.171, allocations: 149.4 kB / 0.6873 GB, free: 1.133 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002393/0.1712, allocations: 0.6885 MB / 0.6879 GB, free: 428 kB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.554e-05/0.1713, allocations: 4 kB / 0.688 GB, free: 424 kB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.45e-05/0.1713, allocations: 15.44 kB / 0.688 GB, free: 408 kB / 494.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1713, allocations: 0 / 0.688 GB, free: 408 kB / 494.1 MB Notification: Performance of Templates: time 0.2413/0.4126, allocations: 0.8516 MB / 0.6888 GB, free: 17.7 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.makefile (rm -f BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.sim & ./BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1)