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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.00115/0.00115, allocations: 109.3 kB / 16.41 MB, free: 6.465 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.001116/0.001116, allocations: 187 kB / 17.34 MB, free: 5.719 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.379/1.379, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.671/2.671, allocations: 461.9 MB / 0.7355 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001541/0.001541, allocations: 67.91 kB / 1.055 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8723/0.8738, allocations: 157.4 MB / 1.208 GB, free: 13.77 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamSaturationConsistencyCheck): time 0.1399/1.014, allocations: 135.5 MB / 1.341 GB, free: 5.684 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.008709/1.022, allocations: 7.923 MB / 1.348 GB, free: 13.73 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.802e-05/1.023, allocations: 4 kB / 1.348 GB, free: 13.73 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.0001656/1.023, allocations: 23.89 kB / 1.349 GB, free: 13.7 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 4.974e-05/1.023, allocations: 15.84 kB / 1.349 GB, free: 13.69 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.003509/1.026, allocations: 1.457 MB / 1.35 GB, free: 12.23 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0001326/1.026, allocations: 83.56 kB / 1.35 GB, free: 12.15 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 3.682e-05/1.027, allocations: 4 kB / 1.35 GB, free: 12.14 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001215/1.027, allocations: 39.84 kB / 1.35 GB, free: 12.11 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 8.732e-05/1.027, allocations: 31.91 kB / 1.35 GB, free: 12.07 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 1.688e-05/1.027, allocations: 4 kB / 1.35 GB, free: 12.07 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00452/1.031, allocations: 2.704 MB / 1.353 GB, free: 9.363 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 3.38e-05/1.031, allocations: 23.91 kB / 1.353 GB, free: 9.34 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 4.114e-05/1.031, allocations: 27.86 kB / 1.353 GB, free: 9.312 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.002109/1.034, allocations: 1.376 MB / 1.354 GB, free: 7.934 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/1.034, allocations: 0 / 1.354 GB, free: 7.934 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.032e-06/1.034, allocations: 0 / 1.354 GB, free: 7.934 MB / 1.076 GB Notification: Performance of Transformations before backend: time 5.941e-06/1.034, allocations: 0 / 1.354 GB, free: 7.934 MB / 1.076 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.001137/1.035, allocations: 495.1 kB / 1.355 GB, free: 7.402 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 4e-05/1.035, allocations: 16.02 kB / 1.355 GB, free: 7.387 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004175/1.035, allocations: 24.83 kB / 1.355 GB, free: 7.363 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001228/1.035, allocations: 168.3 kB / 1.355 GB, free: 7.16 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.036e-05/1.035, allocations: 34.27 kB / 1.355 GB, free: 7.121 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.638e-05/1.035, allocations: 11.92 kB / 1.355 GB, free: 7.109 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004211/1.036, allocations: 117.5 kB / 1.355 GB, free: 6.988 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/1.036, allocations: 0 / 1.355 GB, free: 6.988 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.861e-05/1.036, allocations: 4 kB / 1.355 GB, free: 6.984 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.379e-06/1.036, allocations: 3.938 kB / 1.355 GB, free: 6.98 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000298/1.036, allocations: 115.9 kB / 1.355 GB, free: 6.867 MB / 1.076 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.0004839/1.037, allocations: 384 kB / 1.355 GB, free: 6.43 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002599/1.037, allocations: 130.5 kB / 1.356 GB, free: 6.293 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.599e-05/1.037, allocations: 52.83 kB / 1.356 GB, free: 6.238 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0119/1.049, allocations: 4.226 MB / 1.36 GB, free: 1.695 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.675e-05/1.049, allocations: 34.56 kB / 1.36 GB, free: 1.652 MB / 1.076 GB Notification: Performance of pre-optimization done (n=13): time 1.573e-06/1.049, allocations: 7.938 kB / 1.36 GB, free: 1.645 MB / 1.076 GB Notification: Performance of matching and sorting (n=13): time 0.000502/1.049, allocations: 168.5 kB / 1.36 GB, free: 1.477 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.513e-05/1.05, allocations: 63.34 kB / 1.36 GB, free: 1.402 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.896e-05/1.05, allocations: 93.86 kB / 1.36 GB, free: 1.301 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 2.154e-05/1.05, allocations: 29.7 kB / 1.36 GB, free: 1.266 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 4.572e-05/1.05, allocations: 84.12 kB / 1.36 GB, free: 1.18 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 4.208e-05/1.05, allocations: 43.52 kB / 1.36 GB, free: 1.137 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.623e-05/1.05, allocations: 25.7 kB / 1.36 GB, free: 1.105 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001234/1.05, allocations: 322.8 kB / 1.361 GB, free: 0.7812 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.465e-05/1.05, allocations: 31.98 kB / 1.361 GB, free: 0.75 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.651e-05/1.05, allocations: 23.98 kB / 1.361 GB, free: 0.7266 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000112/1.05, allocations: 64.86 kB / 1.361 GB, free: 0.6602 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/1.05, allocations: 0 / 1.361 GB, free: 0.6602 MB / 1.076 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001955/1.05, allocations: 113.1 kB / 1.361 GB, free: 0.5469 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/1.05, allocations: 7.938 kB / 1.361 GB, free: 0.5391 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/1.05, allocations: 0 / 1.361 GB, free: 0.5391 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.809e-05/1.05, allocations: 0 / 1.361 GB, free: 0.5391 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001306/1.051, allocations: 23.98 kB / 1.361 GB, free: 0.5156 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/1.051, allocations: 0 / 1.361 GB, free: 0.5156 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.977e-05/1.051, allocations: 23.86 kB / 1.361 GB, free: 0.4922 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.177e-05/1.051, allocations: 8.125 kB / 1.361 GB, free: 496 kB / 1.076 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 8.639e-05/1.051, allocations: 113.8 kB / 1.361 GB, free: 372 kB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.124e-05/1.051, allocations: 7.906 kB / 1.361 GB, free: 364 kB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004841/1.051, allocations: 376.3 kB / 1.361 GB, free: 15.98 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.095e-05/1.051, allocations: 4 kB / 1.361 GB, free: 15.98 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/1.051, allocations: 0 / 1.361 GB, free: 15.98 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-06/1.051, allocations: 7.922 kB / 1.361 GB, free: 15.97 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002773/1.052, allocations: 281.3 kB / 1.362 GB, free: 15.64 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/1.052, allocations: 4 kB / 1.362 GB, free: 15.64 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001076/1.052, allocations: 27.98 kB / 1.362 GB, free: 15.61 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/1.052, allocations: 0 / 1.362 GB, free: 15.61 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.827e-06/1.052, allocations: 0 / 1.362 GB, free: 15.61 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/1.052, allocations: 0 / 1.362 GB, free: 15.61 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/1.052, allocations: 4 kB / 1.362 GB, free: 15.61 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003458/1.052, allocations: 331 kB / 1.362 GB, free: 15.27 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 7.2e-05/1.052, allocations: 100.8 kB / 1.362 GB, free: 15.15 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.043e-05/1.052, allocations: 12 kB / 1.362 GB, free: 15.14 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001397/1.052, allocations: 3.984 kB / 1.362 GB, free: 15.14 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.845e-05/1.052, allocations: 15.92 kB / 1.362 GB, free: 15.12 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.295e-05/1.052, allocations: 7.938 kB / 1.362 GB, free: 15.11 MB / 1.092 GB Notification: Performance of sorting global known variables: time 3.563e-05/1.053, allocations: 79.28 kB / 1.362 GB, free: 15.04 MB / 1.092 GB Notification: Performance of sort global known variables: time 1.31e-07/1.053, allocations: 0 / 1.362 GB, free: 15.04 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.0008217/1.053, allocations: 303.9 kB / 1.362 GB, free: 14.74 MB / 1.092 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.001412/1.055, allocations: 398.8 kB / 1.363 GB, free: 14.34 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.000292/1.055, allocations: 120 kB / 1.363 GB, free: 14.22 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/1.055, allocations: 4 kB / 1.363 GB, free: 14.21 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 0.000129/1.055, allocations: 111.9 kB / 1.363 GB, free: 14.11 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003123/1.056, allocations: 19.98 kB / 1.363 GB, free: 14.09 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000514/1.056, allocations: 335.7 kB / 1.363 GB, free: 13.73 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002866/1.056, allocations: 0.7127 MB / 1.364 GB, free: 12.98 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.515e-05/1.056, allocations: 23.42 kB / 1.364 GB, free: 12.96 MB / 1.092 GB Notification: Performance of SimCode: time 2.61e-07/1.056, allocations: 3.938 kB / 1.364 GB, free: 12.96 MB / 1.092 GB Notification: Performance of Templates: time 0.01018/1.067, allocations: 6.738 MB / 1.371 GB, free: 6.207 MB / 1.092 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.SteamSaturationConsistencyCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches