Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo", uses=false) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis") translateModel(Buildings.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008233/0.008233, allocations: 104.8 kB / 15.74 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001351/0.001351, allocations: 200 kB / 16.68 MB, free: 5.922 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.588/1.588, allocations: 205.1 MB / 222.6 MB, free: 4.473 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.6135/0.6135, allocations: 95.47 MB / 365.4 MB, free: 9.758 MB / 302.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Buildings requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 74.08 kB / 0.5036 GB, free: 13.46 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1518/0.1533, allocations: 69.09 MB / 0.5711 GB, free: 8.316 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresis): time 0.004397/0.1577, allocations: 2.971 MB / 0.574 GB, free: 5.32 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.00162/0.1594, allocations: 0.9828 MB / 0.5749 GB, free: 4.328 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000226/0.1596, allocations: 11.94 kB / 0.5749 GB, free: 4.316 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002253/0.1599, allocations: 63.27 kB / 0.575 GB, free: 4.254 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001819/0.1601, allocations: 87.17 kB / 0.5751 GB, free: 4.168 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005237/0.1606, allocations: 227.6 kB / 0.5753 GB, free: 3.945 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004812/0.1611, allocations: 499.2 kB / 0.5758 GB, free: 3.453 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003932/0.1615, allocations: 225.7 kB / 0.576 GB, free: 3.227 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002173/0.1617, allocations: 183.1 kB / 0.5762 GB, free: 3.047 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002365/0.1619, allocations: 187 kB / 0.5763 GB, free: 2.863 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.461e-05/0.162, allocations: 48 kB / 0.5764 GB, free: 2.816 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.777e-05/0.1621, allocations: 44 kB / 0.5764 GB, free: 2.773 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 9.757e-05/0.1622, allocations: 99.58 kB / 0.5765 GB, free: 2.676 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001993/0.1624, allocations: 222.7 kB / 0.5767 GB, free: 2.457 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005394/0.1629, allocations: 0.51 MB / 0.5772 GB, free: 1.945 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.163, allocations: 0 / 0.5772 GB, free: 1.945 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.163, allocations: 4 kB / 0.5772 GB, free: 1.941 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.196e-06/0.163, allocations: 0 / 0.5772 GB, free: 1.941 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001139/0.1641, allocations: 0.7244 MB / 0.5779 GB, free: 1.168 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.1642, allocations: 11.98 kB / 0.578 GB, free: 1.156 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000121/0.1643, allocations: 56.38 kB / 0.578 GB, free: 1.102 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005647/0.1649, allocations: 394 kB / 0.5784 GB, free: 0.6797 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.738e-05/0.1649, allocations: 25.03 kB / 0.5784 GB, free: 0.6562 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001138/0.165, allocations: 28.38 kB / 0.5784 GB, free: 0.6289 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005867/0.1656, allocations: 368.8 kB / 0.5788 GB, free: 248 kB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.365e-05/0.1656, allocations: 0 / 0.5788 GB, free: 248 kB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.393e-05/0.1657, allocations: 16 kB / 0.5788 GB, free: 232 kB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.1657, allocations: 8 kB / 0.5788 GB, free: 224 kB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00051/0.1662, allocations: 242.5 kB / 0.579 GB, free: 15.98 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00165/0.1679, allocations: 1.178 MB / 0.5802 GB, free: 14.73 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005996/0.1685, allocations: 258.9 kB / 0.5804 GB, free: 14.47 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002181/0.1687, allocations: 116.8 kB / 0.5805 GB, free: 14.35 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.824e-05/0.1688, allocations: 12.31 kB / 0.5806 GB, free: 14.34 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.047e-05/0.1688, allocations: 34.5 kB / 0.5806 GB, free: 14.3 MB / 462.1 MB Notification: Performance of pre-optimization done (n=22): time 1.592e-06/0.1688, allocations: 0 / 0.5806 GB, free: 14.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=22): time 0.000697/0.1695, allocations: 326.8 kB / 0.5809 GB, free: 13.97 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.047e-05/0.1696, allocations: 144.5 kB / 0.581 GB, free: 13.8 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003803/0.17, allocations: 357.7 kB / 0.5814 GB, free: 13.44 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 3.313e-05/0.17, allocations: 37.64 kB / 0.5814 GB, free: 13.4 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001704/0.1702, allocations: 224.3 kB / 0.5816 GB, free: 13.17 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.064e-05/0.1703, allocations: 78.84 kB / 0.5817 GB, free: 13.09 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.008e-05/0.1704, allocations: 45.94 kB / 0.5818 GB, free: 13.04 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.1705, allocations: 346.8 kB / 0.5821 GB, free: 12.7 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002075/0.1707, allocations: 97.7 kB / 0.5822 GB, free: 12.6 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002446/0.171, allocations: 146.9 kB / 0.5823 GB, free: 12.43 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004453/0.1715, allocations: 211.3 kB / 0.5825 GB, free: 12.21 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.1715, allocations: 0 / 0.5825 GB, free: 12.21 MB / 462.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005377/0.172, allocations: 292.9 kB / 0.5828 GB, free: 11.92 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.022e-05/0.172, allocations: 8.094 kB / 0.5828 GB, free: 11.91 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.348e-06/0.1721, allocations: 4 kB / 0.5828 GB, free: 11.91 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.277e-05/0.1721, allocations: 0 / 0.5828 GB, free: 11.91 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002482/0.1723, allocations: 55.91 kB / 0.5829 GB, free: 11.86 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.383e-06/0.1724, allocations: 0 / 0.5829 GB, free: 11.86 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001937/0.1726, allocations: 39.72 kB / 0.5829 GB, free: 11.82 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.408e-05/0.1726, allocations: 8 kB / 0.5829 GB, free: 11.81 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002754/0.1729, allocations: 204.1 kB / 0.5831 GB, free: 11.61 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001969/0.1731, allocations: 130 kB / 0.5832 GB, free: 11.46 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003009/0.1734, allocations: 183.3 kB / 0.5834 GB, free: 11.27 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.032e-06/0.1734, allocations: 0 / 0.5834 GB, free: 11.27 MB / 462.1 MB Notification: Performance of matching and sorting (n=28) (initialization_lambda0): time 0.0004231/0.1738, allocations: 265.1 kB / 0.5837 GB, free: 11 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.086e-05/0.1739, allocations: 7.984 kB / 0.5837 GB, free: 10.99 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.673e-06/0.1739, allocations: 0 / 0.5837 GB, free: 10.99 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.179e-06/0.1739, allocations: 4 kB / 0.5837 GB, free: 10.99 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001899/0.1741, allocations: 39.98 kB / 0.5837 GB, free: 10.95 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.555e-06/0.1741, allocations: 3.938 kB / 0.5837 GB, free: 10.95 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001956/0.1743, allocations: 39.81 kB / 0.5837 GB, free: 10.91 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.554e-05/0.1743, allocations: 12 kB / 0.5838 GB, free: 10.89 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 (con.hys.y,$PRE.con.hys.y,con.PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001493/0.1745, allocations: 196.6 kB / 0.5839 GB, free: 10.7 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.323e-05/0.1745, allocations: 31.62 kB / 0.584 GB, free: 10.66 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.975e-05/0.1746, allocations: 43.47 kB / 0.584 GB, free: 10.62 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.1747, allocations: 3.938 kB / 0.584 GB, free: 10.62 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.225e-06/0.1747, allocations: 0 / 0.584 GB, free: 10.62 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.153e-05/0.1747, allocations: 7.922 kB / 0.584 GB, free: 10.61 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005189/0.1752, allocations: 425.2 kB / 0.5844 GB, free: 10.14 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.1752, allocations: 7.938 kB / 0.5844 GB, free: 10.14 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002394/0.1755, allocations: 39.98 kB / 0.5845 GB, free: 10.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.015e-06/0.1755, allocations: 4 kB / 0.5845 GB, free: 10.09 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.088e-05/0.1755, allocations: 3.984 kB / 0.5845 GB, free: 10.09 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.1755, allocations: 0 / 0.5845 GB, free: 10.09 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1755, allocations: 0 / 0.5845 GB, free: 10.09 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000811/0.1763, allocations: 481.6 kB / 0.5849 GB, free: 9.605 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001324/0.1765, allocations: 136.6 kB / 0.5851 GB, free: 9.453 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.688e-05/0.1765, allocations: 8 kB / 0.5851 GB, free: 9.445 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001852/0.1767, allocations: 15.98 kB / 0.5851 GB, free: 9.43 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.843e-05/0.1768, allocations: 19.91 kB / 0.5851 GB, free: 9.41 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.408e-05/0.1768, allocations: 8 kB / 0.5851 GB, free: 9.402 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0002642/0.1771, allocations: 259.2 kB / 0.5854 GB, free: 9.152 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1771, allocations: 4.062 kB / 0.5854 GB, free: 9.148 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0004292/0.1775, allocations: 127.5 kB / 0.5855 GB, free: 9.023 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.PID.I.y,cap.T) * Number of discrete variables: 1 (con.hys.y) * Number of discrete states: 1 (con.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001187/0.1777, allocations: 111.1 kB / 0.5856 GB, free: 8.906 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0006731/0.1783, allocations: 327.6 kB / 0.5859 GB, free: 8.586 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.1784, allocations: 384 / 0.5859 GB, free: 8.586 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002129/0.1786, allocations: 119.8 kB / 0.586 GB, free: 8.469 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005605/0.1791, allocations: 83.36 kB / 0.5861 GB, free: 8.395 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001475/0.1806, allocations: 0.715 MB / 0.5868 GB, free: 7.652 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004347/0.1811, allocations: 0.799 MB / 0.5876 GB, free: 6.828 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0001572/0.1812, allocations: 42.94 kB / 0.5876 GB, free: 6.789 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.132e-05/0.1813, allocations: 27.44 kB / 0.5877 GB, free: 6.766 MB / 462.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1813, allocations: 0 / 0.5877 GB, free: 6.766 MB / 462.1 MB Notification: Performance of Templates: time 0.007684/0.189, allocations: 3.672 MB / 0.5912 GB, free: 3.121 MB / 462.1 MB make -j1 -f Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.makefile (rm -f Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.sim & ./Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1)