Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.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_Heating,fileNamePrefix="IDEAS_dev_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating,fileNamePrefix="IDEAS_dev_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating",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.001241/0.001241, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001466/0.001466, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.422/1.422, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9026/0.9026, allocations: 135.1 MB / 425.5 MB, free: 11.9 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 67.72 kB / 0.5054 GB, free: 5.207 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1453/0.1466, allocations: 80.92 MB / 0.5845 GB, free: 4.449 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating): time 0.00334/0.15, allocations: 2.032 MB / 0.5865 GB, free: 2.402 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008887/0.1509, allocations: 0.5299 MB / 0.587 GB, free: 1.867 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001165/0.151, allocations: 4 kB / 0.587 GB, free: 1.863 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001188/0.1511, allocations: 19.73 kB / 0.587 GB, free: 1.844 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001074/0.1513, allocations: 39.58 kB / 0.587 GB, free: 1.805 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002282/0.1515, allocations: 55.86 kB / 0.5871 GB, free: 1.75 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002099/0.1517, allocations: 183.2 kB / 0.5873 GB, free: 1.57 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000169/0.1519, allocations: 82.28 kB / 0.5873 GB, free: 1.484 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001411/0.1521, allocations: 75.72 kB / 0.5874 GB, free: 1.41 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000122/0.1522, allocations: 75.69 kB / 0.5875 GB, free: 1.336 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.594e-05/0.1522, allocations: 15.98 kB / 0.5875 GB, free: 1.32 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.094e-05/0.1523, allocations: 19.94 kB / 0.5875 GB, free: 1.301 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.748e-05/0.1523, allocations: 31.91 kB / 0.5875 GB, free: 1.27 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 8.932e-05/0.1524, allocations: 79.59 kB / 0.5876 GB, free: 1.191 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001908/0.1526, allocations: 171.6 kB / 0.5878 GB, free: 1.023 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.1526, allocations: 3.984 kB / 0.5878 GB, free: 1.02 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1526, allocations: 0 / 0.5878 GB, free: 1.02 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.203e-06/0.1526, allocations: 0 / 0.5878 GB, free: 1.02 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0007854/0.1534, allocations: 494.7 kB / 0.5883 GB, free: 500 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.1535, allocations: 8.031 kB / 0.5883 GB, free: 492 kB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.276e-05/0.1535, allocations: 42.75 kB / 0.5883 GB, free: 440 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.283e-05/0.1536, allocations: 24.66 kB / 0.5883 GB, free: 416 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002003/0.1538, allocations: 212 kB / 0.5885 GB, free: 164 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.381e-05/0.1539, allocations: 46.27 kB / 0.5886 GB, free: 112 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.054e-05/0.1539, allocations: 12.38 kB / 0.5886 GB, free: 100 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004033/0.1543, allocations: 158.8 kB / 0.5887 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.1544, allocations: 0 / 0.5887 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.949e-05/0.1544, allocations: 8 kB / 0.5887 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.1544, allocations: 0 / 0.5887 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004839/0.1549, allocations: 147.9 kB / 0.5889 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000765/0.1556, allocations: 0.5385 MB / 0.5894 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004125/0.1561, allocations: 134.6 kB / 0.5895 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002209/0.1563, allocations: 72.81 kB / 0.5896 GB, free: 14.97 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.164e-05/0.1563, allocations: 4 kB / 0.5896 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.547e-05/0.1564, allocations: 34.56 kB / 0.5897 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=12): time 1.473e-06/0.1564, allocations: 0 / 0.5897 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12): time 0.0007084/0.1571, allocations: 225 kB / 0.5899 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.226e-05/0.1571, allocations: 59.33 kB / 0.5899 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001151/0.1572, allocations: 149.5 kB / 0.5901 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.639e-05/0.1573, allocations: 25.7 kB / 0.5901 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.127e-05/0.1573, allocations: 132 kB / 0.5902 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.824e-05/0.1574, allocations: 55.31 kB / 0.5903 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.887e-05/0.1575, allocations: 33.7 kB / 0.5903 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 8.902e-05/0.1576, allocations: 322.8 kB / 0.5906 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002046/0.1578, allocations: 55.95 kB / 0.5907 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002143/0.158, allocations: 86.52 kB / 0.5907 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003945/0.1584, allocations: 145.2 kB / 0.5909 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.1584, allocations: 0 / 0.5909 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004852/0.1589, allocations: 189.4 kB / 0.5911 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/0.1589, allocations: 4 kB / 0.5911 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.1589, allocations: 4 kB / 0.5911 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.341e-05/0.1589, allocations: 0 / 0.5911 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00019/0.1591, allocations: 35.97 kB / 0.5911 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.033e-06/0.1592, allocations: 4.062 kB / 0.5911 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001445/0.1593, allocations: 35.75 kB / 0.5911 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.439e-05/0.1593, allocations: 4 kB / 0.5911 GB, free: 13.32 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 8.878e-05/0.1594, allocations: 125.8 kB / 0.5913 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.679e-05/0.1595, allocations: 11.81 kB / 0.5913 GB, free: 13.17 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.067e-05/0.1595, allocations: 20.7 kB / 0.5913 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.516e-06/0.1595, allocations: 4 kB / 0.5913 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.1595, allocations: 4 kB / 0.5913 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-06/0.1595, allocations: 0 / 0.5913 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000233/0.1598, allocations: 241.5 kB / 0.5915 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.1598, allocations: 0 / 0.5915 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000194/0.16, allocations: 39.91 kB / 0.5916 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.937e-06/0.16, allocations: 4 kB / 0.5916 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.327e-05/0.16, allocations: 0 / 0.5916 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.16, allocations: 3.938 kB / 0.5916 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.16, allocations: 0 / 0.5916 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000714/0.1607, allocations: 339.2 kB / 0.5919 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.142e-05/0.1608, allocations: 92.97 kB / 0.592 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.67e-05/0.1608, allocations: 4 kB / 0.592 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001586/0.161, allocations: 20.05 kB / 0.592 GB, free: 12.33 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.836e-05/0.1611, allocations: 15.97 kB / 0.592 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.946e-06/0.1611, allocations: 4 kB / 0.592 GB, free: 12.31 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 7.032e-05/0.1611, allocations: 111.2 kB / 0.5921 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.51e-07/0.1612, allocations: 0 / 0.5921 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002616/0.1614, allocations: 35.91 kB / 0.5922 GB, free: 12.17 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.0009769/0.1624, allocations: 0.88 MB / 0.593 GB, free: 11.26 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004768/0.1629, allocations: 147.9 kB / 0.5932 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1629, allocations: 3.938 kB / 0.5932 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002091/0.1631, allocations: 75.83 kB / 0.5933 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003524/0.1635, allocations: 24.11 kB / 0.5933 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002499/0.166, allocations: 1.971 MB / 0.5952 GB, free: 8.949 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002165/0.1662, allocations: 0.7158 MB / 0.5959 GB, free: 8.207 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.699e-05/0.1663, allocations: 12.55 kB / 0.5959 GB, free: 8.195 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.108e-05/0.1664, allocations: 43.42 kB / 0.596 GB, free: 8.152 MB / 0.4981 GB Notification: Performance of SimCode: time 3.3e-07/0.1664, allocations: 4 kB / 0.596 GB, free: 8.148 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01898/0.1854, allocations: 3.235 MB / 0.5991 GB, free: 5.023 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.351/7.536, allocations: 6.406 kB / 0.5991 GB, free: 5.02 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe >> ../files/IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating_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_Heating.fmu > IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe 2>&1)