Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.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.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion") translateModel(BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001032/0.001032, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.009038/0.009038, allocations: 169.9 kB / 16.26 MB, free: 6.676 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.299/1.299, allocations: 223.3 MB / 240.3 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001697/0.001697, allocations: 278.8 kB / 291.7 MB, free: 1.852 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.032/1.032, allocations: 169.5 MB / 0.5004 GB, free: 14.11 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004297/0.0004297, allocations: 15.73 kB / 0.5987 GB, free: 28.24 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1648/0.1652, allocations: 88.55 MB / 0.6851 GB, free: 15.06 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion): time 0.003778/0.1691, allocations: 2.966 MB / 0.688 GB, free: 12.08 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 8.629e-05/0.1692, allocations: 67.78 kB / 0.6881 GB, free: 12.02 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.355e-05/0.1692, allocations: 4.5 kB / 0.6881 GB, free: 12.01 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 7.918e-05/0.1693, allocations: 0 / 0.6881 GB, free: 12.01 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.49e-05/0.1694, allocations: 13.14 kB / 0.6881 GB, free: 12 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004274/0.1698, allocations: 172.1 kB / 0.6883 GB, free: 11.84 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 8.004e-05/0.1699, allocations: 60.48 kB / 0.6883 GB, free: 11.78 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.256e-05/0.1699, allocations: 4 kB / 0.6883 GB, free: 11.77 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.525e-05/0.17, allocations: 13.98 kB / 0.6883 GB, free: 11.76 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.382e-05/0.17, allocations: 23.86 kB / 0.6884 GB, free: 11.74 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.518e-06/0.17, allocations: 0 / 0.6884 GB, free: 11.74 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002871/0.1703, allocations: 167.5 kB / 0.6885 GB, free: 11.57 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.033e-05/0.1704, allocations: 8.734 kB / 0.6885 GB, free: 11.57 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.273e-05/0.1704, allocations: 29.7 kB / 0.6886 GB, free: 11.53 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000256/0.1707, allocations: 136.6 kB / 0.6887 GB, free: 11.4 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.1707, allocations: 0 / 0.6887 GB, free: 11.4 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.1707, allocations: 6.406 kB / 0.6887 GB, free: 11.39 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.897e-06/0.1707, allocations: 0 / 0.6887 GB, free: 11.39 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003792/0.1711, allocations: 339.5 kB / 0.689 GB, free: 11.02 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.418e-05/0.1712, allocations: 8.031 kB / 0.689 GB, free: 11.01 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.756e-05/0.1712, allocations: 0.9375 kB / 0.689 GB, free: 11.01 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001175/0.1713, allocations: 170.5 kB / 0.6892 GB, free: 10.8 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.864e-05/0.1714, allocations: 30.2 kB / 0.6892 GB, free: 10.77 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.387e-06/0.1714, allocations: 4.359 kB / 0.6892 GB, free: 10.77 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001279/0.1715, allocations: 49.62 kB / 0.6893 GB, free: 10.71 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.454e-06/0.1716, allocations: 0.7188 kB / 0.6893 GB, free: 10.71 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.39e-05/0.1716, allocations: 0 / 0.6893 GB, free: 10.71 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.011e-05/0.1716, allocations: 5.656 kB / 0.6893 GB, free: 10.71 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.88e-05/0.1717, allocations: 15.98 kB / 0.6893 GB, free: 10.69 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006319/0.1723, allocations: 0.5841 MB / 0.6899 GB, free: 9.984 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.223e-05/0.1724, allocations: 18.52 kB / 0.6899 GB, free: 9.957 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.571e-05/0.1724, allocations: 13.61 kB / 0.6899 GB, free: 9.941 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002038/0.1726, allocations: 337.7 kB / 0.6902 GB, free: 9.539 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.129e-05/0.1726, allocations: 35.36 kB / 0.6903 GB, free: 9.496 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 2.575e-06/0.1726, allocations: 3.984 kB / 0.6903 GB, free: 9.492 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001177/0.1727, allocations: 38.27 kB / 0.6903 GB, free: 9.449 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.922e-05/0.1728, allocations: 55.53 kB / 0.6903 GB, free: 9.383 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.107e-05/0.1729, allocations: 105.8 kB / 0.6904 GB, free: 9.27 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.277e-05/0.1729, allocations: 25.7 kB / 0.6905 GB, free: 9.238 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.698e-05/0.1729, allocations: 88.05 kB / 0.6906 GB, free: 9.148 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.122e-06/0.1729, allocations: 3.938 kB / 0.6906 GB, free: 9.145 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.94e-05/0.173, allocations: 9.719 kB / 0.6906 GB, free: 9.129 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.996e-05/0.173, allocations: 318.8 kB / 0.6909 GB, free: 8.809 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.403e-05/0.1731, allocations: 7.984 kB / 0.6909 GB, free: 8.801 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.206e-05/0.1731, allocations: 21.72 kB / 0.6909 GB, free: 8.773 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.014e-05/0.1731, allocations: 21.72 kB / 0.6909 GB, free: 8.746 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.1731, allocations: 0 / 0.6909 GB, free: 8.746 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.135e-05/0.1732, allocations: 53.53 kB / 0.691 GB, free: 8.688 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.117e-05/0.1732, allocations: 11.94 kB / 0.691 GB, free: 8.676 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-06/0.1732, allocations: 0 / 0.691 GB, free: 8.676 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.906e-06/0.1733, allocations: 0 / 0.691 GB, free: 8.676 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.092e-05/0.1733, allocations: 12.05 kB / 0.691 GB, free: 8.664 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.018e-06/0.1733, allocations: 0 / 0.691 GB, free: 8.664 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.891e-05/0.1733, allocations: 4 kB / 0.691 GB, free: 8.66 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.464e-06/0.1733, allocations: 0 / 0.691 GB, free: 8.66 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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 6.946e-05/0.1734, allocations: 119 kB / 0.6911 GB, free: 8.535 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.439e-05/0.1734, allocations: 0 / 0.6911 GB, free: 8.535 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.356e-05/0.1735, allocations: 127 kB / 0.6912 GB, free: 8.402 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.995e-05/0.1736, allocations: 180.3 kB / 0.6914 GB, free: 8.219 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.423e-05/0.1737, allocations: 180.2 kB / 0.6916 GB, free: 8.035 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.013e-05/0.1737, allocations: 176.3 kB / 0.6917 GB, free: 7.855 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002002/0.1739, allocations: 413.1 kB / 0.6921 GB, free: 7.395 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.758e-05/0.174, allocations: 101 kB / 0.6922 GB, free: 7.289 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.69e-05/0.174, allocations: 109 kB / 0.6923 GB, free: 7.176 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-05/0.1741, allocations: 184.2 kB / 0.6925 GB, free: 6.988 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.468e-05/0.1741, allocations: 176.3 kB / 0.6927 GB, free: 6.809 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.441e-05/0.1742, allocations: 180.4 kB / 0.6929 GB, free: 6.625 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.359e-05/0.1742, allocations: 188.3 kB / 0.693 GB, free: 6.434 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001106/0.1743, allocations: 311.7 kB / 0.6933 GB, free: 6.105 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.749e-05/0.1744, allocations: 186 kB / 0.6935 GB, free: 5.898 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.626e-05/0.1745, allocations: 184.2 kB / 0.6937 GB, free: 5.711 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001391/0.1746, allocations: 113 kB / 0.6938 GB, free: 5.594 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.692e-05/0.1747, allocations: 184.2 kB / 0.694 GB, free: 5.406 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.941e-05/0.1748, allocations: 105 kB / 0.6941 GB, free: 5.297 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.278e-05/0.1748, allocations: 87.27 kB / 0.6942 GB, free: 5.211 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1748, allocations: 0 / 0.6942 GB, free: 5.211 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002577/0.1751, allocations: 31.94 kB / 0.6942 GB, free: 5.18 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.000235/0.1753, allocations: 240.3 kB / 0.6944 GB, free: 4.934 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 5.497e-05/0.1754, allocations: 11.92 kB / 0.6944 GB, free: 4.922 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.1754, allocations: 0 / 0.6944 GB, free: 4.922 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.292e-06/0.1754, allocations: 4 kB / 0.6944 GB, free: 4.918 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004251/0.1758, allocations: 0.5226 MB / 0.6949 GB, free: 4.391 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002173/0.1761, allocations: 191.8 kB / 0.6951 GB, free: 4.172 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002119/0.1763, allocations: 0.677 MB / 0.6958 GB, free: 3.469 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.936e-05/0.1763, allocations: 8 kB / 0.6958 GB, free: 3.461 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.415e-05/0.1763, allocations: 7.438 kB / 0.6958 GB, free: 3.453 MB / 494.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1763, allocations: 0 / 0.6958 GB, free: 3.453 MB / 494.1 MB Notification: Performance of Templates: time 0.003263/0.1796, allocations: 1.198 MB / 0.697 GB, free: 2.305 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.makefile (rm -f BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.sim & ./BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe 2>&1)