Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.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: "" <> buildModelFMU(IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer,fileNamePrefix="IBPSA_latest_IBPSA_Obsolete_Controls_Continuous_Examples_PIDHysteresisTimer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer,fileNamePrefix="IBPSA_latest_IBPSA_Obsolete_Controls_Continuous_Examples_PIDHysteresisTimer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001317/0.001317, allocations: 110.5 kB / 16.41 MB, free: 5.984 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.001281/0.001281, allocations: 193 kB / 17.34 MB, free: 5.602 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.405/1.405, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8178/0.8178, allocations: 126.7 MB / 417.9 MB, free: 12.31 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001911/0.001911, allocations: 71.25 kB / 0.5735 GB, free: 27.29 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.138/0.1399, allocations: 78.86 MB / 0.6505 GB, free: 3.754 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer): time 0.004885/0.1449, allocations: 3.109 MB / 0.6536 GB, free: 0.625 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001779/0.1467, allocations: 0.9738 MB / 0.6545 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002258/0.1469, allocations: 15.94 kB / 0.6545 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0002388/0.1471, allocations: 75.19 kB / 0.6546 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002119/0.1474, allocations: 95.11 kB / 0.6547 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005362/0.1479, allocations: 240.5 kB / 0.6549 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0005606/0.1485, allocations: 0.5543 MB / 0.6555 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003958/0.1489, allocations: 251.5 kB / 0.6557 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002519/0.1492, allocations: 207.1 kB / 0.6559 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002566/0.1494, allocations: 202.9 kB / 0.6561 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.598e-05/0.1495, allocations: 52 kB / 0.6561 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001054/0.1496, allocations: 52 kB / 0.6562 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001111/0.1498, allocations: 111.6 kB / 0.6563 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002166/0.15, allocations: 234.7 kB / 0.6565 GB, free: 13.58 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0006602/0.1506, allocations: 0.5915 MB / 0.6571 GB, free: 12.99 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.1507, allocations: 0 / 0.6571 GB, free: 12.99 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.303e-06/0.1507, allocations: 8 kB / 0.6571 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.047e-06/0.1507, allocations: 3.938 kB / 0.6571 GB, free: 12.98 MB / 0.4981 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.001259/0.1519, allocations: 0.7829 MB / 0.6579 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.992e-05/0.152, allocations: 12.62 kB / 0.6579 GB, free: 12.13 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.764e-05/0.1521, allocations: 74.72 kB / 0.658 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.249e-05/0.1522, allocations: 60.56 kB / 0.658 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006706/0.1529, allocations: 420.9 kB / 0.6584 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.544e-05/0.1529, allocations: 29.38 kB / 0.6585 GB, free: 11.51 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.7e-05/0.153, allocations: 36.38 kB / 0.6585 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006898/0.1537, allocations: 409.7 kB / 0.6589 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.571e-05/0.1537, allocations: 0 / 0.6589 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.564e-05/0.1538, allocations: 16 kB / 0.6589 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.202e-05/0.1538, allocations: 8 kB / 0.6589 GB, free: 11.03 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005797/0.1544, allocations: 267.8 kB / 0.6592 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00178/0.1561, allocations: 1.305 MB / 0.6604 GB, free: 9.387 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007294/0.1569, allocations: 315.4 kB / 0.6607 GB, free: 9.07 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002718/0.1572, allocations: 136.8 kB / 0.6609 GB, free: 8.934 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.21e-05/0.1572, allocations: 4 kB / 0.6609 GB, free: 8.93 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003554/0.1576, allocations: 173.5 kB / 0.661 GB, free: 8.746 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=33): time 1.853e-06/0.1576, allocations: 0 / 0.661 GB, free: 8.746 MB / 0.4981 GB Notification: Performance of matching and sorting (n=33): time 0.0008405/0.1584, allocations: 386.8 kB / 0.6614 GB, free: 8.363 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.595e-05/0.1585, allocations: 85.66 kB / 0.6615 GB, free: 8.262 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003824/0.1589, allocations: 353.6 kB / 0.6618 GB, free: 7.906 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.696e-05/0.1589, allocations: 37.7 kB / 0.6619 GB, free: 7.863 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001914/0.1591, allocations: 240.8 kB / 0.6621 GB, free: 7.625 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 9.097e-05/0.1592, allocations: 107.1 kB / 0.6622 GB, free: 7.52 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001246/0.1594, allocations: 78.02 kB / 0.6623 GB, free: 7.434 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001544/0.1595, allocations: 346.8 kB / 0.6626 GB, free: 7.086 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002401/0.1598, allocations: 100.7 kB / 0.6627 GB, free: 6.988 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002914/0.1601, allocations: 172.3 kB / 0.6629 GB, free: 6.793 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004898/0.1606, allocations: 255.8 kB / 0.6631 GB, free: 6.523 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.272e-06/0.1606, allocations: 7.938 kB / 0.6631 GB, free: 6.516 MB / 0.4981 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006426/0.1612, allocations: 342.8 kB / 0.6634 GB, free: 6.176 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.1613, allocations: 8.188 kB / 0.6634 GB, free: 6.168 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.1613, allocations: 4 kB / 0.6634 GB, free: 6.164 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.777e-05/0.1613, allocations: 4 kB / 0.6634 GB, free: 6.16 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002815/0.1616, allocations: 71.84 kB / 0.6635 GB, free: 6.09 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.027e-05/0.1616, allocations: 4 kB / 0.6635 GB, free: 6.086 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001934/0.1618, allocations: 39.72 kB / 0.6636 GB, free: 6.047 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.888e-05/0.1618, allocations: 19.98 kB / 0.6636 GB, free: 6.027 MB / 0.4981 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 (con.greaterEqualThreshold.y,con.hys.y,$PRE.con.hys.y,con.on,con.offTimer.entryTime,$PRE.con.offTimer.entryTime,con.onTimer.entryTime,$PRE.con.onTimer.entryTime,con.offHys.entryTime,$PRE.con.offHys.entryTime,$whenCondition1,$whenCondition2,$whenCondition3,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001983/0.162, allocations: 177.6 kB / 0.6637 GB, free: 5.844 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.144e-05/0.1621, allocations: 39.77 kB / 0.6638 GB, free: 5.805 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.311e-05/0.1622, allocations: 48.25 kB / 0.6638 GB, free: 5.758 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.1622, allocations: 7.938 kB / 0.6638 GB, free: 5.75 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.445e-06/0.1622, allocations: 0 / 0.6638 GB, free: 5.75 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.543e-06/0.1622, allocations: 7.922 kB / 0.6638 GB, free: 5.742 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001171/0.1634, allocations: 0.8031 MB / 0.6646 GB, free: 4.883 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-06/0.1634, allocations: 0 / 0.6646 GB, free: 4.883 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000255/0.1637, allocations: 55.91 kB / 0.6647 GB, free: 4.828 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.1637, allocations: 0 / 0.6647 GB, free: 4.828 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.401e-05/0.1637, allocations: 8 kB / 0.6647 GB, free: 4.82 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.047e-06/0.1637, allocations: 3.984 kB / 0.6647 GB, free: 4.816 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1638, allocations: 0 / 0.6647 GB, free: 4.816 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008785/0.1646, allocations: 0.5248 MB / 0.6652 GB, free: 4.277 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001433/0.1648, allocations: 140.7 kB / 0.6653 GB, free: 4.121 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.515e-05/0.1648, allocations: 4 kB / 0.6653 GB, free: 4.117 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001876/0.165, allocations: 15.98 kB / 0.6654 GB, free: 4.102 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.088e-05/0.1651, allocations: 23.97 kB / 0.6654 GB, free: 4.078 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.133e-05/0.1652, allocations: 11.98 kB / 0.6654 GB, free: 4.066 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002663/0.1654, allocations: 247.1 kB / 0.6656 GB, free: 3.824 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.1e-07/0.1654, allocations: 0 / 0.6656 GB, free: 3.824 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003509/0.1658, allocations: 91.78 kB / 0.6657 GB, free: 3.734 MB / 0.4981 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 (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.001169/0.167, allocations: 1.057 MB / 0.6667 GB, free: 2.652 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005815/0.1676, allocations: 264.2 kB / 0.667 GB, free: 2.395 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1676, allocations: 0 / 0.667 GB, free: 2.395 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000272/0.1678, allocations: 140.3 kB / 0.6671 GB, free: 2.258 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000522/0.1684, allocations: 87.8 kB / 0.6672 GB, free: 2.172 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004762/0.1732, allocations: 3.454 MB / 0.6706 GB, free: 14.59 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004688/0.1736, allocations: 0.8228 MB / 0.6714 GB, free: 13.74 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001788/0.1738, allocations: 47.27 kB / 0.6714 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002162/0.1741, allocations: 139.4 kB / 0.6716 GB, free: 13.56 MB / 0.5137 GB Notification: Performance of SimCode: time 6.31e-07/0.1741, allocations: 0 / 0.6716 GB, free: 13.56 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03053/0.2046, allocations: 7.409 MB / 0.6788 GB, free: 6.301 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.799/9.004, allocations: 13.66 kB / 0.6788 GB, free: 6.289 MB / 0.5137 GB (rm -f IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; mkfifo IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.pipe >> ../files/IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 IBPSA_latest_IBPSA_Obsolete_Controls_Continuous_Examples_PIDHysteresisTimer.fmu > IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.pipe 2>&1)