Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(IBPSA.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset") translateModel(IBPSA.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009205/0.0009205, allocations: 95.88 kB / 15.68 MB, free: 488 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009069/0.000907, allocations: 181.3 kB / 16.57 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.359/1.359, allocations: 223.2 MB / 240.5 MB, free: 5.457 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6853/0.6853, allocations: 113.8 MB / 405.4 MB, free: 4.574 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003968/0.0003969, allocations: 14.23 kB / 493 MB, free: 8.598 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1551/0.1555, allocations: 77.14 MB / 0.5568 GB, free: 11.65 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Controls.Continuous.Examples.LimPIDWithReset): time 0.003707/0.1592, allocations: 3.365 MB / 0.5601 GB, free: 8.27 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001883/0.1612, allocations: 1.243 MB / 0.5613 GB, free: 7.02 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002729/0.1614, allocations: 23.88 kB / 0.5613 GB, free: 6.996 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001032/0.1615, allocations: 59.36 kB / 0.5614 GB, free: 6.938 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005415/0.1621, allocations: 215.3 kB / 0.5616 GB, free: 6.727 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006167/0.1627, allocations: 312.6 kB / 0.5619 GB, free: 6.43 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.000645/0.1634, allocations: 0.5861 MB / 0.5625 GB, free: 5.844 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004146/0.1638, allocations: 295.5 kB / 0.5628 GB, free: 5.539 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002511/0.1641, allocations: 238.9 kB / 0.563 GB, free: 5.305 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002503/0.1643, allocations: 246.6 kB / 0.5632 GB, free: 5.062 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 5.113e-05/0.1644, allocations: 20 kB / 0.5632 GB, free: 5.043 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.644e-05/0.1644, allocations: 24 kB / 0.5633 GB, free: 5.02 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 8.225e-05/0.1645, allocations: 91.55 kB / 0.5634 GB, free: 4.93 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001187/0.1647, allocations: 157.3 kB / 0.5635 GB, free: 4.77 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006242/0.1653, allocations: 0.8105 MB / 0.5643 GB, free: 3.957 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.014e-06/0.1653, allocations: 0 / 0.5643 GB, free: 3.957 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.1653, allocations: 0 / 0.5643 GB, free: 3.957 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.459e-05/0.1653, allocations: 0 / 0.5643 GB, free: 3.957 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.001569/0.1669, allocations: 0.9639 MB / 0.5652 GB, free: 2.934 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.671e-05/0.1669, allocations: 16.02 kB / 0.5653 GB, free: 2.918 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001134/0.1671, allocations: 79.06 kB / 0.5653 GB, free: 2.84 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000756/0.1678, allocations: 0.5329 MB / 0.5658 GB, free: 2.273 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.086e-05/0.1679, allocations: 41.31 kB / 0.5659 GB, free: 2.234 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.904e-05/0.168, allocations: 60 kB / 0.5659 GB, free: 2.176 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009989/0.169, allocations: 0.6075 MB / 0.5665 GB, free: 1.543 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.093e-05/0.169, allocations: 3.953 kB / 0.5665 GB, free: 1.539 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.263e-05/0.1691, allocations: 24 kB / 0.5666 GB, free: 1.516 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.239e-05/0.1691, allocations: 12 kB / 0.5666 GB, free: 1.504 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009171/0.17, allocations: 473 kB / 0.567 GB, free: 1.043 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002588/0.1726, allocations: 2.024 MB / 0.569 GB, free: 14.94 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008525/0.1735, allocations: 454.1 kB / 0.5694 GB, free: 14.49 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.599e-05/0.1735, allocations: 4.438 kB / 0.5694 GB, free: 14.49 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005395/0.1741, allocations: 265.4 kB / 0.5697 GB, free: 14.22 MB / 446.1 MB Notification: Performance of pre-optimization done (n=49): time 3.386e-06/0.1741, allocations: 3.984 kB / 0.5697 GB, free: 14.21 MB / 446.1 MB Notification: Performance of matching and sorting (n=49): time 0.001207/0.1753, allocations: 0.5999 MB / 0.5703 GB, free: 13.61 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.209e-05/0.1753, allocations: 55.84 kB / 0.5703 GB, free: 13.54 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004466/0.1758, allocations: 450.6 kB / 0.5708 GB, free: 13.09 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.66e-05/0.1758, allocations: 29.7 kB / 0.5708 GB, free: 13.06 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002028/0.176, allocations: 320.3 kB / 0.5711 GB, free: 12.74 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001203/0.1762, allocations: 169.6 kB / 0.5713 GB, free: 12.57 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.449e-05/0.1762, allocations: 12 kB / 0.5713 GB, free: 12.56 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.1763, allocations: 370.7 kB / 0.5716 GB, free: 12.19 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003558/0.1767, allocations: 173 kB / 0.5718 GB, free: 12.02 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003921/0.1771, allocations: 249.8 kB / 0.572 GB, free: 11.75 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003985/0.1775, allocations: 227.8 kB / 0.5722 GB, free: 11.53 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.1775, allocations: 0 / 0.5722 GB, free: 11.53 MB / 446.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009465/0.1785, allocations: 0.5701 MB / 0.5728 GB, free: 10.95 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.944e-05/0.1785, allocations: 33.69 kB / 0.5728 GB, free: 10.91 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.1785, allocations: 4 kB / 0.5728 GB, free: 10.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.566e-05/0.1786, allocations: 4 kB / 0.5728 GB, free: 10.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004727/0.179, allocations: 115.8 kB / 0.573 GB, free: 10.79 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.938e-06/0.179, allocations: 4.25 kB / 0.573 GB, free: 10.78 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003225/0.1794, allocations: 71.56 kB / 0.573 GB, free: 10.71 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.823e-05/0.1794, allocations: 20 kB / 0.573 GB, free: 10.69 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,conWitRes.trigger.y,conNoRes.trigger.y,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conNoRes.conPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * 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.0002394/0.1797, allocations: 226 kB / 0.5733 GB, free: 10.46 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.122e-05/0.1797, allocations: 59.34 kB / 0.5733 GB, free: 10.41 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001112/0.1799, allocations: 65.58 kB / 0.5734 GB, free: 10.34 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.1799, allocations: 4 kB / 0.5734 GB, free: 10.34 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.1799, allocations: 0 / 0.5734 GB, free: 10.34 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.1799, allocations: 3.984 kB / 0.5734 GB, free: 10.34 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001571/0.1815, allocations: 1.185 MB / 0.5745 GB, free: 9.09 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.1815, allocations: 0 / 0.5745 GB, free: 9.09 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000451/0.1819, allocations: 99.83 kB / 0.5746 GB, free: 8.992 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.566e-06/0.182, allocations: 0 / 0.5746 GB, free: 8.992 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.207e-05/0.182, allocations: 15.98 kB / 0.5747 GB, free: 8.977 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.182, allocations: 4 kB / 0.5747 GB, free: 8.973 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.182, allocations: 0 / 0.5747 GB, free: 8.973 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001237/0.1832, allocations: 0.7757 MB / 0.5754 GB, free: 8.188 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001604/0.1834, allocations: 164.4 kB / 0.5756 GB, free: 8.008 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.962e-05/0.1835, allocations: 8 kB / 0.5756 GB, free: 8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002891/0.1838, allocations: 35.97 kB / 0.5756 GB, free: 7.965 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.335e-05/0.1839, allocations: 40.38 kB / 0.5757 GB, free: 7.922 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.584e-05/0.1839, allocations: 12 kB / 0.5757 GB, free: 7.91 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003084/0.1842, allocations: 310.8 kB / 0.576 GB, free: 7.609 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1842, allocations: 0 / 0.576 GB, free: 7.609 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000416/0.1847, allocations: 143.5 kB / 0.5761 GB, free: 7.469 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (plaWitRes.cap.T,plaWitRes.cap1.T,conWitRes.conPID.I.y,plaNoRes.cap.T,plaNoRes.cap1.T,conNoRes.conPID.I.y) * Number of discrete variables: 6 (conWitRes.trigger.y,$whenCondition2,$whenCondition1,conNoRes.trigger.y,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 47 * Array equations: 0 * 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.0001317/0.1848, allocations: 111 kB / 0.5762 GB, free: 7.348 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0008553/0.1857, allocations: 493 kB / 0.5767 GB, free: 6.855 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.1857, allocations: 0 / 0.5767 GB, free: 6.855 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003861/0.1861, allocations: 222.9 kB / 0.5769 GB, free: 6.641 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006428/0.1867, allocations: 143.8 kB / 0.577 GB, free: 6.508 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002513/0.1892, allocations: 1.617 MB / 0.5786 GB, free: 4.855 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004075/0.1897, allocations: 0.9058 MB / 0.5795 GB, free: 3.922 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000245/0.1899, allocations: 64.58 kB / 0.5796 GB, free: 3.855 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001051/0.19, allocations: 39.44 kB / 0.5796 GB, free: 3.816 MB / 446.1 MB Notification: Performance of SimCode: time 2.4e-07/0.19, allocations: 0 / 0.5796 GB, free: 3.816 MB / 446.1 MB Notification: Performance of Templates: time 0.2852/0.4752, allocations: 5.321 MB / 0.5848 GB, free: 31.03 MB / 446.1 MB make -j1 -f IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.sim & ./IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)