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.001399/0.001399, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001737/0.001738, allocations: 188.9 kB / 16.14 MB, free: 6.715 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.437/1.437, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002493/0.002493, allocations: 295 kB / 290.2 MB, free: 2.203 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.094/1.094, allocations: 178.6 MB / 0.5068 GB, free: 4.766 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002697/0.002697, allocations: 97.81 kB / 0.6058 GB, free: 25.14 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1691/0.1718, allocations: 89.15 MB / 0.6928 GB, free: 4.77 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.003893/0.1757, allocations: 2.124 MB / 0.6949 GB, free: 2.637 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001024/0.1768, allocations: 0.5741 MB / 0.6955 GB, free: 2.059 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.406e-05/0.1769, allocations: 4 kB / 0.6955 GB, free: 2.055 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001106/0.177, allocations: 11.86 kB / 0.6955 GB, free: 2.043 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 9.129e-05/0.1771, allocations: 31.72 kB / 0.6955 GB, free: 2.012 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002366/0.1773, allocations: 71.92 kB / 0.6956 GB, free: 1.941 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000262/0.1776, allocations: 239.4 kB / 0.6958 GB, free: 1.707 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002332/0.1778, allocations: 111.2 kB / 0.6959 GB, free: 1.598 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001387/0.178, allocations: 99.61 kB / 0.696 GB, free: 1.5 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001509/0.1781, allocations: 119.4 kB / 0.6961 GB, free: 1.383 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.104e-05/0.1782, allocations: 16 kB / 0.6961 GB, free: 1.367 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.641e-05/0.1782, allocations: 12 kB / 0.6961 GB, free: 1.355 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.194e-05/0.1783, allocations: 47.77 kB / 0.6962 GB, free: 1.309 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001236/0.1784, allocations: 103.4 kB / 0.6963 GB, free: 1.207 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003018/0.1787, allocations: 259.1 kB / 0.6965 GB, free: 0.9531 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.1788, allocations: 0 / 0.6965 GB, free: 0.9531 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.1788, allocations: 0 / 0.6965 GB, free: 0.9531 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.1788, allocations: 0 / 0.6965 GB, free: 0.9531 MB / 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.001286/0.1801, allocations: 0.6371 MB / 0.6972 GB, free: 248 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.139e-05/0.1801, allocations: 8.031 kB / 0.6972 GB, free: 240 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.145e-05/0.1802, allocations: 32.64 kB / 0.6972 GB, free: 208 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003204/0.1805, allocations: 248.4 kB / 0.6974 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.808e-05/0.1806, allocations: 20.73 kB / 0.6974 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.308e-05/0.1806, allocations: 20.38 kB / 0.6975 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000664/0.1813, allocations: 278.2 kB / 0.6977 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.297e-06/0.1813, allocations: 0 / 0.6977 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.753e-05/0.1813, allocations: 8 kB / 0.6977 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.035e-06/0.1813, allocations: 4 kB / 0.6977 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006947/0.182, allocations: 195.8 kB / 0.6979 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001157/0.1832, allocations: 0.6169 MB / 0.6985 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008783/0.1841, allocations: 222.5 kB / 0.6987 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003059/0.1844, allocations: 88.78 kB / 0.6988 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.206e-05/0.1844, allocations: 0 / 0.6988 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000546/0.185, allocations: 200.2 kB / 0.699 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 4.809e-06/0.185, allocations: 0 / 0.699 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.001076/0.1861, allocations: 331.1 kB / 0.6993 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.203e-05/0.1862, allocations: 110.8 kB / 0.6994 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000254/0.1865, allocations: 202.5 kB / 0.6996 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.31e-05/0.1865, allocations: 41.69 kB / 0.6997 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001297/0.1866, allocations: 152.2 kB / 0.6998 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.543e-05/0.1867, allocations: 51.36 kB / 0.6999 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001112/0.1868, allocations: 65.62 kB / 0.6999 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001975/0.187, allocations: 326.8 kB / 0.7002 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003891/0.1874, allocations: 112.2 kB / 0.7004 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004513/0.1879, allocations: 179.2 kB / 0.7005 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007199/0.1886, allocations: 303 kB / 0.7008 GB, free: 12.24 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.568e-06/0.1886, allocations: 4 kB / 0.7008 GB, free: 12.24 MB / 0.4981 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000963/0.1896, allocations: 422.2 kB / 0.7012 GB, free: 11.8 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001035/0.1897, allocations: 93.09 kB / 0.7013 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.1897, allocations: 4 kB / 0.7013 GB, free: 11.69 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.797e-05/0.1897, allocations: 4.094 kB / 0.7013 GB, free: 11.69 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002392/0.19, allocations: 51.89 kB / 0.7014 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/0.19, allocations: 0 / 0.7014 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003259/0.1903, allocations: 51.8 kB / 0.7014 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.365e-05/0.1904, allocations: 16 kB / 0.7014 GB, free: 11.57 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.0001867/0.1906, allocations: 156.7 kB / 0.7016 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.561e-05/0.1906, allocations: 15.81 kB / 0.7016 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000897/0.1915, allocations: 259.2 kB / 0.7018 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.812e-06/0.1915, allocations: 3.938 kB / 0.7018 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.1916, allocations: 0 / 0.7018 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.1916, allocations: 8 kB / 0.7019 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001153/0.1927, allocations: 0.5751 MB / 0.7024 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.1927, allocations: 0 / 0.7024 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000179/0.1929, allocations: 43.83 kB / 0.7025 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.1929, allocations: 0 / 0.7025 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.148e-05/0.193, allocations: 8 kB / 0.7025 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.09e-06/0.193, allocations: 3.984 kB / 0.7025 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.193, allocations: 7.922 kB / 0.7025 GB, free: 10.44 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000794/0.1938, allocations: 335.1 kB / 0.7028 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.892e-05/0.1939, allocations: 100.8 kB / 0.7029 GB, free: 9.977 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.814e-05/0.1939, allocations: 4 kB / 0.7029 GB, free: 9.973 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003133/0.1942, allocations: 43.94 kB / 0.7029 GB, free: 9.93 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001427/0.1944, allocations: 43.94 kB / 0.703 GB, free: 9.887 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.484e-05/0.1944, allocations: 7.984 kB / 0.703 GB, free: 9.879 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001337/0.1946, allocations: 151.9 kB / 0.7031 GB, free: 9.73 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.1946, allocations: 3.938 kB / 0.7031 GB, free: 9.727 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003249/0.1949, allocations: 59.83 kB / 0.7032 GB, free: 9.668 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.000175/0.1951, allocations: 109.1 kB / 0.7033 GB, free: 9.551 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0009557/0.196, allocations: 413.9 kB / 0.7037 GB, free: 9.109 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.196, allocations: 4 kB / 0.7037 GB, free: 9.105 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003813/0.1964, allocations: 114.1 kB / 0.7038 GB, free: 8.996 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003953/0.1968, allocations: 40.17 kB / 0.7038 GB, free: 8.957 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009018/0.1978, allocations: 429.9 kB / 0.7043 GB, free: 8.516 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004012/0.1982, allocations: 0.7362 MB / 0.705 GB, free: 7.754 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.000111/0.1983, allocations: 21.55 kB / 0.705 GB, free: 7.73 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.646e-05/0.1984, allocations: 19.44 kB / 0.705 GB, free: 7.715 MB / 0.4981 GB Notification: Performance of SimCode: time 2.8e-07/0.1984, allocations: 0 / 0.705 GB, free: 7.715 MB / 0.4981 GB Notification: Performance of Templates: time 0.006811/0.2052, allocations: 2.802 MB / 0.7077 GB, free: 4.969 MB / 0.4981 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)