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.001016/0.001016, allocations: 99.19 kB / 16.35 MB, free: 5.824 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.0009671/0.0009671, allocations: 193.5 kB / 17.29 MB, free: 5.48 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.284/1.284, allocations: 222.9 MB / 241 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002046/0.002046, allocations: 286 kB / 291.4 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8937/0.8937, allocations: 169.3 MB / 0.4989 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001685/0.001685, allocations: 98.66 kB / 0.5967 GB, free: 14.44 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1435/0.1452, allocations: 86.97 MB / 0.6816 GB, free: 7.461 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion): time 0.004146/0.1494, allocations: 3.274 MB / 0.6848 GB, free: 4.168 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 8.957e-05/0.1495, allocations: 71.66 kB / 0.6849 GB, free: 4.098 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.17e-05/0.1495, allocations: 0 / 0.6849 GB, free: 4.098 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 7.854e-05/0.1496, allocations: 0 / 0.6849 GB, free: 4.098 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.114e-05/0.1497, allocations: 7.922 kB / 0.6849 GB, free: 4.09 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004553/0.1501, allocations: 194.5 kB / 0.685 GB, free: 3.902 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.382e-05/0.1502, allocations: 35.84 kB / 0.6851 GB, free: 3.867 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.653e-05/0.1502, allocations: 4 kB / 0.6851 GB, free: 3.863 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.304e-05/0.1503, allocations: 11.98 kB / 0.6851 GB, free: 3.852 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.194e-05/0.1503, allocations: 19.92 kB / 0.6851 GB, free: 3.832 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.009e-05/0.1504, allocations: 0 / 0.6851 GB, free: 3.832 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003088/0.1507, allocations: 175.5 kB / 0.6853 GB, free: 3.66 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.588e-05/0.1507, allocations: 4 kB / 0.6853 GB, free: 3.656 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.487e-05/0.1508, allocations: 7.984 kB / 0.6853 GB, free: 3.648 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002328/0.151, allocations: 139.6 kB / 0.6854 GB, free: 3.512 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.151, allocations: 4 kB / 0.6854 GB, free: 3.508 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.151, allocations: 0 / 0.6854 GB, free: 3.508 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.151, allocations: 4 kB / 0.6854 GB, free: 3.504 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.0003381/0.1514, allocations: 339.5 kB / 0.6858 GB, free: 3.125 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.858e-05/0.1514, allocations: 8.031 kB / 0.6858 GB, free: 3.117 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.268e-05/0.1514, allocations: 0.9375 kB / 0.6858 GB, free: 3.117 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.807e-05/0.1515, allocations: 168.4 kB / 0.6859 GB, free: 2.914 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.036e-05/0.1516, allocations: 30.25 kB / 0.686 GB, free: 2.879 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.963e-06/0.1516, allocations: 4.375 kB / 0.686 GB, free: 2.875 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001091/0.1517, allocations: 49.61 kB / 0.686 GB, free: 2.82 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.1517, allocations: 7.938 kB / 0.686 GB, free: 2.812 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.128e-06/0.1518, allocations: 3.938 kB / 0.686 GB, free: 2.809 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.478e-05/0.1518, allocations: 0 / 0.686 GB, free: 2.809 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.129e-05/0.1518, allocations: 11.98 kB / 0.686 GB, free: 2.797 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005384/0.1524, allocations: 0.5871 MB / 0.6866 GB, free: 2.086 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.244e-05/0.1524, allocations: 18.58 kB / 0.6866 GB, free: 2.059 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.258e-05/0.1524, allocations: 4.922 kB / 0.6866 GB, free: 2.051 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000205/0.1526, allocations: 348.4 kB / 0.687 GB, free: 1.637 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.178e-05/0.1527, allocations: 34.5 kB / 0.687 GB, free: 1.594 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.1527, allocations: 0 / 0.687 GB, free: 1.594 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001221/0.1528, allocations: 37.69 kB / 0.687 GB, free: 1.551 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.268e-05/0.1528, allocations: 51.53 kB / 0.6871 GB, free: 1.488 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.37e-05/0.1529, allocations: 105.8 kB / 0.6872 GB, free: 1.375 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.389e-05/0.1529, allocations: 29.7 kB / 0.6872 GB, free: 1.34 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.989e-05/0.153, allocations: 84.05 kB / 0.6873 GB, free: 1.254 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.122e-06/0.153, allocations: 7.938 kB / 0.6873 GB, free: 1.246 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.782e-05/0.153, allocations: 13.72 kB / 0.6873 GB, free: 1.227 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.485e-05/0.1531, allocations: 318.8 kB / 0.6876 GB, free: 0.9062 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.487e-05/0.1531, allocations: 11.94 kB / 0.6876 GB, free: 0.8945 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.334e-05/0.1532, allocations: 21.66 kB / 0.6876 GB, free: 0.8672 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.065e-05/0.1532, allocations: 17.72 kB / 0.6877 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.1532, allocations: 4 kB / 0.6877 GB, free: 0.8398 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.533e-05/0.1533, allocations: 49.53 kB / 0.6877 GB, free: 0.7852 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.173e-05/0.1533, allocations: 6.812 kB / 0.6877 GB, free: 0.7812 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.1533, allocations: 4 kB / 0.6877 GB, free: 0.7773 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.261e-05/0.1533, allocations: 4 kB / 0.6877 GB, free: 0.7734 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.212e-05/0.1534, allocations: 16.05 kB / 0.6877 GB, free: 0.7578 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.928e-06/0.1534, allocations: 0 / 0.6877 GB, free: 0.7578 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.609e-05/0.1534, allocations: 0 / 0.6877 GB, free: 0.7578 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.083e-05/0.1534, allocations: 4 kB / 0.6877 GB, free: 0.7539 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 5.885e-05/0.1535, allocations: 109.8 kB / 0.6878 GB, free: 0.6367 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.582e-05/0.1535, allocations: 3.938 kB / 0.6879 GB, free: 0.6328 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.661e-05/0.1536, allocations: 124.9 kB / 0.688 GB, free: 0.5 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.877e-05/0.1537, allocations: 184.3 kB / 0.6881 GB, free: 320 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-05/0.1537, allocations: 180.2 kB / 0.6883 GB, free: 132 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.2394/0.3931, allocations: 176.3 kB / 0.6885 GB, free: 18.35 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001737/0.3933, allocations: 409.9 kB / 0.6889 GB, free: 17.91 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.925e-05/0.3933, allocations: 106.5 kB / 0.689 GB, free: 17.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.363e-05/0.3933, allocations: 104.8 kB / 0.6891 GB, free: 17.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.506e-05/0.3934, allocations: 182.1 kB / 0.6893 GB, free: 17.52 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.973e-05/0.3934, allocations: 177.4 kB / 0.6894 GB, free: 17.34 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.004e-05/0.3934, allocations: 180.7 kB / 0.6896 GB, free: 17.16 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.331e-05/0.3935, allocations: 183.1 kB / 0.6898 GB, free: 16.98 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.648e-05/0.3936, allocations: 313.9 kB / 0.6901 GB, free: 16.67 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.472e-05/0.3936, allocations: 185 kB / 0.6902 GB, free: 16.47 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.048e-05/0.3937, allocations: 182 kB / 0.6904 GB, free: 16.29 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001479/0.3938, allocations: 108.9 kB / 0.6905 GB, free: 16.19 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.347e-05/0.3939, allocations: 177.6 kB / 0.6907 GB, free: 16.01 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.628e-05/0.3939, allocations: 104.5 kB / 0.6908 GB, free: 15.9 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.166e-05/0.3939, allocations: 91.89 kB / 0.6909 GB, free: 15.83 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3939, allocations: 0 / 0.6909 GB, free: 15.83 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003376/0.3943, allocations: 36.77 kB / 0.6909 GB, free: 15.83 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.0002834/0.3946, allocations: 229.5 kB / 0.6911 GB, free: 15.66 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 8.059e-05/0.3947, allocations: 10.95 kB / 0.6911 GB, free: 15.66 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3947, allocations: 1.469 kB / 0.6911 GB, free: 15.66 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 2.385e-06/0.3947, allocations: 0.75 kB / 0.6911 GB, free: 15.66 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003489/0.395, allocations: 462.6 kB / 0.6916 GB, free: 15.22 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002315/0.3953, allocations: 184.7 kB / 0.6918 GB, free: 15.05 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.123e-05/0.3954, allocations: 0.6812 MB / 0.6924 GB, free: 14.35 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 4.502e-05/0.3954, allocations: 10.36 kB / 0.6924 GB, free: 14.35 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.608e-05/0.3955, allocations: 13 kB / 0.6925 GB, free: 14.34 MB / 494.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3955, allocations: 0.5625 kB / 0.6925 GB, free: 14.34 MB / 494.1 MB Notification: Performance of Templates: time 0.003762/0.3992, allocations: 1.203 MB / 0.6936 GB, free: 14.25 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe 2>&1)