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/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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001298/0.001298, allocations: 99.39 kB / 15.05 MB, free: 1.105 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.001562/0.001562, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.323/1.323, allocations: 223.2 MB / 239.9 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.495/2.495, allocations: 436.5 MB / 0.7104 GB, free: 7.844 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003255/0.0003255, allocations: 12 kB / 0.8707 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6376/0.638, allocations: 153.7 MB / 1.021 GB, free: 1.277 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamSaturationConsistencyCheck): time 0.1239/0.7619, allocations: 114.4 MB / 1.133 GB, free: 14.58 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.007505/0.7694, allocations: 6.93 MB / 1.139 GB, free: 7.633 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.682e-05/0.7695, allocations: 0 / 1.139 GB, free: 7.633 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001477/0.7697, allocations: 23.84 kB / 1.139 GB, free: 7.609 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 4.388e-05/0.7697, allocations: 19.94 kB / 1.139 GB, free: 7.59 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.002834/0.7726, allocations: 1.104 MB / 1.14 GB, free: 6.488 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 9.666e-05/0.7727, allocations: 55.91 kB / 1.14 GB, free: 6.434 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 3.939e-05/0.7727, allocations: 4 kB / 1.14 GB, free: 6.43 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001188/0.7728, allocations: 47.83 kB / 1.141 GB, free: 6.383 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 7.815e-05/0.7729, allocations: 27.91 kB / 1.141 GB, free: 6.355 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.212e-05/0.7729, allocations: 4 kB / 1.141 GB, free: 6.352 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003976/0.7769, allocations: 2.552 MB / 1.143 GB, free: 3.797 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.304e-05/0.777, allocations: 11.98 kB / 1.143 GB, free: 3.785 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.434e-05/0.777, allocations: 37.64 kB / 1.143 GB, free: 3.742 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.001109/0.7781, allocations: 0.9065 MB / 1.144 GB, free: 2.836 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 2.084e-06/0.7781, allocations: 0 / 1.144 GB, free: 2.836 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.714e-06/0.7781, allocations: 4 kB / 1.144 GB, free: 2.832 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 4.007e-06/0.7782, allocations: 0 / 1.144 GB, free: 2.832 MB / 0.8887 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.0008543/0.779, allocations: 487 kB / 1.144 GB, free: 2.309 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/0.7791, allocations: 11.98 kB / 1.144 GB, free: 2.297 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003594/0.7794, allocations: 23.97 kB / 1.144 GB, free: 2.273 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001067/0.7795, allocations: 182.8 kB / 1.145 GB, free: 2.055 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.336e-05/0.7796, allocations: 25.7 kB / 1.145 GB, free: 2.023 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.527e-05/0.7796, allocations: 12 kB / 1.145 GB, free: 2.012 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003365/0.78, allocations: 117.6 kB / 1.145 GB, free: 1.891 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.244e-06/0.78, allocations: 0 / 1.145 GB, free: 1.891 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.628e-05/0.78, allocations: 4 kB / 1.145 GB, free: 1.887 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.114e-06/0.78, allocations: 8 kB / 1.145 GB, free: 1.879 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002843/0.7803, allocations: 111.9 kB / 1.145 GB, free: 1.77 MB / 0.8887 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.0004498/0.7808, allocations: 384 kB / 1.145 GB, free: 1.332 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002458/0.781, allocations: 122.6 kB / 1.145 GB, free: 1.203 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01152/0.7926, allocations: 4.266 MB / 1.15 GB, free: 12.62 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.269e-05/0.7926, allocations: 30.56 kB / 1.15 GB, free: 12.58 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=13): time 2.124e-06/0.7926, allocations: 0 / 1.15 GB, free: 12.58 MB / 0.9044 GB Notification: Performance of matching and sorting (n=13): time 0.0005056/0.7931, allocations: 157.6 kB / 1.15 GB, free: 12.42 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.266e-05/0.7932, allocations: 55.41 kB / 1.15 GB, free: 12.36 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.663e-05/0.7933, allocations: 105.9 kB / 1.15 GB, free: 12.24 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.002e-05/0.7933, allocations: 25.7 kB / 1.15 GB, free: 12.21 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 4.115e-05/0.7933, allocations: 88.14 kB / 1.15 GB, free: 12.12 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.565e-05/0.7934, allocations: 43.5 kB / 1.15 GB, free: 12.08 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.39e-06/0.7934, allocations: 0 / 1.15 GB, free: 12.08 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001/0.7935, allocations: 318.8 kB / 1.15 GB, free: 11.76 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.6e-05/0.7935, allocations: 31.92 kB / 1.15 GB, free: 11.73 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.418e-05/0.7936, allocations: 29.73 kB / 1.15 GB, free: 11.7 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.571e-05/0.7937, allocations: 28 kB / 1.15 GB, free: 11.67 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.7937, allocations: 0 / 1.15 GB, free: 11.67 MB / 0.9044 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001709/0.7938, allocations: 106.6 kB / 1.151 GB, free: 11.56 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.7939, allocations: 4 kB / 1.151 GB, free: 11.56 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.7939, allocations: 4 kB / 1.151 GB, free: 11.55 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.7939, allocations: 4.031 kB / 1.151 GB, free: 11.55 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001374/0.794, allocations: 27.98 kB / 1.151 GB, free: 11.52 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.491e-06/0.794, allocations: 0 / 1.151 GB, free: 11.52 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.245e-05/0.7941, allocations: 3.938 kB / 1.151 GB, free: 11.52 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.368e-05/0.7941, allocations: 7.953 kB / 1.151 GB, free: 11.51 MB / 0.9044 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.939e-05/0.7942, allocations: 117.8 kB / 1.151 GB, free: 11.39 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.123e-05/0.7943, allocations: 7.906 kB / 1.151 GB, free: 11.38 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004526/0.7947, allocations: 372 kB / 1.151 GB, free: 11.01 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.067e-06/0.7947, allocations: 4 kB / 1.151 GB, free: 11.01 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.7948, allocations: 0 / 1.151 GB, free: 11.01 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.7948, allocations: 3.984 kB / 1.151 GB, free: 11 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002707/0.795, allocations: 285.2 kB / 1.151 GB, free: 10.68 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.7951, allocations: 0 / 1.151 GB, free: 10.68 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001032/0.7952, allocations: 23.98 kB / 1.151 GB, free: 10.65 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.599e-06/0.7952, allocations: 7.938 kB / 1.151 GB, free: 10.64 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.144e-05/0.7952, allocations: 4 kB / 1.151 GB, free: 10.64 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.7952, allocations: 0 / 1.151 GB, free: 10.64 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.7952, allocations: 3.938 kB / 1.151 GB, free: 10.64 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003119/0.7955, allocations: 326.9 kB / 1.152 GB, free: 10.3 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 6.366e-05/0.7956, allocations: 100.9 kB / 1.152 GB, free: 10.18 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.964e-05/0.7956, allocations: 8 kB / 1.152 GB, free: 10.18 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001456/0.7958, allocations: 11.98 kB / 1.152 GB, free: 10.16 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.267e-05/0.7958, allocations: 7.984 kB / 1.152 GB, free: 10.16 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.311e-05/0.7958, allocations: 8 kB / 1.152 GB, free: 10.15 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 3.413e-05/0.7959, allocations: 75.28 kB / 1.152 GB, free: 10.07 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.31e-07/0.7959, allocations: 0 / 1.152 GB, free: 10.07 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0008459/0.7967, allocations: 307.8 kB / 1.152 GB, free: 9.773 MB / 0.9044 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 (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.001146/0.7979, allocations: 409.1 kB / 1.153 GB, free: 9.367 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001962/0.7981, allocations: 120 kB / 1.153 GB, free: 9.25 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.7981, allocations: 4 kB / 1.153 GB, free: 9.246 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001194/0.7982, allocations: 111.9 kB / 1.153 GB, free: 9.137 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002275/0.7985, allocations: 25.59 kB / 1.153 GB, free: 9.113 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005042/0.799, allocations: 385.8 kB / 1.153 GB, free: 8.707 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002379/0.7992, allocations: 0.7247 MB / 1.154 GB, free: 7.953 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0001029/0.7993, allocations: 24.55 kB / 1.154 GB, free: 7.93 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.243e-05/0.7994, allocations: 19.42 kB / 1.154 GB, free: 7.91 MB / 0.9044 GB Notification: Performance of SimCode: time 5.21e-07/0.7994, allocations: 0 / 1.154 GB, free: 7.91 MB / 0.9044 GB Notification: Performance of Templates: time 0.01418/0.8136, allocations: 9.972 MB / 1.164 GB, free: 13.93 MB / 0.92 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