Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Obsolete.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 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.PIDHysteresis,fileNamePrefix="IBPSA_latest_IBPSA_Obsolete_Controls_Continuous_Examples_PIDHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis,fileNamePrefix="IBPSA_latest_IBPSA_Obsolete_Controls_Continuous_Examples_PIDHysteresis",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.00121/0.00121, allocations: 109.2 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.00116/0.00116, allocations: 194.6 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.425/1.425, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8172/0.8172, allocations: 126.7 MB / 417.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001945/0.001945, allocations: 70.39 kB / 0.5735 GB, free: 27.11 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1478/0.1498, allocations: 78.86 MB / 0.6505 GB, free: 3.621 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis): time 0.004413/0.1542, allocations: 2.969 MB / 0.6534 GB, free: 0.6328 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001663/0.1559, allocations: 0.9118 MB / 0.6543 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000209/0.1561, allocations: 11.94 kB / 0.6543 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0002326/0.1564, allocations: 67.31 kB / 0.6544 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001921/0.1566, allocations: 83.17 kB / 0.6545 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005223/0.1571, allocations: 224.1 kB / 0.6547 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0005076/0.1576, allocations: 499.2 kB / 0.6552 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003538/0.158, allocations: 217.8 kB / 0.6554 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002226/0.1582, allocations: 187.1 kB / 0.6555 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002336/0.1585, allocations: 179 kB / 0.6557 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.399e-05/0.1585, allocations: 47.94 kB / 0.6558 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.216e-05/0.1586, allocations: 44 kB / 0.6558 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.144e-05/0.1587, allocations: 83.7 kB / 0.6559 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000176/0.1589, allocations: 202.8 kB / 0.6561 GB, free: 13.9 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0005742/0.1595, allocations: 0.5135 MB / 0.6566 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.1595, allocations: 0 / 0.6566 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.522e-06/0.1595, allocations: 0 / 0.6566 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.726e-06/0.1595, allocations: 0 / 0.6566 GB, free: 13.39 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001302/0.1608, allocations: 0.732 MB / 0.6573 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.814e-05/0.1609, allocations: 8.031 kB / 0.6573 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.695e-05/0.161, allocations: 66.72 kB / 0.6574 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.275e-05/0.1611, allocations: 48.66 kB / 0.6574 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007496/0.1618, allocations: 396.6 kB / 0.6578 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.785e-05/0.1619, allocations: 33.03 kB / 0.6578 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.287e-05/0.162, allocations: 24.38 kB / 0.6578 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006587/0.1626, allocations: 341.2 kB / 0.6582 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.83e-05/0.1626, allocations: 0 / 0.6582 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.916e-05/0.1627, allocations: 16 kB / 0.6582 GB, free: 11.62 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.178e-05/0.1627, allocations: 8 kB / 0.6582 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005084/0.1632, allocations: 214.1 kB / 0.6584 GB, free: 11.4 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001715/0.1649, allocations: 1.174 MB / 0.6595 GB, free: 10.15 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006395/0.1656, allocations: 240.7 kB / 0.6598 GB, free: 9.91 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002415/0.1659, allocations: 112.8 kB / 0.6599 GB, free: 9.797 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.253e-05/0.1659, allocations: 11.88 kB / 0.6599 GB, free: 9.785 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.518e-05/0.1659, allocations: 34.94 kB / 0.6599 GB, free: 9.742 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=22): time 1.272e-06/0.1659, allocations: 0 / 0.6599 GB, free: 9.742 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22): time 0.0007373/0.1667, allocations: 300.8 kB / 0.6602 GB, free: 9.445 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.969e-05/0.1668, allocations: 106.8 kB / 0.6603 GB, free: 9.316 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004471/0.1672, allocations: 337.7 kB / 0.6606 GB, free: 8.977 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.372e-05/0.1673, allocations: 29.7 kB / 0.6607 GB, free: 8.941 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002183/0.1675, allocations: 220.5 kB / 0.6609 GB, free: 8.719 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 8.407e-05/0.1676, allocations: 87.27 kB / 0.661 GB, free: 8.633 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.8e-05/0.1677, allocations: 53.7 kB / 0.661 GB, free: 8.574 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001883/0.1679, allocations: 342.8 kB / 0.6613 GB, free: 8.23 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001965/0.1681, allocations: 79.95 kB / 0.6614 GB, free: 8.152 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002589/0.1684, allocations: 147.6 kB / 0.6615 GB, free: 7.98 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004406/0.1688, allocations: 209.9 kB / 0.6617 GB, free: 7.754 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.04e-06/0.1688, allocations: 3.938 kB / 0.6618 GB, free: 7.75 MB / 0.4981 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005571/0.1694, allocations: 284 kB / 0.662 GB, free: 7.469 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.069e-05/0.1694, allocations: 4 kB / 0.662 GB, free: 7.465 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.1694, allocations: 4 kB / 0.662 GB, free: 7.461 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.991e-05/0.1695, allocations: 0 / 0.662 GB, free: 7.461 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002368/0.1697, allocations: 60.09 kB / 0.6621 GB, free: 7.402 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.327e-06/0.1697, allocations: 0 / 0.6621 GB, free: 7.402 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001881/0.1699, allocations: 35.81 kB / 0.6621 GB, free: 7.367 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.091e-05/0.17, allocations: 12 kB / 0.6621 GB, free: 7.355 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: 3 (con.hys.y,$PRE.con.hys.y,con.PID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 31 * 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.0002185/0.1702, allocations: 165.7 kB / 0.6623 GB, free: 7.184 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.47e-05/0.1703, allocations: 35.77 kB / 0.6623 GB, free: 7.148 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001023/0.1704, allocations: 39.36 kB / 0.6624 GB, free: 7.105 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.1704, allocations: 4 kB / 0.6624 GB, free: 7.102 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.769e-06/0.1704, allocations: 4 kB / 0.6624 GB, free: 7.098 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.89e-06/0.1704, allocations: 0 / 0.6624 GB, free: 7.098 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005009/0.1709, allocations: 401.3 kB / 0.6628 GB, free: 6.656 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.1709, allocations: 0 / 0.6628 GB, free: 6.656 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002298/0.1712, allocations: 43.91 kB / 0.6628 GB, free: 6.613 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.534e-06/0.1712, allocations: 0 / 0.6628 GB, free: 6.613 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.253e-05/0.1712, allocations: 8 kB / 0.6628 GB, free: 6.605 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.1712, allocations: 0 / 0.6628 GB, free: 6.605 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.1712, allocations: 0 / 0.6628 GB, free: 6.605 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007582/0.172, allocations: 438.9 kB / 0.6632 GB, free: 6.16 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001248/0.1721, allocations: 128.8 kB / 0.6633 GB, free: 6.016 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.258e-05/0.1722, allocations: 8 kB / 0.6634 GB, free: 6.008 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001718/0.1723, allocations: 11.98 kB / 0.6634 GB, free: 5.996 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.182e-05/0.1724, allocations: 19.97 kB / 0.6634 GB, free: 5.977 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.473e-05/0.1724, allocations: 12.06 kB / 0.6634 GB, free: 5.965 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002549/0.1727, allocations: 239.2 kB / 0.6636 GB, free: 5.734 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.164e-06/0.1727, allocations: 0 / 0.6636 GB, free: 5.734 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003351/0.173, allocations: 71.77 kB / 0.6637 GB, free: 5.664 MB / 0.4981 GB 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.001007/0.1741, allocations: 0.9665 MB / 0.6646 GB, free: 4.676 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004564/0.1745, allocations: 195.8 kB / 0.6648 GB, free: 4.484 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1745, allocations: 0 / 0.6648 GB, free: 4.484 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002017/0.1747, allocations: 106.3 kB / 0.6649 GB, free: 4.383 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005279/0.1753, allocations: 81.33 kB / 0.665 GB, free: 4.305 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004185/0.1795, allocations: 3.111 MB / 0.668 GB, free: 1.074 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004191/0.1799, allocations: 0.7951 MB / 0.6688 GB, free: 260 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001564/0.1801, allocations: 34.95 kB / 0.6688 GB, free: 228 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000196/0.1803, allocations: 127.4 kB / 0.669 GB, free: 100 kB / 0.4981 GB Notification: Performance of SimCode: time 6.12e-07/0.1803, allocations: 0 / 0.669 GB, free: 100 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08598/0.2663, allocations: 6.656 MB / 0.6755 GB, free: 9.57 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.488/8.755, allocations: 27.83 kB / 0.6755 GB, free: 9.551 MB / 0.5137 GB (rm -f IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis_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_PIDHysteresis.fmu > IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1)