Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Utilities.Math.Examples.IntegerReplicator.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.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Utilities.Math.Examples.IntegerReplicator") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 2.754/2.754, allocations: 287.9 MB / 302.9 MB, free: 8.25 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.001431/0.001431, allocations: 187.5 kB / 371.4 MB, free: 10.65 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.274/2.274, allocations: 205.4 MB / 0.6301 GB, free: 10.38 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.00101/0.00101, allocations: 100.2 kB / 0.7434 GB, free: 6.387 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004709/0.0004713, allocations: 12.72 kB / 0.8662 GB, free: 141.4 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.154/0.1545, allocations: 115.3 MB / 0.9787 GB, free: 28.2 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.001788/0.1563, allocations: 1.451 MB / 0.9802 GB, free: 26.73 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001444/0.1578, allocations: 0.9222 MB / 0.9811 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.184e-05/0.1579, allocations: 4 kB / 0.9811 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.000243/0.1582, allocations: 47.75 kB / 0.9811 GB, free: 25.75 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.000199/0.1584, allocations: 63.84 kB / 0.9812 GB, free: 25.69 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.000597/0.159, allocations: 170.1 kB / 0.9813 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001482/0.1592, allocations: 87.81 kB / 0.9814 GB, free: 25.44 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 8.63e-05/0.1593, allocations: 17.12 kB / 0.9814 GB, free: 25.42 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 9.106e-05/0.1594, allocations: 55.75 kB / 0.9815 GB, free: 25.37 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 8.988e-05/0.1595, allocations: 51.77 kB / 0.9815 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.595e-05/0.1595, allocations: 4 kB / 0.9815 GB, free: 25.31 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001271/0.1596, allocations: 47.91 kB / 0.9816 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 5.7e-05/0.1597, allocations: 35.89 kB / 0.9816 GB, free: 25.23 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.745e-05/0.1598, allocations: 49.58 kB / 0.9817 GB, free: 25.18 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001984/0.16, allocations: 144 kB / 0.9818 GB, free: 25.04 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.354e-06/0.16, allocations: 0 / 0.9818 GB, free: 25.04 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.224e-06/0.16, allocations: 0 / 0.9818 GB, free: 25.04 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 9.273e-06/0.16, allocations: 0 / 0.9818 GB, free: 25.04 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005269/0.1606, allocations: 473.3 kB / 0.9823 GB, free: 24.52 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.245e-05/0.1606, allocations: 16.02 kB / 0.9823 GB, free: 24.5 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.015e-05/0.1607, allocations: 19.77 kB / 0.9823 GB, free: 24.48 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002634/0.161, allocations: 235.7 kB / 0.9825 GB, free: 24.21 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.094e-05/0.161, allocations: 11.92 kB / 0.9825 GB, free: 24.2 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.812e-05/0.161, allocations: 4 kB / 0.9825 GB, free: 24.2 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002092/0.1612, allocations: 92.17 kB / 0.9826 GB, free: 24.09 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.645e-06/0.1613, allocations: 0 / 0.9826 GB, free: 24.09 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.57e-05/0.1613, allocations: 4 kB / 0.9826 GB, free: 24.09 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.822e-05/0.1613, allocations: 4 kB / 0.9826 GB, free: 24.08 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001306/0.1615, allocations: 47.84 kB / 0.9827 GB, free: 24.04 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000484/0.162, allocations: 352.7 kB / 0.983 GB, free: 23.64 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002806/0.1623, allocations: 86.69 kB / 0.9831 GB, free: 23.55 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.464e-05/0.1623, allocations: 8 kB / 0.9831 GB, free: 23.54 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002112/0.1625, allocations: 79.44 kB / 0.9832 GB, free: 23.45 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=8): time 2.77e-06/0.1625, allocations: 0 / 0.9832 GB, free: 23.45 MB / 0.6198 GB Notification: Performance of matching and sorting (n=8): time 0.0004587/0.163, allocations: 222.5 kB / 0.9834 GB, free: 23.21 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.554e-05/0.1631, allocations: 106.8 kB / 0.9835 GB, free: 23.08 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002778/0.1634, allocations: 263.7 kB / 0.9837 GB, free: 22.81 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.813e-05/0.1634, allocations: 29.77 kB / 0.9838 GB, free: 22.78 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 6.545e-05/0.1635, allocations: 116.1 kB / 0.9839 GB, free: 22.66 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.973e-05/0.1635, allocations: 19.72 kB / 0.9839 GB, free: 22.64 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.771e-06/0.1635, allocations: 0 / 0.9839 GB, free: 22.64 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.436e-05/0.1636, allocations: 326.8 kB / 0.9842 GB, free: 22.31 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.414e-05/0.1637, allocations: 27.98 kB / 0.9842 GB, free: 22.29 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001123/0.1638, allocations: 72.2 kB / 0.9843 GB, free: 22.2 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001052/0.1639, allocations: 35.98 kB / 0.9843 GB, free: 22.16 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.991e-06/0.164, allocations: 0 / 0.9843 GB, free: 22.16 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002688/0.1642, allocations: 113.4 kB / 0.9844 GB, free: 22.05 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.457e-05/0.1643, allocations: 4 kB / 0.9845 GB, free: 22.04 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.786e-06/0.1643, allocations: 3.953 kB / 0.9845 GB, free: 22.04 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/0.1643, allocations: 0 / 0.9845 GB, free: 22.04 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001156/0.1644, allocations: 19.92 kB / 0.9845 GB, free: 22.02 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.86e-06/0.1644, allocations: 0 / 0.9845 GB, free: 22.02 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.391e-05/0.1646, allocations: 11.97 kB / 0.9845 GB, free: 22.01 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.308e-05/0.1646, allocations: 4 kB / 0.9845 GB, free: 22 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.intTab.combiTimeTable.nextTimeEvent,intTab.y,intTab.combiTimeTable.nextTimeEvent,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEventScaled,intRep.y[1],intRep.y[2]) * 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: 1 * 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 0.0001225/0.1647, allocations: 145.8 kB / 0.9846 GB, free: 21.85 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.14e-05/0.1648, allocations: 15.81 kB / 0.9846 GB, free: 21.84 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.011e-05/0.1648, allocations: 21.58 kB / 0.9847 GB, free: 21.82 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-05/0.1648, allocations: 3.953 kB / 0.9847 GB, free: 21.82 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.1649, allocations: 7.938 kB / 0.9847 GB, free: 21.81 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.066e-06/0.1649, allocations: 0 / 0.9847 GB, free: 21.81 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001843/0.1651, allocations: 221.6 kB / 0.9849 GB, free: 21.54 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.482e-06/0.1651, allocations: 4 kB / 0.9849 GB, free: 21.54 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.492e-05/0.1651, allocations: 7.984 kB / 0.9849 GB, free: 21.53 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.058e-06/0.1652, allocations: 0 / 0.9849 GB, free: 21.53 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.321e-05/0.1652, allocations: 4 kB / 0.9849 GB, free: 21.53 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.315e-06/0.1652, allocations: 0 / 0.9849 GB, free: 21.53 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.722e-06/0.1652, allocations: 3.953 kB / 0.9849 GB, free: 21.52 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000281/0.1655, allocations: 145.2 kB / 0.985 GB, free: 21.36 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 5.33e-05/0.1656, allocations: 96.91 kB / 0.9851 GB, free: 21.25 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.542e-05/0.1656, allocations: 8 kB / 0.9851 GB, free: 21.24 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.887e-05/0.1657, allocations: 0 / 0.9851 GB, free: 21.24 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.469e-05/0.1658, allocations: 15.94 kB / 0.9852 GB, free: 21.23 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.651e-05/0.1658, allocations: 4 kB / 0.9852 GB, free: 21.22 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001894/0.166, allocations: 196.4 kB / 0.9854 GB, free: 21.03 MB / 0.6198 GB Notification: Performance of sort global known variables: time 6.81e-07/0.166, allocations: 0 / 0.9854 GB, free: 21.03 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003384/0.1664, allocations: 39.91 kB / 0.9854 GB, free: 20.99 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: 6 ($whenCondition1,intTab.y,intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled,intRep.y[1],intRep.y[2]) * Number of discrete states: 2 (intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 1 * Algorithm blocks: 0 * 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 0.001414/0.1678, allocations: 432.9 kB / 0.9858 GB, free: 20.72 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.000276/0.1681, allocations: 71.91 kB / 0.9859 GB, free: 20.65 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.455e-06/0.1681, allocations: 0 / 0.9859 GB, free: 20.65 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001145/0.1682, allocations: 31.98 kB / 0.9859 GB, free: 20.62 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002735/0.1685, allocations: 38.66 kB / 0.9859 GB, free: 20.59 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005591/0.1691, allocations: 314.6 kB / 0.9862 GB, free: 20.25 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001701/0.1693, allocations: 0.7321 MB / 0.987 GB, free: 19.5 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 9.885e-05/0.1694, allocations: 21.06 kB / 0.987 GB, free: 19.47 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.289e-05/0.1694, allocations: 23.38 kB / 0.987 GB, free: 19.45 MB / 0.6198 GB Notification: Performance of SimCode: time 1.315e-06/0.1695, allocations: 0 / 0.987 GB, free: 19.45 MB / 0.6198 GB Notification: Performance of Templates: time 0.006517/0.176, allocations: 2.343 MB / 0.9893 GB, free: 17.13 MB / 0.6198 GB