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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001541/0.001541, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001814/0.001814, allocations: 195 kB / 16.14 MB, free: 6.648 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.426/1.426, allocations: 222.9 MB / 239.8 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.662/2.662, allocations: 437 MB / 0.7099 GB, free: 5.348 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002207/0.002207, allocations: 59.84 kB / 0.8685 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7992/0.8014, allocations: 151.6 MB / 1.017 GB, free: 2.805 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion): time 0.005474/0.807, allocations: 3.354 MB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0001103/0.8071, allocations: 47.8 kB / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.023e-05/0.8072, allocations: 4 kB / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001115/0.8073, allocations: 7.938 kB / 1.02 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 8.304e-05/0.8074, allocations: 15.91 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005182/0.8079, allocations: 163.4 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 9.456e-05/0.808, allocations: 63.8 kB / 1.02 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 3.821e-05/0.8081, allocations: 0 / 1.02 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 4.091e-05/0.8081, allocations: 12 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 8.472e-05/0.8082, allocations: 23.84 kB / 1.02 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.392e-05/0.8082, allocations: 4 kB / 1.02 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003526/0.8086, allocations: 163.6 kB / 1.02 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 5.346e-05/0.8086, allocations: 4 kB / 1.02 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.442e-05/0.8087, allocations: 15.97 kB / 1.02 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002875/0.809, allocations: 137.7 kB / 1.021 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.809, allocations: 0 / 1.021 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.042e-06/0.809, allocations: 0 / 1.021 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.25e-06/0.809, allocations: 0 / 1.021 GB, free: 14.78 MB / 0.7794 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.0005064/0.8095, allocations: 347.5 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.8096, allocations: 12.03 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.153e-05/0.8096, allocations: 4.922 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001387/0.8098, allocations: 164.4 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.077e-05/0.8098, allocations: 30.27 kB / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.311e-05/0.8099, allocations: 4.375 kB / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001499/0.81, allocations: 45.56 kB / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.81, allocations: 7.875 kB / 1.021 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.465e-05/0.8101, allocations: 0 / 1.021 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.644e-05/0.8101, allocations: 12 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.42e-05/0.8102, allocations: 11.98 kB / 1.021 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008332/0.811, allocations: 0.5832 MB / 1.022 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 6.125e-05/0.8111, allocations: 22.52 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.142e-05/0.8111, allocations: 4.859 kB / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002859/0.8114, allocations: 352.4 kB / 1.022 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.358e-05/0.8114, allocations: 34.56 kB / 1.022 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.8115, allocations: 0 / 1.022 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1): time 0.0001685/0.8116, allocations: 29.7 kB / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.524e-05/0.8117, allocations: 55.41 kB / 1.022 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001146/0.8118, allocations: 105.8 kB / 1.022 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.84e-05/0.8118, allocations: 29.64 kB / 1.022 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.292e-05/0.8119, allocations: 88.05 kB / 1.022 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.901e-06/0.8119, allocations: 4.125 kB / 1.022 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.809e-05/0.8119, allocations: 21.7 kB / 1.022 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001302/0.8121, allocations: 314.8 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.732e-05/0.8121, allocations: 4 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.176e-05/0.8121, allocations: 17.72 kB / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.906e-05/0.8122, allocations: 21.7 kB / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.8122, allocations: 0 / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.547e-05/0.8123, allocations: 53.55 kB / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.934e-05/0.8123, allocations: 9.234 kB / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/0.8123, allocations: 0 / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.8123, allocations: 0 / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.29e-05/0.8124, allocations: 4 kB / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.428e-06/0.8124, allocations: 4 kB / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.96e-05/0.8124, allocations: 0 / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.315e-05/0.8125, allocations: 0 / 1.023 GB, free: 12.04 MB / 0.7794 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 0.0001093/0.8126, allocations: 126.3 kB / 1.023 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.971e-05/0.8126, allocations: 0 / 1.023 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001395/0.8128, allocations: 123 kB / 1.023 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.476e-05/0.8128, allocations: 176.3 kB / 1.023 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.759e-05/0.813, allocations: 188.2 kB / 1.023 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.263e-05/0.813, allocations: 180.3 kB / 1.024 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003015/0.8133, allocations: 413.4 kB / 1.024 GB, free: 10.76 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.666e-05/0.8134, allocations: 105 kB / 1.024 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.821e-05/0.8135, allocations: 105 kB / 1.024 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.246e-05/0.8136, allocations: 180.2 kB / 1.024 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.243e-05/0.8137, allocations: 176.3 kB / 1.025 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.311e-05/0.8137, allocations: 188.2 kB / 1.025 GB, free: 9.984 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.546e-05/0.8138, allocations: 188.2 kB / 1.025 GB, free: 9.793 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002042/0.814, allocations: 307.7 kB / 1.025 GB, free: 9.469 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 8.464e-05/0.8141, allocations: 178.1 kB / 1.025 GB, free: 9.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001236/0.8143, allocations: 196.2 kB / 1.026 GB, free: 9.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000182/0.8145, allocations: 101 kB / 1.026 GB, free: 8.965 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/0.8146, allocations: 188.2 kB / 1.026 GB, free: 8.773 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.736e-05/0.8146, allocations: 101 kB / 1.026 GB, free: 8.668 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.901e-05/0.8147, allocations: 83.27 kB / 1.026 GB, free: 8.586 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.2e-07/0.8147, allocations: 0 / 1.026 GB, free: 8.586 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003564/0.8151, allocations: 39.94 kB / 1.026 GB, free: 8.547 MB / 0.7794 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.0004187/0.8155, allocations: 234.7 kB / 1.026 GB, free: 8.309 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001104/0.8156, allocations: 23.92 kB / 1.026 GB, free: 8.285 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.8156, allocations: 0 / 1.026 GB, free: 8.285 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.462e-06/0.8156, allocations: 0 / 1.026 GB, free: 8.285 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005716/0.8162, allocations: 0.5185 MB / 1.027 GB, free: 7.762 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000337/0.8166, allocations: 195.6 kB / 1.027 GB, free: 7.543 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002913/0.8169, allocations: 0.677 MB / 1.028 GB, free: 6.84 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.905e-05/0.8169, allocations: 6.531 kB / 1.028 GB, free: 6.836 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.793e-05/0.8169, allocations: 7.438 kB / 1.028 GB, free: 6.828 MB / 0.7794 GB Notification: Performance of SimCode: time 2.4e-07/0.8169, allocations: 4 kB / 1.028 GB, free: 6.824 MB / 0.7794 GB Notification: Performance of Templates: time 0.004053/0.821, allocations: 1.185 MB / 1.029 GB, free: 5.684 MB / 0.7794 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 -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/jenkins/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