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.001451/0.001451, allocations: 104.7 kB / 16.4 MB, free: 6.461 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.001818/0.001818, allocations: 193.2 kB / 17.34 MB, free: 5.715 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.341/1.341, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7525/0.7525, allocations: 122.9 MB / 414.1 MB, free: 15.88 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 61.95 kB / 0.5679 GB, free: 29.02 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1506/0.1518, allocations: 77.95 MB / 0.644 GB, free: 9.594 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis): time 0.004269/0.1561, allocations: 2.953 MB / 0.6469 GB, free: 6.625 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001835/0.158, allocations: 0.9158 MB / 0.6478 GB, free: 5.703 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003845/0.1584, allocations: 11.94 kB / 0.6478 GB, free: 5.691 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002954/0.1587, allocations: 67.31 kB / 0.6479 GB, free: 5.625 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000324/0.1591, allocations: 91.19 kB / 0.648 GB, free: 5.535 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006077/0.1597, allocations: 223 kB / 0.6482 GB, free: 5.32 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006377/0.1603, allocations: 495.2 kB / 0.6487 GB, free: 4.832 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004075/0.1607, allocations: 213.8 kB / 0.6489 GB, free: 4.617 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003067/0.1611, allocations: 191.1 kB / 0.6491 GB, free: 4.43 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002601/0.1613, allocations: 171.1 kB / 0.6492 GB, free: 4.262 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.684e-05/0.1614, allocations: 44 kB / 0.6493 GB, free: 4.219 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.534e-05/0.1615, allocations: 47.94 kB / 0.6493 GB, free: 4.172 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.341e-05/0.1616, allocations: 95.64 kB / 0.6494 GB, free: 4.078 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002004/0.1618, allocations: 202.9 kB / 0.6496 GB, free: 3.879 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006145/0.1624, allocations: 0.5095 MB / 0.6501 GB, free: 3.367 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.1624, allocations: 0 / 0.6501 GB, free: 3.367 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1624, allocations: 4 kB / 0.6501 GB, free: 3.363 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.313e-05/0.1625, allocations: 0 / 0.6501 GB, free: 3.363 MB / 494.1 MB 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.00124/0.1637, allocations: 0.7281 MB / 0.6508 GB, free: 2.586 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.328e-05/0.1638, allocations: 16.62 kB / 0.6508 GB, free: 2.57 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.23e-05/0.1638, allocations: 58.73 kB / 0.6509 GB, free: 2.504 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.493e-05/0.1639, allocations: 52.61 kB / 0.6509 GB, free: 2.453 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006886/0.1646, allocations: 404.6 kB / 0.6513 GB, free: 2.02 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.045e-05/0.1647, allocations: 21.03 kB / 0.6513 GB, free: 1.996 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.755e-05/0.1647, allocations: 32.38 kB / 0.6514 GB, free: 1.965 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006095/0.1654, allocations: 341.2 kB / 0.6517 GB, free: 1.605 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.763e-05/0.1654, allocations: 0 / 0.6517 GB, free: 1.605 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.161e-05/0.1654, allocations: 12 kB / 0.6517 GB, free: 1.594 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.432e-05/0.1654, allocations: 8 kB / 0.6517 GB, free: 1.586 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005032/0.166, allocations: 218.1 kB / 0.6519 GB, free: 1.371 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001633/0.1676, allocations: 1.178 MB / 0.6531 GB, free: 120 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006227/0.1682, allocations: 239.2 kB / 0.6533 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002263/0.1685, allocations: 112.8 kB / 0.6534 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.091e-05/0.1685, allocations: 0 / 0.6534 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.909e-05/0.1685, allocations: 38.88 kB / 0.6534 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=22): time 1.062e-06/0.1686, allocations: 0 / 0.6534 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22): time 0.0006954/0.1693, allocations: 302.7 kB / 0.6537 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.643e-05/0.1693, allocations: 106.8 kB / 0.6538 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003424/0.1697, allocations: 341.7 kB / 0.6542 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.655e-05/0.1697, allocations: 29.7 kB / 0.6542 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001599/0.1699, allocations: 220.6 kB / 0.6544 GB, free: 14.69 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 6.33e-05/0.17, allocations: 87.25 kB / 0.6545 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.126e-05/0.17, allocations: 49.7 kB / 0.6545 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001329/0.1702, allocations: 350.8 kB / 0.6549 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001913/0.1704, allocations: 75.97 kB / 0.6549 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002283/0.1706, allocations: 147.6 kB / 0.6551 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003833/0.171, allocations: 213.4 kB / 0.6553 GB, free: 13.72 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/0.171, allocations: 7.938 kB / 0.6553 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005177/0.1715, allocations: 281.1 kB / 0.6555 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.727e-05/0.1716, allocations: 4 kB / 0.6556 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.834e-06/0.1716, allocations: 4 kB / 0.6556 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.106e-05/0.1716, allocations: 4 kB / 0.6556 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002362/0.1719, allocations: 51.91 kB / 0.6556 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.226e-06/0.1719, allocations: 4.188 kB / 0.6556 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001787/0.1721, allocations: 35.83 kB / 0.6556 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.341e-05/0.1721, allocations: 12 kB / 0.6557 GB, free: 13.32 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.0001592/0.1723, allocations: 165.7 kB / 0.6558 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.913e-05/0.1723, allocations: 35.77 kB / 0.6559 GB, free: 13.11 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.605e-05/0.1724, allocations: 39.34 kB / 0.6559 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.1724, allocations: 0 / 0.6559 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.1724, allocations: 8 kB / 0.6559 GB, free: 13.06 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.1724, allocations: 0 / 0.6559 GB, free: 13.06 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000387/0.1728, allocations: 389.3 kB / 0.6563 GB, free: 12.63 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.1728, allocations: 0 / 0.6563 GB, free: 12.63 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002261/0.1731, allocations: 39.98 kB / 0.6563 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.1731, allocations: 4 kB / 0.6563 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.762e-05/0.1731, allocations: 3.984 kB / 0.6563 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.1731, allocations: 3.938 kB / 0.6563 GB, free: 12.58 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1731, allocations: 0 / 0.6563 GB, free: 12.58 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006638/0.1738, allocations: 433 kB / 0.6567 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001219/0.1739, allocations: 140.8 kB / 0.6569 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.094e-05/0.174, allocations: 0 / 0.6569 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001816/0.1742, allocations: 15.98 kB / 0.6569 GB, free: 11.97 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.319e-05/0.1742, allocations: 19.97 kB / 0.6569 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.235e-05/0.1742, allocations: 4 kB / 0.6569 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002386/0.1745, allocations: 243.2 kB / 0.6571 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.7e-07/0.1745, allocations: 0 / 0.6571 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003295/0.1748, allocations: 71.83 kB / 0.6572 GB, free: 11.64 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.0008952/0.1757, allocations: 0.9637 MB / 0.6581 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004283/0.1762, allocations: 203.2 kB / 0.6583 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.1762, allocations: 0 / 0.6583 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001876/0.1764, allocations: 101.4 kB / 0.6584 GB, free: 10.36 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000516/0.1769, allocations: 79.33 kB / 0.6585 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003724/0.1806, allocations: 3.121 MB / 0.6616 GB, free: 7.051 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003049/0.181, allocations: 0.799 MB / 0.6623 GB, free: 6.227 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001483/0.1811, allocations: 38.95 kB / 0.6624 GB, free: 6.191 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001768/0.1813, allocations: 127.4 kB / 0.6625 GB, free: 6.066 MB / 0.4981 GB Notification: Performance of SimCode: time 2.41e-07/0.1813, allocations: 0 / 0.6625 GB, free: 6.066 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02525/0.2066, allocations: 6.662 MB / 0.669 GB, free: 15.53 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.033/8.239, allocations: 13.83 kB / 0.669 GB, free: 15.52 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)