Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate",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.001321/0.001321, allocations: 100.9 kB / 16.4 MB, free: 6.5 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.00139/0.00139, allocations: 192 kB / 17.34 MB, free: 5.738 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.342/1.342, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7825/0.7825, allocations: 126.7 MB / 417.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002783/0.002783, allocations: 71.91 kB / 0.5736 GB, free: 27.14 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1622/0.165, allocations: 78.86 MB / 0.6506 GB, free: 3.668 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.003269/0.1683, allocations: 2.02 MB / 0.6526 GB, free: 1.633 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009463/0.1693, allocations: 0.5727 MB / 0.6531 GB, free: 1.059 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001072/0.1694, allocations: 7.938 kB / 0.6531 GB, free: 1.051 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001324/0.1695, allocations: 19.73 kB / 0.6532 GB, free: 1.031 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001364/0.1697, allocations: 43.59 kB / 0.6532 GB, free: 0.9883 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002348/0.1699, allocations: 95.88 kB / 0.6533 GB, free: 0.8945 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003484/0.1703, allocations: 299.2 kB / 0.6536 GB, free: 0.6016 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002827/0.1706, allocations: 119.7 kB / 0.6537 GB, free: 492 kB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001657/0.1708, allocations: 115.6 kB / 0.6538 GB, free: 376 kB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001799/0.1709, allocations: 135.4 kB / 0.6539 GB, free: 240 kB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.469e-05/0.171, allocations: 28 kB / 0.654 GB, free: 212 kB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.324e-05/0.1711, allocations: 28 kB / 0.654 GB, free: 184 kB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.367e-05/0.1712, allocations: 67.75 kB / 0.6541 GB, free: 116 kB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001442/0.1713, allocations: 119.5 kB / 0.6542 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003676/0.1717, allocations: 298.8 kB / 0.6545 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.1717, allocations: 4 kB / 0.6545 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.282e-06/0.1717, allocations: 0 / 0.6545 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.392e-06/0.1717, allocations: 0 / 0.6545 GB, free: 15.7 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.001274/0.173, allocations: 0.6603 MB / 0.6551 GB, free: 14.97 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.173, allocations: 15.97 kB / 0.6551 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.889e-05/0.1731, allocations: 63.06 kB / 0.6552 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.505e-05/0.1732, allocations: 28.75 kB / 0.6552 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003395/0.1735, allocations: 265.4 kB / 0.6555 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.809e-05/0.1736, allocations: 24.38 kB / 0.6555 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.634e-05/0.1736, allocations: 28 kB / 0.6555 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006232/0.1743, allocations: 283.5 kB / 0.6558 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.1743, allocations: 0 / 0.6558 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.005e-05/0.1743, allocations: 12 kB / 0.6558 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.1743, allocations: 7.938 kB / 0.6558 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006692/0.175, allocations: 205.6 kB / 0.656 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001132/0.1761, allocations: 0.6545 MB / 0.6566 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006636/0.1768, allocations: 198.4 kB / 0.6568 GB, free: 13.08 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003124/0.1771, allocations: 94.97 kB / 0.6569 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.062e-05/0.1772, allocations: 4 kB / 0.6569 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004886/0.1777, allocations: 195.1 kB / 0.6571 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=19): time 1.472e-06/0.1777, allocations: 4 kB / 0.6571 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of matching and sorting (n=19): time 0.001075/0.1788, allocations: 335.1 kB / 0.6574 GB, free: 12.44 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.241e-05/0.1789, allocations: 140.5 kB / 0.6576 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002159/0.1791, allocations: 222.9 kB / 0.6578 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.684e-05/0.1791, allocations: 37.7 kB / 0.6578 GB, free: 12 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001173/0.1793, allocations: 160.4 kB / 0.658 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.835e-05/0.1793, allocations: 51.62 kB / 0.658 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001143/0.1794, allocations: 65.97 kB / 0.6581 GB, free: 11.72 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001437/0.1796, allocations: 334.8 kB / 0.6584 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003769/0.18, allocations: 120.2 kB / 0.6585 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004061/0.1804, allocations: 189.5 kB / 0.6587 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006796/0.1811, allocations: 314.5 kB / 0.659 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.1811, allocations: 0 / 0.659 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009181/0.182, allocations: 423.6 kB / 0.6594 GB, free: 10.28 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.171e-05/0.1821, allocations: 97.09 kB / 0.6595 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.1821, allocations: 3.938 kB / 0.6595 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.525e-05/0.1821, allocations: 4 kB / 0.6595 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002275/0.1823, allocations: 43.89 kB / 0.6595 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.1824, allocations: 4 kB / 0.6595 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003366/0.1827, allocations: 71.72 kB / 0.6596 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.42e-05/0.1827, allocations: 12 kB / 0.6596 GB, free: 10.03 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 28 (minFloRatSaf.disErr.y,$PRE.minFloRatSaf.disErr.y,mEvaEmu_flow.count,$PRE.mEvaEmu_flow.count,mEvaEmu_flow.T_start,$PRE.mEvaEmu_flow.T_start,mConEmu_flow.count,$PRE.mConEmu_flow.count,mConEmu_flow.T_start,$PRE.mConEmu_flow.T_start,ySetPul.count,$PRE.ySetPul.count,ySetPul.T_start,$PRE.ySetPul.T_start,minFloRatSaf.hysEva.y,$PRE.minFloRatSaf.hysEva.y,minFloRatSaf.hysCon.y,$PRE.minFloRatSaf.hysCon.y,minFloRatSaf.booPasThr.y,hys.y,$PRE.hys.y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,minFloRatSaf.intConOne.y,minFloRatSaf.disErr.local_set,minFloRatSaf.disErr.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 3 * 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.0001542/0.1829, allocations: 156.3 kB / 0.6598 GB, free: 9.863 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.37e-05/0.1829, allocations: 15.91 kB / 0.6598 GB, free: 9.848 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.785e-05/0.183, allocations: 25.88 kB / 0.6598 GB, free: 9.824 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.183, allocations: 4 kB / 0.6598 GB, free: 9.82 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.183, allocations: 3.984 kB / 0.6598 GB, free: 9.816 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.183, allocations: 0 / 0.6598 GB, free: 9.816 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001089/0.1841, allocations: 0.6171 MB / 0.6604 GB, free: 9.145 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.1841, allocations: 4 kB / 0.6604 GB, free: 9.141 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001528/0.1843, allocations: 27.97 kB / 0.6604 GB, free: 9.113 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.1843, allocations: 0 / 0.6604 GB, free: 9.113 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.228e-05/0.1843, allocations: 15.92 kB / 0.6605 GB, free: 9.098 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.492e-06/0.1843, allocations: 0 / 0.6605 GB, free: 9.098 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1843, allocations: 0 / 0.6605 GB, free: 9.098 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007583/0.1851, allocations: 355.1 kB / 0.6608 GB, free: 8.734 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.504e-05/0.1852, allocations: 101 kB / 0.6609 GB, free: 8.617 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.033e-05/0.1852, allocations: 4 kB / 0.6609 GB, free: 8.613 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003149/0.1856, allocations: 43.94 kB / 0.6609 GB, free: 8.57 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001424/0.1857, allocations: 59.95 kB / 0.661 GB, free: 8.512 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.151e-05/0.1857, allocations: 4 kB / 0.661 GB, free: 8.508 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001338/0.1859, allocations: 148.4 kB / 0.6611 GB, free: 8.363 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1859, allocations: 0 / 0.6611 GB, free: 8.363 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002995/0.1862, allocations: 71.83 kB / 0.6612 GB, free: 8.293 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 (minFloRatSaf.booPasThr.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,hys.y,minFloRatSaf.disErr.y,minFloRatSaf.hysCon.y,minFloRatSaf.hysEva.y,ySetPul.T_start,ySetPul.count,mConEmu_flow.T_start,mConEmu_flow.count,mEvaEmu_flow.T_start,mEvaEmu_flow.count) * Number of discrete states: 7 (mEvaEmu_flow.count,mConEmu_flow.count,ySetPul.count,minFloRatSaf.hysEva.y,minFloRatSaf.hysCon.y,hys.y,minFloRatSaf.disErr.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.001523/0.1877, allocations: 1.015 MB / 0.6622 GB, free: 7.25 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0009052/0.1886, allocations: 433 kB / 0.6626 GB, free: 6.793 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1886, allocations: 0 / 0.6626 GB, free: 6.793 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000374/0.189, allocations: 119.8 kB / 0.6627 GB, free: 6.676 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003491/0.1894, allocations: 47.75 kB / 0.6628 GB, free: 6.629 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004174/0.1936, allocations: 2.677 MB / 0.6654 GB, free: 3.828 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003602/0.1939, allocations: 0.7476 MB / 0.6661 GB, free: 3.055 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001027/0.194, allocations: 21.95 kB / 0.6661 GB, free: 3.031 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001467/0.1942, allocations: 79.41 kB / 0.6662 GB, free: 2.953 MB / 0.4981 GB Notification: Performance of SimCode: time 4.7e-07/0.1942, allocations: 0 / 0.6662 GB, free: 2.953 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02897/0.2232, allocations: 5.71 MB / 0.6718 GB, free: 13.42 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.058/8.281, allocations: 16.11 kB / 0.6718 GB, free: 13.4 MB / 0.5137 GB (rm -f IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 1 IBPSA_latest_IBPSA_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate.fmu > IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe 2>&1)