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.001562/0.001562, allocations: 108 kB / 15.6 MB, free: 132 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.001941/0.001941, allocations: 193.2 kB / 16.53 MB, free: 6.391 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.296/1.296, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7475/0.7475, allocations: 132.2 MB / 422.6 MB, free: 1.785 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 64.72 kB / 0.5019 GB, free: 8.645 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.166/0.1674, allocations: 80.21 MB / 0.5802 GB, free: 8.664 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling): time 0.003506/0.1709, allocations: 2.035 MB / 0.5822 GB, free: 6.613 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001009/0.172, allocations: 0.5337 MB / 0.5827 GB, free: 6.074 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001586/0.1722, allocations: 0 / 0.5827 GB, free: 6.074 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001532/0.1723, allocations: 23.73 kB / 0.5827 GB, free: 6.051 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001352/0.1725, allocations: 39.58 kB / 0.5828 GB, free: 6.012 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002607/0.1728, allocations: 67.84 kB / 0.5828 GB, free: 5.945 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002553/0.173, allocations: 179.3 kB / 0.583 GB, free: 5.77 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000185/0.1732, allocations: 74.25 kB / 0.5831 GB, free: 5.695 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001617/0.1734, allocations: 75.72 kB / 0.5831 GB, free: 5.621 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001412/0.1735, allocations: 79.61 kB / 0.5832 GB, free: 5.543 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.327e-05/0.1736, allocations: 16 kB / 0.5832 GB, free: 5.527 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.072e-05/0.1736, allocations: 16 kB / 0.5832 GB, free: 5.512 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.873e-05/0.1737, allocations: 35.84 kB / 0.5833 GB, free: 5.477 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 9.006e-05/0.1738, allocations: 79.59 kB / 0.5833 GB, free: 5.398 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002071/0.174, allocations: 171.6 kB / 0.5835 GB, free: 5.23 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.174, allocations: 4 kB / 0.5835 GB, free: 5.227 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.174, allocations: 4 kB / 0.5835 GB, free: 5.223 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.15e-05/0.174, allocations: 0 / 0.5835 GB, free: 5.223 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.0008287/0.1748, allocations: 486.8 kB / 0.584 GB, free: 4.699 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.1749, allocations: 8.031 kB / 0.584 GB, free: 4.691 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.238e-05/0.175, allocations: 54.73 kB / 0.584 GB, free: 4.629 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.224e-05/0.175, allocations: 24.66 kB / 0.5841 GB, free: 4.605 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002017/0.1752, allocations: 204.1 kB / 0.5843 GB, free: 4.367 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.26e-05/0.1753, allocations: 38.27 kB / 0.5843 GB, free: 4.324 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.783e-05/0.1754, allocations: 16.38 kB / 0.5843 GB, free: 4.309 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003876/0.1758, allocations: 157.5 kB / 0.5845 GB, free: 4.148 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.48e-05/0.1758, allocations: 3.906 kB / 0.5845 GB, free: 4.145 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.681e-05/0.1758, allocations: 8 kB / 0.5845 GB, free: 4.137 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.1758, allocations: 4 kB / 0.5845 GB, free: 4.133 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004768/0.1763, allocations: 147.8 kB / 0.5846 GB, free: 3.988 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008064/0.1771, allocations: 0.5268 MB / 0.5851 GB, free: 3.398 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004356/0.1776, allocations: 138.6 kB / 0.5853 GB, free: 3.254 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002226/0.1778, allocations: 80.73 kB / 0.5853 GB, free: 3.172 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.675e-05/0.1778, allocations: 0 / 0.5853 GB, free: 3.172 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.04e-05/0.1779, allocations: 42.56 kB / 0.5854 GB, free: 3.121 MB / 494.1 MB Notification: Performance of pre-optimization done (n=12): time 1.994e-06/0.1779, allocations: 3.984 kB / 0.5854 GB, free: 3.117 MB / 494.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007101/0.1786, allocations: 213.5 kB / 0.5856 GB, free: 2.902 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.933e-05/0.1786, allocations: 51.41 kB / 0.5856 GB, free: 2.84 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001503/0.1788, allocations: 158.4 kB / 0.5858 GB, free: 2.68 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.065e-05/0.1788, allocations: 25.7 kB / 0.5858 GB, free: 2.648 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.221e-05/0.1789, allocations: 124.2 kB / 0.5859 GB, free: 2.52 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.976e-05/0.1789, allocations: 43.3 kB / 0.586 GB, free: 2.477 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.87e-05/0.179, allocations: 41.64 kB / 0.586 GB, free: 2.43 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001132/0.1791, allocations: 322.8 kB / 0.5863 GB, free: 2.105 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002091/0.1793, allocations: 63.95 kB / 0.5864 GB, free: 2.043 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002158/0.1796, allocations: 82.52 kB / 0.5865 GB, free: 1.953 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000397/0.18, allocations: 142.4 kB / 0.5866 GB, free: 1.805 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.18, allocations: 0 / 0.5866 GB, free: 1.805 MB / 494.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004731/0.1805, allocations: 188.4 kB / 0.5868 GB, free: 1.617 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/0.1805, allocations: 7.938 kB / 0.5868 GB, free: 1.609 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.1805, allocations: 8 kB / 0.5868 GB, free: 1.602 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/0.1805, allocations: 4 kB / 0.5868 GB, free: 1.598 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001901/0.1807, allocations: 35.97 kB / 0.5868 GB, free: 1.562 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.293e-06/0.1807, allocations: 0 / 0.5868 GB, free: 1.562 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001391/0.1809, allocations: 31.81 kB / 0.5869 GB, free: 1.531 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.197e-05/0.1809, allocations: 4 kB / 0.5869 GB, free: 1.527 MB / 494.1 MB 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.0001162/0.181, allocations: 131 kB / 0.587 GB, free: 1.391 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.659e-05/0.1811, allocations: 15.81 kB / 0.587 GB, free: 1.375 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.151e-05/0.1811, allocations: 24.7 kB / 0.587 GB, free: 1.352 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.1811, allocations: 0 / 0.587 GB, free: 1.352 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.1811, allocations: 0 / 0.587 GB, free: 1.352 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.1811, allocations: 4 kB / 0.587 GB, free: 1.348 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002483/0.1814, allocations: 237.5 kB / 0.5873 GB, free: 1.066 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.1814, allocations: 4 kB / 0.5873 GB, free: 1.062 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001873/0.1816, allocations: 31.97 kB / 0.5873 GB, free: 1.031 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.841e-06/0.1816, allocations: 4 kB / 0.5873 GB, free: 1.027 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.536e-05/0.1816, allocations: 8 kB / 0.5873 GB, free: 1.02 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.1816, allocations: 0 / 0.5873 GB, free: 1.02 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.1816, allocations: 0 / 0.5873 GB, free: 1.02 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007066/0.1824, allocations: 347 kB / 0.5876 GB, free: 0.6641 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.031e-05/0.1824, allocations: 88.98 kB / 0.5877 GB, free: 0.5586 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.52e-05/0.1824, allocations: 0 / 0.5877 GB, free: 0.5586 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001565/0.1826, allocations: 23.97 kB / 0.5877 GB, free: 0.5352 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.878e-05/0.1827, allocations: 11.98 kB / 0.5878 GB, free: 0.5234 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.308e-06/0.1827, allocations: 4 kB / 0.5878 GB, free: 0.5195 MB / 494.1 MB Notification: Performance of sorting global known variables: time 8.186e-05/0.1828, allocations: 111.2 kB / 0.5879 GB, free: 420 kB / 494.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1828, allocations: 0 / 0.5879 GB, free: 420 kB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002642/0.1831, allocations: 39.97 kB / 0.5879 GB, free: 380 kB / 494.1 MB 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.0009648/0.184, allocations: 0.8762 MB / 0.5888 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004692/0.1845, allocations: 147.5 kB / 0.5889 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.1845, allocations: 0 / 0.5889 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002161/0.1847, allocations: 76.08 kB / 0.589 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003805/0.1851, allocations: 15.98 kB / 0.589 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002689/0.1878, allocations: 1.992 MB / 0.5909 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002747/0.1881, allocations: 0.7158 MB / 0.5916 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.933e-05/0.1882, allocations: 12.55 kB / 0.5916 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.26e-05/0.1883, allocations: 39.42 kB / 0.5917 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of SimCode: time 3.91e-07/0.1883, allocations: 0 / 0.5917 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02065/0.2089, allocations: 3.24 MB / 0.5948 GB, free: 9.25 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.275/7.484, allocations: 4 kB / 0.5948 GB, free: 9.246 MB / 0.4981 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)