Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.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.AntiFreeze,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze",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.001254/0.001254, allocations: 106.2 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.001187/0.001187, allocations: 189.2 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.341/1.341, allocations: 222.9 MB / 241 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8353/0.8353, allocations: 126.7 MB / 417.9 MB, free: 12.3 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001871/0.001871, allocations: 68.61 kB / 0.5736 GB, free: 27.1 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1466/0.1485, allocations: 78.87 MB / 0.6506 GB, free: 3.578 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.003418/0.152, allocations: 2.069 MB / 0.6526 GB, free: 1.496 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001002/0.153, allocations: 0.5688 MB / 0.6532 GB, free: 0.9258 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.307e-05/0.1531, allocations: 4 kB / 0.6532 GB, free: 0.9219 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001176/0.1532, allocations: 19.73 kB / 0.6532 GB, free: 0.9023 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 8.794e-05/0.1533, allocations: 35.59 kB / 0.6532 GB, free: 0.8672 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002608/0.1536, allocations: 95.77 kB / 0.6533 GB, free: 0.7734 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003192/0.1539, allocations: 271.3 kB / 0.6536 GB, free: 0.5078 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00024/0.1542, allocations: 119.1 kB / 0.6537 GB, free: 400 kB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000144/0.1543, allocations: 107.7 kB / 0.6538 GB, free: 292 kB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001496/0.1545, allocations: 119.4 kB / 0.6539 GB, free: 172 kB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.845e-05/0.1545, allocations: 28 kB / 0.6539 GB, free: 144 kB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.062e-05/0.1546, allocations: 24 kB / 0.654 GB, free: 120 kB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.23e-05/0.1546, allocations: 63.75 kB / 0.654 GB, free: 56 kB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001282/0.1548, allocations: 107.5 kB / 0.6541 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003402/0.1551, allocations: 286.7 kB / 0.6544 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.1551, allocations: 0 / 0.6544 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.323e-06/0.1552, allocations: 4 kB / 0.6544 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.564e-06/0.1552, allocations: 3.984 kB / 0.6544 GB, free: 15.66 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.001172/0.1563, allocations: 0.6407 MB / 0.655 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.1564, allocations: 8.031 kB / 0.655 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.037e-05/0.1565, allocations: 59.11 kB / 0.6551 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.164e-05/0.1565, allocations: 28.75 kB / 0.6551 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003284/0.1569, allocations: 252.7 kB / 0.6554 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.716e-05/0.1569, allocations: 20.36 kB / 0.6554 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.655e-05/0.157, allocations: 24 kB / 0.6554 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000622/0.1576, allocations: 270.6 kB / 0.6557 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.258e-06/0.1576, allocations: 4 kB / 0.6557 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.478e-05/0.1576, allocations: 7.984 kB / 0.6557 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.1576, allocations: 4 kB / 0.6557 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006752/0.1583, allocations: 197.6 kB / 0.6559 GB, free: 14.03 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00113/0.1595, allocations: 0.6272 MB / 0.6565 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008255/0.1603, allocations: 222.5 kB / 0.6567 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003175/0.1606, allocations: 88.72 kB / 0.6568 GB, free: 13.03 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.394e-05/0.1607, allocations: 7.938 kB / 0.6568 GB, free: 13.02 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004943/0.1612, allocations: 189 kB / 0.657 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.503e-06/0.1612, allocations: 0 / 0.657 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.001074/0.1623, allocations: 334.9 kB / 0.6573 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.93e-05/0.1624, allocations: 110.8 kB / 0.6574 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002046/0.1626, allocations: 210.8 kB / 0.6576 GB, free: 12.15 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.524e-05/0.1626, allocations: 33.7 kB / 0.6576 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001209/0.1627, allocations: 156.4 kB / 0.6578 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.96e-05/0.1628, allocations: 55.66 kB / 0.6578 GB, free: 11.9 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001142/0.1629, allocations: 61.66 kB / 0.6579 GB, free: 11.83 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001551/0.1631, allocations: 330.8 kB / 0.6582 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003718/0.1634, allocations: 112.1 kB / 0.6583 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004142/0.1639, allocations: 175.3 kB / 0.6585 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007027/0.1646, allocations: 312.2 kB / 0.6588 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.1646, allocations: 0 / 0.6588 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0009327/0.1655, allocations: 428.6 kB / 0.6592 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.415e-05/0.1656, allocations: 93.03 kB / 0.6593 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.1656, allocations: 4 kB / 0.6593 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.1656, allocations: 0 / 0.6593 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002208/0.1659, allocations: 52.11 kB / 0.6593 GB, free: 10.25 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.06e-05/0.1659, allocations: 7.938 kB / 0.6593 GB, free: 10.24 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003091/0.1662, allocations: 51.84 kB / 0.6594 GB, free: 10.19 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.641e-05/0.1662, allocations: 12 kB / 0.6594 GB, free: 10.18 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: 25 (antFre.disErr.y,$PRE.antFre.disErr.y,TEvaOutEmu.count,$PRE.TEvaOutEmu.count,TEvaOutEmu.T_start,$PRE.TEvaOutEmu.T_start,TConInEmu.count,$PRE.TConInEmu.count,TConInEmu.T_start,$PRE.TConInEmu.T_start,ySetPul.count,$PRE.ySetPul.count,ySetPul.T_start,$PRE.ySetPul.T_start,antFre.hys.y,$PRE.antFre.hys.y,hys.y,$PRE.hys.y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,antFre.intConOne.y,antFre.disErr.local_set,antFre.disErr.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 28 * 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.0001571/0.1664, allocations: 151.9 kB / 0.6595 GB, free: 10.02 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.553e-05/0.1664, allocations: 31.8 kB / 0.6596 GB, free: 9.992 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000773/0.1672, allocations: 255.3 kB / 0.6598 GB, free: 9.742 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.1672, allocations: 0 / 0.6598 GB, free: 9.742 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.1673, allocations: 4 kB / 0.6598 GB, free: 9.738 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.1673, allocations: 0 / 0.6598 GB, free: 9.738 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001035/0.1683, allocations: 0.5859 MB / 0.6604 GB, free: 9.098 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.1683, allocations: 0 / 0.6604 GB, free: 9.098 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001546/0.1685, allocations: 27.95 kB / 0.6604 GB, free: 9.07 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.1685, allocations: 4 kB / 0.6604 GB, free: 9.066 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.818e-05/0.1685, allocations: 8 kB / 0.6604 GB, free: 9.059 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.17e-06/0.1685, allocations: 3.984 kB / 0.6604 GB, free: 9.055 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1685, allocations: 0 / 0.6604 GB, free: 9.055 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000771/0.1693, allocations: 355 kB / 0.6608 GB, free: 8.691 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.275e-05/0.1694, allocations: 92.95 kB / 0.6609 GB, free: 8.582 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.113e-05/0.1694, allocations: 8 kB / 0.6609 GB, free: 8.574 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002971/0.1697, allocations: 43.94 kB / 0.6609 GB, free: 8.531 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00012/0.1698, allocations: 43.94 kB / 0.661 GB, free: 8.488 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.316e-05/0.1699, allocations: 4 kB / 0.661 GB, free: 8.484 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001351/0.17, allocations: 136.5 kB / 0.6611 GB, free: 8.352 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.17, allocations: 0 / 0.6611 GB, free: 8.352 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002998/0.1703, allocations: 63.89 kB / 0.6611 GB, free: 8.289 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: 13 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,hys.y,antFre.disErr.y,antFre.hys.y,ySetPul.T_start,ySetPul.count,TConInEmu.T_start,TConInEmu.count,TEvaOutEmu.T_start,TEvaOutEmu.count) * Number of discrete states: 6 (TEvaOutEmu.count,TConInEmu.count,ySetPul.count,antFre.hys.y,hys.y,antFre.disErr.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 11 * 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.001538/0.1719, allocations: 1.003 MB / 0.6621 GB, free: 7.258 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0009813/0.1729, allocations: 415.8 kB / 0.6625 GB, free: 6.816 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1729, allocations: 0 / 0.6625 GB, free: 6.816 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003679/0.1733, allocations: 115.8 kB / 0.6626 GB, free: 6.703 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003597/0.1736, allocations: 36.8 kB / 0.6627 GB, free: 6.668 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004154/0.1778, allocations: 2.589 MB / 0.6652 GB, free: 3.949 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003773/0.1782, allocations: 0.7398 MB / 0.6659 GB, free: 3.184 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001014/0.1783, allocations: 21.53 kB / 0.6659 GB, free: 3.16 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001275/0.1784, allocations: 63.41 kB / 0.666 GB, free: 3.098 MB / 0.4981 GB Notification: Performance of SimCode: time 4.11e-07/0.1784, allocations: 8 kB / 0.666 GB, free: 3.09 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02678/0.2052, allocations: 5.204 MB / 0.6711 GB, free: 14.04 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.791/7.997, allocations: 15.5 kB / 0.6711 GB, free: 14.03 MB / 0.5137 GB (rm -f IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze_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_AntiFreeze.fmu > IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe 2>&1)