Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 2.542/2.542, allocations: 287.9 MB / 302.9 MB, free: 8.27 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001463/0.001462, allocations: 178.3 kB / 371.4 MB, free: 10.68 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.061/2.061, allocations: 205.4 MB / 0.6301 GB, free: 10.42 MB / 458.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001015/0.001015, allocations: 92.36 kB / 0.7434 GB, free: 6.422 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004829/0.0004831, allocations: 16.36 kB / 0.8662 GB, free: 141.3 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1746/0.1751, allocations: 115.3 MB / 0.9788 GB, free: 28.2 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.0006918/0.1759, allocations: 389.8 kB / 0.9791 GB, free: 27.82 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.00112/0.177, allocations: 1.033 MB / 0.9801 GB, free: 26.77 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.573e-05/0.1771, allocations: 4 kB / 0.9801 GB, free: 26.77 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.55e-05/0.1771, allocations: 0 / 0.9801 GB, free: 26.77 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 5.488e-05/0.1772, allocations: 0 / 0.9801 GB, free: 26.77 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001979/0.1774, allocations: 35.84 kB / 0.9802 GB, free: 26.73 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 5.922e-05/0.1774, allocations: 23.97 kB / 0.9802 GB, free: 26.71 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 7.826e-05/0.1775, allocations: 7.984 kB / 0.9802 GB, free: 26.7 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 5.331e-05/0.1776, allocations: 19.92 kB / 0.9802 GB, free: 26.68 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 4.68e-05/0.1777, allocations: 19.91 kB / 0.9802 GB, free: 26.66 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.408e-05/0.1777, allocations: 4 kB / 0.9802 GB, free: 26.66 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 5.287e-05/0.1777, allocations: 8 kB / 0.9803 GB, free: 26.65 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.33e-05/0.1778, allocations: 7.984 kB / 0.9803 GB, free: 26.64 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 2.833e-05/0.1778, allocations: 45.58 kB / 0.9803 GB, free: 26.59 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 7.772e-05/0.1779, allocations: 27.92 kB / 0.9803 GB, free: 26.56 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.94e-06/0.1779, allocations: 0 / 0.9803 GB, free: 26.56 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.96e-06/0.1779, allocations: 0 / 0.9803 GB, free: 26.56 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.602e-06/0.1779, allocations: 0 / 0.9803 GB, free: 26.56 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004234/0.1784, allocations: 356.9 kB / 0.9807 GB, free: 26.17 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/0.1784, allocations: 12.02 kB / 0.9807 GB, free: 26.16 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.542e-05/0.1785, allocations: 7.906 kB / 0.9807 GB, free: 26.15 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.676e-05/0.1785, allocations: 175 kB / 0.9809 GB, free: 25.94 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.33e-05/0.1786, allocations: 4 kB / 0.9809 GB, free: 25.93 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.743e-05/0.1786, allocations: 4 kB / 0.9809 GB, free: 25.93 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001931/0.1788, allocations: 69.66 kB / 0.9809 GB, free: 25.86 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.958e-06/0.1788, allocations: 0 / 0.9809 GB, free: 25.86 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.003e-05/0.1788, allocations: 0 / 0.9809 GB, free: 25.86 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.853e-06/0.1789, allocations: 0 / 0.9809 GB, free: 25.86 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001995/0.1791, allocations: 55.89 kB / 0.981 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004101/0.1795, allocations: 272.9 kB / 0.9812 GB, free: 25.48 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001464/0.1797, allocations: 50.55 kB / 0.9813 GB, free: 25.43 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.846e-05/0.1797, allocations: 0 / 0.9813 GB, free: 25.43 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001978/0.1799, allocations: 83.41 kB / 0.9814 GB, free: 25.33 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=5): time 2.402e-06/0.1799, allocations: 7.938 kB / 0.9814 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of matching and sorting (n=5): time 0.0004233/0.1803, allocations: 117.5 kB / 0.9815 GB, free: 25.2 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.749e-05/0.1804, allocations: 59.41 kB / 0.9816 GB, free: 25.13 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.707e-05/0.1805, allocations: 113.8 kB / 0.9817 GB, free: 25.01 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.227e-05/0.1805, allocations: 25.7 kB / 0.9817 GB, free: 24.98 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.449e-05/0.1805, allocations: 88.12 kB / 0.9818 GB, free: 24.89 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.099e-05/0.1806, allocations: 11.81 kB / 0.9818 GB, free: 24.88 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.773e-06/0.1806, allocations: 0 / 0.9818 GB, free: 24.88 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.392e-05/0.1806, allocations: 318.8 kB / 0.9821 GB, free: 24.56 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001152/0.1808, allocations: 31.98 kB / 0.9821 GB, free: 24.53 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001187/0.1809, allocations: 51.34 kB / 0.9822 GB, free: 24.46 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001203/0.181, allocations: 35.98 kB / 0.9822 GB, free: 24.43 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.1811, allocations: 0 / 0.9822 GB, free: 24.43 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003047/0.1814, allocations: 113.7 kB / 0.9823 GB, free: 24.31 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/0.1814, allocations: 7.938 kB / 0.9823 GB, free: 24.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.944e-06/0.1814, allocations: 0 / 0.9823 GB, free: 24.3 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/0.1814, allocations: 4 kB / 0.9823 GB, free: 24.3 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001242/0.1816, allocations: 19.92 kB / 0.9823 GB, free: 24.28 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.573e-06/0.1816, allocations: 0 / 0.9823 GB, free: 24.28 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.808e-05/0.1817, allocations: 19.83 kB / 0.9824 GB, free: 24.26 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.35e-05/0.1817, allocations: 7.953 kB / 0.9824 GB, free: 24.25 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 ($PRE.unitDelay1.y,unitDelay1.y,$whenCondition1,unitDelay1.sampleTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * 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 6.788e-05/0.1818, allocations: 117.9 kB / 0.9825 GB, free: 24.13 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.472e-05/0.1818, allocations: 0 / 0.9825 GB, free: 24.13 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002924/0.1821, allocations: 101.5 kB / 0.9826 GB, free: 24.03 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.928e-06/0.1821, allocations: 8 kB / 0.9826 GB, free: 24.02 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.366e-06/0.1821, allocations: 0 / 0.9826 GB, free: 24.02 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.976e-06/0.1822, allocations: 0 / 0.9826 GB, free: 24.02 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004445/0.1826, allocations: 346.4 kB / 0.9829 GB, free: 23.62 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.818e-06/0.1826, allocations: 0 / 0.9829 GB, free: 23.62 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.592e-05/0.1827, allocations: 16.36 kB / 0.9829 GB, free: 23.61 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.214e-06/0.1828, allocations: 0 / 0.9829 GB, free: 23.61 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.163e-05/0.1828, allocations: 4 kB / 0.9829 GB, free: 23.61 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.759e-06/0.1828, allocations: 3.938 kB / 0.9829 GB, free: 23.6 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.307e-06/0.1828, allocations: 4.469 kB / 0.9829 GB, free: 23.6 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000281/0.1831, allocations: 195.5 kB / 0.9831 GB, free: 23.39 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.125e-05/0.1831, allocations: 81.11 kB / 0.9832 GB, free: 23.29 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.161e-05/0.1832, allocations: 0 / 0.9832 GB, free: 23.29 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001135/0.1833, allocations: 11.98 kB / 0.9832 GB, free: 23.28 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.493e-05/0.1833, allocations: 3.938 kB / 0.9832 GB, free: 23.28 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.438e-06/0.1833, allocations: 4 kB / 0.9832 GB, free: 23.27 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.829e-05/0.1834, allocations: 99.2 kB / 0.9833 GB, free: 23.18 MB / 0.6198 GB Notification: Performance of sort global known variables: time 7.25e-07/0.1834, allocations: 0 / 0.9833 GB, free: 23.18 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003328/0.1837, allocations: 11.91 kB / 0.9833 GB, free: 23.16 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y) * Number of discrete states: 1 (unitDelay1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 0.0001266/0.1839, allocations: 103.2 kB / 0.9834 GB, free: 23.05 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002831/0.1842, allocations: 67.89 kB / 0.9835 GB, free: 22.99 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 4.165e-06/0.1842, allocations: 4 kB / 0.9835 GB, free: 22.98 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001243/0.1843, allocations: 35.91 kB / 0.9835 GB, free: 22.95 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002125/0.1846, allocations: 4 kB / 0.9835 GB, free: 22.95 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003077/0.1849, allocations: 144.8 kB / 0.9837 GB, free: 22.78 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001177/0.185, allocations: 0.6848 MB / 0.9843 GB, free: 22.07 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.732e-05/0.1851, allocations: 4 kB / 0.9843 GB, free: 22.06 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.638e-05/0.1851, allocations: 7.438 kB / 0.9843 GB, free: 22.05 MB / 0.6198 GB Notification: Performance of SimCode: time 1.434e-06/0.1851, allocations: 0 / 0.9843 GB, free: 22.05 MB / 0.6198 GB Notification: Performance of Templates: time 0.003158/0.1883, allocations: 0.635 MB / 0.985 GB, free: 21.43 MB / 0.6198 GB