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.001261/0.001261, allocations: 113.5 kB / 16.37 MB, free: 6.012 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.001255/0.001255, allocations: 191.4 kB / 17.31 MB, free: 5.613 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.226/1.226, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002024/0.002024, allocations: 294.4 kB / 291.4 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8817/0.8817, allocations: 169.3 MB / 0.4989 GB, free: 4.465 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001694/0.001694, allocations: 95.69 kB / 0.5967 GB, free: 14.45 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1374/0.1391, allocations: 86.98 MB / 0.6816 GB, free: 7.469 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.004788/0.1439, allocations: 4.005 MB / 0.6855 GB, free: 3.434 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001703/0.1441, allocations: 163.5 kB / 0.6857 GB, free: 3.273 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.22e-05/0.1441, allocations: 0 / 0.6857 GB, free: 3.273 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 8.136e-05/0.1442, allocations: 11.92 kB / 0.6857 GB, free: 3.262 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.925e-05/0.1443, allocations: 11.92 kB / 0.6857 GB, free: 3.25 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002848/0.1446, allocations: 78.88 kB / 0.6858 GB, free: 3.176 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.393e-05/0.1446, allocations: 35.84 kB / 0.6858 GB, free: 3.141 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.498e-05/0.1447, allocations: 3.984 kB / 0.6858 GB, free: 3.137 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.279e-05/0.1447, allocations: 16 kB / 0.6858 GB, free: 3.121 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.976e-05/0.1448, allocations: 19.91 kB / 0.6858 GB, free: 3.102 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.214e-05/0.1448, allocations: 4 kB / 0.6858 GB, free: 3.098 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001584/0.145, allocations: 51.81 kB / 0.6859 GB, free: 3.047 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.687e-05/0.145, allocations: 8 kB / 0.6859 GB, free: 3.039 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.618e-05/0.145, allocations: 11.97 kB / 0.6859 GB, free: 3.027 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001083/0.1452, allocations: 39.86 kB / 0.6859 GB, free: 2.988 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.1452, allocations: 4 kB / 0.6859 GB, free: 2.984 MB / 494.1 MB Notification: Performance of FrontEnd: time 9.297e-06/0.1452, allocations: 0 / 0.6859 GB, free: 2.984 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.597e-06/0.1452, allocations: 3.938 kB / 0.6859 GB, free: 2.98 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.0003161/0.1455, allocations: 335.6 kB / 0.6863 GB, free: 2.605 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.954e-05/0.1455, allocations: 8.031 kB / 0.6863 GB, free: 2.598 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.334e-05/0.1456, allocations: 4.938 kB / 0.6863 GB, free: 2.594 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.91e-05/0.1457, allocations: 164.3 kB / 0.6864 GB, free: 2.395 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.014e-05/0.1457, allocations: 30.25 kB / 0.6865 GB, free: 2.359 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.298e-06/0.1458, allocations: 384 / 0.6865 GB, free: 2.359 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001054/0.1459, allocations: 49.62 kB / 0.6865 GB, free: 2.305 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.131e-06/0.1459, allocations: 0 / 0.6865 GB, free: 2.305 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.486e-06/0.1459, allocations: 0 / 0.6865 GB, free: 2.305 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.723e-05/0.1459, allocations: 7.984 kB / 0.6865 GB, free: 2.297 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.022e-05/0.146, allocations: 19.94 kB / 0.6865 GB, free: 2.277 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003724/0.1463, allocations: 330 kB / 0.6869 GB, free: 1.887 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.606e-05/0.1464, allocations: 22.58 kB / 0.6869 GB, free: 1.855 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.26e-05/0.1464, allocations: 12.73 kB / 0.6869 GB, free: 1.84 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.3e-05/0.1465, allocations: 89.16 kB / 0.687 GB, free: 1.734 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.809e-05/0.1465, allocations: 34.56 kB / 0.687 GB, free: 1.691 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.1465, allocations: 0 / 0.687 GB, free: 1.691 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001156/0.1466, allocations: 33.64 kB / 0.687 GB, free: 1.652 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.938e-05/0.1467, allocations: 63.39 kB / 0.6871 GB, free: 1.578 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.845e-05/0.1468, allocations: 93.86 kB / 0.6872 GB, free: 1.477 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.363e-05/0.1468, allocations: 25.7 kB / 0.6872 GB, free: 1.445 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.672e-05/0.1468, allocations: 88.05 kB / 0.6873 GB, free: 1.355 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.799e-06/0.1468, allocations: 7.984 kB / 0.6873 GB, free: 1.348 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.984e-05/0.1469, allocations: 21.75 kB / 0.6873 GB, free: 1.32 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.776e-05/0.147, allocations: 318.8 kB / 0.6876 GB, free: 1 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.238e-05/0.147, allocations: 0 / 0.6876 GB, free: 1 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.09e-05/0.147, allocations: 21.89 kB / 0.6877 GB, free: 0.9727 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.097e-05/0.1471, allocations: 25.66 kB / 0.6877 GB, free: 0.9414 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.1471, allocations: 0 / 0.6877 GB, free: 0.9414 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.798e-05/0.1471, allocations: 49.69 kB / 0.6877 GB, free: 0.8867 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.156e-05/0.1471, allocations: 8 kB / 0.6877 GB, free: 0.8789 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.945e-06/0.1472, allocations: 0 / 0.6877 GB, free: 0.8789 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.101e-05/0.1472, allocations: 4.094 kB / 0.6877 GB, free: 0.875 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.819e-05/0.1472, allocations: 11.92 kB / 0.6877 GB, free: 0.8633 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/0.1472, allocations: 4 kB / 0.6878 GB, free: 0.8594 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.707e-05/0.1472, allocations: 0 / 0.6878 GB, free: 0.8594 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.694e-06/0.1473, allocations: 0 / 0.6878 GB, free: 0.8594 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.955e-05/0.1473, allocations: 121.8 kB / 0.6879 GB, free: 0.7305 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.459e-05/0.1474, allocations: 0 / 0.6879 GB, free: 0.7305 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.076e-05/0.1475, allocations: 120.9 kB / 0.688 GB, free: 0.6055 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.417e-05/0.1475, allocations: 184.2 kB / 0.6882 GB, free: 428 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-05/0.1476, allocations: 176.3 kB / 0.6883 GB, free: 244 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.429e-05/0.1476, allocations: 184.2 kB / 0.6885 GB, free: 52 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2283/0.3759, allocations: 406.2 kB / 0.6889 GB, free: 18.85 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-05/0.376, allocations: 102.6 kB / 0.689 GB, free: 18.75 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.282e-05/0.376, allocations: 103.9 kB / 0.6891 GB, free: 18.64 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.088e-05/0.376, allocations: 181.6 kB / 0.6893 GB, free: 18.46 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.148e-05/0.376, allocations: 181.8 kB / 0.6894 GB, free: 18.28 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.157e-05/0.3761, allocations: 183 kB / 0.6896 GB, free: 18.1 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-05/0.3761, allocations: 181.9 kB / 0.6898 GB, free: 17.92 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.448e-05/0.3762, allocations: 312.6 kB / 0.6901 GB, free: 17.61 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.981e-05/0.3762, allocations: 180.2 kB / 0.6903 GB, free: 17.41 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.787e-05/0.3763, allocations: 185.7 kB / 0.6904 GB, free: 17.23 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001429/0.3764, allocations: 108.7 kB / 0.6905 GB, free: 17.13 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.434e-05/0.3764, allocations: 191.5 kB / 0.6907 GB, free: 16.95 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.198e-05/0.3765, allocations: 103.4 kB / 0.6908 GB, free: 16.84 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.638e-05/0.3765, allocations: 82.25 kB / 0.6909 GB, free: 16.77 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3765, allocations: 0 / 0.6909 GB, free: 16.77 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002817/0.3768, allocations: 20.5 kB / 0.6909 GB, free: 16.77 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.00023/0.377, allocations: 193.1 kB / 0.6911 GB, free: 16.6 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 8.031e-05/0.3771, allocations: 14.02 kB / 0.6911 GB, free: 16.6 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3771, allocations: 3.656 kB / 0.6911 GB, free: 16.6 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.573e-06/0.3771, allocations: 0 / 0.6911 GB, free: 16.6 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000279/0.3774, allocations: 461.5 kB / 0.6916 GB, free: 16.15 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002061/0.3776, allocations: 179.1 kB / 0.6917 GB, free: 15.99 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.041e-05/0.3777, allocations: 0.6747 MB / 0.6924 GB, free: 15.29 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.984e-05/0.3778, allocations: 7.359 kB / 0.6924 GB, free: 15.29 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.562e-05/0.3778, allocations: 9.781 kB / 0.6924 GB, free: 15.29 MB / 494.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3778, allocations: 3.938 kB / 0.6924 GB, free: 15.28 MB / 494.1 MB Notification: Performance of Templates: time 0.002637/0.3804, allocations: 0.6316 MB / 0.693 GB, free: 15.25 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 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1)