Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.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.ChillerSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 2.673/2.673, allocations: 287.9 MB / 302.9 MB, free: 8.23 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.001413/0.001413, allocations: 177.2 kB / 371.4 MB, free: 10.66 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 1.983/1.983, 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.00104/0.001039, allocations: 99.91 kB / 0.7434 GB, free: 6.414 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000504/0.0005045, allocations: 14.75 kB / 0.8662 GB, free: 141.3 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1573/0.1578, allocations: 115.3 MB / 0.9788 GB, free: 28.18 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.00173/0.1596, allocations: 1.37 MB / 0.9801 GB, free: 26.8 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0007609/0.1604, allocations: 452.2 kB / 0.9805 GB, free: 26.35 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.971e-05/0.1605, allocations: 4 kB / 0.9805 GB, free: 26.34 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 2.066e-05/0.1605, allocations: 3.984 kB / 0.9805 GB, free: 26.34 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 8.694e-05/0.1606, allocations: 19.91 kB / 0.9806 GB, free: 26.32 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001486/0.1608, allocations: 19.97 kB / 0.9806 GB, free: 26.3 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 8.802e-05/0.1609, allocations: 51.88 kB / 0.9806 GB, free: 26.25 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001094/0.161, allocations: 19.98 kB / 0.9806 GB, free: 26.23 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000102/0.1611, allocations: 31.84 kB / 0.9807 GB, free: 26.2 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 7.653e-05/0.1612, allocations: 27.84 kB / 0.9807 GB, free: 26.17 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.169e-05/0.1612, allocations: 4 kB / 0.9807 GB, free: 26.17 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 1.634e-05/0.1613, allocations: 8 kB / 0.9807 GB, free: 26.16 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.904e-05/0.1613, allocations: 11.92 kB / 0.9807 GB, free: 26.15 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 2.694e-05/0.1613, allocations: 33.7 kB / 0.9808 GB, free: 26.11 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 8.783e-05/0.1614, allocations: 60.09 kB / 0.9808 GB, free: 26.05 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.851e-06/0.1615, allocations: 0 / 0.9808 GB, free: 26.05 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.359e-06/0.1615, allocations: 0 / 0.9808 GB, free: 26.05 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 8.725e-06/0.1615, allocations: 0 / 0.9808 GB, free: 26.05 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.0004367/0.1619, allocations: 379.1 kB / 0.9812 GB, free: 25.63 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.162, allocations: 12.02 kB / 0.9812 GB, free: 25.62 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.268e-05/0.162, allocations: 15.91 kB / 0.9812 GB, free: 25.61 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001099/0.1622, allocations: 182.8 kB / 0.9814 GB, free: 25.39 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.378e-05/0.1622, allocations: 0 / 0.9814 GB, free: 25.39 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.968e-05/0.1622, allocations: 4 kB / 0.9814 GB, free: 25.38 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002367/0.1625, allocations: 103.2 kB / 0.9815 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.24e-06/0.1625, allocations: 0 / 0.9815 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.606e-05/0.1625, allocations: 0 / 0.9815 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.471e-06/0.1625, allocations: 4 kB / 0.9815 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002027/0.1627, allocations: 55.95 kB / 0.9815 GB, free: 25.21 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005247/0.1633, allocations: 340.6 kB / 0.9819 GB, free: 24.83 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001664/0.1635, allocations: 54.55 kB / 0.9819 GB, free: 24.77 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.033e-05/0.1635, allocations: 4 kB / 0.9819 GB, free: 24.76 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.173e-05/0.1635, allocations: 34.56 kB / 0.9819 GB, free: 24.72 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=4): time 2.349e-06/0.1635, allocations: 0 / 0.9819 GB, free: 24.72 MB / 0.6198 GB Notification: Performance of matching and sorting (n=4): time 0.0004142/0.164, allocations: 121.6 kB / 0.9821 GB, free: 24.59 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.02e-05/0.164, allocations: 77.11 kB / 0.9821 GB, free: 24.5 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.758e-05/0.1641, allocations: 131.9 kB / 0.9823 GB, free: 24.36 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.657e-05/0.1641, allocations: 25.7 kB / 0.9823 GB, free: 24.33 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.725e-05/0.1642, allocations: 96.05 kB / 0.9824 GB, free: 24.23 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.433e-05/0.1642, allocations: 19.83 kB / 0.9824 GB, free: 24.21 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.274e-06/0.1643, allocations: 0 / 0.9824 GB, free: 24.21 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.304e-05/0.1643, allocations: 314.8 kB / 0.9827 GB, free: 23.9 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001057/0.1644, allocations: 31.92 kB / 0.9827 GB, free: 23.87 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000111/0.1646, allocations: 45.69 kB / 0.9828 GB, free: 23.82 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001041/0.1647, allocations: 24 kB / 0.9828 GB, free: 23.79 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.85e-06/0.1647, allocations: 4.031 kB / 0.9828 GB, free: 23.79 MB / 0.6198 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002657/0.165, allocations: 101.6 kB / 0.9829 GB, free: 23.68 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.924e-05/0.165, allocations: 4 kB / 0.9829 GB, free: 23.68 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.873e-06/0.165, allocations: 0 / 0.9829 GB, free: 23.68 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.555e-05/0.165, allocations: 7.953 kB / 0.9829 GB, free: 23.67 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001254/0.1652, allocations: 15.98 kB / 0.9829 GB, free: 23.66 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.421e-06/0.1652, allocations: 0 / 0.9829 GB, free: 23.66 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001075/0.1653, allocations: 15.98 kB / 0.9829 GB, free: 23.64 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.131e-05/0.1653, allocations: 0 / 0.9829 GB, free: 23.64 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: 2 ($PRE.chiSwi.hysteresis.y,chiSwi.hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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.552e-05/0.1654, allocations: 117.8 kB / 0.983 GB, free: 23.52 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.777e-05/0.1655, allocations: 7.906 kB / 0.9831 GB, free: 23.51 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.401e-05/0.1655, allocations: 12.25 kB / 0.9831 GB, free: 23.5 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.43e-06/0.1656, allocations: 7.953 kB / 0.9831 GB, free: 23.49 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.476e-06/0.1656, allocations: 3.984 kB / 0.9831 GB, free: 23.48 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.591e-06/0.1656, allocations: 0 / 0.9831 GB, free: 23.48 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001984/0.1658, allocations: 181.6 kB / 0.9833 GB, free: 23.26 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.519e-06/0.1658, allocations: 0 / 0.9833 GB, free: 23.26 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.876e-05/0.1659, allocations: 11.98 kB / 0.9833 GB, free: 23.25 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.033e-06/0.1659, allocations: 0 / 0.9833 GB, free: 23.25 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.233e-05/0.166, allocations: 0 / 0.9833 GB, free: 23.25 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.623e-06/0.166, allocations: 7.922 kB / 0.9833 GB, free: 23.24 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.039e-06/0.166, allocations: 7.891 kB / 0.9833 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002847/0.1663, allocations: 183.4 kB / 0.9835 GB, free: 23.04 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.288e-05/0.1663, allocations: 93 kB / 0.9835 GB, free: 22.93 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.76e-05/0.1664, allocations: 0 / 0.9835 GB, free: 22.93 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001473/0.1665, allocations: 19.98 kB / 0.9836 GB, free: 22.91 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.31e-05/0.1666, allocations: 7.984 kB / 0.9836 GB, free: 22.9 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.123e-05/0.1666, allocations: 3.953 kB / 0.9836 GB, free: 22.89 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 5.726e-05/0.1667, allocations: 101.1 kB / 0.9837 GB, free: 22.8 MB / 0.6198 GB Notification: Performance of sort global known variables: time 7.56e-07/0.1667, allocations: 0 / 0.9837 GB, free: 22.8 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.000316/0.167, allocations: 15.94 kB / 0.9837 GB, free: 22.78 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: 1 (chiSwi.hysteresis.y) * Number of discrete states: 1 (chiSwi.hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0001/0.1671, allocations: 103.5 kB / 0.9838 GB, free: 22.67 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002599/0.1674, allocations: 67.91 kB / 0.9838 GB, free: 22.61 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.164e-06/0.1674, allocations: 3.938 kB / 0.9839 GB, free: 22.6 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001137/0.1675, allocations: 31.97 kB / 0.9839 GB, free: 22.57 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002382/0.1678, allocations: 8 kB / 0.9839 GB, free: 22.56 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003949/0.1682, allocations: 190.6 kB / 0.9841 GB, free: 22.35 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001372/0.1684, allocations: 0.7004 MB / 0.9848 GB, free: 21.62 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 5.184e-05/0.1684, allocations: 4 kB / 0.9848 GB, free: 21.62 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.33e-05/0.1685, allocations: 15.42 kB / 0.9848 GB, free: 21.61 MB / 0.6198 GB Notification: Performance of SimCode: time 1.69e-06/0.1685, allocations: 0 / 0.9848 GB, free: 21.61 MB / 0.6198 GB Notification: Performance of Templates: time 0.0033/0.1718, allocations: 0.717 MB / 0.9855 GB, free: 20.91 MB / 0.6198 GB