Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze,fileNamePrefix="BuildingSystems_BuildingSystems_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.00187/0.00187, allocations: 108 kB / 15.61 MB, free: 152 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.002099/0.002099, allocations: 195.7 kB / 16.53 MB, free: 6.664 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.417/1.417, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002515/0.002515, allocations: 294.9 kB / 290.7 MB, free: 1.992 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.05/1.05, allocations: 178.6 MB / 0.5073 GB, free: 4.559 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002707/0.002707, allocations: 101.6 kB / 0.6066 GB, free: 24.62 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1554/0.1581, allocations: 89.14 MB / 0.6936 GB, free: 4.203 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.003584/0.1617, allocations: 2.072 MB / 0.6956 GB, free: 2.121 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009812/0.1627, allocations: 0.5731 MB / 0.6962 GB, free: 1.547 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000109/0.1628, allocations: 7.938 kB / 0.6962 GB, free: 1.539 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001174/0.163, allocations: 19.73 kB / 0.6962 GB, free: 1.52 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 8.893e-05/0.1631, allocations: 35.59 kB / 0.6963 GB, free: 1.484 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002529/0.1633, allocations: 88.66 kB / 0.6964 GB, free: 1.398 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003336/0.1637, allocations: 268 kB / 0.6966 GB, free: 1.137 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002362/0.1639, allocations: 114.2 kB / 0.6967 GB, free: 1.027 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001395/0.1641, allocations: 119.6 kB / 0.6968 GB, free: 0.9102 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001444/0.1642, allocations: 115.5 kB / 0.6969 GB, free: 0.7969 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.738e-05/0.1643, allocations: 24 kB / 0.697 GB, free: 0.7734 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.493e-05/0.1643, allocations: 28 kB / 0.697 GB, free: 0.7461 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.814e-05/0.1644, allocations: 59.81 kB / 0.697 GB, free: 0.6875 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001116/0.1645, allocations: 111.4 kB / 0.6972 GB, free: 0.5781 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002845/0.1648, allocations: 275.1 kB / 0.6974 GB, free: 316 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.1648, allocations: 4 kB / 0.6974 GB, free: 312 kB / 494.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1648, allocations: 0 / 0.6974 GB, free: 312 kB / 494.1 MB Notification: Performance of Transformations before backend: time 5.119e-06/0.1648, allocations: 0 / 0.6974 GB, free: 312 kB / 494.1 MB 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.001227/0.1661, allocations: 0.6292 MB / 0.698 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.1661, allocations: 12.03 kB / 0.698 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.319e-05/0.1662, allocations: 59.08 kB / 0.6981 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.457e-05/0.1663, allocations: 28.66 kB / 0.6981 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000323/0.1666, allocations: 249.1 kB / 0.6984 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.797e-05/0.1666, allocations: 20.8 kB / 0.6984 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.05e-05/0.1667, allocations: 24.38 kB / 0.6984 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006375/0.1673, allocations: 274.5 kB / 0.6987 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.1673, allocations: 0 / 0.6987 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.097e-05/0.1674, allocations: 11.98 kB / 0.6987 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.846e-06/0.1674, allocations: 4 kB / 0.6987 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007401/0.1681, allocations: 197.6 kB / 0.6989 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001188/0.1693, allocations: 0.627 MB / 0.6995 GB, free: 14 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008778/0.1702, allocations: 230.5 kB / 0.6997 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003241/0.1706, allocations: 84.78 kB / 0.6998 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.297e-05/0.1706, allocations: 7.938 kB / 0.6998 GB, free: 13.67 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005328/0.1711, allocations: 183.2 kB / 0.7 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.583e-06/0.1711, allocations: 0 / 0.7 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.001111/0.1723, allocations: 338.6 kB / 0.7003 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.364e-05/0.1724, allocations: 122.6 kB / 0.7004 GB, free: 13 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002044/0.1726, allocations: 203.1 kB / 0.7006 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.9e-05/0.1726, allocations: 37.7 kB / 0.7006 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.1727, allocations: 152.2 kB / 0.7008 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.373e-05/0.1728, allocations: 55.34 kB / 0.7008 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001013/0.1729, allocations: 61.7 kB / 0.7009 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001452/0.1731, allocations: 334.8 kB / 0.7012 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003771/0.1734, allocations: 104.2 kB / 0.7013 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004283/0.1739, allocations: 179.8 kB / 0.7015 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007063/0.1746, allocations: 301.6 kB / 0.7018 GB, free: 11.51 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1746, allocations: 0 / 0.7018 GB, free: 11.51 MB / 0.4981 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0009459/0.1756, allocations: 424.6 kB / 0.7022 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.807e-05/0.1756, allocations: 93.03 kB / 0.7023 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.1756, allocations: 0 / 0.7023 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.728e-05/0.1757, allocations: 4 kB / 0.7023 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002302/0.1759, allocations: 43.91 kB / 0.7023 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.188e-05/0.1759, allocations: 7.984 kB / 0.7023 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003315/0.1763, allocations: 67.8 kB / 0.7024 GB, free: 10.84 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.523e-05/0.1763, allocations: 12 kB / 0.7024 GB, free: 10.83 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.0001523/0.1764, allocations: 140.7 kB / 0.7025 GB, free: 10.69 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.659e-05/0.1765, allocations: 23.75 kB / 0.7026 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007746/0.1773, allocations: 264.6 kB / 0.7028 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.1773, allocations: 4 kB / 0.7028 GB, free: 10.4 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.1773, allocations: 0 / 0.7028 GB, free: 10.4 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.1773, allocations: 0 / 0.7028 GB, free: 10.4 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001049/0.1784, allocations: 0.584 MB / 0.7034 GB, free: 9.762 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.013e-06/0.1784, allocations: 0 / 0.7034 GB, free: 9.762 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001641/0.1785, allocations: 31.95 kB / 0.7034 GB, free: 9.73 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.1785, allocations: 0 / 0.7034 GB, free: 9.73 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.679e-05/0.1786, allocations: 4 kB / 0.7034 GB, free: 9.727 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.1786, allocations: 4 kB / 0.7034 GB, free: 9.723 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/0.1786, allocations: 3.984 kB / 0.7034 GB, free: 9.719 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007704/0.1794, allocations: 345.5 kB / 0.7038 GB, free: 9.367 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.685e-05/0.1794, allocations: 96.84 kB / 0.7038 GB, free: 9.254 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.515e-05/0.1795, allocations: 8 kB / 0.7039 GB, free: 9.246 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003128/0.1798, allocations: 51.88 kB / 0.7039 GB, free: 9.195 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001095/0.1799, allocations: 39.94 kB / 0.7039 GB, free: 9.156 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.268e-05/0.18, allocations: 8 kB / 0.7039 GB, free: 9.148 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001243/0.1801, allocations: 148 kB / 0.7041 GB, free: 9.004 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1801, allocations: 0 / 0.7041 GB, free: 9.004 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003008/0.1804, allocations: 59.84 kB / 0.7041 GB, free: 8.945 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.001519/0.1819, allocations: 1.004 MB / 0.7051 GB, free: 7.914 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0009358/0.1829, allocations: 421.8 kB / 0.7055 GB, free: 7.465 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.1829, allocations: 320 / 0.7055 GB, free: 7.465 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003843/0.1833, allocations: 119.8 kB / 0.7056 GB, free: 7.348 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003546/0.1836, allocations: 27.98 kB / 0.7057 GB, free: 7.32 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004161/0.1878, allocations: 2.58 MB / 0.7082 GB, free: 4.625 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003513/0.1882, allocations: 0.7398 MB / 0.7089 GB, free: 3.855 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001045/0.1883, allocations: 21.53 kB / 0.7089 GB, free: 3.836 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001252/0.1884, allocations: 71.41 kB / 0.709 GB, free: 3.77 MB / 0.4981 GB Notification: Performance of SimCode: time 2.41e-07/0.1884, allocations: 0 / 0.709 GB, free: 3.77 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02694/0.2154, allocations: 5.172 MB / 0.7141 GB, free: 14.79 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.764/7.979, allocations: 6.219 kB / 0.7141 GB, free: 14.78 MB / 0.5137 GB (rm -f BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze.fmu > BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe 2>&1)