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.005271/0.005271, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001143/0.001143, allocations: 192.2 kB / 16.67 MB, free: 5.523 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.33/1.33, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002035/0.002035, allocations: 292.8 kB / 290.8 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.9368/0.9368, allocations: 169.3 MB / 0.4983 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001744/0.001744, allocations: 95.84 kB / 0.6815 GB, free: 6.988 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4488/0.4506, allocations: 86.97 MB / 0.7664 GB, free: 3.969 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion): time 0.005006/0.4556, allocations: 3.282 MB / 0.7696 GB, free: 0.6719 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0001044/0.4558, allocations: 47.86 kB / 0.7696 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.76e-05/0.4558, allocations: 4 kB / 0.7696 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001051/0.4559, allocations: 3.938 kB / 0.7697 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 8.049e-05/0.456, allocations: 11.91 kB / 0.7697 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005281/0.4565, allocations: 184.7 kB / 0.7698 GB, free: 436 kB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 9.487e-05/0.4566, allocations: 39.83 kB / 0.7699 GB, free: 396 kB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.285e-05/0.4567, allocations: 4 kB / 0.7699 GB, free: 392 kB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 3.987e-05/0.4567, allocations: 11.94 kB / 0.7699 GB, free: 380 kB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 8.113e-05/0.4568, allocations: 19.97 kB / 0.7699 GB, free: 360 kB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.387e-05/0.4568, allocations: 0 / 0.7699 GB, free: 360 kB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000325/0.4572, allocations: 179.5 kB / 0.7701 GB, free: 180 kB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 4.673e-05/0.4572, allocations: 7.984 kB / 0.7701 GB, free: 172 kB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.057e-05/0.4573, allocations: 15.92 kB / 0.7701 GB, free: 156 kB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.000257/0.4575, allocations: 131.4 kB / 0.7702 GB, free: 28 kB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.4575, allocations: 0 / 0.7702 GB, free: 28 kB / 0.5294 GB Notification: Performance of FrontEnd: time 1.212e-06/0.4576, allocations: 0 / 0.7702 GB, free: 28 kB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.731e-06/0.4576, allocations: 0 / 0.7702 GB, free: 28 kB / 0.5294 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.0004121/0.458, allocations: 338.1 kB / 0.7706 GB, free: 15.65 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.728e-05/0.458, allocations: 12.03 kB / 0.7706 GB, free: 15.64 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.142e-05/0.4581, allocations: 8.844 kB / 0.7706 GB, free: 15.63 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001124/0.4582, allocations: 172.2 kB / 0.7707 GB, free: 15.43 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.241e-05/0.4583, allocations: 30.27 kB / 0.7708 GB, free: 15.39 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.075e-06/0.4583, allocations: 384 / 0.7708 GB, free: 15.39 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001232/0.4584, allocations: 45.62 kB / 0.7708 GB, free: 15.34 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.324e-06/0.4584, allocations: 0 / 0.7708 GB, free: 15.34 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.258e-05/0.4584, allocations: 8 kB / 0.7708 GB, free: 15.33 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.697e-05/0.4585, allocations: 0 / 0.7708 GB, free: 15.33 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.631e-05/0.4585, allocations: 15.98 kB / 0.7708 GB, free: 15.32 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005975/0.4591, allocations: 0.5872 MB / 0.7714 GB, free: 14.61 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 3.908e-05/0.4592, allocations: 18.52 kB / 0.7714 GB, free: 14.58 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.554e-05/0.4592, allocations: 4.859 kB / 0.7714 GB, free: 14.57 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002116/0.4594, allocations: 348.5 kB / 0.7718 GB, free: 14.16 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.402e-05/0.4594, allocations: 30.56 kB / 0.7718 GB, free: 14.12 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 2.645e-06/0.4595, allocations: 4 kB / 0.7718 GB, free: 14.11 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.0001611/0.4596, allocations: 41.62 kB / 0.7718 GB, free: 14.07 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.874e-05/0.4597, allocations: 55.34 kB / 0.7719 GB, free: 14 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.71e-05/0.4598, allocations: 101.8 kB / 0.772 GB, free: 13.89 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.501e-05/0.4598, allocations: 29.64 kB / 0.772 GB, free: 13.86 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 4.574e-05/0.4598, allocations: 92.05 kB / 0.7721 GB, free: 13.76 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 5.991e-06/0.4598, allocations: 3.906 kB / 0.7721 GB, free: 13.76 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.817e-05/0.4599, allocations: 13.72 kB / 0.7721 GB, free: 13.74 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.575e-05/0.46, allocations: 322.9 kB / 0.7724 GB, free: 13.41 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.522e-05/0.46, allocations: 7.984 kB / 0.7724 GB, free: 13.41 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.118e-05/0.46, allocations: 13.72 kB / 0.7724 GB, free: 13.39 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.327e-05/0.4601, allocations: 17.72 kB / 0.7725 GB, free: 13.36 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.4601, allocations: 0 / 0.7725 GB, free: 13.36 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.741e-05/0.4602, allocations: 57.66 kB / 0.7725 GB, free: 13.3 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.259e-05/0.4602, allocations: 4 kB / 0.7725 GB, free: 13.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/0.4602, allocations: 0 / 0.7725 GB, free: 13.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/0.4602, allocations: 0 / 0.7725 GB, free: 13.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.793e-05/0.4603, allocations: 11.98 kB / 0.7725 GB, free: 13.29 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.4603, allocations: 0 / 0.7725 GB, free: 13.29 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.619e-05/0.4603, allocations: 0 / 0.7725 GB, free: 13.29 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.084e-05/0.4603, allocations: 4 kB / 0.7725 GB, free: 13.28 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 6.321e-05/0.4604, allocations: 113.7 kB / 0.7726 GB, free: 13.16 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.573e-05/0.4604, allocations: 0 / 0.7726 GB, free: 13.16 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001093/0.4605, allocations: 128.9 kB / 0.7728 GB, free: 13.03 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.076e-05/0.4606, allocations: 180.2 kB / 0.7729 GB, free: 12.84 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.653e-05/0.4606, allocations: 184.3 kB / 0.7731 GB, free: 12.66 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.677e-05/0.4607, allocations: 176.3 kB / 0.7733 GB, free: 12.48 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000212/0.4609, allocations: 417.1 kB / 0.7737 GB, free: 12.01 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.939e-05/0.461, allocations: 101 kB / 0.7738 GB, free: 11.91 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.502e-05/0.461, allocations: 108.9 kB / 0.7739 GB, free: 11.79 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.254e-05/0.4611, allocations: 176.3 kB / 0.774 GB, free: 11.61 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.649e-05/0.4611, allocations: 180.4 kB / 0.7742 GB, free: 11.43 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.253e-05/0.4612, allocations: 188.2 kB / 0.7744 GB, free: 11.24 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.729e-05/0.4612, allocations: 180.3 kB / 0.7746 GB, free: 11.05 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001169/0.4614, allocations: 307.7 kB / 0.7749 GB, free: 10.73 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 6.617e-05/0.4614, allocations: 186.1 kB / 0.775 GB, free: 10.52 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.999e-05/0.4615, allocations: 180.2 kB / 0.7752 GB, free: 10.34 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001426/0.4617, allocations: 120.9 kB / 0.7753 GB, free: 10.21 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.792e-05/0.4617, allocations: 180.2 kB / 0.7755 GB, free: 10.03 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.332e-05/0.4617, allocations: 101 kB / 0.7756 GB, free: 9.926 MB / 0.545 GB Notification: Performance of sorting global known variables: time 3.814e-05/0.4618, allocations: 87.27 kB / 0.7757 GB, free: 9.84 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4618, allocations: 0 / 0.7757 GB, free: 9.84 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002668/0.4621, allocations: 35.94 kB / 0.7757 GB, free: 9.805 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.0002346/0.4623, allocations: 238.4 kB / 0.7759 GB, free: 9.559 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 7.037e-05/0.4624, allocations: 15.92 kB / 0.776 GB, free: 9.543 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.4624, allocations: 0 / 0.776 GB, free: 9.543 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 1.242e-06/0.4624, allocations: 8.062 kB / 0.776 GB, free: 9.535 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004308/0.4628, allocations: 464.9 kB / 0.7764 GB, free: 9.078 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002459/0.4631, allocations: 177.9 kB / 0.7766 GB, free: 8.875 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002083/0.4633, allocations: 0.6729 MB / 0.7772 GB, free: 8.176 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 4.47e-05/0.4634, allocations: 11.98 kB / 0.7772 GB, free: 8.164 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.857e-05/0.4634, allocations: 11.44 kB / 0.7773 GB, free: 8.152 MB / 0.545 GB Notification: Performance of SimCode: time 2.3e-07/0.4634, allocations: 3.938 kB / 0.7773 GB, free: 8.148 MB / 0.545 GB Notification: Performance of Templates: time 0.003471/0.4669, allocations: 1.214 MB / 0.7784 GB, free: 6.988 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)