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.001091/0.001091, allocations: 110.3 kB / 15.99 MB, free: 6.355 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.001138/0.001138, allocations: 194 kB / 16.91 MB, free: 6.191 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.329/1.329, allocations: 222.9 MB / 240.6 MB, free: 15.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002089/0.002089, allocations: 286.7 kB / 291 MB, free: 14.72 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9314/0.9314, allocations: 169.2 MB / 0.4985 GB, free: 4.754 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001649/0.001649, allocations: 89.11 kB / 0.5953 GB, free: 15.56 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1676/0.1693, allocations: 86.97 MB / 0.6803 GB, free: 8.602 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Discrete.Examples.BooleanDelay): time 0.002713/0.172, allocations: 1.484 MB / 0.6817 GB, free: 7.098 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006956/0.1727, allocations: 423.8 kB / 0.6821 GB, free: 6.68 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.697e-05/0.1728, allocations: 4 kB / 0.6821 GB, free: 6.676 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.451e-05/0.1728, allocations: 3.938 kB / 0.6821 GB, free: 6.672 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 7.398e-05/0.1729, allocations: 4 kB / 0.6821 GB, free: 6.668 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001456/0.1731, allocations: 23.92 kB / 0.6821 GB, free: 6.645 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001086/0.1732, allocations: 43.86 kB / 0.6822 GB, free: 6.602 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.275e-05/0.1733, allocations: 15.97 kB / 0.6822 GB, free: 6.586 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.586e-05/0.1733, allocations: 15.94 kB / 0.6822 GB, free: 6.57 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.426e-05/0.1734, allocations: 23.91 kB / 0.6822 GB, free: 6.547 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.895e-05/0.1734, allocations: 4 kB / 0.6822 GB, free: 6.543 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.02e-05/0.1734, allocations: 0 / 0.6822 GB, free: 6.543 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.388e-05/0.1735, allocations: 19.88 kB / 0.6823 GB, free: 6.523 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.329e-05/0.1735, allocations: 23.91 kB / 0.6823 GB, free: 6.5 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 8.512e-05/0.1736, allocations: 32.17 kB / 0.6823 GB, free: 6.469 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1736, allocations: 0 / 0.6823 GB, free: 6.469 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1736, allocations: 0 / 0.6823 GB, free: 6.469 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.783e-06/0.1736, allocations: 0 / 0.6823 GB, free: 6.469 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.0005654/0.1742, allocations: 393 kB / 0.6827 GB, free: 6.031 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.1743, allocations: 16.02 kB / 0.6827 GB, free: 6.016 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.757e-05/0.1743, allocations: 12.84 kB / 0.6827 GB, free: 6.004 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001177/0.1744, allocations: 164.4 kB / 0.6829 GB, free: 5.805 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.382e-05/0.1744, allocations: 4.375 kB / 0.6829 GB, free: 5.801 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.137e-05/0.1745, allocations: 384 / 0.6829 GB, free: 5.801 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001221/0.1746, allocations: 57.98 kB / 0.6829 GB, free: 5.738 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.1746, allocations: 0 / 0.6829 GB, free: 5.738 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.939e-06/0.1746, allocations: 4 kB / 0.6829 GB, free: 5.734 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.1746, allocations: 0 / 0.6829 GB, free: 5.734 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.321e-05/0.1747, allocations: 19.94 kB / 0.683 GB, free: 5.715 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003935/0.1751, allocations: 276.7 kB / 0.6832 GB, free: 5.395 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.7e-05/0.1752, allocations: 38.58 kB / 0.6833 GB, free: 5.348 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.579e-05/0.1752, allocations: 20.97 kB / 0.6833 GB, free: 5.324 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.748e-05/0.1752, allocations: 0 / 0.6833 GB, free: 5.324 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000197/0.1754, allocations: 113 kB / 0.6834 GB, free: 5.195 MB / 494.1 MB Notification: Performance of pre-optimization done (n=9): time 1.513e-06/0.1755, allocations: 4 kB / 0.6834 GB, free: 5.191 MB / 494.1 MB Notification: Performance of matching and sorting (n=9): time 0.0002564/0.1757, allocations: 139.2 kB / 0.6835 GB, free: 5.043 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.862e-05/0.1758, allocations: 85.09 kB / 0.6836 GB, free: 4.941 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.601e-05/0.1759, allocations: 109.8 kB / 0.6837 GB, free: 4.824 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.583e-05/0.1759, allocations: 29.7 kB / 0.6837 GB, free: 4.789 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.177e-05/0.176, allocations: 84.14 kB / 0.6838 GB, free: 4.703 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.294e-05/0.176, allocations: 23.73 kB / 0.6838 GB, free: 4.68 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.077e-05/0.176, allocations: 25.7 kB / 0.6839 GB, free: 4.648 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001046/0.1762, allocations: 322.8 kB / 0.6842 GB, free: 4.324 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.157e-05/0.1762, allocations: 19.98 kB / 0.6842 GB, free: 4.305 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.722e-05/0.1763, allocations: 34.56 kB / 0.6842 GB, free: 4.262 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.55e-05/0.1764, allocations: 109.9 kB / 0.6843 GB, free: 4.133 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.1764, allocations: 0 / 0.6843 GB, free: 4.133 MB / 494.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001556/0.1765, allocations: 127.2 kB / 0.6844 GB, free: 3.996 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.407e-05/0.1766, allocations: 36.03 kB / 0.6845 GB, free: 3.957 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.028e-06/0.1766, allocations: 4 kB / 0.6845 GB, free: 3.953 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.225e-05/0.1766, allocations: 64 / 0.6845 GB, free: 3.953 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.305e-05/0.1766, allocations: 11.94 kB / 0.6845 GB, free: 3.941 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.1767, allocations: 0 / 0.6845 GB, free: 3.941 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.402e-05/0.1767, allocations: 11.98 kB / 0.6845 GB, free: 3.93 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.696e-06/0.1767, allocations: 4 kB / 0.6845 GB, free: 3.926 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 0.0001106/0.1768, allocations: 157.9 kB / 0.6847 GB, free: 3.758 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.631e-05/0.1769, allocations: 7.906 kB / 0.6847 GB, free: 3.75 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.654e-05/0.1769, allocations: 8.375 kB / 0.6847 GB, free: 3.742 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.1769, allocations: 3.984 kB / 0.6847 GB, free: 3.738 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.1769, allocations: 4 kB / 0.6847 GB, free: 3.734 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.1769, allocations: 0 / 0.6847 GB, free: 3.734 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003861/0.1773, allocations: 404.5 kB / 0.6851 GB, free: 3.277 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.492e-06/0.1773, allocations: 3.938 kB / 0.6851 GB, free: 3.273 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.734e-06/0.1773, allocations: 0 / 0.6851 GB, free: 3.273 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.1774, allocations: 4 kB / 0.6851 GB, free: 3.27 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.198e-05/0.1774, allocations: 4 kB / 0.6851 GB, free: 3.266 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.1774, allocations: 0 / 0.6851 GB, free: 3.266 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.1774, allocations: 0 / 0.6851 GB, free: 3.266 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002078/0.1776, allocations: 237 kB / 0.6853 GB, free: 3.012 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.399e-05/0.1776, allocations: 85.08 kB / 0.6854 GB, free: 2.91 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.24e-05/0.1777, allocations: 4 kB / 0.6854 GB, free: 2.906 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001013/0.1778, allocations: 4 kB / 0.6854 GB, free: 2.902 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.163e-05/0.1778, allocations: 19.92 kB / 0.6854 GB, free: 2.883 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.496e-05/0.1779, allocations: 4 kB / 0.6854 GB, free: 2.879 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.166e-05/0.1779, allocations: 87.81 kB / 0.6855 GB, free: 2.793 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1779, allocations: 0 / 0.6855 GB, free: 2.793 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002337/0.1781, allocations: 16 kB / 0.6855 GB, free: 2.777 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 9.404e-05/0.1782, allocations: 95.25 kB / 0.6856 GB, free: 2.676 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001766/0.1784, allocations: 119.3 kB / 0.6857 GB, free: 2.547 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.1784, allocations: 4.125 kB / 0.6857 GB, free: 2.543 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 9.214e-05/0.1785, allocations: 95.56 kB / 0.6858 GB, free: 2.438 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000286/0.1788, allocations: 12.16 kB / 0.6858 GB, free: 2.426 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003769/0.1792, allocations: 203.1 kB / 0.686 GB, free: 2.195 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002448/0.1795, allocations: 0.6885 MB / 0.6867 GB, free: 1.48 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.883e-05/0.1795, allocations: 11.44 kB / 0.6867 GB, free: 1.469 MB / 494.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1795, allocations: 0 / 0.6867 GB, free: 1.469 MB / 494.1 MB Notification: Performance of Templates: time 0.002257/0.1818, allocations: 0.896 MB / 0.6876 GB, free: 0.5781 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)