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.0008147/0.0008148, allocations: 87.42 kB / 15.07 MB, free: 1.082 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.0009068/0.0009072, allocations: 168.7 kB / 15.95 MB, free: 200 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.326/1.326, allocations: 223.3 MB / 240 MB, free: 5.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.001794/0.001794, allocations: 267.2 kB / 291.3 MB, free: 1.961 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9517/0.9517, allocations: 169.5 MB / 0.5 GB, free: 14.23 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0007359/0.000736, allocations: 17.2 kB / 0.598 GB, free: 28.44 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1498/0.1506, allocations: 88.54 MB / 0.6845 GB, free: 15.47 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion): time 0.003281/0.1539, allocations: 2.883 MB / 0.6873 GB, free: 12.58 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 8.221e-05/0.154, allocations: 45.19 kB / 0.6873 GB, free: 12.54 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.857e-05/0.154, allocations: 0 / 0.6873 GB, free: 12.54 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 7.193e-05/0.1541, allocations: 5.781 kB / 0.6873 GB, free: 12.53 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.33e-05/0.1542, allocations: 11.91 kB / 0.6874 GB, free: 12.52 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004001/0.1546, allocations: 146 kB / 0.6875 GB, free: 12.38 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.86e-05/0.1547, allocations: 47.81 kB / 0.6875 GB, free: 12.33 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.613e-05/0.1547, allocations: 0 / 0.6875 GB, free: 12.33 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.68e-05/0.1547, allocations: 12 kB / 0.6875 GB, free: 12.32 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.129e-05/0.1548, allocations: 20.41 kB / 0.6876 GB, free: 12.3 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.158e-05/0.1548, allocations: 0.5 kB / 0.6876 GB, free: 12.3 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002417/0.1551, allocations: 84.72 kB / 0.6876 GB, free: 12.22 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.094e-05/0.1551, allocations: 11.98 kB / 0.6877 GB, free: 12.21 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.566e-05/0.1552, allocations: 31.39 kB / 0.6877 GB, free: 12.17 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001359/0.1553, allocations: 64.09 kB / 0.6877 GB, free: 12.11 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.1553, allocations: 0 / 0.6877 GB, free: 12.11 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1553, allocations: 0 / 0.6877 GB, free: 12.11 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.306e-06/0.1553, allocations: 0 / 0.6877 GB, free: 12.11 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.0003209/0.1557, allocations: 340.1 kB / 0.6881 GB, free: 11.73 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.94e-05/0.1557, allocations: 8.594 kB / 0.6881 GB, free: 11.72 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.419e-05/0.1557, allocations: 5.672 kB / 0.6881 GB, free: 11.72 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001044/0.1558, allocations: 171 kB / 0.6883 GB, free: 11.51 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.931e-05/0.1559, allocations: 29.7 kB / 0.6883 GB, free: 11.48 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.394e-06/0.1559, allocations: 0 / 0.6883 GB, free: 11.48 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001085/0.156, allocations: 46.25 kB / 0.6883 GB, free: 11.43 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.593e-06/0.156, allocations: 2.562 kB / 0.6883 GB, free: 11.43 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.849e-06/0.1561, allocations: 4 kB / 0.6883 GB, free: 11.42 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.871e-05/0.1561, allocations: 7.953 kB / 0.6883 GB, free: 11.41 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.99e-05/0.1561, allocations: 11.98 kB / 0.6883 GB, free: 11.4 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005768/0.1567, allocations: 0.5852 MB / 0.6889 GB, free: 10.7 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.411e-05/0.1568, allocations: 18.52 kB / 0.6889 GB, free: 10.67 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.411e-05/0.1568, allocations: 4.859 kB / 0.6889 GB, free: 10.66 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002244/0.157, allocations: 345.2 kB / 0.6893 GB, free: 10.25 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.775e-05/0.157, allocations: 39.39 kB / 0.6893 GB, free: 10.2 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 1.262e-06/0.1571, allocations: 3.938 kB / 0.6893 GB, free: 10.2 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.000127/0.1572, allocations: 42.25 kB / 0.6894 GB, free: 10.15 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.435e-05/0.1572, allocations: 52.78 kB / 0.6894 GB, free: 10.09 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.769e-05/0.1573, allocations: 97.86 kB / 0.6895 GB, free: 9.984 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.357e-05/0.1573, allocations: 30.33 kB / 0.6895 GB, free: 9.949 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.627e-05/0.1574, allocations: 92.03 kB / 0.6896 GB, free: 9.855 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.654e-06/0.1574, allocations: 8.062 kB / 0.6896 GB, free: 9.848 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.355e-06/0.1574, allocations: 0 / 0.6896 GB, free: 9.848 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.636e-05/0.1575, allocations: 314.8 kB / 0.6899 GB, free: 9.531 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.325e-05/0.1575, allocations: 4 kB / 0.6899 GB, free: 9.527 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.086e-05/0.1575, allocations: 17.7 kB / 0.6899 GB, free: 9.504 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.082e-05/0.1576, allocations: 8 kB / 0.6899 GB, free: 9.496 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.1576, allocations: 0 / 0.6899 GB, free: 9.496 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.34e-05/0.1577, allocations: 49.62 kB / 0.69 GB, free: 9.441 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.145e-05/0.1577, allocations: 4 kB / 0.69 GB, free: 9.438 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.1577, allocations: 7.953 kB / 0.69 GB, free: 9.43 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.606e-06/0.1577, allocations: 0 / 0.69 GB, free: 9.43 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.968e-05/0.1577, allocations: 4 kB / 0.69 GB, free: 9.426 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-06/0.1578, allocations: 0 / 0.69 GB, free: 9.426 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.967e-05/0.1578, allocations: 7.906 kB / 0.69 GB, free: 9.418 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.936e-06/0.1578, allocations: 4 kB / 0.69 GB, free: 9.414 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.052e-05/0.1579, allocations: 106.6 kB / 0.6901 GB, free: 9.301 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.684e-05/0.1579, allocations: 11.98 kB / 0.6901 GB, free: 9.289 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001012/0.158, allocations: 116.9 kB / 0.6902 GB, free: 9.164 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.374e-05/0.1581, allocations: 184.2 kB / 0.6904 GB, free: 8.977 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.894e-05/0.1581, allocations: 184.2 kB / 0.6906 GB, free: 8.789 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.909e-05/0.1582, allocations: 180.2 kB / 0.6908 GB, free: 8.605 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002117/0.1584, allocations: 409.2 kB / 0.6912 GB, free: 8.148 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.914e-05/0.1585, allocations: 104.9 kB / 0.6913 GB, free: 8.039 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.849e-05/0.1585, allocations: 105 kB / 0.6914 GB, free: 7.93 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.061e-05/0.1586, allocations: 180.2 kB / 0.6915 GB, free: 7.746 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.849e-05/0.1586, allocations: 176.3 kB / 0.6917 GB, free: 7.566 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.79e-05/0.1587, allocations: 184.2 kB / 0.6919 GB, free: 7.379 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.844e-05/0.1588, allocations: 188.2 kB / 0.6921 GB, free: 7.188 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001174/0.1589, allocations: 303.8 kB / 0.6923 GB, free: 6.867 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.338e-05/0.159, allocations: 186.1 kB / 0.6925 GB, free: 6.66 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.542e-05/0.159, allocations: 184.7 kB / 0.6927 GB, free: 6.473 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001415/0.1592, allocations: 109 kB / 0.6928 GB, free: 6.359 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.719e-05/0.1593, allocations: 192.2 kB / 0.693 GB, free: 6.164 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.141e-05/0.1593, allocations: 108.9 kB / 0.6931 GB, free: 6.051 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.741e-05/0.1593, allocations: 83.28 kB / 0.6932 GB, free: 5.969 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1594, allocations: 0 / 0.6932 GB, free: 5.969 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002786/0.1596, allocations: 35.92 kB / 0.6932 GB, free: 5.934 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002342/0.1599, allocations: 236.5 kB / 0.6934 GB, free: 5.691 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 5.798e-05/0.1599, allocations: 8 kB / 0.6934 GB, free: 5.684 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.16, allocations: 4.125 kB / 0.6934 GB, free: 5.68 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 2.625e-06/0.16, allocations: 7.875 kB / 0.6934 GB, free: 5.672 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004062/0.1604, allocations: 0.5224 MB / 0.694 GB, free: 5.145 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002184/0.1606, allocations: 191.8 kB / 0.6941 GB, free: 4.926 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002208/0.1608, allocations: 0.6731 MB / 0.6948 GB, free: 4.227 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 4.035e-05/0.1609, allocations: 6.25 kB / 0.6948 GB, free: 4.223 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.802e-05/0.1609, allocations: 11.44 kB / 0.6948 GB, free: 4.211 MB / 494.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1609, allocations: 0 / 0.6948 GB, free: 4.211 MB / 494.1 MB Notification: Performance of Templates: time 0.00327/0.1642, allocations: 1.128 MB / 0.6959 GB, free: 3.133 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)