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.001207/0.001207, allocations: 112.5 kB / 16.37 MB, free: 6.344 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.001181/0.001181, allocations: 189.5 kB / 17.3 MB, free: 5.898 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.218/1.218, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002067/0.002068, allocations: 290.9 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.8792/0.8792, allocations: 169.3 MB / 0.4989 GB, free: 4.453 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001633/0.001633, allocations: 95.86 kB / 0.6821 GB, free: 6.984 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4365/0.4381, allocations: 86.97 MB / 0.767 GB, free: 3.91 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion): time 0.004213/0.4424, allocations: 3.283 MB / 0.7702 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 7.901e-05/0.4425, allocations: 43.88 kB / 0.7702 GB, free: 0.5664 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.254e-05/0.4425, allocations: 0 / 0.7702 GB, free: 0.5664 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 9.288e-05/0.4426, allocations: 11.92 kB / 0.7703 GB, free: 0.5547 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 6.609e-05/0.4427, allocations: 7.984 kB / 0.7703 GB, free: 0.5469 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004692/0.4432, allocations: 193.2 kB / 0.7704 GB, free: 368 kB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 7.66e-05/0.4433, allocations: 35.84 kB / 0.7705 GB, free: 332 kB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.526e-05/0.4433, allocations: 0 / 0.7705 GB, free: 332 kB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 4.286e-05/0.4434, allocations: 19.92 kB / 0.7705 GB, free: 312 kB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 6.542e-05/0.4434, allocations: 7.984 kB / 0.7705 GB, free: 304 kB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.188e-05/0.4435, allocations: 4 kB / 0.7705 GB, free: 300 kB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000298/0.4438, allocations: 171.6 kB / 0.7707 GB, free: 128 kB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 4.238e-05/0.4438, allocations: 11.98 kB / 0.7707 GB, free: 116 kB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.552e-05/0.4438, allocations: 11.92 kB / 0.7707 GB, free: 104 kB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.000246/0.4441, allocations: 139.6 kB / 0.7708 GB, free: 15.97 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.4441, allocations: 4 kB / 0.7708 GB, free: 15.96 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.473e-06/0.4441, allocations: 0 / 0.7708 GB, free: 15.96 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.558e-06/0.4441, allocations: 0 / 0.7708 GB, free: 15.96 MB / 0.545 GB 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.0003637/0.4445, allocations: 341.8 kB / 0.7712 GB, free: 15.59 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.254e-05/0.4445, allocations: 8.031 kB / 0.7712 GB, free: 15.58 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.978e-05/0.4446, allocations: 8.844 kB / 0.7712 GB, free: 15.57 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.636e-05/0.4447, allocations: 172.3 kB / 0.7713 GB, free: 15.36 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.088e-05/0.4447, allocations: 30.2 kB / 0.7714 GB, free: 15.33 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.157e-06/0.4447, allocations: 4.375 kB / 0.7714 GB, free: 15.32 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001182/0.4449, allocations: 45.56 kB / 0.7714 GB, free: 15.27 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.4449, allocations: 0 / 0.7714 GB, free: 15.27 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.186e-05/0.4449, allocations: 4 kB / 0.7714 GB, free: 15.27 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.808e-05/0.4449, allocations: 3.984 kB / 0.7714 GB, free: 15.27 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.88e-05/0.445, allocations: 12 kB / 0.7714 GB, free: 15.25 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005523/0.4455, allocations: 0.5872 MB / 0.772 GB, free: 14.54 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 3.743e-05/0.4456, allocations: 18.58 kB / 0.772 GB, free: 14.52 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.435e-05/0.4456, allocations: 12.78 kB / 0.772 GB, free: 14.5 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002019/0.4458, allocations: 336.5 kB / 0.7724 GB, free: 14.1 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.358e-05/0.4458, allocations: 38.56 kB / 0.7724 GB, free: 14.05 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.4458, allocations: 0 / 0.7724 GB, free: 14.05 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.0001251/0.446, allocations: 33.7 kB / 0.7724 GB, free: 14.01 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.043e-05/0.446, allocations: 55.34 kB / 0.7725 GB, free: 13.95 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.437e-05/0.4461, allocations: 109.8 kB / 0.7726 GB, free: 13.83 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.353e-05/0.4461, allocations: 25.7 kB / 0.7726 GB, free: 13.8 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 3.721e-05/0.4462, allocations: 84.05 kB / 0.7727 GB, free: 13.71 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 7.594e-06/0.4462, allocations: 11.89 kB / 0.7727 GB, free: 13.7 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.934e-05/0.4462, allocations: 13.72 kB / 0.7727 GB, free: 13.68 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 8.981e-05/0.4463, allocations: 326.8 kB / 0.773 GB, free: 13.35 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.292e-05/0.4463, allocations: 0 / 0.773 GB, free: 13.35 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.556e-05/0.4463, allocations: 21.7 kB / 0.773 GB, free: 13.32 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.975e-05/0.4464, allocations: 17.72 kB / 0.7731 GB, free: 13.3 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-06/0.4464, allocations: 0 / 0.7731 GB, free: 13.3 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.822e-05/0.4465, allocations: 49.62 kB / 0.7731 GB, free: 13.25 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.289e-05/0.4465, allocations: 12.06 kB / 0.7731 GB, free: 13.23 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.828e-06/0.4465, allocations: 0 / 0.7731 GB, free: 13.23 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.194e-05/0.4465, allocations: 0 / 0.7731 GB, free: 13.23 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.985e-05/0.4465, allocations: 4 kB / 0.7731 GB, free: 13.23 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.909e-06/0.4466, allocations: 0 / 0.7731 GB, free: 13.23 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.992e-05/0.4466, allocations: 4 kB / 0.7731 GB, free: 13.23 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.055e-06/0.4466, allocations: 0 / 0.7731 GB, free: 13.23 MB / 0.545 GB 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 7.119e-05/0.4467, allocations: 125 kB / 0.7732 GB, free: 13.1 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.401e-05/0.4467, allocations: 0 / 0.7732 GB, free: 13.1 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.897e-05/0.4468, allocations: 124.8 kB / 0.7734 GB, free: 12.97 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.376e-05/0.4469, allocations: 176.3 kB / 0.7735 GB, free: 12.79 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.099e-05/0.4469, allocations: 192.2 kB / 0.7737 GB, free: 12.59 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.106e-05/0.447, allocations: 180.3 kB / 0.7739 GB, free: 12.41 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002022/0.4472, allocations: 405.1 kB / 0.7743 GB, free: 11.96 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.214e-05/0.4472, allocations: 113 kB / 0.7744 GB, free: 11.84 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.075e-05/0.4473, allocations: 101 kB / 0.7745 GB, free: 11.73 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.046e-05/0.4473, allocations: 184.1 kB / 0.7747 GB, free: 11.55 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.162e-05/0.4474, allocations: 176.4 kB / 0.7748 GB, free: 11.37 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.024e-05/0.4475, allocations: 192.2 kB / 0.775 GB, free: 11.17 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.108e-05/0.4475, allocations: 180.3 kB / 0.7752 GB, free: 10.99 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001192/0.4476, allocations: 307.7 kB / 0.7755 GB, free: 10.66 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 6.265e-05/0.4477, allocations: 186.1 kB / 0.7757 GB, free: 10.46 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.628e-05/0.4478, allocations: 184.2 kB / 0.7758 GB, free: 10.27 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001386/0.4479, allocations: 105 kB / 0.7759 GB, free: 10.16 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.612e-05/0.448, allocations: 188.2 kB / 0.7761 GB, free: 9.969 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.954e-05/0.448, allocations: 108.9 kB / 0.7762 GB, free: 9.855 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.284e-05/0.4481, allocations: 79.28 kB / 0.7763 GB, free: 9.777 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/0.4481, allocations: 0 / 0.7763 GB, free: 9.777 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002651/0.4483, allocations: 43.92 kB / 0.7763 GB, free: 9.734 MB / 0.545 GB 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.0002349/0.4486, allocations: 237.5 kB / 0.7766 GB, free: 9.492 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 6.547e-05/0.4487, allocations: 8 kB / 0.7766 GB, free: 9.484 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.4487, allocations: 0 / 0.7766 GB, free: 9.484 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 3.687e-06/0.4487, allocations: 7.938 kB / 0.7766 GB, free: 9.477 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004011/0.4491, allocations: 459.8 kB / 0.777 GB, free: 9.023 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002433/0.4493, allocations: 211.6 kB / 0.7772 GB, free: 8.781 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002059/0.4496, allocations: 0.6768 MB / 0.7779 GB, free: 8.078 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.937e-05/0.4496, allocations: 11.44 kB / 0.7779 GB, free: 8.066 MB / 0.545 GB Notification: Performance of SimCode: time 2.41e-07/0.4496, allocations: 4 kB / 0.7779 GB, free: 8.062 MB / 0.545 GB Notification: Performance of Templates: time 0.002361/0.4519, allocations: 1.192 MB / 0.7791 GB, free: 6.891 MB / 0.545 GB 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)