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.001047/0.001047, allocations: 99.36 kB / 15.33 MB, free: 0.5078 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.001052/0.001052, allocations: 193.2 kB / 16.25 MB, free: 6.629 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.291/1.291, allocations: 222.9 MB / 239.9 MB, free: 4.496 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00226/0.00226, allocations: 290.8 kB / 290.4 MB, free: 2.109 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9443/0.9443, allocations: 169.2 MB / 0.4978 GB, free: 14.07 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001649/0.001649, allocations: 88.19 kB / 0.5947 GB, free: 28.46 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1455/0.1471, allocations: 86.98 MB / 0.6796 GB, free: 1.062 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion): time 0.00514/0.1523, allocations: 3.329 MB / 0.6829 GB, free: 13.73 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 9.603e-05/0.1524, allocations: 59.72 kB / 0.6829 GB, free: 13.67 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.052e-05/0.1525, allocations: 0 / 0.6829 GB, free: 13.67 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 9.004e-05/0.1525, allocations: 4 kB / 0.6829 GB, free: 13.66 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.958e-05/0.1526, allocations: 11.92 kB / 0.6829 GB, free: 13.65 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004548/0.1531, allocations: 171.4 kB / 0.6831 GB, free: 13.48 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.919e-05/0.1532, allocations: 31.92 kB / 0.6831 GB, free: 13.45 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.344e-05/0.1532, allocations: 7.922 kB / 0.6831 GB, free: 13.45 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.639e-05/0.1533, allocations: 19.92 kB / 0.6832 GB, free: 13.43 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.382e-05/0.1533, allocations: 11.92 kB / 0.6832 GB, free: 13.41 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.234e-05/0.1533, allocations: 4 kB / 0.6832 GB, free: 13.41 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002879/0.1536, allocations: 179.5 kB / 0.6833 GB, free: 13.23 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.355e-05/0.1537, allocations: 4 kB / 0.6834 GB, free: 13.23 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.127e-05/0.1537, allocations: 11.98 kB / 0.6834 GB, free: 13.22 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002174/0.1539, allocations: 135.9 kB / 0.6835 GB, free: 13.09 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.1539, allocations: 0 / 0.6835 GB, free: 13.09 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.366e-06/0.1539, allocations: 4 kB / 0.6835 GB, free: 13.08 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.518e-06/0.1539, allocations: 0 / 0.6835 GB, free: 13.08 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.0003979/0.1544, allocations: 343.5 kB / 0.6838 GB, free: 12.7 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.1544, allocations: 8.031 kB / 0.6838 GB, free: 12.69 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.964e-05/0.1544, allocations: 4.938 kB / 0.6838 GB, free: 12.69 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001268/0.1546, allocations: 176.3 kB / 0.684 GB, free: 12.48 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.083e-05/0.1546, allocations: 30.2 kB / 0.684 GB, free: 12.44 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.127e-05/0.1547, allocations: 384 / 0.684 GB, free: 12.44 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001341/0.1548, allocations: 45.62 kB / 0.6841 GB, free: 12.39 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.336e-06/0.1548, allocations: 3.938 kB / 0.6841 GB, free: 12.39 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.205e-05/0.1548, allocations: 4 kB / 0.6841 GB, free: 12.38 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.24e-05/0.1549, allocations: 0 / 0.6841 GB, free: 12.38 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.411e-05/0.1549, allocations: 11.98 kB / 0.6841 GB, free: 12.37 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006861/0.1556, allocations: 0.5872 MB / 0.6847 GB, free: 11.66 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.273e-05/0.1557, allocations: 18.52 kB / 0.6847 GB, free: 11.63 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.629e-05/0.1557, allocations: 8.922 kB / 0.6847 GB, free: 11.62 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002267/0.1559, allocations: 340.4 kB / 0.685 GB, free: 11.21 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.98e-05/0.1559, allocations: 34.56 kB / 0.6851 GB, free: 11.17 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.156, allocations: 4 kB / 0.6851 GB, free: 11.17 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001457/0.1561, allocations: 37.69 kB / 0.6851 GB, free: 11.12 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.923e-05/0.1561, allocations: 51.41 kB / 0.6851 GB, free: 11.06 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.695e-05/0.1562, allocations: 105.8 kB / 0.6852 GB, free: 10.95 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.554e-05/0.1562, allocations: 29.7 kB / 0.6853 GB, free: 10.91 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.814e-05/0.1563, allocations: 84.05 kB / 0.6854 GB, free: 10.83 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.49e-06/0.1563, allocations: 3.938 kB / 0.6854 GB, free: 10.82 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.992e-05/0.1563, allocations: 21.62 kB / 0.6854 GB, free: 10.8 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001013/0.1564, allocations: 322.9 kB / 0.6857 GB, free: 10.47 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.713e-05/0.1565, allocations: 8 kB / 0.6857 GB, free: 10.46 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.316e-05/0.1565, allocations: 21.89 kB / 0.6857 GB, free: 10.44 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.099e-05/0.1565, allocations: 13.72 kB / 0.6857 GB, free: 10.42 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.1565, allocations: 4 kB / 0.6857 GB, free: 10.41 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.048e-05/0.1566, allocations: 53.62 kB / 0.6858 GB, free: 10.36 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.272e-05/0.1566, allocations: 4 kB / 0.6858 GB, free: 10.35 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-06/0.1566, allocations: 3.938 kB / 0.6858 GB, free: 10.35 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.088e-05/0.1566, allocations: 4 kB / 0.6858 GB, free: 10.34 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.172e-05/0.1567, allocations: 7.984 kB / 0.6858 GB, free: 10.34 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.669e-06/0.1567, allocations: 0 / 0.6858 GB, free: 10.34 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.55e-05/0.1567, allocations: 0 / 0.6858 GB, free: 10.34 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.137e-05/0.1567, allocations: 4 kB / 0.6858 GB, free: 10.33 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.52e-05/0.1568, allocations: 123 kB / 0.6859 GB, free: 10.2 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.608e-05/0.1568, allocations: 8.062 kB / 0.6859 GB, free: 10.2 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.386e-05/0.1569, allocations: 114.9 kB / 0.686 GB, free: 10.07 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.047e-05/0.157, allocations: 180.3 kB / 0.6862 GB, free: 9.891 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.985e-05/0.1571, allocations: 184.2 kB / 0.6864 GB, free: 9.703 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.097e-05/0.1571, allocations: 176.3 kB / 0.6866 GB, free: 9.523 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002002/0.1573, allocations: 413.1 kB / 0.6869 GB, free: 9.062 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.268e-05/0.1574, allocations: 105 kB / 0.687 GB, free: 8.953 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.29e-05/0.1574, allocations: 105 kB / 0.6871 GB, free: 8.844 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.882e-05/0.1575, allocations: 184.3 kB / 0.6873 GB, free: 8.656 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.066e-05/0.1575, allocations: 184.3 kB / 0.6875 GB, free: 8.469 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.171e-05/0.1576, allocations: 180.2 kB / 0.6877 GB, free: 8.285 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.437e-05/0.1576, allocations: 180.3 kB / 0.6878 GB, free: 8.102 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001261/0.1578, allocations: 311.7 kB / 0.6881 GB, free: 7.773 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.438e-05/0.1578, allocations: 186 kB / 0.6883 GB, free: 7.566 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.418e-05/0.1579, allocations: 180.2 kB / 0.6885 GB, free: 7.383 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001533/0.1581, allocations: 117 kB / 0.6886 GB, free: 7.262 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.675e-05/0.1582, allocations: 184.2 kB / 0.6888 GB, free: 7.074 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.995e-05/0.1582, allocations: 101 kB / 0.6889 GB, free: 6.969 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.148e-05/0.1582, allocations: 87.27 kB / 0.689 GB, free: 6.883 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1583, allocations: 0 / 0.689 GB, free: 6.883 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002633/0.1585, allocations: 35.94 kB / 0.689 GB, free: 6.848 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.0002608/0.1588, allocations: 228.5 kB / 0.6892 GB, free: 6.613 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 7.555e-05/0.1589, allocations: 19.92 kB / 0.6892 GB, free: 6.594 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.1589, allocations: 0 / 0.6892 GB, free: 6.594 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.353e-06/0.1589, allocations: 4.125 kB / 0.6892 GB, free: 6.59 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004479/0.1593, allocations: 455.7 kB / 0.6897 GB, free: 6.141 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002902/0.1596, allocations: 189.9 kB / 0.6898 GB, free: 5.93 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002646/0.1599, allocations: 0.6729 MB / 0.6905 GB, free: 5.23 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 4.228e-05/0.16, allocations: 11.92 kB / 0.6905 GB, free: 5.219 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.694e-05/0.16, allocations: 11.44 kB / 0.6905 GB, free: 5.211 MB / 494.1 MB Notification: Performance of SimCode: time 2.6e-07/0.16, allocations: 0 / 0.6905 GB, free: 5.211 MB / 494.1 MB Notification: Performance of Templates: time 0.003478/0.1635, allocations: 1.219 MB / 0.6917 GB, free: 4.047 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)