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.007452/0.007452, allocations: 97.75 kB / 15.73 MB, free: 5.996 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.001924/0.001924, allocations: 186.3 kB / 16.67 MB, free: 5.926 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.418/1.418, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7666/0.7666, allocations: 132.2 MB / 422.7 MB, free: 1.695 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001816/0.001816, allocations: 58.31 kB / 0.5808 GB, free: 1.125 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.163/0.1648, allocations: 80.2 MB / 0.6592 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating): time 0.003348/0.1682, allocations: 2.03 MB / 0.6611 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0009588/0.1692, allocations: 0.5337 MB / 0.6617 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.37e-05/0.1693, allocations: 0 / 0.6617 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001371/0.1695, allocations: 31.66 kB / 0.6617 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001006/0.1696, allocations: 43.58 kB / 0.6617 GB, free: 11.4 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002338/0.1698, allocations: 59.86 kB / 0.6618 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002508/0.1701, allocations: 187.2 kB / 0.662 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000194/0.1703, allocations: 74.28 kB / 0.662 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001441/0.1704, allocations: 75.7 kB / 0.6621 GB, free: 11.01 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001386/0.1706, allocations: 79.62 kB / 0.6622 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.928e-05/0.1706, allocations: 16 kB / 0.6622 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 3.074e-05/0.1707, allocations: 12 kB / 0.6622 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.59e-05/0.1707, allocations: 35.91 kB / 0.6623 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 9.386e-05/0.1708, allocations: 95.52 kB / 0.6623 GB, free: 10.78 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002411/0.1711, allocations: 167.5 kB / 0.6625 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.1711, allocations: 0 / 0.6625 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.673e-06/0.1711, allocations: 0 / 0.6625 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.027e-05/0.1711, allocations: 0 / 0.6625 GB, free: 10.61 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.0008651/0.172, allocations: 498.6 kB / 0.663 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.058e-05/0.172, allocations: 8.031 kB / 0.663 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.549e-05/0.1721, allocations: 54.67 kB / 0.663 GB, free: 10.01 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.753e-05/0.1721, allocations: 20.84 kB / 0.6631 GB, free: 9.988 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002297/0.1724, allocations: 204.2 kB / 0.6633 GB, free: 9.75 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.913e-05/0.1725, allocations: 46.19 kB / 0.6633 GB, free: 9.699 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.082e-05/0.1725, allocations: 12.38 kB / 0.6633 GB, free: 9.688 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004271/0.1729, allocations: 153.5 kB / 0.6635 GB, free: 9.531 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.388e-05/0.173, allocations: 0 / 0.6635 GB, free: 9.531 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.755e-05/0.173, allocations: 4 kB / 0.6635 GB, free: 9.527 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.173, allocations: 4 kB / 0.6635 GB, free: 9.523 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000521/0.1735, allocations: 153.2 kB / 0.6636 GB, free: 9.375 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008644/0.1744, allocations: 0.5347 MB / 0.6641 GB, free: 8.777 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004599/0.1749, allocations: 130.7 kB / 0.6643 GB, free: 8.641 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002401/0.1751, allocations: 80.8 kB / 0.6643 GB, free: 8.559 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.231e-05/0.1751, allocations: 0 / 0.6643 GB, free: 8.559 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.89e-05/0.1752, allocations: 30.56 kB / 0.6644 GB, free: 8.52 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=12): time 1.302e-06/0.1752, allocations: 3.938 kB / 0.6644 GB, free: 8.516 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12): time 0.0007617/0.176, allocations: 221.4 kB / 0.6646 GB, free: 8.293 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.704e-05/0.176, allocations: 55.41 kB / 0.6646 GB, free: 8.227 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001441/0.1762, allocations: 154.4 kB / 0.6648 GB, free: 8.07 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.228e-05/0.1762, allocations: 25.7 kB / 0.6648 GB, free: 8.039 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001056/0.1763, allocations: 132.2 kB / 0.6649 GB, free: 7.902 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.37e-05/0.1763, allocations: 47.62 kB / 0.665 GB, free: 7.855 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.013e-05/0.1764, allocations: 29.67 kB / 0.665 GB, free: 7.82 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001856/0.1766, allocations: 322.8 kB / 0.6653 GB, free: 7.496 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002235/0.1768, allocations: 59.94 kB / 0.6654 GB, free: 7.438 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002352/0.1771, allocations: 94.45 kB / 0.6655 GB, free: 7.336 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004217/0.1775, allocations: 140.4 kB / 0.6656 GB, free: 7.191 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.1775, allocations: 0 / 0.6656 GB, free: 7.191 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000506/0.178, allocations: 193.5 kB / 0.6658 GB, free: 6.996 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.1781, allocations: 4 kB / 0.6658 GB, free: 6.992 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.1781, allocations: 0 / 0.6658 GB, free: 6.992 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.802e-05/0.1781, allocations: 3.984 kB / 0.6658 GB, free: 6.988 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002087/0.1783, allocations: 43.91 kB / 0.6658 GB, free: 6.945 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.176e-05/0.1783, allocations: 8.062 kB / 0.6658 GB, free: 6.938 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001382/0.1785, allocations: 27.88 kB / 0.6659 GB, free: 6.91 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.411e-05/0.1785, allocations: 4 kB / 0.6659 GB, free: 6.906 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.0001159/0.1786, allocations: 125.8 kB / 0.666 GB, free: 6.773 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.121e-05/0.1787, allocations: 19.89 kB / 0.666 GB, free: 6.754 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.017e-05/0.1787, allocations: 20.72 kB / 0.666 GB, free: 6.727 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.1787, allocations: 0 / 0.666 GB, free: 6.727 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.1787, allocations: 4 kB / 0.666 GB, free: 6.723 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.1787, allocations: 0 / 0.666 GB, free: 6.723 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002831/0.179, allocations: 241.5 kB / 0.6663 GB, free: 6.438 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.179, allocations: 0 / 0.6663 GB, free: 6.438 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001913/0.1792, allocations: 35.91 kB / 0.6663 GB, free: 6.402 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.1792, allocations: 0 / 0.6663 GB, free: 6.402 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.456e-05/0.1793, allocations: 4 kB / 0.6663 GB, free: 6.398 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.729e-06/0.1793, allocations: 7.984 kB / 0.6663 GB, free: 6.391 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1793, allocations: 0 / 0.6663 GB, free: 6.391 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007813/0.1801, allocations: 339.2 kB / 0.6666 GB, free: 6.043 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.146e-05/0.1801, allocations: 92.98 kB / 0.6667 GB, free: 5.934 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.358e-05/0.1802, allocations: 4 kB / 0.6667 GB, free: 5.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001572/0.1803, allocations: 24.03 kB / 0.6667 GB, free: 5.906 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.478e-05/0.1804, allocations: 15.92 kB / 0.6668 GB, free: 5.891 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.206e-05/0.1804, allocations: 7.984 kB / 0.6668 GB, free: 5.883 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 8.216e-05/0.1805, allocations: 107.3 kB / 0.6669 GB, free: 5.777 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.41e-07/0.1805, allocations: 0 / 0.6669 GB, free: 5.777 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002463/0.1808, allocations: 32 kB / 0.6669 GB, free: 5.746 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.0011/0.1819, allocations: 0.8722 MB / 0.6677 GB, free: 4.852 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005072/0.1824, allocations: 149.8 kB / 0.6679 GB, free: 4.707 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.1824, allocations: 0 / 0.6679 GB, free: 4.707 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002261/0.1826, allocations: 75.88 kB / 0.668 GB, free: 4.633 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003612/0.183, allocations: 24.06 kB / 0.668 GB, free: 4.609 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002932/0.1859, allocations: 1.982 MB / 0.6699 GB, free: 2.535 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003735/0.1863, allocations: 0.7235 MB / 0.6706 GB, free: 1.785 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.093e-05/0.1864, allocations: 8.562 kB / 0.6706 GB, free: 1.777 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.244e-05/0.1865, allocations: 47.41 kB / 0.6707 GB, free: 1.73 MB / 0.4981 GB Notification: Performance of SimCode: time 2.4e-07/0.1865, allocations: 0 / 0.6707 GB, free: 1.73 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02611/0.2126, allocations: 3.292 MB / 0.6739 GB, free: 14.59 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.049/8.261, allocations: 2.594 kB / 0.6739 GB, free: 14.59 MB / 0.5137 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)