Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OperationalEnvelope.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.OperationalEnvelope,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_OperationalEnvelope",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OperationalEnvelope,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_OperationalEnvelope",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.001243/0.001243, allocations: 106.8 kB / 16.4 MB, free: 6.516 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.001205/0.001205, allocations: 193.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.347/1.347, allocations: 222.9 MB / 241 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7979/0.7979, allocations: 126.7 MB / 417.9 MB, free: 12.28 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001836/0.001836, allocations: 69.86 kB / 0.5736 GB, free: 27.11 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1384/0.1402, allocations: 78.87 MB / 0.6506 GB, free: 3.566 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OperationalEnvelope): time 0.004766/0.145, allocations: 3.18 MB / 0.6537 GB, free: 376 kB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002196/0.1473, allocations: 1.357 MB / 0.655 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002055/0.1475, allocations: 4 kB / 0.655 GB, free: 15 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0003411/0.1478, allocations: 107 kB / 0.6551 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0005381/0.1484, allocations: 258.5 kB / 0.6554 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006579/0.1491, allocations: 346 kB / 0.6557 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.000893/0.15, allocations: 0.8499 MB / 0.6566 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004932/0.1505, allocations: 316.6 kB / 0.6569 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003736/0.1509, allocations: 334.8 kB / 0.6572 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005045/0.1514, allocations: 418.3 kB / 0.6576 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001171/0.1515, allocations: 88 kB / 0.6577 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002159/0.1517, allocations: 124 kB / 0.6578 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002486/0.152, allocations: 255.3 kB / 0.658 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003336/0.1523, allocations: 378.1 kB / 0.6584 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001217/0.1535, allocations: 1.16 MB / 0.6595 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1535, allocations: 0 / 0.6595 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.353e-06/0.1536, allocations: 0 / 0.6595 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.808e-06/0.1536, allocations: 0 / 0.6595 GB, free: 10.41 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: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 0.002302/0.1559, allocations: 1.211 MB / 0.6607 GB, free: 9.133 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.1559, allocations: 8.031 kB / 0.6607 GB, free: 9.125 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001309/0.1561, allocations: 83.7 kB / 0.6608 GB, free: 9.035 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001483/0.1562, allocations: 92.36 kB / 0.6609 GB, free: 8.945 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001168/0.1574, allocations: 0.6955 MB / 0.6615 GB, free: 8.207 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.053e-05/0.1574, allocations: 41 kB / 0.6616 GB, free: 8.168 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.224e-05/0.1575, allocations: 43.98 kB / 0.6616 GB, free: 8.125 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009989/0.1585, allocations: 0.5187 MB / 0.6621 GB, free: 7.57 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.221e-05/0.1585, allocations: 0 / 0.6621 GB, free: 7.57 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.165e-05/0.1586, allocations: 16 kB / 0.6622 GB, free: 7.555 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.166e-05/0.1586, allocations: 8 kB / 0.6622 GB, free: 7.547 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009976/0.1596, allocations: 383.8 kB / 0.6625 GB, free: 7.176 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002137/0.1617, allocations: 1.387 MB / 0.6639 GB, free: 5.734 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008882/0.1626, allocations: 317.9 kB / 0.6642 GB, free: 5.418 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004474/0.1631, allocations: 173.2 kB / 0.6643 GB, free: 5.246 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.832e-05/0.1632, allocations: 8.172 kB / 0.6644 GB, free: 5.238 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006239/0.1638, allocations: 269.1 kB / 0.6646 GB, free: 4.957 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=31): time 1.493e-06/0.1638, allocations: 4 kB / 0.6646 GB, free: 4.953 MB / 0.4981 GB Notification: Performance of matching and sorting (n=31): time 0.001498/0.1653, allocations: 0.5166 MB / 0.6651 GB, free: 4.43 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001034/0.1654, allocations: 166.2 kB / 0.6653 GB, free: 4.23 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001001/0.1664, allocations: 0.797 MB / 0.6661 GB, free: 3.422 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.612e-05/0.1665, allocations: 45.7 kB / 0.6661 GB, free: 3.371 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002877/0.1668, allocations: 324.7 kB / 0.6664 GB, free: 3.047 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 8.153e-05/0.1669, allocations: 91.25 kB / 0.6665 GB, free: 2.957 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001501/0.167, allocations: 86.06 kB / 0.6666 GB, free: 2.867 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001895/0.1672, allocations: 378.8 kB / 0.6669 GB, free: 2.488 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004791/0.1677, allocations: 164.7 kB / 0.6671 GB, free: 2.328 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005351/0.1683, allocations: 244.2 kB / 0.6673 GB, free: 2.055 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008787/0.1692, allocations: 393.3 kB / 0.6677 GB, free: 1.637 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/0.1692, allocations: 4 kB / 0.6677 GB, free: 1.633 MB / 0.4981 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.00122/0.1704, allocations: 0.5405 MB / 0.6682 GB, free: 1.074 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.426e-05/0.1705, allocations: 59.41 kB / 0.6683 GB, free: 1.004 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.847e-06/0.1705, allocations: 4 kB / 0.6683 GB, free: 1 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.632e-05/0.1705, allocations: 3.984 kB / 0.6683 GB, free: 0.9961 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002925/0.1708, allocations: 64.08 kB / 0.6684 GB, free: 0.9336 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.051e-05/0.1708, allocations: 4 kB / 0.6684 GB, free: 0.9297 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004491/0.1713, allocations: 75.61 kB / 0.6684 GB, free: 0.8555 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.79e-05/0.1713, allocations: 16 kB / 0.6685 GB, free: 0.8398 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 34 (opeEnv.disErr.y,$PRE.opeEnv.disErr.y,TEvaInEmu.count,$PRE.TEvaInEmu.count,TEvaInEmu.T_start,$PRE.TEvaInEmu.T_start,TConOutEmu.count,$PRE.TConOutEmu.count,TConOutEmu.T_start,$PRE.TConOutEmu.T_start,opeEnv.bouMapCoo.hysBou.y,$PRE.opeEnv.bouMapCoo.hysBou.y,opeEnv.bouMapCoo.hysRig.y,$PRE.opeEnv.bouMapCoo.hysRig.y,opeEnv.bouMapCoo.hysLef.y,$PRE.opeEnv.bouMapCoo.hysLef.y,opeEnv.bouMapCoo.noErr,opeEnv.bouMapHea.hysBou.y,$PRE.opeEnv.bouMapHea.hysBou.y,opeEnv.bouMapHea.hysRig.y,$PRE.opeEnv.bouMapHea.hysRig.y,opeEnv.bouMapHea.hysLef.y,$PRE.opeEnv.bouMapHea.hysLef.y,opeEnv.bouMapHea.noErr,opeEnv.booPasThr.y,hys.y,$PRE.hys.y,sigBus.hea,$whenCondition1,$whenCondition2,$whenCondition3,opeEnv.intConOne.y,opeEnv.disErr.local_set,opeEnv.disErr.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 2 * 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.0002943/0.1716, allocations: 245.7 kB / 0.6687 GB, free: 0.5898 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001076/0.1718, allocations: 75.52 kB / 0.6688 GB, free: 0.5156 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001089/0.1728, allocations: 427.9 kB / 0.6692 GB, free: 88 kB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.1729, allocations: 4 kB / 0.6692 GB, free: 84 kB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.1729, allocations: 0 / 0.6692 GB, free: 84 kB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.588e-06/0.1729, allocations: 4 kB / 0.6692 GB, free: 80 kB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001848/0.1747, allocations: 1.169 MB / 0.6703 GB, free: 14.85 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.1748, allocations: 0 / 0.6703 GB, free: 14.85 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002241/0.175, allocations: 51.98 kB / 0.6704 GB, free: 14.8 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.175, allocations: 3.938 kB / 0.6704 GB, free: 14.8 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.105e-05/0.175, allocations: 11.98 kB / 0.6704 GB, free: 14.79 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.564e-06/0.175, allocations: 0 / 0.6704 GB, free: 14.79 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.175, allocations: 0 / 0.6704 GB, free: 14.79 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001081/0.1761, allocations: 0.5775 MB / 0.6709 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000157/0.1763, allocations: 160.6 kB / 0.6711 GB, free: 14.02 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.52e-05/0.1764, allocations: 16 kB / 0.6711 GB, free: 14 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004474/0.1769, allocations: 47.94 kB / 0.6712 GB, free: 13.96 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001674/0.177, allocations: 71.89 kB / 0.6712 GB, free: 13.89 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.57e-05/0.1771, allocations: 19.92 kB / 0.6712 GB, free: 13.87 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0006898/0.1778, allocations: 0.5576 MB / 0.6718 GB, free: 13.31 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1778, allocations: 0 / 0.6718 GB, free: 13.31 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0004799/0.1783, allocations: 131.7 kB / 0.6719 GB, free: 13.18 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 21 (opeEnv.booPasThr.y,opeEnv.bouMapHea.noErr,opeEnv.bouMapCoo.noErr,$cse1,$cse2,$whenCondition3,$whenCondition2,$whenCondition1,sigBus.hea,hys.y,opeEnv.disErr.y,opeEnv.bouMapHea.hysLef.y,opeEnv.bouMapHea.hysRig.y,opeEnv.bouMapHea.hysBou.y,opeEnv.bouMapCoo.hysLef.y,opeEnv.bouMapCoo.hysRig.y,opeEnv.bouMapCoo.hysBou.y,TConOutEmu.T_start,TConOutEmu.count,TEvaInEmu.T_start,TEvaInEmu.count) * Number of discrete states: 10 (TEvaInEmu.count,TConOutEmu.count,opeEnv.bouMapCoo.hysLef.y,opeEnv.bouMapCoo.hysRig.y,opeEnv.bouMapHea.hysLef.y,opeEnv.bouMapHea.hysRig.y,opeEnv.bouMapCoo.hysBou.y,opeEnv.bouMapHea.hysBou.y,hys.y,opeEnv.disErr.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.003084/0.1814, allocations: 1.582 MB / 0.6735 GB, free: 11.71 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001124/0.1825, allocations: 491.1 kB / 0.6739 GB, free: 11.21 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1825, allocations: 0 / 0.6739 GB, free: 11.21 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0005227/0.183, allocations: 196.2 kB / 0.6741 GB, free: 11.02 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008511/0.1839, allocations: 175 kB / 0.6743 GB, free: 10.86 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008503/0.1924, allocations: 5.649 MB / 0.6798 GB, free: 5.066 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005734/0.193, allocations: 0.9146 MB / 0.6807 GB, free: 4.121 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0003352/0.1934, allocations: 100.7 kB / 0.6808 GB, free: 4.02 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000392/0.1938, allocations: 247.3 kB / 0.681 GB, free: 3.781 MB / 0.5137 GB Notification: Performance of SimCode: time 5.61e-07/0.1938, allocations: 0 / 0.681 GB, free: 3.781 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04069/0.2345, allocations: 15.91 MB / 0.6966 GB, free: 4.176 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.941/9.176, allocations: 14.2 kB / 0.6966 GB, free: 4.164 MB / 0.5294 GB (rm -f IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OperationalEnvelope.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OperationalEnvelope.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OperationalEnvelope.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OperationalEnvelope.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OperationalEnvelope_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_OperationalEnvelope.fmu > IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OperationalEnvelope.pipe 2>&1)