Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling,fileNamePrefix="IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling,fileNamePrefix="IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling",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.01142/0.01142, allocations: 100.9 kB / 15.73 MB, free: 6.055 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.002204/0.002204, allocations: 192.4 kB / 16.67 MB, free: 5.969 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.407/1.407, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8145/0.8145, allocations: 132.2 MB / 422.7 MB, free: 6.547 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001835/0.001835, allocations: 62.14 kB / 0.5808 GB, free: 24.14 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1476/0.1495, allocations: 80.21 MB / 0.6592 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling): time 0.003154/0.1527, allocations: 2.025 MB / 0.6611 GB, free: 8.762 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008981/0.1536, allocations: 0.5376 MB / 0.6617 GB, free: 8.219 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.652e-05/0.1537, allocations: 4 kB / 0.6617 GB, free: 8.215 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001286/0.1538, allocations: 19.73 kB / 0.6617 GB, free: 8.195 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001079/0.154, allocations: 47.58 kB / 0.6617 GB, free: 8.148 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002208/0.1542, allocations: 59.91 kB / 0.6618 GB, free: 8.09 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.000236/0.1544, allocations: 187.2 kB / 0.662 GB, free: 7.906 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001741/0.1546, allocations: 70.3 kB / 0.662 GB, free: 7.836 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001377/0.1548, allocations: 71.78 kB / 0.6621 GB, free: 7.766 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001282/0.1549, allocations: 79.61 kB / 0.6622 GB, free: 7.688 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.254e-05/0.1549, allocations: 16 kB / 0.6622 GB, free: 7.672 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 3.13e-05/0.155, allocations: 20 kB / 0.6622 GB, free: 7.652 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.544e-05/0.155, allocations: 35.91 kB / 0.6622 GB, free: 7.617 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 9.174e-05/0.1551, allocations: 83.53 kB / 0.6623 GB, free: 7.535 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002304/0.1554, allocations: 183.4 kB / 0.6625 GB, free: 7.355 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.626e-06/0.1554, allocations: 0 / 0.6625 GB, free: 7.355 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.883e-06/0.1554, allocations: 0 / 0.6625 GB, free: 7.355 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.381e-06/0.1554, allocations: 0 / 0.6625 GB, free: 7.355 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0008181/0.1562, allocations: 0.4907 MB / 0.663 GB, free: 6.816 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/0.1563, allocations: 8.031 kB / 0.663 GB, free: 6.809 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.896e-05/0.1563, allocations: 46.73 kB / 0.663 GB, free: 6.754 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.538e-05/0.1564, allocations: 20.84 kB / 0.663 GB, free: 6.734 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002271/0.1566, allocations: 208.1 kB / 0.6632 GB, free: 6.492 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.223e-05/0.1567, allocations: 38.27 kB / 0.6633 GB, free: 6.449 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.486e-05/0.1567, allocations: 12.38 kB / 0.6633 GB, free: 6.438 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004091/0.1572, allocations: 161.5 kB / 0.6634 GB, free: 6.273 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.413e-05/0.1572, allocations: 0 / 0.6634 GB, free: 6.273 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.999e-05/0.1572, allocations: 8 kB / 0.6635 GB, free: 6.266 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.084e-06/0.1572, allocations: 4 kB / 0.6635 GB, free: 6.262 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004994/0.1577, allocations: 145.1 kB / 0.6636 GB, free: 6.121 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000808/0.1585, allocations: 0.5308 MB / 0.6641 GB, free: 5.527 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004445/0.159, allocations: 138.6 kB / 0.6642 GB, free: 5.383 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002366/0.1592, allocations: 80.8 kB / 0.6643 GB, free: 5.301 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.925e-05/0.1593, allocations: 0 / 0.6643 GB, free: 5.301 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.662e-05/0.1593, allocations: 34.56 kB / 0.6644 GB, free: 5.258 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=12): time 1.002e-06/0.1593, allocations: 3.938 kB / 0.6644 GB, free: 5.254 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12): time 0.0007363/0.1601, allocations: 217.5 kB / 0.6646 GB, free: 5.035 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.812e-05/0.1601, allocations: 51.41 kB / 0.6646 GB, free: 4.973 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001352/0.1602, allocations: 158.1 kB / 0.6648 GB, free: 4.809 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.245e-05/0.1603, allocations: 29.7 kB / 0.6648 GB, free: 4.773 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 9.189e-05/0.1604, allocations: 128.2 kB / 0.6649 GB, free: 4.641 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.449e-05/0.1604, allocations: 43.62 kB / 0.665 GB, free: 4.598 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.403e-05/0.1605, allocations: 37.66 kB / 0.665 GB, free: 4.555 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001288/0.1606, allocations: 322.8 kB / 0.6653 GB, free: 4.23 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000216/0.1608, allocations: 59.95 kB / 0.6654 GB, free: 4.172 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002306/0.1611, allocations: 89.33 kB / 0.6654 GB, free: 4.078 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004216/0.1615, allocations: 150.3 kB / 0.6656 GB, free: 3.922 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.1615, allocations: 0 / 0.6656 GB, free: 3.922 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004957/0.162, allocations: 185.5 kB / 0.6658 GB, free: 3.734 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/0.1621, allocations: 5.719 kB / 0.6658 GB, free: 3.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.361e-06/0.1621, allocations: 3.984 kB / 0.6658 GB, free: 3.727 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.793e-05/0.1621, allocations: 4 kB / 0.6658 GB, free: 3.723 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001934/0.1623, allocations: 40.03 kB / 0.6658 GB, free: 3.684 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.1623, allocations: 0 / 0.6658 GB, free: 3.684 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001435/0.1624, allocations: 27.86 kB / 0.6658 GB, free: 3.656 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.424e-05/0.1625, allocations: 8 kB / 0.6659 GB, free: 3.648 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 2 (con.y_boolean,$PRE.con.y_boolean) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.0001111/0.1626, allocations: 129.7 kB / 0.666 GB, free: 3.512 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.657e-05/0.1626, allocations: 15.91 kB / 0.666 GB, free: 3.496 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.794e-05/0.1627, allocations: 20.7 kB / 0.666 GB, free: 3.469 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.1627, allocations: 4 kB / 0.666 GB, free: 3.465 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.1627, allocations: 3.938 kB / 0.666 GB, free: 3.461 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.1627, allocations: 4 kB / 0.666 GB, free: 3.457 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002666/0.163, allocations: 241.5 kB / 0.6663 GB, free: 3.172 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.163, allocations: 0 / 0.6663 GB, free: 3.172 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001894/0.1632, allocations: 31.97 kB / 0.6663 GB, free: 3.141 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.449e-06/0.1632, allocations: 4 kB / 0.6663 GB, free: 3.137 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.315e-05/0.1632, allocations: 0 / 0.6663 GB, free: 3.137 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.1632, allocations: 0 / 0.6663 GB, free: 3.137 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1632, allocations: 4 kB / 0.6663 GB, free: 3.133 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007608/0.164, allocations: 349.5 kB / 0.6666 GB, free: 2.777 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.937e-05/0.1641, allocations: 93.05 kB / 0.6667 GB, free: 2.668 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.291e-05/0.1641, allocations: 4 kB / 0.6667 GB, free: 2.664 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001534/0.1643, allocations: 19.97 kB / 0.6667 GB, free: 2.645 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.373e-05/0.1643, allocations: 11.98 kB / 0.6667 GB, free: 2.633 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.011e-05/0.1643, allocations: 4 kB / 0.6668 GB, free: 2.629 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 8.195e-05/0.1644, allocations: 115.2 kB / 0.6669 GB, free: 2.516 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1644, allocations: 0 / 0.6669 GB, free: 2.516 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002533/0.1647, allocations: 32 kB / 0.6669 GB, free: 2.484 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (cap.T) * Number of discrete variables: 1 (con.y_boolean) * Number of discrete states: 1 (con.y_boolean) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 12 * 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.001049/0.1657, allocations: 0.8802 MB / 0.6678 GB, free: 1.578 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004986/0.1663, allocations: 139.2 kB / 0.6679 GB, free: 1.445 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1663, allocations: 0 / 0.6679 GB, free: 1.445 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002259/0.1665, allocations: 75.89 kB / 0.668 GB, free: 1.371 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003616/0.1669, allocations: 20.11 kB / 0.668 GB, free: 1.352 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002786/0.1697, allocations: 1.995 MB / 0.6699 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003133/0.17, allocations: 0.7158 MB / 0.6706 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 6.623e-05/0.1701, allocations: 8.547 kB / 0.6706 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.004e-05/0.1702, allocations: 43.42 kB / 0.6707 GB, free: 14.47 MB / 0.5137 GB Notification: Performance of SimCode: time 3.91e-07/0.1702, allocations: 0 / 0.6707 GB, free: 14.47 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02847/0.1986, allocations: 3.29 MB / 0.6739 GB, free: 11.32 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.042/8.24, allocations: 18.66 kB / 0.6739 GB, free: 11.31 MB / 0.5137 GB (rm -f IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe ; mkfifo IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe >> ../files/IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling.fmu > IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe 2>&1)