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.0008366/0.0008366, 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.007453/0.007453, allocations: 169.6 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.373/1.373, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001745/0.001745, allocations: 278.6 kB / 291.7 MB, free: 1.859 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.966/0.966, allocations: 169.5 MB / 0.5004 GB, free: 14.12 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004248/0.0004248, allocations: 15.03 kB / 0.5986 GB, free: 27.94 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1558/0.1562, allocations: 88.55 MB / 0.6851 GB, free: 15.07 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.00551/0.1618, allocations: 3.679 MB / 0.6887 GB, free: 11.37 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002473/0.1621, allocations: 148.6 kB / 0.6888 GB, free: 11.23 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.134e-05/0.1621, allocations: 0 / 0.6888 GB, free: 11.23 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001275/0.1623, allocations: 4.531 kB / 0.6889 GB, free: 11.22 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 9.343e-05/0.1624, allocations: 12.47 kB / 0.6889 GB, free: 11.21 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003349/0.1627, allocations: 84.98 kB / 0.6889 GB, free: 11.13 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 9.986e-05/0.1628, allocations: 59.81 kB / 0.689 GB, free: 11.07 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.378e-05/0.1629, allocations: 7.938 kB / 0.689 GB, free: 11.07 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.134e-05/0.1629, allocations: 12.73 kB / 0.689 GB, free: 11.05 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.617e-05/0.163, allocations: 11.98 kB / 0.689 GB, free: 11.04 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.238e-05/0.163, allocations: 1.031 kB / 0.689 GB, free: 11.04 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002054/0.1633, allocations: 79.77 kB / 0.6891 GB, free: 10.96 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.329e-05/0.1633, allocations: 8.5 kB / 0.6891 GB, free: 10.96 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.067e-05/0.1634, allocations: 37.69 kB / 0.6892 GB, free: 10.91 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001255/0.1635, allocations: 53.77 kB / 0.6892 GB, free: 10.86 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1635, allocations: 0 / 0.6892 GB, free: 10.86 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1635, allocations: 0 / 0.6892 GB, free: 10.86 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.358e-06/0.1635, allocations: 0 / 0.6892 GB, free: 10.86 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.0004475/0.164, allocations: 322 kB / 0.6895 GB, free: 10.5 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.835e-05/0.164, allocations: 8.031 kB / 0.6895 GB, free: 10.5 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.23e-05/0.1641, allocations: 8.875 kB / 0.6895 GB, free: 10.49 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001122/0.1642, allocations: 168.3 kB / 0.6897 GB, free: 10.29 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.63e-05/0.1642, allocations: 26.27 kB / 0.6897 GB, free: 10.25 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.115e-05/0.1643, allocations: 5.031 kB / 0.6897 GB, free: 10.25 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001186/0.1644, allocations: 43.12 kB / 0.6898 GB, free: 10.2 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.1644, allocations: 0 / 0.6898 GB, free: 10.2 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.009e-05/0.1644, allocations: 0 / 0.6898 GB, free: 10.2 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.802e-05/0.1644, allocations: 0 / 0.6898 GB, free: 10.2 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.26e-05/0.1645, allocations: 23.14 kB / 0.6898 GB, free: 10.18 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000416/0.1649, allocations: 345.8 kB / 0.6901 GB, free: 9.777 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.092e-05/0.1649, allocations: 14.58 kB / 0.6901 GB, free: 9.754 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.333e-05/0.165, allocations: 4.859 kB / 0.6901 GB, free: 9.746 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.764e-05/0.1651, allocations: 89.94 kB / 0.6902 GB, free: 9.641 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.089e-05/0.1651, allocations: 39.44 kB / 0.6903 GB, free: 9.594 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.1651, allocations: 0 / 0.6903 GB, free: 9.594 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001329/0.1652, allocations: 38.33 kB / 0.6903 GB, free: 9.551 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.133e-05/0.1653, allocations: 51.91 kB / 0.6903 GB, free: 9.488 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001338/0.1654, allocations: 102.7 kB / 0.6904 GB, free: 9.379 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.211e-05/0.1655, allocations: 26.89 kB / 0.6905 GB, free: 9.348 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.487e-05/0.1655, allocations: 88.05 kB / 0.6905 GB, free: 9.258 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.951e-06/0.1655, allocations: 3.984 kB / 0.6906 GB, free: 9.254 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.075e-05/0.1655, allocations: 13.84 kB / 0.6906 GB, free: 9.234 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.1657, allocations: 322.8 kB / 0.6909 GB, free: 8.91 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.344e-05/0.1657, allocations: 7.938 kB / 0.6909 GB, free: 8.902 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.119e-05/0.1658, allocations: 13.72 kB / 0.6909 GB, free: 8.883 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.625e-05/0.1658, allocations: 29.64 kB / 0.6909 GB, free: 8.848 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1658, allocations: 0 / 0.6909 GB, free: 8.848 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.133e-05/0.1659, allocations: 49.61 kB / 0.691 GB, free: 8.793 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.33e-05/0.1659, allocations: 7.984 kB / 0.691 GB, free: 8.785 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.038e-06/0.1659, allocations: 0 / 0.691 GB, free: 8.785 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.12e-05/0.1659, allocations: 4 kB / 0.691 GB, free: 8.781 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.071e-05/0.166, allocations: 7.938 kB / 0.691 GB, free: 8.773 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.99e-06/0.166, allocations: 0 / 0.691 GB, free: 8.773 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.742e-05/0.166, allocations: 0 / 0.691 GB, free: 8.773 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.019e-05/0.166, allocations: 4 kB / 0.691 GB, free: 8.77 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 8.412e-05/0.1661, allocations: 111.1 kB / 0.6911 GB, free: 8.652 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.483e-05/0.1661, allocations: 8.344 kB / 0.6911 GB, free: 8.645 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.621e-05/0.1662, allocations: 117 kB / 0.6912 GB, free: 8.523 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.806e-05/0.1663, allocations: 188.2 kB / 0.6914 GB, free: 8.332 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.839e-05/0.1664, allocations: 176.3 kB / 0.6916 GB, free: 8.152 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-05/0.1664, allocations: 180.2 kB / 0.6917 GB, free: 7.969 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002861/0.1667, allocations: 413.2 kB / 0.6921 GB, free: 7.508 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-05/0.1668, allocations: 105 kB / 0.6922 GB, free: 7.398 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.074e-05/0.1668, allocations: 104.9 kB / 0.6923 GB, free: 7.289 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.528e-05/0.1669, allocations: 180.3 kB / 0.6925 GB, free: 7.105 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.883e-05/0.1669, allocations: 184.2 kB / 0.6927 GB, free: 6.918 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.512e-05/0.167, allocations: 176.3 kB / 0.6928 GB, free: 6.738 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.202e-05/0.167, allocations: 184.2 kB / 0.693 GB, free: 6.551 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000127/0.1672, allocations: 307.7 kB / 0.6933 GB, free: 6.227 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.212e-05/0.1673, allocations: 193.9 kB / 0.6935 GB, free: 6.012 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.692e-05/0.1673, allocations: 184.5 kB / 0.6937 GB, free: 5.824 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001455/0.1675, allocations: 112.9 kB / 0.6938 GB, free: 5.707 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.533e-05/0.1676, allocations: 180.2 kB / 0.694 GB, free: 5.523 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.555e-05/0.1676, allocations: 117 kB / 0.6941 GB, free: 5.402 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.88e-05/0.1676, allocations: 79.28 kB / 0.6941 GB, free: 5.324 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1676, allocations: 0 / 0.6941 GB, free: 5.324 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002341/0.1679, allocations: 19.94 kB / 0.6942 GB, free: 5.305 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.0002184/0.1681, allocations: 202.4 kB / 0.6944 GB, free: 5.098 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 6.142e-05/0.1682, allocations: 15.94 kB / 0.6944 GB, free: 5.082 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.1682, allocations: 0 / 0.6944 GB, free: 5.082 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.212e-06/0.1682, allocations: 0 / 0.6944 GB, free: 5.082 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004147/0.1686, allocations: 0.53 MB / 0.6949 GB, free: 4.551 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002706/0.1689, allocations: 187.9 kB / 0.6951 GB, free: 4.336 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002886/0.1692, allocations: 0.677 MB / 0.6957 GB, free: 3.633 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.753e-05/0.1692, allocations: 4 kB / 0.6957 GB, free: 3.629 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.626e-05/0.1693, allocations: 15.44 kB / 0.6957 GB, free: 3.613 MB / 494.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1693, allocations: 0 / 0.6957 GB, free: 3.613 MB / 494.1 MB Notification: Performance of Templates: time 0.002565/0.1718, allocations: 0.6046 MB / 0.6963 GB, free: 3.012 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)