Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo", uses=false) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.Discrete.Examples.BooleanDelay") translateModel(Buildings.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_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.007799/0.007799, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.001633/0.001634, allocations: 193.5 kB / 16.67 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.709/1.709, allocations: 205.1 MB / 222.6 MB, free: 4.504 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.5903/0.5903, allocations: 95.48 MB / 365.4 MB, free: 9.766 MB / 302.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Buildings requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00138/0.00138, allocations: 75.88 kB / 0.5036 GB, free: 13.48 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1669/0.1683, allocations: 69.08 MB / 0.5711 GB, free: 8.34 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002774/0.1711, allocations: 1.404 MB / 0.5724 GB, free: 6.918 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009495/0.1721, allocations: 487.7 kB / 0.5729 GB, free: 6.434 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.242e-05/0.1722, allocations: 0 / 0.5729 GB, free: 6.434 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 2.779e-05/0.1722, allocations: 0 / 0.5729 GB, free: 6.434 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000101/0.1723, allocations: 15.86 kB / 0.5729 GB, free: 6.418 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001825/0.1725, allocations: 11.98 kB / 0.5729 GB, free: 6.406 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001369/0.1727, allocations: 51.84 kB / 0.573 GB, free: 6.355 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.474e-05/0.1728, allocations: 4 kB / 0.573 GB, free: 6.352 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.406e-05/0.1728, allocations: 27.86 kB / 0.573 GB, free: 6.324 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.696e-05/0.1729, allocations: 27.91 kB / 0.573 GB, free: 6.297 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.994e-05/0.173, allocations: 0 / 0.573 GB, free: 6.297 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.038e-05/0.173, allocations: 4 kB / 0.573 GB, free: 6.293 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 3.267e-05/0.173, allocations: 15.86 kB / 0.573 GB, free: 6.277 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 5.163e-05/0.1731, allocations: 15.94 kB / 0.5731 GB, free: 6.262 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001239/0.1732, allocations: 47.77 kB / 0.5731 GB, free: 6.215 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.1732, allocations: 0 / 0.5731 GB, free: 6.215 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1732, allocations: 0 / 0.5731 GB, free: 6.215 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.262e-05/0.1732, allocations: 0 / 0.5731 GB, free: 6.215 MB / 446.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.0007045/0.1739, allocations: 397.1 kB / 0.5735 GB, free: 5.773 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.174, allocations: 11.98 kB / 0.5735 GB, free: 5.762 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.411e-05/0.174, allocations: 8.844 kB / 0.5735 GB, free: 5.754 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000144/0.1742, allocations: 172.3 kB / 0.5737 GB, free: 5.547 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.471e-05/0.1742, allocations: 384 / 0.5737 GB, free: 5.547 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.333e-05/0.1742, allocations: 4.375 kB / 0.5737 GB, free: 5.543 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001327/0.1744, allocations: 54 kB / 0.5737 GB, free: 5.484 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.1744, allocations: 0 / 0.5737 GB, free: 5.484 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.272e-05/0.1744, allocations: 4 kB / 0.5737 GB, free: 5.48 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.1744, allocations: 0 / 0.5737 GB, free: 5.48 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.012e-05/0.1745, allocations: 27.97 kB / 0.5737 GB, free: 5.453 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005031/0.175, allocations: 268.8 kB / 0.574 GB, free: 5.141 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001023/0.1751, allocations: 38.56 kB / 0.574 GB, free: 5.094 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.712e-05/0.1751, allocations: 16.98 kB / 0.5741 GB, free: 5.074 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.212e-05/0.1752, allocations: 4 kB / 0.5741 GB, free: 5.07 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001794/0.1754, allocations: 109 kB / 0.5742 GB, free: 4.945 MB / 446.1 MB Notification: Performance of pre-optimization done (n=9): time 1.443e-06/0.1754, allocations: 0 / 0.5742 GB, free: 4.945 MB / 446.1 MB Notification: Performance of matching and sorting (n=9): time 0.000303/0.1757, allocations: 139.4 kB / 0.5743 GB, free: 4.797 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.904e-05/0.1758, allocations: 81.11 kB / 0.5744 GB, free: 4.699 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001062/0.1759, allocations: 117.8 kB / 0.5745 GB, free: 4.574 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.697e-05/0.1759, allocations: 25.7 kB / 0.5745 GB, free: 4.543 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.86e-05/0.1759, allocations: 88.14 kB / 0.5746 GB, free: 4.453 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.511e-05/0.176, allocations: 23.73 kB / 0.5746 GB, free: 4.43 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.295e-05/0.176, allocations: 29.66 kB / 0.5746 GB, free: 4.395 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.1762, allocations: 318.8 kB / 0.575 GB, free: 4.074 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.503e-05/0.1762, allocations: 16.28 kB / 0.575 GB, free: 4.059 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.492e-05/0.1763, allocations: 38.5 kB / 0.575 GB, free: 4.012 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001214/0.1764, allocations: 117.9 kB / 0.5751 GB, free: 3.875 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.1764, allocations: 0 / 0.5751 GB, free: 3.875 MB / 446.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001524/0.1766, allocations: 127.2 kB / 0.5752 GB, free: 3.738 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.574e-05/0.1766, allocations: 33.7 kB / 0.5753 GB, free: 3.699 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.1766, allocations: 0 / 0.5753 GB, free: 3.699 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.1766, allocations: 4 kB / 0.5753 GB, free: 3.695 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.443e-05/0.1767, allocations: 0 / 0.5753 GB, free: 3.695 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.19e-05/0.1767, allocations: 12.05 kB / 0.5753 GB, free: 3.684 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.138e-05/0.1768, allocations: 7.906 kB / 0.5753 GB, free: 3.676 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.806e-06/0.1768, allocations: 8.062 kB / 0.5753 GB, free: 3.668 MB / 446.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.000114/0.1769, allocations: 155.5 kB / 0.5754 GB, free: 3.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.472e-05/0.1769, allocations: 4 kB / 0.5755 GB, free: 3.496 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.992e-05/0.177, allocations: 4.375 kB / 0.5755 GB, free: 3.484 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.177, allocations: 0 / 0.5755 GB, free: 3.484 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/0.177, allocations: 0 / 0.5755 GB, free: 3.484 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.177, allocations: 3.938 kB / 0.5755 GB, free: 3.48 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004201/0.1774, allocations: 396.1 kB / 0.5758 GB, free: 3.031 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.1774, allocations: 7.938 kB / 0.5758 GB, free: 3.023 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.535e-06/0.1774, allocations: 0 / 0.5758 GB, free: 3.023 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.1775, allocations: 4 kB / 0.5759 GB, free: 3.02 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.269e-05/0.1775, allocations: 7.984 kB / 0.5759 GB, free: 3.012 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.1775, allocations: 0 / 0.5759 GB, free: 3.012 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1775, allocations: 0 / 0.5759 GB, free: 3.012 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002297/0.1777, allocations: 233.1 kB / 0.5761 GB, free: 2.762 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.79e-05/0.1778, allocations: 85.02 kB / 0.5762 GB, free: 2.66 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.759e-05/0.1778, allocations: 4 kB / 0.5762 GB, free: 2.656 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.974e-05/0.1779, allocations: 11.98 kB / 0.5762 GB, free: 2.645 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.897e-05/0.178, allocations: 7.938 kB / 0.5762 GB, free: 2.637 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.722e-05/0.178, allocations: 8.297 kB / 0.5762 GB, free: 2.629 MB / 446.1 MB Notification: Performance of sorting global known variables: time 4.625e-05/0.178, allocations: 91.38 kB / 0.5763 GB, free: 2.539 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.178, allocations: 3.938 kB / 0.5763 GB, free: 2.535 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002374/0.1783, allocations: 12 kB / 0.5763 GB, free: 2.523 MB / 446.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.017e-05/0.1784, allocations: 103.2 kB / 0.5764 GB, free: 2.414 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001931/0.1786, allocations: 115.3 kB / 0.5765 GB, free: 2.289 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.1786, allocations: 0 / 0.5765 GB, free: 2.289 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 8.313e-05/0.1787, allocations: 95.33 kB / 0.5766 GB, free: 2.184 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002718/0.179, allocations: 15.98 kB / 0.5766 GB, free: 2.168 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003428/0.1793, allocations: 157.4 kB / 0.5768 GB, free: 1.988 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002746/0.1796, allocations: 0.6847 MB / 0.5774 GB, free: 1.277 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 2.617e-05/0.1796, allocations: 4 kB / 0.5774 GB, free: 1.273 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.52e-05/0.1797, allocations: 11.44 kB / 0.5774 GB, free: 1.266 MB / 446.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1797, allocations: 0 / 0.5774 GB, free: 1.266 MB / 446.1 MB Notification: Performance of Templates: time 0.003188/0.1828, allocations: 0.8469 MB / 0.5783 GB, free: 440 kB / 446.1 MB make -j1 -f Buildings_1.6_Buildings.Controls.Discrete.Examples.BooleanDelay.makefile (rm -f Buildings_1.6_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_1.6_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_1.6_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & ./Buildings_1.6_Buildings.Controls.Discrete.Examples.BooleanDelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1)