Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling,fileNamePrefix="IDEAS_dev_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling,fileNamePrefix="IDEAS_dev_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.01353/0.01353, allocations: 98.03 kB / 15.73 MB, free: 6.012 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.003242/0.003243, allocations: 196.1 kB / 16.68 MB, free: 5.93 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.486/1.486, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8427/0.8427, allocations: 135.6 MB / 426.1 MB, free: 3.688 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002164/0.002164, allocations: 66.67 kB / 0.5857 GB, free: 21.38 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1613/0.1635, allocations: 81.03 MB / 0.6648 GB, free: 5.684 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling): time 0.004063/0.1676, allocations: 2.023 MB / 0.6668 GB, free: 3.648 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.00118/0.1688, allocations: 0.5299 MB / 0.6673 GB, free: 3.113 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001745/0.169, allocations: 4 kB / 0.6673 GB, free: 3.109 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001544/0.1692, allocations: 23.67 kB / 0.6674 GB, free: 3.086 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001721/0.1694, allocations: 51.56 kB / 0.6674 GB, free: 3.035 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002944/0.1697, allocations: 51.86 kB / 0.6675 GB, free: 2.984 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0003044/0.17, allocations: 191.2 kB / 0.6676 GB, free: 2.797 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002194/0.1702, allocations: 70.3 kB / 0.6677 GB, free: 2.727 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002124/0.1705, allocations: 83.69 kB / 0.6678 GB, free: 2.645 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001789/0.1707, allocations: 75.62 kB / 0.6679 GB, free: 2.57 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.684e-05/0.1707, allocations: 16 kB / 0.6679 GB, free: 2.555 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 3.746e-05/0.1708, allocations: 16 kB / 0.6679 GB, free: 2.539 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 5.627e-05/0.1708, allocations: 35.91 kB / 0.6679 GB, free: 2.504 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001247/0.1709, allocations: 83.53 kB / 0.668 GB, free: 2.422 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002947/0.1712, allocations: 175.5 kB / 0.6682 GB, free: 2.25 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1713, allocations: 0 / 0.6682 GB, free: 2.25 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.613e-06/0.1713, allocations: 0 / 0.6682 GB, free: 2.25 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.748e-06/0.1713, allocations: 0 / 0.6682 GB, free: 2.25 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.001051/0.1723, allocations: 494.6 kB / 0.6686 GB, free: 1.719 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.032e-05/0.1724, allocations: 9.109 kB / 0.6686 GB, free: 1.711 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.915e-05/0.1725, allocations: 54.67 kB / 0.6687 GB, free: 1.648 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.561e-05/0.1725, allocations: 24.8 kB / 0.6687 GB, free: 1.625 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002666/0.1728, allocations: 208 kB / 0.6689 GB, free: 1.383 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.532e-05/0.1729, allocations: 38.27 kB / 0.669 GB, free: 1.34 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.555e-05/0.173, allocations: 16.31 kB / 0.669 GB, free: 1.324 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004586/0.1734, allocations: 158.8 kB / 0.6691 GB, free: 1.164 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.49e-05/0.1735, allocations: 0 / 0.6691 GB, free: 1.164 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.944e-05/0.1735, allocations: 8 kB / 0.6691 GB, free: 1.156 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.865e-06/0.1735, allocations: 4 kB / 0.6691 GB, free: 1.152 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00054/0.174, allocations: 139.9 kB / 0.6693 GB, free: 1.016 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009746/0.175, allocations: 0.5386 MB / 0.6698 GB, free: 424 kB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004874/0.1755, allocations: 134.7 kB / 0.6699 GB, free: 280 kB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002528/0.1758, allocations: 80.8 kB / 0.67 GB, free: 196 kB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.396e-05/0.1758, allocations: 0 / 0.67 GB, free: 196 kB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.143e-05/0.1759, allocations: 34.56 kB / 0.67 GB, free: 152 kB / 0.4981 GB Notification: Performance of pre-optimization done (n=12): time 1.192e-06/0.1759, allocations: 3.938 kB / 0.67 GB, free: 148 kB / 0.4981 GB Notification: Performance of matching and sorting (n=12): time 0.0008223/0.1767, allocations: 221.4 kB / 0.6702 GB, free: 15.92 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.446e-05/0.1768, allocations: 51.41 kB / 0.6703 GB, free: 15.86 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001537/0.1769, allocations: 150.2 kB / 0.6704 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 2.873e-05/0.177, allocations: 25.7 kB / 0.6705 GB, free: 15.67 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001017/0.1771, allocations: 132.2 kB / 0.6706 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 4.652e-05/0.1771, allocations: 43.62 kB / 0.6706 GB, free: 15.49 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.193e-05/0.1772, allocations: 33.7 kB / 0.6707 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001886/0.1774, allocations: 318.8 kB / 0.671 GB, free: 15.13 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002224/0.1776, allocations: 59.95 kB / 0.671 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002427/0.1779, allocations: 90.45 kB / 0.6711 GB, free: 14.98 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004432/0.1784, allocations: 147.7 kB / 0.6713 GB, free: 14.82 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1784, allocations: 4 kB / 0.6713 GB, free: 14.82 MB / 0.5137 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005359/0.1789, allocations: 188.4 kB / 0.6714 GB, free: 14.63 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.046e-05/0.1789, allocations: 4 kB / 0.6714 GB, free: 14.63 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.1789, allocations: 0 / 0.6714 GB, free: 14.63 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.835e-05/0.179, allocations: 4 kB / 0.6714 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002108/0.1792, allocations: 43.97 kB / 0.6715 GB, free: 14.58 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.144e-06/0.1792, allocations: 0 / 0.6715 GB, free: 14.58 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001526/0.1794, allocations: 31.86 kB / 0.6715 GB, free: 14.55 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.598e-05/0.1794, allocations: 4 kB / 0.6715 GB, free: 14.55 MB / 0.5137 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.0001392/0.1795, allocations: 125.8 kB / 0.6716 GB, free: 14.41 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.5e-05/0.1796, allocations: 19.91 kB / 0.6717 GB, free: 14.39 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.963e-05/0.1796, allocations: 20.7 kB / 0.6717 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.1796, allocations: 4 kB / 0.6717 GB, free: 14.37 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.1797, allocations: 0 / 0.6717 GB, free: 14.37 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.1797, allocations: 4 kB / 0.6717 GB, free: 14.37 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000334/0.18, allocations: 237.5 kB / 0.6719 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.18, allocations: 0 / 0.6719 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002055/0.1802, allocations: 35.91 kB / 0.6719 GB, free: 14.05 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.252e-06/0.1802, allocations: 4 kB / 0.672 GB, free: 14.05 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.562e-05/0.1803, allocations: 4 kB / 0.672 GB, free: 14.04 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.1803, allocations: 0 / 0.672 GB, free: 14.04 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.1803, allocations: 3.984 kB / 0.672 GB, free: 14.04 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008375/0.1811, allocations: 347.2 kB / 0.6723 GB, free: 13.68 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 8.005e-05/0.1812, allocations: 92.98 kB / 0.6724 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.805e-05/0.1813, allocations: 8.062 kB / 0.6724 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001603/0.1814, allocations: 19.97 kB / 0.6724 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.85e-05/0.1815, allocations: 11.98 kB / 0.6724 GB, free: 13.54 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.816e-06/0.1815, allocations: 4 kB / 0.6724 GB, free: 13.53 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 9.874e-05/0.1816, allocations: 120 kB / 0.6725 GB, free: 13.41 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.11e-07/0.1816, allocations: 0 / 0.6725 GB, free: 13.41 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002691/0.1819, allocations: 32 kB / 0.6726 GB, free: 13.38 MB / 0.5137 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.001145/0.1831, allocations: 0.8729 MB / 0.6734 GB, free: 12.48 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0005139/0.1836, allocations: 148 kB / 0.6736 GB, free: 12.34 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.1836, allocations: 0 / 0.6736 GB, free: 12.34 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0002342/0.1838, allocations: 75.83 kB / 0.6736 GB, free: 12.27 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004052/0.1843, allocations: 28.05 kB / 0.6737 GB, free: 12.24 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003134/0.1874, allocations: 1.985 MB / 0.6756 GB, free: 10.16 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004148/0.1878, allocations: 0.7197 MB / 0.6763 GB, free: 9.41 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 8.809e-05/0.1879, allocations: 12.5 kB / 0.6763 GB, free: 9.398 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.855e-05/0.188, allocations: 43.42 kB / 0.6764 GB, free: 9.355 MB / 0.5137 GB Notification: Performance of SimCode: time 2.3e-07/0.188, allocations: 0 / 0.6764 GB, free: 9.355 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03138/0.2194, allocations: 3.297 MB / 0.6796 GB, free: 6.168 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.093/8.313, allocations: 4.531 kB / 0.6796 GB, free: 6.164 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe >> ../files/IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.sim & python3 -m fmpy simulate --output-file IDEAS_dev_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_dev_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling.fmu > IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe 2>&1)