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.0009859/0.000986, allocations: 86.64 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.001217/0.001217, 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.335/1.335, allocations: 223.3 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00175/0.00175, allocations: 271 kB / 291.3 MB, free: 1.973 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9235/0.9234, allocations: 169.5 MB / 0.5 GB, free: 14.21 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004492/0.0004492, allocations: 15.72 kB / 0.598 GB, free: 28.39 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1543/0.1547, allocations: 88.55 MB / 0.6845 GB, free: 15.47 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Discrete.Examples.BooleanDelay): time 0.001344/0.1561, allocations: 1.132 MB / 0.6856 GB, free: 14.33 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005708/0.1567, allocations: 398.3 kB / 0.686 GB, free: 13.94 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.19e-05/0.1567, allocations: 0 / 0.686 GB, free: 13.94 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.617e-05/0.1568, allocations: 7.922 kB / 0.686 GB, free: 13.93 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 7.539e-05/0.1568, allocations: 8.719 kB / 0.686 GB, free: 13.93 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001247/0.157, allocations: 21.81 kB / 0.686 GB, free: 13.91 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.298e-05/0.1571, allocations: 43.86 kB / 0.686 GB, free: 13.86 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.748e-05/0.1571, allocations: 0 / 0.686 GB, free: 13.86 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.242e-05/0.1572, allocations: 23.86 kB / 0.6861 GB, free: 13.84 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.803e-05/0.1572, allocations: 20.86 kB / 0.6861 GB, free: 13.82 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.712e-05/0.1573, allocations: 0 / 0.6861 GB, free: 13.82 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.74e-05/0.1573, allocations: 4 kB / 0.6861 GB, free: 13.82 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.036e-05/0.1573, allocations: 11.41 kB / 0.6861 GB, free: 13.81 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.105e-05/0.1574, allocations: 41.58 kB / 0.6861 GB, free: 13.76 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 6.142e-05/0.1574, allocations: 24.17 kB / 0.6862 GB, free: 13.74 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1574, allocations: 0 / 0.6862 GB, free: 13.74 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1575, allocations: 0 / 0.6862 GB, free: 13.74 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.216e-06/0.1575, allocations: 0 / 0.6862 GB, free: 13.74 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.0004855/0.1579, allocations: 390.2 kB / 0.6865 GB, free: 13.3 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.262e-05/0.158, allocations: 12.59 kB / 0.6865 GB, free: 13.29 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.184e-05/0.158, allocations: 4.719 kB / 0.6865 GB, free: 13.29 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001023/0.1581, allocations: 167 kB / 0.6867 GB, free: 13.09 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.575e-05/0.1582, allocations: 5.719 kB / 0.6867 GB, free: 13.08 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.908e-06/0.1582, allocations: 0 / 0.6867 GB, free: 13.08 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001063/0.1583, allocations: 57.67 kB / 0.6868 GB, free: 13.02 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.422e-06/0.1583, allocations: 0 / 0.6868 GB, free: 13.02 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.976e-06/0.1583, allocations: 0 / 0.6868 GB, free: 13.02 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.1583, allocations: 4.75 kB / 0.6868 GB, free: 13.02 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.422e-05/0.1584, allocations: 19.92 kB / 0.6868 GB, free: 13 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003439/0.1587, allocations: 274.6 kB / 0.687 GB, free: 12.68 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.663e-05/0.1588, allocations: 45 kB / 0.6871 GB, free: 12.63 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.197e-05/0.1589, allocations: 16.98 kB / 0.6871 GB, free: 12.61 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.618e-05/0.1589, allocations: 0 / 0.6871 GB, free: 12.61 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001733/0.1591, allocations: 109.7 kB / 0.6872 GB, free: 12.48 MB / 494.1 MB Notification: Performance of pre-optimization done (n=9): time 1.242e-06/0.1591, allocations: 0 / 0.6872 GB, free: 12.48 MB / 494.1 MB Notification: Performance of matching and sorting (n=9): time 0.0002498/0.1593, allocations: 145 kB / 0.6873 GB, free: 12.33 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.938e-05/0.1594, allocations: 81.06 kB / 0.6874 GB, free: 12.23 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.975e-05/0.1595, allocations: 113.8 kB / 0.6875 GB, free: 12.11 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.38e-05/0.1595, allocations: 25.7 kB / 0.6876 GB, free: 12.08 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.026e-05/0.1595, allocations: 86.92 kB / 0.6876 GB, free: 12 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.036e-05/0.1596, allocations: 23.72 kB / 0.6877 GB, free: 11.97 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.763e-06/0.1596, allocations: 8 kB / 0.6877 GB, free: 11.96 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.644e-05/0.1597, allocations: 314.8 kB / 0.688 GB, free: 11.65 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.157e-05/0.1597, allocations: 16 kB / 0.688 GB, free: 11.63 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.538e-05/0.1597, allocations: 35.34 kB / 0.688 GB, free: 11.59 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.842e-05/0.1598, allocations: 47.42 kB / 0.6881 GB, free: 11.54 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.1598, allocations: 3.938 kB / 0.6881 GB, free: 11.54 MB / 494.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000145/0.16, allocations: 124.6 kB / 0.6882 GB, free: 11.4 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.122e-05/0.16, allocations: 33.7 kB / 0.6882 GB, free: 11.36 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.16, allocations: 4.547 kB / 0.6882 GB, free: 11.36 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.877e-06/0.16, allocations: 0 / 0.6882 GB, free: 11.36 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.154e-05/0.1601, allocations: 8.469 kB / 0.6882 GB, free: 11.35 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.1601, allocations: 5.016 kB / 0.6882 GB, free: 11.35 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.284e-05/0.1602, allocations: 15.89 kB / 0.6883 GB, free: 11.33 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.829e-06/0.1602, allocations: 9 kB / 0.6883 GB, free: 11.32 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 ($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.423e-05/0.1603, allocations: 157.5 kB / 0.6884 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.342e-05/0.1603, allocations: 4 kB / 0.6884 GB, free: 11.15 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.102e-05/0.1603, allocations: 4.375 kB / 0.6884 GB, free: 11.15 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-06/0.1603, allocations: 0 / 0.6884 GB, free: 11.15 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.1603, allocations: 0 / 0.6884 GB, free: 11.15 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.1603, allocations: 3.953 kB / 0.6884 GB, free: 11.14 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003495/0.1607, allocations: 400.1 kB / 0.6888 GB, free: 10.69 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.1607, allocations: 0 / 0.6888 GB, free: 10.69 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.291e-05/0.1607, allocations: 8 kB / 0.6888 GB, free: 10.68 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.1607, allocations: 4.375 kB / 0.6888 GB, free: 10.68 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.225e-05/0.1607, allocations: 3.984 kB / 0.6888 GB, free: 10.68 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.1608, allocations: 7.891 kB / 0.6888 GB, free: 10.67 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.1608, allocations: 4 kB / 0.6888 GB, free: 10.66 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001828/0.1609, allocations: 221.2 kB / 0.689 GB, free: 10.43 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.099e-05/0.161, allocations: 85.02 kB / 0.6891 GB, free: 10.32 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.959e-05/0.161, allocations: 4 kB / 0.6891 GB, free: 10.32 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001023/0.1611, allocations: 15.98 kB / 0.6891 GB, free: 10.3 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.205e-05/0.1612, allocations: 11.94 kB / 0.6892 GB, free: 10.29 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.755e-05/0.1612, allocations: 8.062 kB / 0.6892 GB, free: 10.29 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.766e-05/0.1612, allocations: 87.22 kB / 0.6892 GB, free: 10.2 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1613, allocations: 0 / 0.6892 GB, free: 10.2 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00024/0.1615, allocations: 20 kB / 0.6893 GB, free: 10.18 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 (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 7.82e-05/0.1616, allocations: 99.23 kB / 0.6894 GB, free: 10.07 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001602/0.1617, allocations: 115.3 kB / 0.6895 GB, free: 9.949 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.1618, allocations: 0 / 0.6895 GB, free: 9.949 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 7.861e-05/0.1618, allocations: 95.38 kB / 0.6896 GB, free: 9.844 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002771/0.1621, allocations: 17.88 kB / 0.6896 GB, free: 9.828 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002876/0.1624, allocations: 160.8 kB / 0.6897 GB, free: 9.641 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000202/0.1626, allocations: 0.6889 MB / 0.6904 GB, free: 8.926 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.446e-05/0.1627, allocations: 0 / 0.6904 GB, free: 8.926 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.303e-05/0.1627, allocations: 11.44 kB / 0.6904 GB, free: 8.914 MB / 494.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1627, allocations: 0 / 0.6904 GB, free: 8.914 MB / 494.1 MB Notification: Performance of Templates: time 0.002637/0.1653, allocations: 0.746 MB / 0.6911 GB, free: 8.18 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1)