Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.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/Buildings 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion") translateModel(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_10_Buildings.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.001812/0.001812, allocations: 102.4 kB / 16.35 MB, free: 5.875 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.001946/0.001946, allocations: 191 kB / 17.29 MB, free: 5.516 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.377/1.377, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.444/2.444, allocations: 437.1 MB / 0.7112 GB, free: 4.359 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001247, allocations: 67.7 kB / 0.8707 GB, free: 1.445 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3004/0.3016, allocations: 151.6 MB / 1.019 GB, free: 9.844 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion): time 0.005068/0.3068, allocations: 3.28 MB / 1.022 GB, free: 6.543 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0001014/0.3069, allocations: 59.78 kB / 1.022 GB, free: 6.484 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.68e-05/0.3069, allocations: 0 / 1.022 GB, free: 6.484 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001077/0.307, allocations: 4 kB / 1.022 GB, free: 6.48 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 8.037e-05/0.3071, allocations: 15.92 kB / 1.022 GB, free: 6.465 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005917/0.3077, allocations: 186.7 kB / 1.022 GB, free: 6.285 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001013/0.3078, allocations: 27.92 kB / 1.022 GB, free: 6.258 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 4.989e-05/0.3079, allocations: 4 kB / 1.022 GB, free: 6.254 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 4.681e-05/0.3079, allocations: 15.92 kB / 1.022 GB, free: 6.238 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 8.955e-05/0.308, allocations: 19.92 kB / 1.022 GB, free: 6.219 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.522e-05/0.3081, allocations: 3.938 kB / 1.022 GB, free: 6.215 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003936/0.3085, allocations: 179.5 kB / 1.022 GB, free: 6.039 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 5.239e-05/0.3085, allocations: 0 / 1.022 GB, free: 6.039 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 3.287e-05/0.3086, allocations: 15.92 kB / 1.022 GB, free: 6.023 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0003203/0.3089, allocations: 135.7 kB / 1.023 GB, free: 5.891 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.3089, allocations: 0 / 1.023 GB, free: 5.891 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.094e-06/0.3089, allocations: 0 / 1.023 GB, free: 5.891 MB / 0.795 GB Notification: Performance of Transformations before backend: time 7.154e-06/0.3089, allocations: 0 / 1.023 GB, free: 5.891 MB / 0.795 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.0005374/0.3095, allocations: 355.5 kB / 1.023 GB, free: 5.496 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/0.3095, allocations: 12.62 kB / 1.023 GB, free: 5.484 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.481e-05/0.3096, allocations: 0.9375 kB / 1.023 GB, free: 5.484 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001318/0.3097, allocations: 164.4 kB / 1.023 GB, free: 5.285 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.301e-05/0.3098, allocations: 34.2 kB / 1.023 GB, free: 5.246 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.744e-06/0.3098, allocations: 384 / 1.023 GB, free: 5.246 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000117/0.3099, allocations: 45.62 kB / 1.023 GB, free: 5.195 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.762e-06/0.3099, allocations: 0 / 1.023 GB, free: 5.195 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.979e-06/0.3099, allocations: 0 / 1.023 GB, free: 5.195 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.63e-05/0.31, allocations: 8 kB / 1.023 GB, free: 5.188 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.541e-05/0.31, allocations: 15.92 kB / 1.023 GB, free: 5.172 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006191/0.3107, allocations: 0.5832 MB / 1.024 GB, free: 4.465 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 3.344e-05/0.3107, allocations: 18.58 kB / 1.024 GB, free: 4.438 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.374e-05/0.3107, allocations: 4.859 kB / 1.024 GB, free: 4.43 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002187/0.3109, allocations: 344.5 kB / 1.024 GB, free: 4.02 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.257e-05/0.311, allocations: 42.55 kB / 1.024 GB, free: 3.969 MB / 0.795 GB Notification: Performance of pre-optimization done (n=1): time 1.173e-06/0.311, allocations: 0 / 1.024 GB, free: 3.969 MB / 0.795 GB Notification: Performance of matching and sorting (n=1): time 0.0001361/0.3111, allocations: 37.64 kB / 1.024 GB, free: 3.926 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.03e-05/0.3112, allocations: 51.41 kB / 1.024 GB, free: 3.863 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.833e-05/0.3113, allocations: 101.8 kB / 1.024 GB, free: 3.754 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.475e-05/0.3113, allocations: 25.7 kB / 1.024 GB, free: 3.723 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 5.502e-05/0.3113, allocations: 88.05 kB / 1.024 GB, free: 3.633 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 5.09e-06/0.3113, allocations: 4.125 kB / 1.024 GB, free: 3.629 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.999e-05/0.3114, allocations: 17.72 kB / 1.025 GB, free: 3.605 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001088/0.3115, allocations: 318.8 kB / 1.025 GB, free: 3.285 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.58e-05/0.3115, allocations: 4 kB / 1.025 GB, free: 3.281 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.316e-05/0.3116, allocations: 17.72 kB / 1.025 GB, free: 3.258 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.378e-05/0.3116, allocations: 17.66 kB / 1.025 GB, free: 3.234 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.3116, allocations: 4 kB / 1.025 GB, free: 3.23 MB / 0.795 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.448e-05/0.3117, allocations: 53.59 kB / 1.025 GB, free: 3.172 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/0.3117, allocations: 4 kB / 1.025 GB, free: 3.168 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.521e-06/0.3117, allocations: 3.938 kB / 1.025 GB, free: 3.164 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.3117, allocations: 0 / 1.025 GB, free: 3.164 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.337e-05/0.3118, allocations: 11.98 kB / 1.025 GB, free: 3.152 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.3118, allocations: 7.875 kB / 1.025 GB, free: 3.145 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.821e-05/0.3118, allocations: 3.938 kB / 1.025 GB, free: 3.141 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.09e-05/0.3118, allocations: 4 kB / 1.025 GB, free: 3.137 MB / 0.795 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 8.485e-05/0.3119, allocations: 118.5 kB / 1.025 GB, free: 3.012 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.521e-05/0.312, allocations: 0 / 1.025 GB, free: 3.012 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001063/0.3121, allocations: 117.2 kB / 1.025 GB, free: 2.887 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.785e-05/0.3122, allocations: 184.2 kB / 1.025 GB, free: 2.699 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.211e-05/0.3122, allocations: 184.2 kB / 1.026 GB, free: 2.512 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.666e-05/0.3123, allocations: 184.2 kB / 1.026 GB, free: 2.324 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002423/0.3125, allocations: 409.2 kB / 1.026 GB, free: 1.867 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.701e-05/0.3126, allocations: 101.1 kB / 1.026 GB, free: 1.762 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.645e-05/0.3126, allocations: 112.9 kB / 1.026 GB, free: 1.645 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.867e-05/0.3127, allocations: 176.3 kB / 1.026 GB, free: 1.465 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.999e-05/0.3128, allocations: 184.2 kB / 1.027 GB, free: 1.277 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.447e-05/0.3129, allocations: 180.3 kB / 1.027 GB, free: 1.094 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.67e-05/0.3129, allocations: 180.2 kB / 1.027 GB, free: 0.9102 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001561/0.3131, allocations: 311.8 kB / 1.027 GB, free: 0.582 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 7.691e-05/0.3132, allocations: 182 kB / 1.027 GB, free: 388 kB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.897e-05/0.3133, allocations: 184.3 kB / 1.028 GB, free: 196 kB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001611/0.3134, allocations: 116.9 kB / 1.028 GB, free: 72 kB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.207e-05/0.3135, allocations: 176.3 kB / 1.028 GB, free: 15.89 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.008e-05/0.3136, allocations: 101 kB / 1.028 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.504e-05/0.3136, allocations: 91.27 kB / 1.028 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3136, allocations: 0 / 1.028 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002905/0.3139, allocations: 28 kB / 1.028 GB, free: 15.67 MB / 0.8106 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.0002784/0.3142, allocations: 246.3 kB / 1.028 GB, free: 15.42 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 7.737e-05/0.3143, allocations: 15.98 kB / 1.028 GB, free: 15.4 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3143, allocations: 0 / 1.028 GB, free: 15.4 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 1.112e-06/0.3143, allocations: 0 / 1.028 GB, free: 15.4 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004165/0.3147, allocations: 459.7 kB / 1.029 GB, free: 14.95 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002666/0.315, allocations: 189.8 kB / 1.029 GB, free: 14.74 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002407/0.3152, allocations: 0.6729 MB / 1.03 GB, free: 14.04 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.932e-05/0.3153, allocations: 10.38 kB / 1.03 GB, free: 14.03 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.662e-05/0.3153, allocations: 11.44 kB / 1.03 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of SimCode: time 2.4e-07/0.3153, allocations: 0 / 1.03 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of Templates: time 0.003449/0.3188, allocations: 1.199 MB / 1.031 GB, free: 12.87 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.makefile (rm -f Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe >> ../files/Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.sim & ./Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches