Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.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.Continuous.Examples.PIDHysteresisTimer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 2.56/2.56, allocations: 287.9 MB / 302.9 MB, free: 8.238 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.001436/0.001436, allocations: 177.5 kB / 371.4 MB, free: 10.69 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.128/2.128, allocations: 205.4 MB / 0.6301 GB, free: 10.43 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.001035/0.001035, allocations: 90.91 kB / 0.7434 GB, free: 6.441 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004678/0.0004681, allocations: 19.41 kB / 0.8662 GB, free: 141.2 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1554/0.1559, allocations: 115.3 MB / 0.9787 GB, free: 28.22 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresisTimer): time 0.003168/0.1591, allocations: 2.621 MB / 0.9813 GB, free: 25.58 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001713/0.1609, allocations: 0.944 MB / 0.9822 GB, free: 24.63 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002983/0.1612, allocations: 15.94 kB / 0.9822 GB, free: 24.61 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 7.912e-05/0.1613, allocations: 31.64 kB / 0.9823 GB, free: 24.58 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0004182/0.1617, allocations: 106.2 kB / 0.9824 GB, free: 24.48 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005423/0.1623, allocations: 182 kB / 0.9825 GB, free: 24.3 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0004508/0.1628, allocations: 344.5 kB / 0.9829 GB, free: 23.97 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003098/0.1631, allocations: 175.7 kB / 0.983 GB, free: 23.8 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002141/0.1633, allocations: 143.3 kB / 0.9832 GB, free: 23.66 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000176/0.1635, allocations: 155.1 kB / 0.9833 GB, free: 23.51 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 4.87e-05/0.1636, allocations: 12 kB / 0.9833 GB, free: 23.5 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 4.675e-05/0.1636, allocations: 12 kB / 0.9833 GB, free: 23.48 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 5.554e-05/0.1637, allocations: 59.69 kB / 0.9834 GB, free: 23.43 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 7.5e-05/0.1638, allocations: 101.5 kB / 0.9835 GB, free: 23.32 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0003959/0.1642, allocations: 423.2 kB / 0.9839 GB, free: 22.91 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.692e-06/0.1642, allocations: 0 / 0.9839 GB, free: 22.91 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.842e-06/0.1642, allocations: 0 / 0.9839 GB, free: 22.91 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 8.603e-06/0.1642, allocations: 0 / 0.9839 GB, free: 22.91 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: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001104/0.1653, allocations: 0.6881 MB / 0.9846 GB, free: 22.17 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.602e-05/0.1654, allocations: 8.031 kB / 0.9846 GB, free: 22.16 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001021/0.1655, allocations: 55.34 kB / 0.9846 GB, free: 22.11 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006006/0.1661, allocations: 403.5 kB / 0.985 GB, free: 21.67 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.866e-05/0.1662, allocations: 40.92 kB / 0.9851 GB, free: 21.63 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.19e-05/0.1663, allocations: 36 kB / 0.9851 GB, free: 21.59 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007516/0.167, allocations: 385.6 kB / 0.9855 GB, free: 21.19 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.854e-05/0.1671, allocations: 0 / 0.9855 GB, free: 21.19 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.437e-05/0.1671, allocations: 16 kB / 0.9855 GB, free: 21.18 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.161e-05/0.1671, allocations: 16 kB / 0.9855 GB, free: 21.16 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006974/0.1678, allocations: 267.8 kB / 0.9858 GB, free: 20.9 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001907/0.1698, allocations: 1.328 MB / 0.987 GB, free: 19.49 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000821/0.1706, allocations: 319.7 kB / 0.9874 GB, free: 19.17 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.244e-05/0.1707, allocations: 4 kB / 0.9874 GB, free: 19.17 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004232/0.1711, allocations: 177.9 kB / 0.9875 GB, free: 18.98 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=33): time 3.95e-06/0.1711, allocations: 0 / 0.9875 GB, free: 18.98 MB / 0.6198 GB Notification: Performance of matching and sorting (n=33): time 0.0009734/0.1721, allocations: 377.8 kB / 0.9879 GB, free: 18.61 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.267e-05/0.1722, allocations: 89.05 kB / 0.988 GB, free: 18.5 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003937/0.1726, allocations: 349.6 kB / 0.9883 GB, free: 18.15 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 3.619e-05/0.1726, allocations: 37.7 kB / 0.9883 GB, free: 18.11 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001527/0.1728, allocations: 229 kB / 0.9886 GB, free: 17.88 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 8.12e-05/0.1729, allocations: 102.5 kB / 0.9887 GB, free: 17.78 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.033e-05/0.1729, allocations: 8 kB / 0.9887 GB, free: 17.77 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.224e-05/0.173, allocations: 354.7 kB / 0.989 GB, free: 17.42 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003056/0.1733, allocations: 96.7 kB / 0.9891 GB, free: 17.32 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003206/0.1736, allocations: 172.6 kB / 0.9893 GB, free: 17.12 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003042/0.174, allocations: 117.6 kB / 0.9894 GB, free: 17.01 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.054e-06/0.174, allocations: 3.938 kB / 0.9894 GB, free: 17.01 MB / 0.6198 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007907/0.1748, allocations: 347.5 kB / 0.9897 GB, free: 16.66 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/0.1748, allocations: 8.188 kB / 0.9897 GB, free: 16.66 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.076e-06/0.1748, allocations: 4 kB / 0.9897 GB, free: 16.65 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.019e-05/0.1749, allocations: 7.984 kB / 0.9897 GB, free: 16.64 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003361/0.1752, allocations: 63.91 kB / 0.9898 GB, free: 16.58 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.059e-05/0.1752, allocations: 4 kB / 0.9898 GB, free: 16.58 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002611/0.1755, allocations: 39.67 kB / 0.9898 GB, free: 16.54 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.215e-05/0.1756, allocations: 16 kB / 0.9898 GB, free: 16.52 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.con.offHys.entryTime,con.offHys.entryTime,$PRE.con.onTimer.entryTime,con.onTimer.entryTime,$PRE.con.offTimer.entryTime,con.offTimer.entryTime,con.on,$PRE.con.hys.y,con.hys.y,con.greaterEqualThreshold.y,con.con.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 45 * 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.000227/0.1758, allocations: 189.4 kB / 0.99 GB, free: 16.33 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.096e-05/0.1759, allocations: 39.53 kB / 0.9901 GB, free: 16.29 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.283e-05/0.176, allocations: 48.23 kB / 0.9901 GB, free: 16.24 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.573e-06/0.176, allocations: 4 kB / 0.9901 GB, free: 16.24 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.338e-06/0.176, allocations: 0 / 0.9901 GB, free: 16.24 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.118e-06/0.176, allocations: 0 / 0.9901 GB, free: 16.24 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001311/0.1773, allocations: 0.8153 MB / 0.9909 GB, free: 15.37 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.868e-06/0.1774, allocations: 4 kB / 0.9909 GB, free: 15.36 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003095/0.1777, allocations: 43.97 kB / 0.991 GB, free: 15.32 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.079e-06/0.1777, allocations: 0 / 0.991 GB, free: 15.32 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.887e-05/0.1777, allocations: 8 kB / 0.991 GB, free: 15.31 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.08e-06/0.1778, allocations: 0 / 0.991 GB, free: 15.31 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.1778, allocations: 3.938 kB / 0.991 GB, free: 15.31 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001013/0.1788, allocations: 0.5225 MB / 0.9915 GB, free: 14.77 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000144/0.179, allocations: 132.6 kB / 0.9916 GB, free: 14.62 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.982e-05/0.179, allocations: 8 kB / 0.9916 GB, free: 14.61 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00026/0.1793, allocations: 32.02 kB / 0.9916 GB, free: 14.58 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.379e-05/0.1794, allocations: 23.97 kB / 0.9917 GB, free: 14.56 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.671e-05/0.1794, allocations: 15.98 kB / 0.9917 GB, free: 14.54 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0002803/0.1797, allocations: 235.2 kB / 0.9919 GB, free: 14.31 MB / 0.6198 GB Notification: Performance of sort global known variables: time 6.89e-07/0.1797, allocations: 0 / 0.9919 GB, free: 14.31 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0004629/0.1802, allocations: 87.69 kB / 0.992 GB, free: 14.23 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.con.I.y,cap.T) * Number of discrete variables: 9 (con.on,$whenCondition3,$whenCondition2,$whenCondition1,con.offHys.entryTime,con.onTimer.entryTime,con.offTimer.entryTime,con.hys.y,con.greaterEqualThreshold.y) * Number of discrete states: 1 (con.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001208/0.1803, allocations: 111.2 kB / 0.9921 GB, free: 14.11 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0006775/0.181, allocations: 267.7 kB / 0.9923 GB, free: 13.84 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.71e-06/0.1811, allocations: 0 / 0.9923 GB, free: 13.84 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0003178/0.1814, allocations: 136.2 kB / 0.9925 GB, free: 13.71 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004975/0.1819, allocations: 82.42 kB / 0.9926 GB, free: 13.63 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001675/0.1836, allocations: 0.9694 MB / 0.9935 GB, free: 12.64 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002648/0.1839, allocations: 0.823 MB / 0.9943 GB, free: 11.79 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0002455/0.1841, allocations: 43.27 kB / 0.9943 GB, free: 11.75 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001099/0.1843, allocations: 27.44 kB / 0.9944 GB, free: 11.72 MB / 0.6198 GB Notification: Performance of SimCode: time 1.58e-06/0.1843, allocations: 0 / 0.9944 GB, free: 11.72 MB / 0.6198 GB Notification: Performance of Templates: time 0.009336/0.1936, allocations: 3.235 MB / 0.9975 GB, free: 8.512 MB / 0.6198 GB