Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck.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.SteamSaturationConsistencyCheck,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSat0|TSat|pSat|hlvErr|hlErr|hvErr|hlvIF97|hlvWatSte|hlIF97|hlWat|hvIF97|hvSte",fileNamePrefix="Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck") translateModel(Buildings.Media.Examples.SteamSaturationConsistencyCheck,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSat0|TSat|pSat|hlvErr|hlErr|hvErr|hlvIF97|hlvWatSte|hlIF97|hlWat|hvIF97|hvSte",fileNamePrefix="Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001327/0.001327, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001383/0.001383, allocations: 198.4 kB / 16.14 MB, free: 6.711 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.415/1.415, allocations: 222.9 MB / 239.8 MB, free: 4.621 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.653/2.653, allocations: 437 MB / 0.7099 GB, free: 5.344 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 67.89 kB / 0.8685 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8853/0.8865, allocations: 151.6 MB / 1.017 GB, free: 2.773 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamSaturationConsistencyCheck): time 0.1756/1.062, allocations: 133.5 MB / 1.147 GB, free: 12.8 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.01185/1.074, allocations: 8.495 MB / 1.155 GB, free: 4.273 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.798e-05/1.074, allocations: 0 / 1.155 GB, free: 4.273 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0002185/1.074, allocations: 27.88 kB / 1.155 GB, free: 4.246 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 7.416e-05/1.075, allocations: 15.84 kB / 1.155 GB, free: 4.23 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.003846/1.078, allocations: 1.163 MB / 1.156 GB, free: 3.07 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0001385/1.079, allocations: 67.72 kB / 1.156 GB, free: 3.004 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 5.309e-05/1.079, allocations: 8 kB / 1.156 GB, free: 2.996 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001785/1.079, allocations: 43.83 kB / 1.157 GB, free: 2.953 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001127/1.079, allocations: 39.83 kB / 1.157 GB, free: 2.914 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 1.943e-05/1.079, allocations: 4 kB / 1.157 GB, free: 2.91 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005205/1.084, allocations: 2.645 MB / 1.159 GB, free: 268 kB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 2.909e-05/1.084, allocations: 11.98 kB / 1.159 GB, free: 256 kB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 5.874e-05/1.084, allocations: 39.8 kB / 1.159 GB, free: 216 kB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.003086/1.087, allocations: 1.372 MB / 1.161 GB, free: 14.84 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/1.087, allocations: 0 / 1.161 GB, free: 14.84 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.212e-06/1.087, allocations: 0 / 1.161 GB, free: 14.84 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.3e-06/1.087, allocations: 0 / 1.161 GB, free: 14.84 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.001667/1.089, allocations: 0.4953 MB / 1.161 GB, free: 14.29 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.844e-05/1.089, allocations: 8.031 kB / 1.161 GB, free: 14.29 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004811/1.09, allocations: 24.83 kB / 1.161 GB, free: 14.26 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001449/1.09, allocations: 172.3 kB / 1.161 GB, free: 14.05 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.252e-05/1.09, allocations: 30.27 kB / 1.161 GB, free: 14.02 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.3e-05/1.09, allocations: 11.94 kB / 1.161 GB, free: 14.01 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004234/1.09, allocations: 121.5 kB / 1.161 GB, free: 13.88 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/1.09, allocations: 4 kB / 1.161 GB, free: 13.88 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.833e-05/1.09, allocations: 4 kB / 1.161 GB, free: 13.88 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.593e-06/1.09, allocations: 7.938 kB / 1.161 GB, free: 13.87 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002885/1.091, allocations: 111.9 kB / 1.161 GB, free: 13.76 MB / 0.92 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005373/1.091, allocations: 380 kB / 1.162 GB, free: 13.32 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002613/1.092, allocations: 123.2 kB / 1.162 GB, free: 13.2 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.068e-05/1.092, allocations: 56.84 kB / 1.162 GB, free: 13.14 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01125/1.103, allocations: 4.207 MB / 1.166 GB, free: 8.613 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.086e-05/1.103, allocations: 34.56 kB / 1.166 GB, free: 8.57 MB / 0.92 GB Notification: Performance of pre-optimization done (n=13): time 2.114e-06/1.103, allocations: 3.938 kB / 1.166 GB, free: 8.566 MB / 0.92 GB Notification: Performance of matching and sorting (n=13): time 0.0005651/1.104, allocations: 164 kB / 1.166 GB, free: 8.402 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.395e-05/1.104, allocations: 63.33 kB / 1.166 GB, free: 8.328 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.476e-05/1.104, allocations: 97.86 kB / 1.166 GB, free: 8.223 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.881e-05/1.104, allocations: 25.7 kB / 1.166 GB, free: 8.191 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.208e-05/1.104, allocations: 88.14 kB / 1.167 GB, free: 8.102 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 4.653e-05/1.104, allocations: 43.44 kB / 1.167 GB, free: 8.059 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.506e-05/1.104, allocations: 29.7 kB / 1.167 GB, free: 8.023 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001231/1.104, allocations: 318.8 kB / 1.167 GB, free: 7.703 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.267e-05/1.104, allocations: 28 kB / 1.167 GB, free: 7.676 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.64e-05/1.104, allocations: 27.98 kB / 1.167 GB, free: 7.648 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001175/1.104, allocations: 73.84 kB / 1.167 GB, free: 7.574 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/1.104, allocations: 0 / 1.167 GB, free: 7.574 MB / 0.92 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001906/1.104, allocations: 105.6 kB / 1.167 GB, free: 7.465 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/1.104, allocations: 4 kB / 1.167 GB, free: 7.461 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/1.104, allocations: 0 / 1.167 GB, free: 7.461 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/1.104, allocations: 0 / 1.167 GB, free: 7.461 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001284/1.105, allocations: 23.98 kB / 1.167 GB, free: 7.438 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/1.105, allocations: 0 / 1.167 GB, free: 7.438 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.663e-05/1.105, allocations: 11.84 kB / 1.167 GB, free: 7.426 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.717e-05/1.105, allocations: 11.98 kB / 1.167 GB, free: 7.414 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (13): * Single equations (assignments): 13 * 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 9.064e-05/1.105, allocations: 114.4 kB / 1.167 GB, free: 7.293 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.632e-05/1.105, allocations: 7.906 kB / 1.167 GB, free: 7.285 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004814/1.105, allocations: 367.7 kB / 1.168 GB, free: 6.926 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.284e-05/1.105, allocations: 8 kB / 1.168 GB, free: 6.918 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/1.105, allocations: 0 / 1.168 GB, free: 6.918 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/1.105, allocations: 3.938 kB / 1.168 GB, free: 6.914 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003145/1.106, allocations: 285.4 kB / 1.168 GB, free: 6.586 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.868e-06/1.106, allocations: 0 / 1.168 GB, free: 6.586 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001007/1.106, allocations: 19.98 kB / 1.168 GB, free: 6.566 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/1.106, allocations: 0 / 1.168 GB, free: 6.566 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.212e-05/1.106, allocations: 7.938 kB / 1.168 GB, free: 6.559 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/1.106, allocations: 4 kB / 1.168 GB, free: 6.555 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/1.106, allocations: 7.938 kB / 1.168 GB, free: 6.547 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003971/1.106, allocations: 330.9 kB / 1.168 GB, free: 6.207 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001008/1.106, allocations: 104.8 kB / 1.168 GB, free: 6.086 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.875e-05/1.106, allocations: 7.938 kB / 1.168 GB, free: 6.078 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000142/1.107, allocations: 8 kB / 1.168 GB, free: 6.07 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.792e-05/1.107, allocations: 7.984 kB / 1.168 GB, free: 6.062 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.006e-05/1.107, allocations: 11.92 kB / 1.168 GB, free: 6.051 MB / 0.92 GB Notification: Performance of sorting global known variables: time 4.594e-05/1.107, allocations: 83.28 kB / 1.169 GB, free: 5.969 MB / 0.92 GB Notification: Performance of sort global known variables: time 3.11e-07/1.107, allocations: 0 / 1.169 GB, free: 5.969 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.00102/1.108, allocations: 299.9 kB / 1.169 GB, free: 5.676 MB / 0.92 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($cse1.region3boundary,$cse2.region3boundary) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.001513/1.109, allocations: 405.5 kB / 1.169 GB, free: 5.277 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002371/1.109, allocations: 124 kB / 1.169 GB, free: 5.156 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/1.11, allocations: 0 / 1.169 GB, free: 5.156 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001394/1.11, allocations: 111.9 kB / 1.169 GB, free: 5.047 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003297/1.11, allocations: 11.98 kB / 1.169 GB, free: 5.035 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006125/1.111, allocations: 382.2 kB / 1.17 GB, free: 4.633 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002919/1.111, allocations: 0.7169 MB / 1.171 GB, free: 3.891 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0001212/1.111, allocations: 36.27 kB / 1.171 GB, free: 3.855 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.852e-05/1.111, allocations: 11.44 kB / 1.171 GB, free: 3.844 MB / 0.92 GB Notification: Performance of SimCode: time 5.11e-07/1.111, allocations: 4 kB / 1.171 GB, free: 3.84 MB / 0.92 GB Notification: Performance of Templates: time 0.01694/1.128, allocations: 9.744 MB / 1.18 GB, free: 10.09 MB / 0.9356 GB make -j1 -f Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck.makefile (rm -f Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe ; mkfifo Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe >> ../files/Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck.sim & ./Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Examples_SteamSaturationConsistencyCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches