Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.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.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001697/0.001697, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002394/0.002394, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.449/1.449, allocations: 222.9 MB / 240.2 MB, free: 4.367 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.6/2.6, allocations: 437 MB / 0.7103 GB, free: 5.043 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001318, allocations: 68.14 kB / 0.8692 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5993/0.6007, allocations: 151.6 MB / 1.017 GB, free: 2.605 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.005292/0.606, allocations: 4.012 MB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0001972/0.6062, allocations: 155.5 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.891e-05/0.6063, allocations: 0 / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 9.639e-05/0.6064, allocations: 7.984 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 7.296e-05/0.6065, allocations: 15.92 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004005/0.6069, allocations: 75.69 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 8.59e-05/0.607, allocations: 35.84 kB / 1.021 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.182e-05/0.607, allocations: 7.984 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 3.878e-05/0.6071, allocations: 15.94 kB / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 6.567e-05/0.6071, allocations: 15.97 kB / 1.021 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.358e-05/0.6072, allocations: 4 kB / 1.021 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002026/0.6074, allocations: 55.81 kB / 1.022 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 4.392e-05/0.6074, allocations: 11.94 kB / 1.022 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.204e-05/0.6075, allocations: 7.984 kB / 1.022 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001232/0.6076, allocations: 39.91 kB / 1.022 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.6076, allocations: 0 / 1.022 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.372e-06/0.6076, allocations: 0 / 1.022 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.879e-06/0.6076, allocations: 0 / 1.022 GB, free: 14.12 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.0003613/0.608, allocations: 339 kB / 1.022 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.524e-05/0.608, allocations: 12.03 kB / 1.022 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.982e-05/0.6081, allocations: 4.938 kB / 1.022 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001101/0.6082, allocations: 160.4 kB / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.905e-05/0.6082, allocations: 26.27 kB / 1.022 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.342e-05/0.6083, allocations: 8.359 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000126/0.6084, allocations: 49.56 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.6084, allocations: 0 / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.998e-06/0.6084, allocations: 0 / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.97e-05/0.6084, allocations: 7.938 kB / 1.022 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.358e-05/0.6085, allocations: 19.98 kB / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004184/0.6089, allocations: 333.9 kB / 1.023 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 3.738e-05/0.609, allocations: 22.52 kB / 1.023 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.407e-05/0.609, allocations: 4.859 kB / 1.023 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 8.53e-05/0.6091, allocations: 89.16 kB / 1.023 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.031e-05/0.6091, allocations: 34.56 kB / 1.023 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.6091, allocations: 0 / 1.023 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1): time 0.0001317/0.6092, allocations: 33.7 kB / 1.023 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.893e-05/0.6093, allocations: 55.41 kB / 1.023 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.903e-05/0.6094, allocations: 101.8 kB / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.52e-05/0.6094, allocations: 25.7 kB / 1.023 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.376e-05/0.6094, allocations: 95.98 kB / 1.023 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.668e-06/0.6094, allocations: 3.938 kB / 1.023 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.209e-05/0.6095, allocations: 21.83 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.237e-05/0.6096, allocations: 318.8 kB / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.612e-05/0.6096, allocations: 4 kB / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.218e-05/0.6096, allocations: 17.7 kB / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.14e-05/0.6097, allocations: 17.72 kB / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.6097, allocations: 0 / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.104e-05/0.6098, allocations: 61.53 kB / 1.023 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.303e-05/0.6098, allocations: 4 kB / 1.023 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.6098, allocations: 4 kB / 1.023 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.192e-05/0.6098, allocations: 0 / 1.023 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.322e-05/0.6099, allocations: 8 kB / 1.023 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.139e-06/0.6099, allocations: 0 / 1.023 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.865e-05/0.6099, allocations: 3.938 kB / 1.023 GB, free: 12 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.626e-06/0.6099, allocations: 0 / 1.023 GB, free: 12 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 7.115e-05/0.61, allocations: 121.8 kB / 1.024 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.637e-05/0.61, allocations: 0 / 1.024 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001015/0.6101, allocations: 120.9 kB / 1.024 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.259e-05/0.6102, allocations: 180.3 kB / 1.024 GB, free: 11.56 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-05/0.6103, allocations: 188.2 kB / 1.024 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.903e-05/0.6103, allocations: 176.3 kB / 1.024 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002168/0.6105, allocations: 417.1 kB / 1.025 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.79e-05/0.6106, allocations: 101 kB / 1.025 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.226e-05/0.6106, allocations: 101 kB / 1.025 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.107e-05/0.6107, allocations: 180.2 kB / 1.025 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.568e-05/0.6107, allocations: 184.3 kB / 1.025 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.417e-05/0.6108, allocations: 192.2 kB / 1.025 GB, free: 9.945 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.094e-05/0.6108, allocations: 176.3 kB / 1.025 GB, free: 9.766 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001283/0.611, allocations: 303.7 kB / 1.026 GB, free: 9.445 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.833e-05/0.6111, allocations: 190 kB / 1.026 GB, free: 9.234 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.539e-05/0.6111, allocations: 184.2 kB / 1.026 GB, free: 9.047 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001438/0.6113, allocations: 109 kB / 1.026 GB, free: 8.934 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.64e-05/0.6113, allocations: 180.2 kB / 1.026 GB, free: 8.75 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.727e-05/0.6114, allocations: 104.9 kB / 1.026 GB, free: 8.641 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.325e-05/0.6114, allocations: 83.28 kB / 1.027 GB, free: 8.559 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.533e-06/0.6114, allocations: 0 / 1.027 GB, free: 8.559 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002392/0.6117, allocations: 19.94 kB / 1.027 GB, free: 8.539 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.0002005/0.6119, allocations: 202.4 kB / 1.027 GB, free: 8.332 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 7.173e-05/0.612, allocations: 4 kB / 1.027 GB, free: 8.328 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.612, allocations: 3.938 kB / 1.027 GB, free: 8.324 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 3.266e-06/0.612, allocations: 8 kB / 1.027 GB, free: 8.316 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003583/0.6123, allocations: 463.9 kB / 1.027 GB, free: 7.859 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002388/0.6126, allocations: 189.7 kB / 1.027 GB, free: 7.648 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002115/0.6128, allocations: 0.6729 MB / 1.028 GB, free: 6.949 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.095e-05/0.6129, allocations: 7.859 kB / 1.028 GB, free: 6.941 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.821e-05/0.6129, allocations: 15.44 kB / 1.028 GB, free: 6.926 MB / 0.7794 GB Notification: Performance of SimCode: time 2.41e-07/0.6129, allocations: 0 / 1.028 GB, free: 6.926 MB / 0.7794 GB Notification: Performance of Templates: time 0.002616/0.6155, allocations: 0.6367 MB / 1.029 GB, free: 6.293 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.makefile (rm -f Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.sim & ./Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches