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.001495/0.001495, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00182/0.001821, allocations: 189.1 kB / 16.25 MB, free: 6.633 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.375/1.375, allocations: 222.9 MB / 239.9 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.65/2.65, allocations: 437 MB / 0.71 GB, free: 5.32 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001369, allocations: 63.88 kB / 0.8687 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7429/0.7443, allocations: 151.6 MB / 1.017 GB, free: 2.766 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamSaturationConsistencyCheck): time 0.1662/0.9106, allocations: 133.6 MB / 1.147 GB, free: 12.64 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.01063/0.9213, allocations: 7.979 MB / 1.155 GB, free: 4.629 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.638e-05/0.9214, allocations: 0 / 1.155 GB, free: 4.629 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0002104/0.9217, allocations: 23.83 kB / 1.155 GB, free: 4.605 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 7.058e-05/0.9218, allocations: 19.84 kB / 1.155 GB, free: 4.586 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.004801/0.9266, allocations: 1.288 MB / 1.156 GB, free: 3.301 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0001735/0.9268, allocations: 75.64 kB / 1.156 GB, free: 3.227 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 5.949e-05/0.9268, allocations: 4 kB / 1.156 GB, free: 3.223 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001771/0.927, allocations: 51.84 kB / 1.156 GB, free: 3.172 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001096/0.9271, allocations: 31.84 kB / 1.156 GB, free: 3.141 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 1.659e-05/0.9272, allocations: 4 kB / 1.157 GB, free: 3.137 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004527/0.9317, allocations: 2.649 MB / 1.159 GB, free: 496 kB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 3.034e-05/0.9317, allocations: 7.984 kB / 1.159 GB, free: 488 kB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 5.198e-05/0.9318, allocations: 35.84 kB / 1.159 GB, free: 452 kB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.002532/0.9343, allocations: 1.38 MB / 1.16 GB, free: 15.06 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.9344, allocations: 0 / 1.16 GB, free: 15.06 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.375e-06/0.9344, allocations: 0 / 1.16 GB, free: 15.06 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.031e-06/0.9344, allocations: 0 / 1.16 GB, free: 15.06 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.001316/0.9357, allocations: 0.4952 MB / 1.161 GB, free: 14.52 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.9358, allocations: 8.031 kB / 1.161 GB, free: 14.51 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004288/0.9362, allocations: 24.83 kB / 1.161 GB, free: 14.48 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001274/0.9363, allocations: 172.3 kB / 1.161 GB, free: 14.28 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.343e-05/0.9364, allocations: 38.2 kB / 1.161 GB, free: 14.23 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.801e-05/0.9365, allocations: 7.938 kB / 1.161 GB, free: 14.23 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003969/0.9369, allocations: 121.6 kB / 1.161 GB, free: 14.1 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.267e-06/0.9369, allocations: 0 / 1.161 GB, free: 14.1 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.813e-05/0.9369, allocations: 3.984 kB / 1.161 GB, free: 14.1 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.9369, allocations: 4 kB / 1.161 GB, free: 14.09 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003009/0.9372, allocations: 115.9 kB / 1.161 GB, free: 13.98 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.0005329/0.9378, allocations: 376 kB / 1.162 GB, free: 13.55 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002782/0.9381, allocations: 134.5 kB / 1.162 GB, free: 13.41 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.015e-05/0.9382, allocations: 52.84 kB / 1.162 GB, free: 13.36 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01152/0.9497, allocations: 4.199 MB / 1.166 GB, free: 8.84 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.919e-05/0.9498, allocations: 34.56 kB / 1.166 GB, free: 8.797 MB / 0.92 GB Notification: Performance of pre-optimization done (n=13): time 1.994e-06/0.9498, allocations: 0 / 1.166 GB, free: 8.797 MB / 0.92 GB Notification: Performance of matching and sorting (n=13): time 0.000576/0.9503, allocations: 173.3 kB / 1.166 GB, free: 8.625 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.074e-05/0.9504, allocations: 55.41 kB / 1.166 GB, free: 8.559 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.943e-05/0.9505, allocations: 102 kB / 1.166 GB, free: 8.449 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.229e-05/0.9505, allocations: 25.7 kB / 1.166 GB, free: 8.418 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.057e-05/0.9506, allocations: 84.14 kB / 1.167 GB, free: 8.332 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 5.069e-05/0.9506, allocations: 47.44 kB / 1.167 GB, free: 8.285 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.532e-05/0.9507, allocations: 29.7 kB / 1.167 GB, free: 8.25 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001813/0.9509, allocations: 318.8 kB / 1.167 GB, free: 7.93 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.596e-05/0.9509, allocations: 31.98 kB / 1.167 GB, free: 7.898 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.969e-05/0.951, allocations: 27.92 kB / 1.167 GB, free: 7.871 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001169/0.9511, allocations: 72.78 kB / 1.167 GB, free: 7.797 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.9511, allocations: 4 kB / 1.167 GB, free: 7.793 MB / 0.92 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002004/0.9513, allocations: 105.6 kB / 1.167 GB, free: 7.684 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.049e-05/0.9514, allocations: 4 kB / 1.167 GB, free: 7.68 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.9514, allocations: 48 / 1.167 GB, free: 7.68 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.384e-05/0.9514, allocations: 3.984 kB / 1.167 GB, free: 7.676 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001297/0.9515, allocations: 23.98 kB / 1.167 GB, free: 7.652 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.773e-06/0.9516, allocations: 0 / 1.167 GB, free: 7.652 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.653e-05/0.9516, allocations: 11.84 kB / 1.167 GB, free: 7.641 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.556e-05/0.9516, allocations: 8 kB / 1.167 GB, free: 7.633 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 0.0001041/0.9517, allocations: 117.8 kB / 1.167 GB, free: 7.508 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.995e-05/0.9518, allocations: 7.938 kB / 1.167 GB, free: 7.5 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00054/0.9524, allocations: 359.7 kB / 1.168 GB, free: 7.148 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.102e-05/0.9524, allocations: 11.98 kB / 1.168 GB, free: 7.137 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.9524, allocations: 0 / 1.168 GB, free: 7.137 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.255e-06/0.9524, allocations: 3.938 kB / 1.168 GB, free: 7.133 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003261/0.9528, allocations: 277.4 kB / 1.168 GB, free: 6.812 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.983e-06/0.9528, allocations: 3.984 kB / 1.168 GB, free: 6.809 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001012/0.9529, allocations: 20 kB / 1.168 GB, free: 6.789 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.491e-06/0.9529, allocations: 0 / 1.168 GB, free: 6.789 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.487e-05/0.9529, allocations: 11.92 kB / 1.168 GB, free: 6.777 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.64e-06/0.9529, allocations: 12 kB / 1.168 GB, free: 6.766 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.9529, allocations: 0 / 1.168 GB, free: 6.766 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003547/0.9533, allocations: 330.9 kB / 1.168 GB, free: 6.426 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 8.336e-05/0.9534, allocations: 104.8 kB / 1.168 GB, free: 6.305 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.165e-05/0.9534, allocations: 4 kB / 1.168 GB, free: 6.301 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001441/0.9536, allocations: 4 kB / 1.168 GB, free: 6.297 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.647e-05/0.9536, allocations: 11.98 kB / 1.168 GB, free: 6.285 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.589e-05/0.9536, allocations: 11.92 kB / 1.168 GB, free: 6.273 MB / 0.92 GB Notification: Performance of sorting global known variables: time 3.641e-05/0.9537, allocations: 83.28 kB / 1.168 GB, free: 6.191 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9537, allocations: 0 / 1.168 GB, free: 6.191 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.001006/0.9547, allocations: 299.9 kB / 1.169 GB, free: 5.898 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.001721/0.9564, allocations: 402.8 kB / 1.169 GB, free: 5.496 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0003008/0.9567, allocations: 133.1 kB / 1.169 GB, free: 5.367 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.9567, allocations: 0 / 1.169 GB, free: 5.367 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.000147/0.9569, allocations: 113.9 kB / 1.169 GB, free: 5.258 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003373/0.9572, allocations: 27.84 kB / 1.169 GB, free: 5.23 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000678/0.9579, allocations: 376.5 kB / 1.17 GB, free: 4.832 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000342/0.9583, allocations: 0.7127 MB / 1.17 GB, free: 4.094 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0001475/0.9584, allocations: 32.47 kB / 1.171 GB, free: 4.062 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.555e-05/0.9585, allocations: 15.44 kB / 1.171 GB, free: 4.047 MB / 0.92 GB Notification: Performance of SimCode: time 2e-07/0.9585, allocations: 4 kB / 1.171 GB, free: 4.043 MB / 0.92 GB Notification: Performance of Templates: time 0.0174/0.9759, allocations: 9.807 MB / 1.18 GB, free: 10.24 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