Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001348/0.001348, 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.001605/0.001605, allocations: 198.1 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.448/1.448, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.35/2.35, allocations: 390.2 MB / 0.6642 GB, free: 0.5898 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 71.88 kB / 0.8118 GB, free: 14.92 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.671/0.6722, allocations: 140.4 MB / 0.9489 GB, free: 9.281 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamSaturationConsistencyCheck): time 0.1559/0.8282, allocations: 133.5 MB / 1.079 GB, free: 12.15 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.01058/0.8389, allocations: 8.514 MB / 1.088 GB, free: 3.613 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.562e-05/0.8389, allocations: 0 / 1.088 GB, free: 3.613 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001795/0.8392, allocations: 19.89 kB / 1.088 GB, free: 3.594 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 5.475e-05/0.8392, allocations: 19.86 kB / 1.088 GB, free: 3.574 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.003186/0.8424, allocations: 1.158 MB / 1.089 GB, free: 2.418 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001182/0.8425, allocations: 75.64 kB / 1.089 GB, free: 2.344 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 4.258e-05/0.8426, allocations: 4 kB / 1.089 GB, free: 2.34 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001428/0.8427, allocations: 47.83 kB / 1.089 GB, free: 2.293 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 8.562e-05/0.8428, allocations: 31.84 kB / 1.089 GB, free: 2.262 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.647e-05/0.8429, allocations: 4 kB / 1.089 GB, free: 2.258 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004286/0.8472, allocations: 2.661 MB / 1.092 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.037e-05/0.8472, allocations: 11.98 kB / 1.092 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.524e-05/0.8473, allocations: 27.86 kB / 1.092 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.002244/0.8495, allocations: 1.376 MB / 1.093 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/0.8495, allocations: 8 kB / 1.093 GB, free: 14.17 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.503e-06/0.8495, allocations: 0 / 1.093 GB, free: 14.17 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.659e-06/0.8495, allocations: 0 / 1.093 GB, free: 14.17 MB / 0.8575 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.001018/0.8506, allocations: 0.4913 MB / 1.093 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/0.8506, allocations: 8.031 kB / 1.093 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004142/0.851, allocations: 20.83 kB / 1.093 GB, free: 13.6 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001193/0.8512, allocations: 172.3 kB / 1.094 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.73e-05/0.8512, allocations: 38.27 kB / 1.094 GB, free: 13.35 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.578e-05/0.8513, allocations: 11.88 kB / 1.094 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003534/0.8516, allocations: 123.4 kB / 1.094 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.754e-06/0.8516, allocations: 0 / 1.094 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.46e-05/0.8517, allocations: 0 / 1.094 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.8517, allocations: 0 / 1.094 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003002/0.852, allocations: 119.9 kB / 1.094 GB, free: 13.1 MB / 0.8575 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.0004602/0.8524, allocations: 384 kB / 1.094 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002541/0.8527, allocations: 122.6 kB / 1.094 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.549e-05/0.8528, allocations: 52.83 kB / 1.094 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01097/0.8638, allocations: 4.199 MB / 1.098 GB, free: 7.961 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.886e-05/0.8638, allocations: 38.56 kB / 1.099 GB, free: 7.914 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=13): time 1.563e-06/0.8638, allocations: 0 / 1.099 GB, free: 7.914 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13): time 0.0004937/0.8643, allocations: 167.3 kB / 1.099 GB, free: 7.746 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.006e-05/0.8644, allocations: 59.34 kB / 1.099 GB, free: 7.676 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.44e-05/0.8644, allocations: 101.8 kB / 1.099 GB, free: 7.566 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.926e-05/0.8645, allocations: 33.64 kB / 1.099 GB, free: 7.527 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.914e-05/0.8645, allocations: 84.12 kB / 1.099 GB, free: 7.441 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.683e-05/0.8646, allocations: 39.55 kB / 1.099 GB, free: 7.402 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.72e-05/0.8646, allocations: 37.61 kB / 1.099 GB, free: 7.359 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.887e-05/0.8647, allocations: 322.8 kB / 1.099 GB, free: 7.035 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.829e-05/0.8648, allocations: 23.98 kB / 1.099 GB, free: 7.012 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.714e-05/0.8648, allocations: 27.98 kB / 1.099 GB, free: 6.984 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000107/0.8649, allocations: 63.86 kB / 1.099 GB, free: 6.922 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.8649, allocations: 0 / 1.099 GB, free: 6.922 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001916/0.8651, allocations: 113.6 kB / 1.1 GB, free: 6.805 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/0.8652, allocations: 6.188 kB / 1.1 GB, free: 6.801 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.8652, allocations: 4 kB / 1.1 GB, free: 6.797 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.223e-05/0.8652, allocations: 4 kB / 1.1 GB, free: 6.793 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000127/0.8653, allocations: 19.98 kB / 1.1 GB, free: 6.773 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.8653, allocations: 4 kB / 1.1 GB, free: 6.77 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.333e-05/0.8654, allocations: 11.84 kB / 1.1 GB, free: 6.758 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.407e-05/0.8654, allocations: 7.984 kB / 1.1 GB, free: 6.75 MB / 0.8575 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 7.459e-05/0.8655, allocations: 109.8 kB / 1.1 GB, free: 6.633 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.698e-05/0.8656, allocations: 4 kB / 1.1 GB, free: 6.629 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004392/0.866, allocations: 379.5 kB / 1.1 GB, free: 6.25 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.024e-05/0.866, allocations: 8.188 kB / 1.1 GB, free: 6.242 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.866, allocations: 0 / 1.1 GB, free: 6.242 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/0.866, allocations: 11.91 kB / 1.1 GB, free: 6.23 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002619/0.8663, allocations: 277.4 kB / 1.1 GB, free: 5.91 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.8663, allocations: 0 / 1.1 GB, free: 5.91 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000106/0.8664, allocations: 23.98 kB / 1.1 GB, free: 5.887 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.8664, allocations: 4 kB / 1.1 GB, free: 5.883 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.616e-05/0.8665, allocations: 4 kB / 1.1 GB, free: 5.879 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.8665, allocations: 3.938 kB / 1.1 GB, free: 5.875 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.8665, allocations: 0 / 1.1 GB, free: 5.875 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003272/0.8668, allocations: 326.9 kB / 1.101 GB, free: 5.539 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 7.05e-05/0.8669, allocations: 108.8 kB / 1.101 GB, free: 5.414 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.885e-05/0.8669, allocations: 4 kB / 1.101 GB, free: 5.41 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001458/0.8671, allocations: 11.98 kB / 1.101 GB, free: 5.398 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.065e-05/0.8671, allocations: 4 kB / 1.101 GB, free: 5.395 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.647e-05/0.8671, allocations: 19.86 kB / 1.101 GB, free: 5.375 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.448e-05/0.8671, allocations: 79.28 kB / 1.101 GB, free: 5.297 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8672, allocations: 0 / 1.101 GB, free: 5.297 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0008177/0.868, allocations: 307.9 kB / 1.101 GB, free: 4.996 MB / 0.8575 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.00131/0.8693, allocations: 390.9 kB / 1.102 GB, free: 4.605 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000212/0.8695, allocations: 124 kB / 1.102 GB, free: 4.484 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.8695, allocations: 0 / 1.102 GB, free: 4.484 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001255/0.8697, allocations: 121.2 kB / 1.102 GB, free: 4.367 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000311/0.87, allocations: 12 kB / 1.102 GB, free: 4.355 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005113/0.8705, allocations: 378.2 kB / 1.102 GB, free: 3.961 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002395/0.8708, allocations: 0.7168 MB / 1.103 GB, free: 3.219 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001165/0.8709, allocations: 36.33 kB / 1.103 GB, free: 3.184 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.425e-05/0.8709, allocations: 19.42 kB / 1.103 GB, free: 3.164 MB / 0.8575 GB Notification: Performance of SimCode: time 2.21e-07/0.8709, allocations: 0 / 1.103 GB, free: 3.164 MB / 0.8575 GB Notification: Performance of Templates: time 0.01501/0.8859, allocations: 9.729 MB / 1.112 GB, free: 9.43 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Media.Examples.SteamSaturationConsistencyCheck.makefile (rm -f Buildings_9_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe >> ../files/Buildings_9_Buildings.Media.Examples.SteamSaturationConsistencyCheck.sim & ./Buildings_9_Buildings.Media.Examples.SteamSaturationConsistencyCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.SteamSaturationConsistencyCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_SteamSaturationConsistencyCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.SteamSaturationConsistencyCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches