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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.0009629/0.000963, allocations: 92.23 kB / 16.02 MB, free: 80 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.00112/0.00112, allocations: 181.4 kB / 16.92 MB, free: 6.652 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.37/1.37, allocations: 223.3 MB / 241 MB, free: 5.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.663/2.663, allocations: 437.8 MB / 0.7128 GB, free: 6.961 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003546/0.0003547, allocations: 8 kB / 0.8735 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7078/0.7082, allocations: 153.8 MB / 1.024 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamSaturationConsistencyCheck): time 0.1385/0.8467, allocations: 131.7 MB / 1.152 GB, free: 11.7 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.00926/0.856, allocations: 8.397 MB / 1.16 GB, free: 3.273 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.634e-05/0.8561, allocations: 0 / 1.16 GB, free: 3.273 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0001636/0.8563, allocations: 23.89 kB / 1.161 GB, free: 3.25 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 4.841e-05/0.8563, allocations: 15.86 kB / 1.161 GB, free: 3.234 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.002948/0.8593, allocations: 1.15 MB / 1.162 GB, free: 2.086 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0001088/0.8594, allocations: 79.58 kB / 1.162 GB, free: 2.008 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 3.932e-05/0.8594, allocations: 4 kB / 1.162 GB, free: 2.004 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001325/0.8596, allocations: 47.84 kB / 1.162 GB, free: 1.957 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 8.655e-05/0.8597, allocations: 27.91 kB / 1.162 GB, free: 1.93 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 1.533e-05/0.8597, allocations: 4 kB / 1.162 GB, free: 1.926 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004062/0.8638, allocations: 2.657 MB / 1.164 GB, free: 15.27 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.552e-05/0.8638, allocations: 11.98 kB / 1.164 GB, free: 15.25 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 6.12e-05/0.8639, allocations: 61.48 kB / 1.164 GB, free: 15.19 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.00109/0.865, allocations: 0.9161 MB / 1.165 GB, free: 14.27 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.865, allocations: 0 / 1.165 GB, free: 14.27 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.373e-06/0.865, allocations: 0 / 1.165 GB, free: 14.27 MB / 0.92 GB Notification: Performance of Transformations before backend: time 3.967e-06/0.865, allocations: 0 / 1.165 GB, free: 14.27 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.0009149/0.8659, allocations: 487.2 kB / 1.166 GB, free: 13.75 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.866, allocations: 12.02 kB / 1.166 GB, free: 13.73 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000352/0.8663, allocations: 20.92 kB / 1.166 GB, free: 13.71 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001068/0.8664, allocations: 168.2 kB / 1.166 GB, free: 13.51 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.615e-05/0.8665, allocations: 34.27 kB / 1.166 GB, free: 13.47 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.529e-05/0.8665, allocations: 7.938 kB / 1.166 GB, free: 13.46 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003496/0.8669, allocations: 125.5 kB / 1.166 GB, free: 13.34 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.144e-06/0.8669, allocations: 0 / 1.166 GB, free: 13.34 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.598e-05/0.8669, allocations: 4 kB / 1.166 GB, free: 13.33 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.8669, allocations: 4 kB / 1.166 GB, free: 13.33 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002788/0.8672, allocations: 115.9 kB / 1.166 GB, free: 13.21 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.0004693/0.8677, allocations: 384 kB / 1.167 GB, free: 12.78 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002533/0.868, allocations: 130.5 kB / 1.167 GB, free: 12.64 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.659e-05/0.868, allocations: 52.84 kB / 1.167 GB, free: 12.59 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01153/0.8796, allocations: 4.253 MB / 1.171 GB, free: 8.016 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.645e-05/0.8797, allocations: 38.56 kB / 1.171 GB, free: 7.969 MB / 0.92 GB Notification: Performance of pre-optimization done (n=13): time 1.883e-06/0.8797, allocations: 0 / 1.171 GB, free: 7.969 MB / 0.92 GB Notification: Performance of matching and sorting (n=13): time 0.0005124/0.8802, allocations: 154.9 kB / 1.171 GB, free: 7.812 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.014e-05/0.8802, allocations: 55.41 kB / 1.171 GB, free: 7.746 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.221e-05/0.8803, allocations: 109.8 kB / 1.171 GB, free: 7.629 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.055e-05/0.8803, allocations: 29.7 kB / 1.171 GB, free: 7.594 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.584e-05/0.8804, allocations: 88.05 kB / 1.171 GB, free: 7.504 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.857e-05/0.8804, allocations: 43.53 kB / 1.171 GB, free: 7.461 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.939e-05/0.8805, allocations: 17.72 kB / 1.172 GB, free: 7.438 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.000118/0.8806, allocations: 322.8 kB / 1.172 GB, free: 7.113 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.429e-05/0.8807, allocations: 23.98 kB / 1.172 GB, free: 7.09 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.62e-05/0.8807, allocations: 31.86 kB / 1.172 GB, free: 7.062 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001202/0.8808, allocations: 64.86 kB / 1.172 GB, free: 6.996 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.8808, allocations: 0 / 1.172 GB, free: 6.996 MB / 0.92 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001824/0.881, allocations: 109.6 kB / 1.172 GB, free: 6.883 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.331e-05/0.8811, allocations: 8 kB / 1.172 GB, free: 6.875 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.8811, allocations: 3.938 kB / 1.172 GB, free: 6.871 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.555e-05/0.8811, allocations: 0 / 1.172 GB, free: 6.871 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001385/0.8812, allocations: 19.98 kB / 1.172 GB, free: 6.852 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.078e-05/0.8813, allocations: 7.984 kB / 1.172 GB, free: 6.844 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.237e-05/0.8813, allocations: 11.83 kB / 1.172 GB, free: 6.832 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.452e-05/0.8814, allocations: 8 kB / 1.172 GB, free: 6.824 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.637e-05/0.8815, allocations: 115.8 kB / 1.172 GB, free: 6.703 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.538e-05/0.8815, allocations: 8 kB / 1.172 GB, free: 6.695 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005047/0.882, allocations: 364.1 kB / 1.173 GB, free: 6.336 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.529e-05/0.882, allocations: 8 kB / 1.173 GB, free: 6.328 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/0.8821, allocations: 0 / 1.173 GB, free: 6.328 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.007e-05/0.8821, allocations: 7.922 kB / 1.173 GB, free: 6.32 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003485/0.8824, allocations: 285.3 kB / 1.173 GB, free: 5.992 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.8824, allocations: 0 / 1.173 GB, free: 5.992 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001073/0.8826, allocations: 19.98 kB / 1.173 GB, free: 5.973 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.937e-06/0.8826, allocations: 4 kB / 1.173 GB, free: 5.969 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.294e-05/0.8826, allocations: 4 kB / 1.173 GB, free: 5.965 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.609e-06/0.8826, allocations: 0 / 1.173 GB, free: 5.965 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.8826, allocations: 3.938 kB / 1.173 GB, free: 5.961 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000389/0.883, allocations: 334.8 kB / 1.173 GB, free: 5.617 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 8.77e-05/0.8831, allocations: 108.9 kB / 1.173 GB, free: 5.492 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.047e-05/0.8831, allocations: 0 / 1.173 GB, free: 5.492 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001481/0.8833, allocations: 11.98 kB / 1.173 GB, free: 5.48 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.744e-05/0.8833, allocations: 7.984 kB / 1.173 GB, free: 5.473 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.417e-05/0.8833, allocations: 11.94 kB / 1.173 GB, free: 5.461 MB / 0.92 GB Notification: Performance of sorting global known variables: time 4.499e-05/0.8834, allocations: 79.28 kB / 1.173 GB, free: 5.383 MB / 0.92 GB Notification: Performance of sort global known variables: time 2.1e-07/0.8834, allocations: 0 / 1.173 GB, free: 5.383 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.001232/0.8846, allocations: 303.8 kB / 1.174 GB, free: 5.086 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.001573/0.8862, allocations: 407.1 kB / 1.174 GB, free: 4.68 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002397/0.8865, allocations: 124 kB / 1.174 GB, free: 4.559 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.8865, allocations: 0 / 1.174 GB, free: 4.559 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001429/0.8866, allocations: 111.9 kB / 1.174 GB, free: 4.449 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003445/0.887, allocations: 15.98 kB / 1.174 GB, free: 4.434 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006284/0.8876, allocations: 409.6 kB / 1.175 GB, free: 3.996 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003134/0.888, allocations: 0.7208 MB / 1.175 GB, free: 3.25 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.117e-05/0.888, allocations: 19.44 kB / 1.175 GB, free: 3.234 MB / 0.92 GB Notification: Performance of SimCode: time 3.21e-07/0.888, allocations: 0 / 1.175 GB, free: 3.234 MB / 0.92 GB Notification: Performance of Templates: time 0.01057/0.8986, allocations: 6.744 MB / 1.182 GB, free: 12.48 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches