Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.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.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 2.602/2.602, allocations: 287.9 MB / 302.9 MB, free: 8.246 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.001415/0.001415, allocations: 178.8 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.194/2.194, allocations: 205.4 MB / 0.6301 GB, free: 10.4 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.001012/0.001011, allocations: 97.98 kB / 0.7434 GB, free: 6.406 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004691/0.0004694, allocations: 24.36 kB / 0.8662 GB, free: 141.4 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1694/0.1699, 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.FirstOrderHold): time 0.0007541/0.1707, allocations: 409.8 kB / 0.9791 GB, free: 27.8 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001916/0.1727, allocations: 1.044 MB / 0.9802 GB, free: 26.74 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.278e-05/0.1728, allocations: 4 kB / 0.9802 GB, free: 26.73 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 2.396e-05/0.1728, allocations: 3.938 kB / 0.9802 GB, free: 26.73 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 9.505e-05/0.1729, allocations: 3.984 kB / 0.9802 GB, free: 26.73 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003296/0.1733, allocations: 39.83 kB / 0.9802 GB, free: 26.69 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001097/0.1734, allocations: 39.94 kB / 0.9803 GB, free: 26.65 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001272/0.1736, allocations: 16 kB / 0.9803 GB, free: 26.63 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 9.511e-05/0.1737, allocations: 19.92 kB / 0.9803 GB, free: 26.61 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 9.071e-05/0.1738, allocations: 27.84 kB / 0.9803 GB, free: 26.59 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.551e-05/0.1738, allocations: 4 kB / 0.9803 GB, free: 26.58 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 9.448e-05/0.174, allocations: 19.97 kB / 0.9803 GB, free: 26.56 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 3.039e-05/0.174, allocations: 15.92 kB / 0.9804 GB, free: 26.55 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.837e-05/0.1741, allocations: 33.7 kB / 0.9804 GB, free: 26.51 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001564/0.1742, allocations: 47.88 kB / 0.9804 GB, free: 26.46 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.02e-06/0.1743, allocations: 0 / 0.9804 GB, free: 26.46 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.399e-06/0.1743, allocations: 0 / 0.9804 GB, free: 26.46 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 7.978e-06/0.1743, allocations: 4 kB / 0.9804 GB, free: 26.46 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0008216/0.1752, allocations: 376.5 kB / 0.9808 GB, free: 26.04 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.077e-05/0.1752, allocations: 8.031 kB / 0.9808 GB, free: 26.04 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.284e-05/0.1753, allocations: 7.906 kB / 0.9808 GB, free: 26.03 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001142/0.1754, allocations: 178.9 kB / 0.981 GB, free: 25.81 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.509e-05/0.1755, allocations: 8 kB / 0.981 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.372e-05/0.1755, allocations: 11.98 kB / 0.981 GB, free: 25.79 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003474/0.1759, allocations: 77.66 kB / 0.9811 GB, free: 25.71 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/0.1759, allocations: 0 / 0.9811 GB, free: 25.71 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.001e-05/0.176, allocations: 4 kB / 0.9811 GB, free: 25.71 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.156e-06/0.176, allocations: 0 / 0.9811 GB, free: 25.71 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000372/0.1764, allocations: 71.88 kB / 0.9811 GB, free: 25.64 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007143/0.1771, allocations: 312.7 kB / 0.9814 GB, free: 25.28 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003449/0.1775, allocations: 94.47 kB / 0.9815 GB, free: 25.18 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.984e-05/0.1775, allocations: 0 / 0.9815 GB, free: 25.18 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002746/0.1778, allocations: 99.48 kB / 0.9816 GB, free: 25.07 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=10): time 2.793e-06/0.1779, allocations: 4 kB / 0.9816 GB, free: 25.07 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10): time 0.0005737/0.1784, allocations: 185.5 kB / 0.9818 GB, free: 24.88 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.351e-05/0.1785, allocations: 63.39 kB / 0.9819 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.594e-05/0.1786, allocations: 105.8 kB / 0.982 GB, free: 24.69 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.043e-05/0.1786, allocations: 33.7 kB / 0.982 GB, free: 24.65 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.649e-05/0.1786, allocations: 84.38 kB / 0.9821 GB, free: 24.56 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.02e-05/0.1787, allocations: 27.64 kB / 0.9821 GB, free: 24.54 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.007e-06/0.1787, allocations: 4 kB / 0.9821 GB, free: 24.53 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.362e-05/0.1788, allocations: 314.8 kB / 0.9824 GB, free: 24.21 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001492/0.1789, allocations: 43.97 kB / 0.9825 GB, free: 24.17 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001578/0.1791, allocations: 72.64 kB / 0.9825 GB, free: 24.09 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001578/0.1793, allocations: 51.98 kB / 0.9826 GB, free: 24.04 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.1793, allocations: 0 / 0.9826 GB, free: 24.04 MB / 0.6198 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003923/0.1797, allocations: 149.5 kB / 0.9827 GB, free: 23.89 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/0.1797, allocations: 4 kB / 0.9827 GB, free: 23.89 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.244e-06/0.1797, allocations: 4.062 kB / 0.9827 GB, free: 23.88 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/0.1798, allocations: 4 kB / 0.9827 GB, free: 23.88 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001604/0.1799, allocations: 23.92 kB / 0.9828 GB, free: 23.86 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.583e-06/0.1799, allocations: 4 kB / 0.9828 GB, free: 23.85 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.595e-05/0.1801, allocations: 15.92 kB / 0.9828 GB, free: 23.84 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.617e-05/0.1801, allocations: 7.953 kB / 0.9828 GB, free: 23.83 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.firOrdHol.firstTrigger,firOrdHol.firstTrigger,$whenCondition1,firOrdHol.sampleTrigger,$PRE.firOrdHol.tSample,firOrdHol.tSample,$PRE.firOrdHol.uSample,firOrdHol.uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.pre_uSample,$PRE.firOrdHol.c,firOrdHol.c) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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 8.654e-05/0.1802, allocations: 125.8 kB / 0.9829 GB, free: 23.7 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.996e-05/0.1802, allocations: 7.906 kB / 0.9829 GB, free: 23.69 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004114/0.1806, allocations: 158.2 kB / 0.9831 GB, free: 23.53 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.165e-06/0.1807, allocations: 4 kB / 0.9831 GB, free: 23.53 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.966e-06/0.1807, allocations: 0 / 0.9831 GB, free: 23.53 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.543e-06/0.1807, allocations: 7.984 kB / 0.9831 GB, free: 23.52 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005868/0.1813, allocations: 418.3 kB / 0.9835 GB, free: 23.05 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.285e-06/0.1813, allocations: 0 / 0.9835 GB, free: 23.05 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.064e-05/0.1814, allocations: 15.98 kB / 0.9835 GB, free: 23.04 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.983e-06/0.1814, allocations: 0 / 0.9835 GB, free: 23.04 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.564e-05/0.1814, allocations: 8 kB / 0.9835 GB, free: 23.03 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.52e-06/0.1815, allocations: 256 / 0.9835 GB, free: 23.03 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.131e-06/0.1815, allocations: 4 kB / 0.9835 GB, free: 23.03 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000412/0.1819, allocations: 247.4 kB / 0.9837 GB, free: 22.77 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.335e-05/0.1819, allocations: 84.95 kB / 0.9838 GB, free: 22.67 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.767e-05/0.182, allocations: 8 kB / 0.9838 GB, free: 22.66 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001429/0.1821, allocations: 11.98 kB / 0.9838 GB, free: 22.65 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.648e-05/0.1822, allocations: 7.922 kB / 0.9838 GB, free: 22.64 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.443e-05/0.1822, allocations: 4 kB / 0.9838 GB, free: 22.64 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.743e-05/0.1822, allocations: 87.23 kB / 0.9839 GB, free: 22.55 MB / 0.6198 GB Notification: Performance of sort global known variables: time 8.02e-07/0.1823, allocations: 4 kB / 0.9839 GB, free: 22.55 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003428/0.1826, allocations: 27.98 kB / 0.984 GB, free: 22.52 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001462/0.1828, allocations: 109.2 kB / 0.9841 GB, free: 22.4 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003787/0.1832, allocations: 111.9 kB / 0.9842 GB, free: 22.29 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.465e-06/0.1832, allocations: 0 / 0.9842 GB, free: 22.29 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001656/0.1834, allocations: 48.25 kB / 0.9842 GB, free: 22.25 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002547/0.1836, allocations: 12.12 kB / 0.9842 GB, free: 22.23 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003997/0.184, allocations: 177.4 kB / 0.9844 GB, free: 22.04 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001241/0.1842, allocations: 0.6848 MB / 0.9851 GB, free: 21.33 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 4.92e-05/0.1842, allocations: 8.422 kB / 0.9851 GB, free: 21.32 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.509e-05/0.1843, allocations: 11.44 kB / 0.9851 GB, free: 21.31 MB / 0.6198 GB Notification: Performance of SimCode: time 1.741e-06/0.1843, allocations: 0 / 0.9851 GB, free: 21.31 MB / 0.6198 GB Notification: Performance of Templates: time 0.005699/0.19, allocations: 0.8841 MB / 0.9859 GB, free: 20.43 MB / 0.6198 GB