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: translateModel(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze,tolerance=1e-08,outputFormat="empty",numberOfIntervals=200,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze") translateModel(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze,tolerance=1e-08,outputFormat="empty",numberOfIntervals=200,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001358/0.001358, allocations: 111.1 kB / 17.07 MB, free: 5.461 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.001261/0.001261, allocations: 203 kB / 18.05 MB, free: 4.5 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.376/1.376, allocations: 225.6 MB / 244.5 MB, free: 13.78 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00256/0.00256, allocations: 282.2 kB / 297.6 MB, free: 11.3 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.202/1.202, allocations: 180.9 MB / 0.519 GB, free: 14.21 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002722/0.002722, allocations: 100.9 kB / 0.7167 GB, free: 39.94 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1654/0.1681, allocations: 94.16 MB / 0.8086 GB, free: 6.215 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.003742/0.1719, allocations: 2.095 MB / 0.8107 GB, free: 4.215 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.00111/0.173, allocations: 0.565 MB / 0.8112 GB, free: 3.645 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001236/0.1731, allocations: 7.938 kB / 0.8112 GB, free: 3.637 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001243/0.1732, allocations: 19.73 kB / 0.8113 GB, free: 3.617 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0001006/0.1733, allocations: 39.59 kB / 0.8113 GB, free: 3.578 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002914/0.1736, allocations: 91.88 kB / 0.8114 GB, free: 3.488 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0003498/0.174, allocations: 259.4 kB / 0.8116 GB, free: 3.234 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002539/0.1742, allocations: 98.62 kB / 0.8117 GB, free: 3.133 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001512/0.1744, allocations: 115.6 kB / 0.8118 GB, free: 3.02 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001649/0.1745, allocations: 115.5 kB / 0.8119 GB, free: 2.906 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 5.136e-05/0.1746, allocations: 24 kB / 0.812 GB, free: 2.883 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 4.352e-05/0.1746, allocations: 28 kB / 0.812 GB, free: 2.855 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 6.965e-05/0.1747, allocations: 59.77 kB / 0.812 GB, free: 2.797 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001293/0.1748, allocations: 119.4 kB / 0.8122 GB, free: 2.68 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003645/0.1752, allocations: 271 kB / 0.8124 GB, free: 2.414 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.1752, allocations: 0 / 0.8124 GB, free: 2.414 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.362e-06/0.1752, allocations: 0 / 0.8124 GB, free: 2.414 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.327e-06/0.1752, allocations: 0 / 0.8124 GB, free: 2.414 MB / 0.5606 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.001268/0.1765, allocations: 0.6446 MB / 0.813 GB, free: 1.699 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.564e-05/0.1765, allocations: 8.031 kB / 0.8131 GB, free: 1.691 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.776e-05/0.1766, allocations: 32.75 kB / 0.8131 GB, free: 1.66 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003925/0.177, allocations: 257 kB / 0.8133 GB, free: 1.371 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.38e-05/0.177, allocations: 12.75 kB / 0.8133 GB, free: 1.359 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.33e-05/0.177, allocations: 32.36 kB / 0.8134 GB, free: 1.328 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006382/0.1777, allocations: 262.6 kB / 0.8136 GB, free: 1.059 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.1777, allocations: 0 / 0.8136 GB, free: 1.059 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.033e-05/0.1777, allocations: 12 kB / 0.8136 GB, free: 1.047 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.719e-06/0.1777, allocations: 4 kB / 0.8136 GB, free: 1.043 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006872/0.1784, allocations: 195.8 kB / 0.8138 GB, free: 0.8516 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001148/0.1796, allocations: 0.6132 MB / 0.8144 GB, free: 192 kB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008663/0.1804, allocations: 214.5 kB / 0.8146 GB, free: 15.97 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003187/0.1808, allocations: 84.78 kB / 0.8147 GB, free: 15.88 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 2.308e-05/0.1808, allocations: 0 / 0.8147 GB, free: 15.88 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005002/0.1813, allocations: 197.2 kB / 0.8149 GB, free: 15.68 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=18): time 1.432e-06/0.1813, allocations: 0 / 0.8149 GB, free: 15.68 MB / 0.5762 GB Notification: Performance of matching and sorting (n=18): time 0.001118/0.1824, allocations: 341.1 kB / 0.8152 GB, free: 15.34 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.49e-05/0.1825, allocations: 106.8 kB / 0.8153 GB, free: 15.21 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002111/0.1827, allocations: 200.3 kB / 0.8155 GB, free: 15.01 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 4.08e-05/0.1827, allocations: 37.7 kB / 0.8156 GB, free: 14.96 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001225/0.1829, allocations: 156.4 kB / 0.8157 GB, free: 14.81 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 4.69e-05/0.1829, allocations: 47.62 kB / 0.8157 GB, free: 14.76 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001084/0.183, allocations: 65.69 kB / 0.8158 GB, free: 14.69 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001584/0.1832, allocations: 338.8 kB / 0.8161 GB, free: 14.35 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003751/0.1835, allocations: 104.2 kB / 0.8162 GB, free: 14.25 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004148/0.184, allocations: 179.8 kB / 0.8164 GB, free: 14.05 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000713/0.1847, allocations: 305.1 kB / 0.8167 GB, free: 13.71 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.1847, allocations: 0 / 0.8167 GB, free: 13.71 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0009595/0.1856, allocations: 432.2 kB / 0.8171 GB, free: 13.27 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 7.842e-05/0.1857, allocations: 91.39 kB / 0.8172 GB, free: 13.17 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.146e-06/0.1857, allocations: 3.984 kB / 0.8172 GB, free: 13.16 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.557e-05/0.1858, allocations: 15.92 kB / 0.8172 GB, free: 13.15 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002241/0.186, allocations: 43.91 kB / 0.8173 GB, free: 13.11 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.152e-05/0.186, allocations: 4 kB / 0.8173 GB, free: 13.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003311/0.1863, allocations: 63.89 kB / 0.8173 GB, free: 13.04 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.981e-05/0.1863, allocations: 12 kB / 0.8173 GB, free: 13.03 MB / 0.5762 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.0001679/0.1865, allocations: 144 kB / 0.8175 GB, free: 12.88 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.494e-05/0.1866, allocations: 23.86 kB / 0.8175 GB, free: 12.85 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007838/0.1873, allocations: 259.3 kB / 0.8177 GB, free: 12.59 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.374e-06/0.1873, allocations: 7.938 kB / 0.8177 GB, free: 12.59 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.1873, allocations: 0 / 0.8177 GB, free: 12.59 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.1873, allocations: 0 / 0.8177 GB, free: 12.59 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001076/0.1884, allocations: 0.5764 MB / 0.8183 GB, free: 11.95 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.1884, allocations: 0 / 0.8183 GB, free: 11.95 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000164/0.1886, allocations: 31.89 kB / 0.8183 GB, free: 11.92 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.1886, allocations: 4 kB / 0.8183 GB, free: 11.92 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.723e-05/0.1886, allocations: 0 / 0.8183 GB, free: 11.92 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.1886, allocations: 0 / 0.8183 GB, free: 11.92 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.556e-06/0.1886, allocations: 4 kB / 0.8183 GB, free: 11.91 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000765/0.1894, allocations: 345.5 kB / 0.8187 GB, free: 11.56 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 8.031e-05/0.1895, allocations: 100.9 kB / 0.8188 GB, free: 11.45 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.443e-05/0.1895, allocations: 11.98 kB / 0.8188 GB, free: 11.43 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003029/0.1898, allocations: 39.95 kB / 0.8188 GB, free: 11.39 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000125/0.1899, allocations: 43.94 kB / 0.8189 GB, free: 11.35 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.47e-05/0.19, allocations: 7.984 kB / 0.8189 GB, free: 11.34 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001396/0.1901, allocations: 147.2 kB / 0.819 GB, free: 11.2 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.31e-07/0.1901, allocations: 4 kB / 0.819 GB, free: 11.2 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003139/0.1904, allocations: 55.84 kB / 0.8191 GB, free: 11.14 MB / 0.5762 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.0001831/0.1906, allocations: 129.8 kB / 0.8192 GB, free: 11 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0009457/0.1915, allocations: 401.9 kB / 0.8196 GB, free: 10.57 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.1915, allocations: 0 / 0.8196 GB, free: 10.57 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003734/0.1919, allocations: 104.2 kB / 0.8197 GB, free: 10.47 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003961/0.1923, allocations: 31.97 kB / 0.8197 GB, free: 10.44 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000919/0.1932, allocations: 392 kB / 0.8201 GB, free: 10.03 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003814/0.1936, allocations: 0.7359 MB / 0.8208 GB, free: 9.27 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.585e-05/0.1937, allocations: 27.38 kB / 0.8208 GB, free: 9.242 MB / 0.5762 GB Notification: Performance of SimCode: time 8.31e-07/0.1937, allocations: 0 / 0.8208 GB, free: 9.242 MB / 0.5762 GB Notification: Performance of Templates: time 0.005361/0.1991, allocations: 2.889 MB / 0.8236 GB, free: 6.367 MB / 0.5762 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.makefile (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 & ./BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe 2>&1)