Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.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.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion") translateModel(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007988/0.0007989, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0008598/0.0008599, allocations: 168.7 kB / 15.95 MB, free: 204 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.315/1.315, allocations: 223.3 MB / 240 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001757/0.001757, allocations: 278.4 kB / 291.4 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9472/0.9472, allocations: 169.5 MB / 0.5 GB, free: 14.22 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004178/0.0004179, allocations: 17.86 kB / 0.598 GB, free: 28.27 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.153/0.1535, allocations: 88.54 MB / 0.6845 GB, free: 15.47 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.003975/0.1575, allocations: 3.555 MB / 0.6879 GB, free: 11.89 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001785/0.1577, allocations: 149.1 kB / 0.6881 GB, free: 11.75 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.956e-05/0.1577, allocations: 1.625 kB / 0.6881 GB, free: 11.75 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 8.525e-05/0.1578, allocations: 0 / 0.6881 GB, free: 11.75 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 7.112e-05/0.1579, allocations: 15.91 kB / 0.6881 GB, free: 11.73 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002688/0.1582, allocations: 56.98 kB / 0.6882 GB, free: 11.68 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 8.041e-05/0.1583, allocations: 44.44 kB / 0.6882 GB, free: 11.64 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.34e-05/0.1583, allocations: 7.938 kB / 0.6882 GB, free: 11.63 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.056e-05/0.1584, allocations: 16.8 kB / 0.6882 GB, free: 11.61 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.145e-05/0.1584, allocations: 11.98 kB / 0.6882 GB, free: 11.6 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.115e-05/0.1585, allocations: 1.75 kB / 0.6882 GB, free: 11.6 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001512/0.1586, allocations: 35.86 kB / 0.6883 GB, free: 11.57 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.098e-05/0.1587, allocations: 3.984 kB / 0.6883 GB, free: 11.56 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.273e-05/0.1587, allocations: 29.7 kB / 0.6883 GB, free: 11.53 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 8.429e-05/0.1588, allocations: 34.62 kB / 0.6883 GB, free: 11.5 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1588, allocations: 0 / 0.6883 GB, free: 11.5 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1588, allocations: 0 / 0.6883 GB, free: 11.5 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.137e-06/0.1588, allocations: 4 kB / 0.6883 GB, free: 11.49 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.0003226/0.1591, allocations: 323.4 kB / 0.6886 GB, free: 11.13 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.251e-05/0.1592, allocations: 8.781 kB / 0.6887 GB, free: 11.12 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.906e-05/0.1592, allocations: 3.953 kB / 0.6887 GB, free: 11.12 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000108/0.1593, allocations: 175.6 kB / 0.6888 GB, free: 10.91 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.608e-05/0.1594, allocations: 27.58 kB / 0.6889 GB, free: 10.88 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.527e-06/0.1594, allocations: 3.984 kB / 0.6889 GB, free: 10.87 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001252/0.1595, allocations: 45.62 kB / 0.6889 GB, free: 10.82 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.283e-06/0.1596, allocations: 0 / 0.6889 GB, free: 10.82 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.041e-05/0.1596, allocations: 2.656 kB / 0.6889 GB, free: 10.82 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.865e-05/0.1596, allocations: 7.953 kB / 0.6889 GB, free: 10.81 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.221e-05/0.1597, allocations: 11.98 kB / 0.6889 GB, free: 10.8 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004132/0.1601, allocations: 334 kB / 0.6892 GB, free: 10.41 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.835e-05/0.1601, allocations: 23.3 kB / 0.6893 GB, free: 10.38 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.52e-05/0.1601, allocations: 4.859 kB / 0.6893 GB, free: 10.37 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.833e-05/0.1602, allocations: 82.89 kB / 0.6893 GB, free: 10.27 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.302e-05/0.1603, allocations: 50.5 kB / 0.6894 GB, free: 10.21 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 1.433e-06/0.1603, allocations: 0.875 kB / 0.6894 GB, free: 10.21 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001393/0.1604, allocations: 30.83 kB / 0.6894 GB, free: 10.18 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.147e-05/0.1605, allocations: 51.41 kB / 0.6895 GB, free: 10.11 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.773e-05/0.1605, allocations: 106.8 kB / 0.6896 GB, free: 10 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.324e-05/0.1606, allocations: 25.7 kB / 0.6896 GB, free: 9.969 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.506e-05/0.1606, allocations: 84.58 kB / 0.6897 GB, free: 9.883 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.101e-06/0.1606, allocations: 0 / 0.6897 GB, free: 9.883 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.985e-06/0.1606, allocations: 8.062 kB / 0.6897 GB, free: 9.875 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001014/0.1607, allocations: 318.8 kB / 0.69 GB, free: 9.555 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.503e-05/0.1608, allocations: 3.984 kB / 0.69 GB, free: 9.551 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.295e-05/0.1608, allocations: 13.72 kB / 0.69 GB, free: 9.531 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.054e-05/0.1608, allocations: 8 kB / 0.69 GB, free: 9.523 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-06/0.1608, allocations: 0 / 0.69 GB, free: 9.523 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.957e-05/0.1609, allocations: 57.56 kB / 0.6901 GB, free: 9.461 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.229e-05/0.1609, allocations: 4 kB / 0.6901 GB, free: 9.457 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.732e-06/0.1609, allocations: 7.891 kB / 0.6901 GB, free: 9.449 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.948e-06/0.161, allocations: 0 / 0.6901 GB, free: 9.449 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.471e-05/0.161, allocations: 4 kB / 0.6901 GB, free: 9.445 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/0.161, allocations: 4 kB / 0.6901 GB, free: 9.441 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.83e-05/0.161, allocations: 4 kB / 0.6901 GB, free: 9.438 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.066e-05/0.1611, allocations: 3.984 kB / 0.6901 GB, free: 9.434 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.249e-05/0.1611, allocations: 114.5 kB / 0.6902 GB, free: 9.312 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.448e-05/0.1612, allocations: 4.031 kB / 0.6902 GB, free: 9.309 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001251/0.1613, allocations: 128.8 kB / 0.6903 GB, free: 9.176 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.059e-05/0.1614, allocations: 184.2 kB / 0.6905 GB, free: 8.988 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.836e-05/0.1614, allocations: 180.3 kB / 0.6907 GB, free: 8.805 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.716e-05/0.1615, allocations: 180.2 kB / 0.6909 GB, free: 8.621 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002076/0.1617, allocations: 409.2 kB / 0.6912 GB, free: 8.164 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.133e-05/0.1617, allocations: 104.9 kB / 0.6913 GB, free: 8.055 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.405e-05/0.1618, allocations: 101 kB / 0.6914 GB, free: 7.949 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.428e-05/0.1619, allocations: 176.3 kB / 0.6916 GB, free: 7.77 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.375e-05/0.1619, allocations: 188.2 kB / 0.6918 GB, free: 7.578 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.192e-05/0.162, allocations: 176.3 kB / 0.692 GB, free: 7.398 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.9e-05/0.1621, allocations: 192.2 kB / 0.6921 GB, free: 7.203 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001211/0.1622, allocations: 295.8 kB / 0.6924 GB, free: 6.891 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.036e-05/0.1623, allocations: 198.2 kB / 0.6926 GB, free: 6.672 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.162e-05/0.1623, allocations: 176.3 kB / 0.6928 GB, free: 6.492 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001494/0.1625, allocations: 116.9 kB / 0.6929 GB, free: 6.371 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.271e-05/0.1626, allocations: 188.2 kB / 0.6931 GB, free: 6.18 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.139e-05/0.1626, allocations: 101 kB / 0.6932 GB, free: 6.074 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.822e-05/0.1627, allocations: 91.22 kB / 0.6933 GB, free: 5.984 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1627, allocations: 0 / 0.6933 GB, free: 5.984 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002438/0.1629, allocations: 23.92 kB / 0.6933 GB, free: 5.961 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.0001685/0.1631, allocations: 190.5 kB / 0.6935 GB, free: 5.766 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 6.711e-05/0.1632, allocations: 4 kB / 0.6935 GB, free: 5.762 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.1632, allocations: 4 kB / 0.6935 GB, free: 5.758 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.263e-06/0.1632, allocations: 0 / 0.6935 GB, free: 5.758 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004377/0.1636, allocations: 0.5185 MB / 0.694 GB, free: 5.234 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002369/0.1639, allocations: 195.9 kB / 0.6942 GB, free: 5.012 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002299/0.1641, allocations: 0.677 MB / 0.6948 GB, free: 4.309 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.988e-05/0.1642, allocations: 4 kB / 0.6948 GB, free: 4.305 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.769e-05/0.1642, allocations: 7.438 kB / 0.6948 GB, free: 4.297 MB / 494.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1642, allocations: 0 / 0.6948 GB, free: 4.297 MB / 494.1 MB Notification: Performance of Templates: time 0.0026/0.1668, allocations: 0.5591 MB / 0.6954 GB, free: 3.742 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.makefile (rm -f BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.sim & ./BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1)