Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.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.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 2.47/2.47, allocations: 287.9 MB / 302.9 MB, free: 8.254 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.001453/0.001453, allocations: 173 kB / 371.4 MB, free: 10.67 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.119/2.119, allocations: 205.4 MB / 0.6301 GB, free: 10.39 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.001041/0.001041, allocations: 95.81 kB / 0.7434 GB, free: 6.41 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004613/0.0004616, allocations: 16 kB / 0.8662 GB, free: 141.4 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1566/0.1571, allocations: 115.3 MB / 0.9788 GB, free: 28.2 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.001824/0.1589, allocations: 1.449 MB / 0.9802 GB, free: 26.73 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001264/0.1602, allocations: 0.7695 MB / 0.9809 GB, free: 25.96 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.436e-05/0.1603, allocations: 4 kB / 0.9809 GB, free: 25.95 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0004698/0.1608, allocations: 166.3 kB / 0.9811 GB, free: 25.79 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0003365/0.1612, allocations: 140.7 kB / 0.9812 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004562/0.1616, allocations: 154.8 kB / 0.9814 GB, free: 25.51 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002072/0.1619, allocations: 139.7 kB / 0.9815 GB, free: 25.37 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001201/0.162, allocations: 37.86 kB / 0.9815 GB, free: 25.33 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001325/0.1621, allocations: 75.73 kB / 0.9816 GB, free: 25.26 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001768/0.1623, allocations: 135.5 kB / 0.9817 GB, free: 25.12 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.209e-05/0.1624, allocations: 8 kB / 0.9817 GB, free: 25.12 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 7.894e-05/0.1625, allocations: 23.92 kB / 0.9818 GB, free: 25.09 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 7.783e-05/0.1626, allocations: 71.8 kB / 0.9818 GB, free: 25.02 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.526e-05/0.1626, allocations: 65.52 kB / 0.9819 GB, free: 24.95 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0004321/0.1631, allocations: 283.6 kB / 0.9822 GB, free: 24.68 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.9e-06/0.1631, allocations: 0 / 0.9822 GB, free: 24.68 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.399e-06/0.1631, allocations: 0 / 0.9822 GB, free: 24.68 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 7.103e-06/0.1631, allocations: 0 / 0.9822 GB, free: 24.68 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0009967/0.1641, allocations: 0.5718 MB / 0.9827 GB, free: 24.05 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.1642, allocations: 8.031 kB / 0.9827 GB, free: 24.05 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.419e-05/0.1643, allocations: 35.58 kB / 0.9828 GB, free: 24.01 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008447/0.1652, allocations: 397.3 kB / 0.9832 GB, free: 23.59 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.531e-05/0.1652, allocations: 0 / 0.9832 GB, free: 23.59 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.289e-05/0.1652, allocations: 4 kB / 0.9832 GB, free: 23.58 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002598/0.1655, allocations: 77.66 kB / 0.9832 GB, free: 23.5 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.1655, allocations: 4 kB / 0.9832 GB, free: 23.5 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.003e-05/0.1656, allocations: 3.984 kB / 0.9832 GB, free: 23.49 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.68e-06/0.1656, allocations: 7.938 kB / 0.9832 GB, free: 23.48 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002445/0.1659, allocations: 59.86 kB / 0.9833 GB, free: 23.43 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008884/0.1668, allocations: 468.6 kB / 0.9837 GB, free: 22.92 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000201/0.167, allocations: 58.44 kB / 0.9838 GB, free: 22.85 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.059e-05/0.167, allocations: 0 / 0.9838 GB, free: 22.85 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.556e-05/0.1671, allocations: 38.62 kB / 0.9838 GB, free: 22.8 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 2.903e-06/0.1671, allocations: 0 / 0.9838 GB, free: 22.8 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.0004907/0.1676, allocations: 105.3 kB / 0.9839 GB, free: 22.7 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.138e-05/0.1676, allocations: 55.41 kB / 0.984 GB, free: 22.63 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001138/0.1688, allocations: 0.56 MB / 0.9845 GB, free: 22.06 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.263e-05/0.1688, allocations: 25.7 kB / 0.9846 GB, free: 22.03 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001721/0.169, allocations: 168 kB / 0.9847 GB, free: 21.86 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3e-05/0.1691, allocations: 23.72 kB / 0.9847 GB, free: 21.84 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.611e-06/0.1691, allocations: 0 / 0.9847 GB, free: 21.84 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001103/0.1692, allocations: 346.8 kB / 0.9851 GB, free: 21.49 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.854e-05/0.1693, allocations: 15.98 kB / 0.9851 GB, free: 21.48 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.21e-05/0.1694, allocations: 8 kB / 0.9851 GB, free: 21.47 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.788e-05/0.1695, allocations: 19.98 kB / 0.9851 GB, free: 21.45 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.1696, allocations: 0 / 0.9851 GB, free: 21.45 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003149/0.1699, allocations: 101.2 kB / 0.9852 GB, free: 21.34 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.081e-05/0.1699, allocations: 4.938 kB / 0.9852 GB, free: 21.34 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.17, allocations: 3.938 kB / 0.9852 GB, free: 21.34 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/0.17, allocations: 0 / 0.9852 GB, free: 21.34 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001269/0.1701, allocations: 8 kB / 0.9852 GB, free: 21.33 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.785e-06/0.1701, allocations: 7.969 kB / 0.9852 GB, free: 21.32 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001439/0.1703, allocations: 4 kB / 0.9852 GB, free: 21.32 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.212e-05/0.1703, allocations: 0 / 0.9852 GB, free: 21.32 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 0.0002414/0.1706, allocations: 185.8 kB / 0.9854 GB, free: 21.12 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001189/0.1707, allocations: 31.69 kB / 0.9855 GB, free: 21.09 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003746/0.1711, allocations: 108.5 kB / 0.9856 GB, free: 20.97 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.588e-06/0.1711, allocations: 4.031 kB / 0.9856 GB, free: 20.97 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.91e-06/0.1712, allocations: 0 / 0.9856 GB, free: 20.97 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.921e-06/0.1712, allocations: 0 / 0.9856 GB, free: 20.97 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004968/0.1717, allocations: 281.5 kB / 0.9858 GB, free: 20.64 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.531e-06/0.1717, allocations: 4 kB / 0.9858 GB, free: 20.64 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.772e-05/0.1718, allocations: 15.92 kB / 0.9858 GB, free: 20.62 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.787e-06/0.1718, allocations: 0 / 0.9858 GB, free: 20.62 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.349e-05/0.1719, allocations: 11.95 kB / 0.9859 GB, free: 20.61 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.457e-06/0.1719, allocations: 0 / 0.9859 GB, free: 20.61 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.406e-06/0.1719, allocations: 0 / 0.9859 GB, free: 20.61 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003246/0.1722, allocations: 183.2 kB / 0.986 GB, free: 20.42 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001537/0.1724, allocations: 124.7 kB / 0.9862 GB, free: 20.28 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.043e-05/0.1725, allocations: 3.984 kB / 0.9862 GB, free: 20.27 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002254/0.1727, allocations: 7.953 kB / 0.9862 GB, free: 20.27 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.067e-05/0.1728, allocations: 0 / 0.9862 GB, free: 20.27 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.186e-05/0.1728, allocations: 4 kB / 0.9862 GB, free: 20.26 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0008268/0.1737, allocations: 415.1 kB / 0.9866 GB, free: 19.86 MB / 0.6198 GB Notification: Performance of sort global known variables: time 9.71e-07/0.1737, allocations: 0 / 0.9866 GB, free: 19.86 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0006345/0.1743, allocations: 24 kB / 0.9866 GB, free: 19.84 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.001692/0.176, allocations: 366.4 kB / 0.9869 GB, free: 19.61 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002595/0.1763, allocations: 43.91 kB / 0.987 GB, free: 19.56 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.1763, allocations: 0 / 0.987 GB, free: 19.56 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001016/0.1765, allocations: 12 kB / 0.987 GB, free: 19.55 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005538/0.177, allocations: 42.19 kB / 0.987 GB, free: 19.51 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001327/0.1784, allocations: 0.555 MB / 0.9876 GB, free: 18.93 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004021/0.1788, allocations: 0.7911 MB / 0.9883 GB, free: 18.11 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0002429/0.1791, allocations: 51.11 kB / 0.9884 GB, free: 18.07 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001037/0.1792, allocations: 27.42 kB / 0.9884 GB, free: 18.04 MB / 0.6198 GB Notification: Performance of SimCode: time 2.104e-06/0.1792, allocations: 0 / 0.9884 GB, free: 18.04 MB / 0.6198 GB Notification: Performance of Templates: time 0.01026/0.1895, allocations: 2.291 MB / 0.9907 GB, free: 15.78 MB / 0.6198 GB