Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/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_Heating,fileNamePrefix="IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating,fileNamePrefix="IDEAS_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.001182/0.001182, 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.001262/0.001261, allocations: 193 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.312/1.312, 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/package.mo): time 0.7543/0.7543, allocations: 132.2 MB / 422.6 MB, free: 1.809 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 60.02 kB / 0.5019 GB, free: 8.699 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1516/0.1528, allocations: 80.2 MB / 0.5802 GB, free: 8.723 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating): time 0.003074/0.156, allocations: 2.046 MB / 0.5822 GB, free: 6.66 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008073/0.1568, allocations: 0.5298 MB / 0.5827 GB, free: 6.125 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.484e-05/0.1569, allocations: 4 kB / 0.5827 GB, free: 6.121 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001197/0.157, allocations: 19.73 kB / 0.5827 GB, free: 6.102 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 9.019e-05/0.1571, allocations: 39.58 kB / 0.5828 GB, free: 6.062 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002103/0.1573, allocations: 59.91 kB / 0.5828 GB, free: 6.004 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001996/0.1575, allocations: 191.2 kB / 0.583 GB, free: 5.816 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001621/0.1577, allocations: 70.31 kB / 0.5831 GB, free: 5.746 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001135/0.1578, allocations: 71.72 kB / 0.5831 GB, free: 5.676 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001127/0.1579, allocations: 75.69 kB / 0.5832 GB, free: 5.602 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.981e-05/0.158, allocations: 16 kB / 0.5832 GB, free: 5.586 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.7e-05/0.158, allocations: 12 kB / 0.5832 GB, free: 5.574 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.935e-05/0.1581, allocations: 35.84 kB / 0.5833 GB, free: 5.539 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.45e-05/0.1581, allocations: 83.58 kB / 0.5833 GB, free: 5.457 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001748/0.1583, allocations: 171.6 kB / 0.5835 GB, free: 5.289 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.1583, allocations: 0 / 0.5835 GB, free: 5.289 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1583, allocations: 7.938 kB / 0.5835 GB, free: 5.281 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.024e-06/0.1583, allocations: 3.984 kB / 0.5835 GB, free: 5.277 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.0007333/0.1591, allocations: 482.8 kB / 0.584 GB, free: 4.758 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.599e-05/0.1591, allocations: 12.02 kB / 0.584 GB, free: 4.746 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.561e-05/0.1592, allocations: 46.75 kB / 0.584 GB, free: 4.691 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.783e-05/0.1592, allocations: 28.66 kB / 0.5841 GB, free: 4.664 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001932/0.1594, allocations: 208.1 kB / 0.5843 GB, free: 4.422 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.664e-05/0.1595, allocations: 38.27 kB / 0.5843 GB, free: 4.379 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.965e-05/0.1595, allocations: 12.38 kB / 0.5843 GB, free: 4.367 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000381/0.1599, allocations: 157.5 kB / 0.5845 GB, free: 4.207 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.16, allocations: 3.906 kB / 0.5845 GB, free: 4.203 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.715e-05/0.16, allocations: 11.98 kB / 0.5845 GB, free: 4.191 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/0.16, allocations: 8 kB / 0.5845 GB, free: 4.184 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004733/0.1605, allocations: 139.9 kB / 0.5846 GB, free: 4.047 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007385/0.1612, allocations: 0.5346 MB / 0.5851 GB, free: 3.449 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000405/0.1616, allocations: 130.7 kB / 0.5853 GB, free: 3.312 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002257/0.1619, allocations: 76.75 kB / 0.5853 GB, free: 3.234 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.767e-05/0.1619, allocations: 4 kB / 0.5853 GB, free: 3.23 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.103e-05/0.1619, allocations: 38.5 kB / 0.5854 GB, free: 3.184 MB / 494.1 MB Notification: Performance of pre-optimization done (n=12): time 1.262e-06/0.1619, allocations: 4 kB / 0.5854 GB, free: 3.18 MB / 494.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007019/0.1626, allocations: 213.5 kB / 0.5856 GB, free: 2.965 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.961e-05/0.1627, allocations: 55.39 kB / 0.5856 GB, free: 2.898 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000112/0.1628, allocations: 150.4 kB / 0.5858 GB, free: 2.746 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.764e-05/0.1628, allocations: 37.64 kB / 0.5858 GB, free: 2.703 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.547e-05/0.1629, allocations: 128.1 kB / 0.5859 GB, free: 2.57 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.667e-05/0.1629, allocations: 43.3 kB / 0.586 GB, free: 2.527 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.592e-05/0.163, allocations: 37.64 kB / 0.586 GB, free: 2.484 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.809e-05/0.1631, allocations: 322.8 kB / 0.5863 GB, free: 2.16 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002018/0.1633, allocations: 55.95 kB / 0.5864 GB, free: 2.105 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002091/0.1635, allocations: 90.45 kB / 0.5865 GB, free: 2.008 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003804/0.1639, allocations: 142.4 kB / 0.5866 GB, free: 1.859 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1639, allocations: 0 / 0.5866 GB, free: 1.859 MB / 494.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004725/0.1644, allocations: 185.4 kB / 0.5868 GB, free: 1.672 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.1644, allocations: 8 kB / 0.5868 GB, free: 1.664 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.1644, allocations: 0 / 0.5868 GB, free: 1.664 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.88e-05/0.1645, allocations: 4.062 kB / 0.5868 GB, free: 1.66 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001937/0.1647, allocations: 39.91 kB / 0.5868 GB, free: 1.621 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.634e-06/0.1647, allocations: 4 kB / 0.5868 GB, free: 1.617 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001379/0.1648, allocations: 31.81 kB / 0.5869 GB, free: 1.586 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.166e-05/0.1648, allocations: 4 kB / 0.5869 GB, free: 1.582 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 9.754e-05/0.1649, allocations: 127.1 kB / 0.587 GB, free: 1.449 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.664e-05/0.165, allocations: 15.81 kB / 0.587 GB, free: 1.434 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.504e-05/0.165, allocations: 24.7 kB / 0.587 GB, free: 1.41 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.059e-06/0.1651, allocations: 4 kB / 0.587 GB, free: 1.406 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.1651, allocations: 0 / 0.587 GB, free: 1.406 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.1651, allocations: 3.938 kB / 0.587 GB, free: 1.402 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002323/0.1653, allocations: 241.5 kB / 0.5873 GB, free: 1.117 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.1653, allocations: 0 / 0.5873 GB, free: 1.117 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001849/0.1655, allocations: 31.97 kB / 0.5873 GB, free: 1.086 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.1655, allocations: 0 / 0.5873 GB, free: 1.086 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.402e-05/0.1655, allocations: 4 kB / 0.5873 GB, free: 1.082 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.1655, allocations: 4 kB / 0.5873 GB, free: 1.078 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.1655, allocations: 4 kB / 0.5873 GB, free: 1.074 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006994/0.1663, allocations: 342.8 kB / 0.5876 GB, free: 0.7266 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.436e-05/0.1663, allocations: 96.91 kB / 0.5877 GB, free: 0.6133 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.502e-05/0.1663, allocations: 0 / 0.5877 GB, free: 0.6133 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000155/0.1665, allocations: 15.98 kB / 0.5877 GB, free: 0.5977 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.564e-05/0.1666, allocations: 19.97 kB / 0.5878 GB, free: 0.5781 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.893e-06/0.1666, allocations: 0 / 0.5878 GB, free: 0.5781 MB / 494.1 MB Notification: Performance of sorting global known variables: time 7.349e-05/0.1667, allocations: 111.2 kB / 0.5879 GB, free: 480 kB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1667, allocations: 0 / 0.5879 GB, free: 480 kB / 494.1 MB Notification: Performance of remove unused functions: time 0.000256/0.1669, allocations: 39.91 kB / 0.5879 GB, free: 440 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.0009609/0.1679, allocations: 0.879 MB / 0.5888 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004699/0.1684, allocations: 147.8 kB / 0.5889 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.1684, allocations: 0 / 0.5889 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002122/0.1686, allocations: 72.14 kB / 0.589 GB, free: 15.31 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003694/0.169, allocations: 19.98 kB / 0.589 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002559/0.1715, allocations: 1.986 MB / 0.5909 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000254/0.1718, allocations: 0.7197 MB / 0.5916 GB, free: 12.47 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.434e-05/0.1719, allocations: 8.547 kB / 0.5916 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.734e-05/0.172, allocations: 39.42 kB / 0.5917 GB, free: 12.42 MB / 0.4981 GB Notification: Performance of SimCode: time 5.31e-07/0.172, allocations: 4 kB / 0.5917 GB, free: 12.42 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01942/0.1914, allocations: 3.237 MB / 0.5948 GB, free: 9.309 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.248/7.439, allocations: 6.781 kB / 0.5948 GB, free: 9.305 MB / 0.4981 GB (rm -f IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe ; mkfifo IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe >> ../files/IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.sim & python3 -m fmpy simulate --output-file IDEAS_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_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating.fmu > IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe 2>&1)