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.001252/0.001252, allocations: 107.4 kB / 16.27 MB, free: 6.414 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.001169/0.001169, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.222/1.222, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002193/0.002193, allocations: 301.3 kB / 291.3 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8787/0.8787, allocations: 169.2 MB / 0.4988 GB, free: 4.488 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001993/0.001994, allocations: 97.61 kB / 0.5959 GB, free: 15.16 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1741/0.1761, allocations: 86.98 MB / 0.6808 GB, free: 8.184 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion): time 0.00455/0.1807, allocations: 3.267 MB / 0.684 GB, free: 4.895 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001038/0.1809, allocations: 71.72 kB / 0.6841 GB, free: 4.824 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.524e-05/0.1809, allocations: 0 / 0.6841 GB, free: 4.824 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 8.965e-05/0.181, allocations: 0 / 0.6841 GB, free: 4.824 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 7.768e-05/0.1811, allocations: 11.92 kB / 0.6841 GB, free: 4.812 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005278/0.1817, allocations: 183.2 kB / 0.6843 GB, free: 4.633 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 8.114e-05/0.1817, allocations: 35.91 kB / 0.6843 GB, free: 4.598 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.45e-05/0.1818, allocations: 3.984 kB / 0.6843 GB, free: 4.594 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.429e-05/0.1819, allocations: 19.92 kB / 0.6843 GB, free: 4.574 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.229e-05/0.1819, allocations: 15.92 kB / 0.6844 GB, free: 4.559 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.229e-05/0.182, allocations: 4 kB / 0.6844 GB, free: 4.555 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003258/0.1823, allocations: 171.5 kB / 0.6845 GB, free: 4.387 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.584e-05/0.1823, allocations: 0 / 0.6845 GB, free: 4.387 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.528e-05/0.1824, allocations: 4 kB / 0.6845 GB, free: 4.383 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002724/0.1827, allocations: 143.9 kB / 0.6847 GB, free: 4.242 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.1827, allocations: 4 kB / 0.6847 GB, free: 4.238 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1827, allocations: 0 / 0.6847 GB, free: 4.238 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.11e-06/0.1827, allocations: 0 / 0.6847 GB, free: 4.238 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.0003975/0.1831, allocations: 347.5 kB / 0.685 GB, free: 3.852 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.414e-05/0.1831, allocations: 8.031 kB / 0.685 GB, free: 3.844 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.465e-05/0.1832, allocations: 4.938 kB / 0.685 GB, free: 3.84 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001106/0.1833, allocations: 160.4 kB / 0.6852 GB, free: 3.645 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.256e-05/0.1834, allocations: 26.27 kB / 0.6852 GB, free: 3.613 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.211e-05/0.1834, allocations: 8.359 kB / 0.6852 GB, free: 3.605 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001246/0.1835, allocations: 57.61 kB / 0.6853 GB, free: 3.543 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.1835, allocations: 0 / 0.6853 GB, free: 3.543 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.05e-05/0.1835, allocations: 3.938 kB / 0.6853 GB, free: 3.539 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.625e-05/0.1836, allocations: 0 / 0.6853 GB, free: 3.539 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.486e-05/0.1836, allocations: 19.92 kB / 0.6853 GB, free: 3.52 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006131/0.1842, allocations: 0.5871 MB / 0.6858 GB, free: 2.809 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.715e-05/0.1843, allocations: 22.58 kB / 0.6859 GB, free: 2.777 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.508e-05/0.1843, allocations: 4.859 kB / 0.6859 GB, free: 2.77 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002307/0.1845, allocations: 340.5 kB / 0.6862 GB, free: 2.363 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.65e-05/0.1846, allocations: 34.56 kB / 0.6862 GB, free: 2.32 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 1.133e-06/0.1846, allocations: 0 / 0.6862 GB, free: 2.32 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001547/0.1847, allocations: 37.62 kB / 0.6863 GB, free: 2.277 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.536e-05/0.1848, allocations: 51.41 kB / 0.6863 GB, free: 2.215 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.398e-05/0.1849, allocations: 106 kB / 0.6864 GB, free: 2.102 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.359e-05/0.1849, allocations: 25.7 kB / 0.6864 GB, free: 2.07 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.492e-05/0.1849, allocations: 88.03 kB / 0.6865 GB, free: 1.98 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.318e-05/0.185, allocations: 11.94 kB / 0.6865 GB, free: 1.969 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.284e-05/0.185, allocations: 9.719 kB / 0.6865 GB, free: 1.953 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.873e-05/0.1851, allocations: 318.8 kB / 0.6868 GB, free: 1.633 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.699e-05/0.1851, allocations: 3.984 kB / 0.6869 GB, free: 1.629 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.448e-05/0.1852, allocations: 17.72 kB / 0.6869 GB, free: 1.605 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.731e-05/0.1852, allocations: 29.66 kB / 0.6869 GB, free: 1.57 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-06/0.1852, allocations: 0 / 0.6869 GB, free: 1.57 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.096e-05/0.1853, allocations: 45.59 kB / 0.6869 GB, free: 1.52 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.1853, allocations: 11.94 kB / 0.687 GB, free: 1.508 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.1853, allocations: 0 / 0.687 GB, free: 1.508 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.256e-05/0.1853, allocations: 0 / 0.687 GB, free: 1.508 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.22e-05/0.1854, allocations: 4.281 kB / 0.687 GB, free: 1.504 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.147e-06/0.1854, allocations: 4.062 kB / 0.687 GB, free: 1.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.813e-05/0.1854, allocations: 11.98 kB / 0.687 GB, free: 1.488 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.028e-05/0.1855, allocations: 0 / 0.687 GB, free: 1.488 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 7.304e-05/0.1855, allocations: 113.8 kB / 0.6871 GB, free: 1.367 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.568e-05/0.1856, allocations: 3.938 kB / 0.6871 GB, free: 1.363 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001106/0.1857, allocations: 121 kB / 0.6872 GB, free: 1.234 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.249e-05/0.1857, allocations: 188.2 kB / 0.6874 GB, free: 1.043 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.109e-05/0.1858, allocations: 176.3 kB / 0.6875 GB, free: 0.8633 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.867e-05/0.1859, allocations: 180.2 kB / 0.6877 GB, free: 0.6797 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002128/0.1861, allocations: 409.2 kB / 0.6881 GB, free: 228 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.356e-05/0.1861, allocations: 109 kB / 0.6882 GB, free: 112 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.016e-05/0.1862, allocations: 105 kB / 0.6883 GB, free: 0 / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.405e-05/0.5066, allocations: 177.6 kB / 0.6885 GB, free: 18.89 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.922e-05/0.5066, allocations: 180.7 kB / 0.6887 GB, free: 18.71 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.639e-05/0.5067, allocations: 178 kB / 0.6888 GB, free: 18.53 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.199e-05/0.5067, allocations: 182.3 kB / 0.689 GB, free: 18.35 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001311/0.5069, allocations: 314.7 kB / 0.6893 GB, free: 18.04 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.232e-05/0.5069, allocations: 184.7 kB / 0.6895 GB, free: 17.84 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.6e-05/0.507, allocations: 181.7 kB / 0.6896 GB, free: 17.66 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001738/0.5072, allocations: 112 kB / 0.6898 GB, free: 17.55 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.461e-05/0.5072, allocations: 181.3 kB / 0.6899 GB, free: 17.38 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.824e-05/0.5072, allocations: 107.4 kB / 0.69 GB, free: 17.27 MB / 494.1 MB Notification: Performance of sorting global known variables: time 6.749e-05/0.5073, allocations: 86.89 kB / 0.6901 GB, free: 17.2 MB / 494.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5073, allocations: 0 / 0.6901 GB, free: 17.2 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000374/0.5077, allocations: 39.81 kB / 0.6902 GB, free: 17.2 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.0003345/0.508, allocations: 232.8 kB / 0.6904 GB, free: 17.03 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001103/0.5081, allocations: 7.328 kB / 0.6904 GB, free: 17.03 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.149e-06/0.5082, allocations: 0.5312 kB / 0.6904 GB, free: 17.03 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 2.013e-06/0.5082, allocations: 2.969 kB / 0.6904 GB, free: 17.03 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003872/0.5086, allocations: 464.5 kB / 0.6908 GB, free: 16.59 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003021/0.5089, allocations: 210 kB / 0.691 GB, free: 16.38 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001136/0.509, allocations: 0.675 MB / 0.6917 GB, free: 15.69 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.107e-05/0.509, allocations: 9.359 kB / 0.6917 GB, free: 15.68 MB / 494.1 MB Notification: Performance of SimCode: time 3.71e-07/0.509, allocations: 4.422 kB / 0.6917 GB, free: 15.68 MB / 494.1 MB Notification: Performance of Templates: time 0.003691/0.5127, allocations: 1.186 MB / 0.6929 GB, free: 15.57 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)