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.005458/0.005458, allocations: 100.8 kB / 15.73 MB, free: 6.039 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.001061/0.001061, allocations: 202.2 kB / 16.68 MB, free: 5.965 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.289/1.289, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7096/0.7096, allocations: 132.2 MB / 422.7 MB, free: 1.707 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001189/0.001189, allocations: 69.52 kB / 0.5808 GB, free: 1.129 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1545/0.1557, allocations: 80.19 MB / 0.6592 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling): time 0.003343/0.1591, allocations: 2.038 MB / 0.6611 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001036/0.1602, allocations: 0.5376 MB / 0.6617 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001481/0.1604, allocations: 4 kB / 0.6617 GB, free: 11.44 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001508/0.1605, allocations: 19.73 kB / 0.6617 GB, free: 11.42 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.000142/0.1607, allocations: 47.56 kB / 0.6617 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002607/0.161, allocations: 55.94 kB / 0.6618 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002613/0.1612, allocations: 187.2 kB / 0.662 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001891/0.1614, allocations: 78.28 kB / 0.662 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001616/0.1616, allocations: 67.78 kB / 0.6621 GB, free: 10.99 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001502/0.1618, allocations: 87.59 kB / 0.6622 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.386e-05/0.1618, allocations: 16 kB / 0.6622 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 3.109e-05/0.1618, allocations: 16 kB / 0.6622 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.037e-05/0.1619, allocations: 31.86 kB / 0.6623 GB, free: 10.84 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 8.351e-05/0.162, allocations: 87.47 kB / 0.6623 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002441/0.1622, allocations: 175.5 kB / 0.6625 GB, free: 10.59 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1622, allocations: 0 / 0.6625 GB, free: 10.59 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.863e-06/0.1622, allocations: 4 kB / 0.6625 GB, free: 10.58 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.356e-06/0.1623, allocations: 0 / 0.6625 GB, free: 10.58 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.0008274/0.1631, allocations: 498.5 kB / 0.663 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/0.1631, allocations: 8.031 kB / 0.663 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.837e-05/0.1632, allocations: 46.73 kB / 0.663 GB, free: 9.984 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.256e-05/0.1632, allocations: 24.84 kB / 0.6631 GB, free: 9.961 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002225/0.1635, allocations: 204.1 kB / 0.6633 GB, free: 9.723 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.375e-05/0.1636, allocations: 38.27 kB / 0.6633 GB, free: 9.68 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.635e-05/0.1636, allocations: 12.38 kB / 0.6633 GB, free: 9.668 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000409/0.164, allocations: 157.5 kB / 0.6635 GB, free: 9.508 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.261e-05/0.164, allocations: 0 / 0.6635 GB, free: 9.508 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.898e-05/0.1641, allocations: 8 kB / 0.6635 GB, free: 9.5 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.1641, allocations: 8 kB / 0.6635 GB, free: 9.492 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004742/0.1646, allocations: 145.1 kB / 0.6636 GB, free: 9.352 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008099/0.1654, allocations: 0.5308 MB / 0.6641 GB, free: 8.758 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004188/0.1658, allocations: 134.6 kB / 0.6643 GB, free: 8.617 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000225/0.1661, allocations: 84.8 kB / 0.6643 GB, free: 8.531 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.86e-05/0.1661, allocations: 0 / 0.6643 GB, free: 8.531 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.047e-05/0.1661, allocations: 34.56 kB / 0.6644 GB, free: 8.488 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=12): time 2.805e-06/0.1661, allocations: 0 / 0.6644 GB, free: 8.488 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12): time 0.0006956/0.1668, allocations: 221.4 kB / 0.6646 GB, free: 8.266 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.893e-05/0.1669, allocations: 55.34 kB / 0.6646 GB, free: 8.199 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001207/0.167, allocations: 154.4 kB / 0.6648 GB, free: 8.043 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.001e-05/0.167, allocations: 29.7 kB / 0.6648 GB, free: 8.008 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.035e-05/0.1671, allocations: 128.2 kB / 0.6649 GB, free: 7.875 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.684e-05/0.1671, allocations: 43.61 kB / 0.665 GB, free: 7.832 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.979e-05/0.1672, allocations: 37.66 kB / 0.665 GB, free: 7.789 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001081/0.1673, allocations: 326.8 kB / 0.6653 GB, free: 7.461 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002027/0.1675, allocations: 59.95 kB / 0.6654 GB, free: 7.402 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000207/0.1677, allocations: 85.47 kB / 0.6655 GB, free: 7.312 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003961/0.1681, allocations: 157.4 kB / 0.6656 GB, free: 7.152 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.1682, allocations: 0 / 0.6656 GB, free: 7.152 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004708/0.1686, allocations: 189.5 kB / 0.6658 GB, free: 6.961 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.1687, allocations: 4 kB / 0.6658 GB, free: 6.957 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.1687, allocations: 0 / 0.6658 GB, free: 6.957 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/0.1687, allocations: 4 kB / 0.6658 GB, free: 6.953 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001876/0.1689, allocations: 35.97 kB / 0.6658 GB, free: 6.918 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.693e-06/0.1689, allocations: 0 / 0.6658 GB, free: 6.918 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000143/0.169, allocations: 35.92 kB / 0.6659 GB, free: 6.883 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.171e-05/0.1691, allocations: 7.938 kB / 0.6659 GB, free: 6.875 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.000106/0.1692, allocations: 129.7 kB / 0.666 GB, free: 6.738 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.616e-05/0.1692, allocations: 11.91 kB / 0.666 GB, free: 6.727 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.404e-05/0.1693, allocations: 20.7 kB / 0.666 GB, free: 6.699 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.1693, allocations: 3.984 kB / 0.666 GB, free: 6.695 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.1693, allocations: 0 / 0.666 GB, free: 6.695 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.1693, allocations: 4 kB / 0.666 GB, free: 6.691 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002484/0.1695, allocations: 237.5 kB / 0.6663 GB, free: 6.41 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.1696, allocations: 4 kB / 0.6663 GB, free: 6.406 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001836/0.1697, allocations: 31.97 kB / 0.6663 GB, free: 6.375 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.1698, allocations: 4 kB / 0.6663 GB, free: 6.371 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.233e-05/0.1698, allocations: 0 / 0.6663 GB, free: 6.371 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.1698, allocations: 0 / 0.6663 GB, free: 6.371 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.1698, allocations: 0 / 0.6663 GB, free: 6.371 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006992/0.1705, allocations: 351.1 kB / 0.6666 GB, free: 6.012 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.193e-05/0.1706, allocations: 92.98 kB / 0.6667 GB, free: 5.902 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.346e-05/0.1706, allocations: 0 / 0.6667 GB, free: 5.902 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000154/0.1707, allocations: 23.97 kB / 0.6667 GB, free: 5.879 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.941e-05/0.1708, allocations: 8.047 kB / 0.6668 GB, free: 5.871 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.38e-05/0.1708, allocations: 8 kB / 0.6668 GB, free: 5.863 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 7.431e-05/0.1709, allocations: 115.2 kB / 0.6669 GB, free: 5.75 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.8e-07/0.1709, allocations: 0 / 0.6669 GB, free: 5.75 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002504/0.1712, allocations: 32 kB / 0.6669 GB, free: 5.719 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.000929/0.1721, allocations: 0.8778 MB / 0.6678 GB, free: 4.816 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000448/0.1725, allocations: 140 kB / 0.6679 GB, free: 4.68 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.185e-06/0.1726, allocations: 0 / 0.6679 GB, free: 4.68 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002033/0.1728, allocations: 75.89 kB / 0.668 GB, free: 4.605 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003673/0.1731, allocations: 19.98 kB / 0.668 GB, free: 4.586 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002529/0.1757, allocations: 1.999 MB / 0.6699 GB, free: 2.5 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002651/0.176, allocations: 0.7119 MB / 0.6706 GB, free: 1.762 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.585e-05/0.176, allocations: 12.55 kB / 0.6706 GB, free: 1.75 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.997e-05/0.1761, allocations: 43.42 kB / 0.6707 GB, free: 1.707 MB / 0.4981 GB Notification: Performance of SimCode: time 2.21e-07/0.1761, allocations: 0 / 0.6707 GB, free: 1.707 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02057/0.1967, allocations: 3.293 MB / 0.6739 GB, free: 14.55 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.213/7.41, allocations: 10.34 kB / 0.6739 GB, free: 14.55 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)