Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Media.Examples.SteamSaturationConsistencyCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Media.Examples.SteamSaturationConsistencyCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.285/2.285, allocations: 390.5 MB / 398 MB, free: 10.96 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001751/0.00175, allocations: 176.8 kB / 491.2 MB, free: 1.594 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.946/1.946, allocations: 221.5 MB / 0.7868 GB, free: 13.3 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001101/0.001101, allocations: 91.89 kB / 0.9269 GB, free: 13.79 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.36e-05/1.363e-05, allocations: 4 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3283/0.3283, allocations: 143 MB / 1.212 GB, free: 39.57 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 2.593/2.921, allocations: 0.69 GB / 1.902 GB, free: 272.9 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002/2.921, allocations: 66.41 kB / 1.902 GB, free: 272.8 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 0.1452/3.066, allocations: 63.87 MB / 1.965 GB, free: 218.3 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.273e-06/3.066, allocations: 0 / 1.965 GB, free: 218.3 MB / 1.151 GB Notification: Performance of Transformations before backend: time 7.424e-06/3.067, allocations: 0 / 1.965 GB, free: 218.3 MB / 1.151 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.001928/3.068, allocations: 0.4911 MB / 1.965 GB, free: 217.7 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/3.069, allocations: 12.03 kB / 1.965 GB, free: 217.7 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003879/3.069, allocations: 27.73 kB / 1.965 GB, free: 217.7 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.421e-05/3.069, allocations: 167 kB / 1.965 GB, free: 217.5 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.967e-05/3.069, allocations: 37.62 kB / 1.965 GB, free: 217.5 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.464e-05/3.069, allocations: 4 kB / 1.965 GB, free: 217.4 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001653/3.069, allocations: 81.2 kB / 1.965 GB, free: 217.4 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001204/3.069, allocations: 74.81 kB / 1.966 GB, free: 217.3 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.796e-06/3.069, allocations: 3.953 kB / 1.966 GB, free: 217.3 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.485e-05/3.069, allocations: 0 / 1.966 GB, free: 217.3 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.109e-06/3.069, allocations: 8 kB / 1.966 GB, free: 217.3 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000374/3.07, allocations: 301.4 kB / 1.966 GB, free: 217 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001358/3.07, allocations: 99.22 kB / 1.966 GB, free: 216.9 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.455e-05/3.07, allocations: 44.05 kB / 1.966 GB, free: 216.9 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009506/3.08, allocations: 4.17 MB / 1.97 GB, free: 212.5 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.87e-05/3.08, allocations: 42.52 kB / 1.97 GB, free: 212.4 MB / 1.151 GB Notification: Performance of pre-optimization done (n=13): time 1.813e-06/3.08, allocations: 0 / 1.97 GB, free: 212.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=13): time 0.0004245/3.08, allocations: 125.2 kB / 1.97 GB, free: 212.3 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.481e-05/3.08, allocations: 51.41 kB / 1.97 GB, free: 212.3 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.623e-05/3.08, allocations: 92.56 kB / 1.97 GB, free: 212.2 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 1.219e-05/3.08, allocations: 25.7 kB / 1.97 GB, free: 212.1 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 3.265e-05/3.08, allocations: 80.64 kB / 1.97 GB, free: 212.1 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 3.109e-05/3.08, allocations: 46.25 kB / 1.971 GB, free: 212 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.071e-06/3.08, allocations: 0 / 1.971 GB, free: 212 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 5.704e-05/3.08, allocations: 318.7 kB / 1.971 GB, free: 211.7 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.215e-05/3.08, allocations: 19.88 kB / 1.971 GB, free: 211.7 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.847e-05/3.08, allocations: 27.75 kB / 1.971 GB, free: 211.7 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001106/3.08, allocations: 23.8 kB / 1.971 GB, free: 211.7 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/3.08, allocations: 0 / 1.971 GB, free: 211.7 MB / 1.151 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001961/3.081, allocations: 101.6 kB / 1.971 GB, free: 211.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/3.081, allocations: 11.98 kB / 1.971 GB, free: 211.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/3.081, allocations: 0 / 1.971 GB, free: 211.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.09e-05/3.081, allocations: 3.953 kB / 1.971 GB, free: 211.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001168/3.081, allocations: 23.92 kB / 1.971 GB, free: 211.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.439e-06/3.081, allocations: 0 / 1.971 GB, free: 211.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.016e-05/3.081, allocations: 7.938 kB / 1.971 GB, free: 211.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.087e-05/3.081, allocations: 7.938 kB / 1.971 GB, free: 211.5 MB / 1.151 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.306e-05/3.081, allocations: 108.9 kB / 1.971 GB, free: 211.4 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.89e-05/3.081, allocations: 7.906 kB / 1.971 GB, free: 211.4 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004211/3.082, allocations: 358.3 kB / 1.971 GB, free: 211.1 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/3.082, allocations: 11.88 kB / 1.972 GB, free: 211.1 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/3.082, allocations: 0 / 1.972 GB, free: 211.1 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.349e-06/3.082, allocations: 3.984 kB / 1.972 GB, free: 211.1 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001865/3.082, allocations: 241 kB / 1.972 GB, free: 210.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/3.082, allocations: 0 / 1.972 GB, free: 210.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.958e-05/3.082, allocations: 27.92 kB / 1.972 GB, free: 210.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/3.082, allocations: 0 / 1.972 GB, free: 210.9 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.02e-05/3.082, allocations: 7.984 kB / 1.972 GB, free: 210.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/3.082, allocations: 0 / 1.972 GB, free: 210.9 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/3.082, allocations: 0 / 1.972 GB, free: 210.9 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003115/3.082, allocations: 331.9 kB / 1.972 GB, free: 210.6 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 4.948e-05/3.082, allocations: 104.9 kB / 1.972 GB, free: 210.5 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.666e-05/3.082, allocations: 0 / 1.972 GB, free: 210.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001193/3.082, allocations: 4 kB / 1.972 GB, free: 210.5 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.171e-05/3.082, allocations: 7.984 kB / 1.972 GB, free: 210.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.21e-05/3.082, allocations: 11.94 kB / 1.972 GB, free: 210.4 MB / 1.151 GB Notification: Performance of sorting global known variables: time 2.113e-05/3.082, allocations: 83.03 kB / 1.972 GB, free: 210.4 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.4e-07/3.082, allocations: 4 kB / 1.972 GB, free: 210.4 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001387/3.084, allocations: 332.5 kB / 1.973 GB, free: 210.1 MB / 1.151 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001659/3.086, allocations: 0.9129 MB / 1.974 GB, free: 209.2 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0001605/3.086, allocations: 111.6 kB / 1.974 GB, free: 209.1 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/3.086, allocations: 0 / 1.974 GB, free: 209.1 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 9.244e-05/3.086, allocations: 111.6 kB / 1.974 GB, free: 209 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002225/3.086, allocations: 12.77 kB / 1.974 GB, free: 209 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003169/3.086, allocations: 216.3 kB / 1.974 GB, free: 208.8 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001333/3.087, allocations: 0.7205 MB / 1.975 GB, free: 208.1 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.000106/3.087, allocations: 32.33 kB / 1.975 GB, free: 208.1 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.762e-05/3.087, allocations: 19 kB / 1.975 GB, free: 208 MB / 1.151 GB Notification: Performance of SimCode: time 2.3e-07/3.087, allocations: 0 / 1.975 GB, free: 208 MB / 1.151 GB Notification: Performance of Templates: time 0.01367/3.1, allocations: 11.63 MB / 1.986 GB, free: 196.4 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Media.Examples.SteamSaturationConsistencyCheck.makefile (rm -f Buildings_latest_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.SteamSaturationConsistencyCheck.sim & ./Buildings_latest_Buildings.Media.Examples.SteamSaturationConsistencyCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.SteamSaturationConsistencyCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_SteamSaturationConsistencyCheck.csv","../files/Buildings_latest_Buildings.Media.Examples.SteamSaturationConsistencyCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches