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.006463/0.006463, allocations: 105.5 kB / 15.74 MB, free: 6.008 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.001133/0.001133, allocations: 194.4 kB / 16.67 MB, free: 5.93 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.365/1.365, allocations: 222.9 MB / 240.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.654/2.654, allocations: 461.9 MB / 0.7348 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.0014/0.0014, allocations: 59.91 kB / 1.054 GB, free: 7.746 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9942/0.9956, allocations: 157.4 MB / 1.208 GB, free: 13.66 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamSaturationConsistencyCheck): time 0.164/1.16, allocations: 135.5 MB / 1.34 GB, free: 5.59 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.009643/1.169, allocations: 7.927 MB / 1.348 GB, free: 13.63 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.472e-05/1.169, allocations: 0 / 1.348 GB, free: 13.63 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.0002046/1.17, allocations: 19.91 kB / 1.348 GB, free: 13.61 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 5.92e-05/1.17, allocations: 23.78 kB / 1.348 GB, free: 13.59 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.004453/1.174, allocations: 1.463 MB / 1.349 GB, free: 12.13 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0001584/1.174, allocations: 79.64 kB / 1.349 GB, free: 12.05 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 4.621e-05/1.174, allocations: 8 kB / 1.349 GB, free: 12.04 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001402/1.175, allocations: 43.83 kB / 1.349 GB, free: 12 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 9.108e-05/1.175, allocations: 23.92 kB / 1.349 GB, free: 11.98 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 1.801e-05/1.175, allocations: 4 kB / 1.349 GB, free: 11.97 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004567/1.179, allocations: 2.708 MB / 1.352 GB, free: 9.262 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 3.044e-05/1.179, allocations: 19.91 kB / 1.352 GB, free: 9.242 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 4.777e-05/1.179, allocations: 27.86 kB / 1.352 GB, free: 9.215 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.002041/1.181, allocations: 1.382 MB / 1.353 GB, free: 7.832 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/1.181, allocations: 4 kB / 1.353 GB, free: 7.828 MB / 1.076 GB Notification: Performance of FrontEnd: time 2.625e-06/1.181, allocations: 0 / 1.353 GB, free: 7.828 MB / 1.076 GB Notification: Performance of Transformations before backend: time 5.45e-06/1.181, allocations: 3.938 kB / 1.353 GB, free: 7.824 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.0009618/1.182, allocations: 495.2 kB / 1.354 GB, free: 7.293 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/1.183, allocations: 12.03 kB / 1.354 GB, free: 7.281 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003719/1.183, allocations: 20.83 kB / 1.354 GB, free: 7.262 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001306/1.183, allocations: 176.2 kB / 1.354 GB, free: 7.051 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.765e-05/1.183, allocations: 42 kB / 1.354 GB, free: 7.004 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.533e-05/1.183, allocations: 12 kB / 1.354 GB, free: 6.992 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003641/1.184, allocations: 113.6 kB / 1.354 GB, free: 6.875 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/1.184, allocations: 3.938 kB / 1.354 GB, free: 6.871 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.713e-05/1.184, allocations: 4 kB / 1.354 GB, free: 6.867 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/1.184, allocations: 0 / 1.354 GB, free: 6.867 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003102/1.184, allocations: 119.9 kB / 1.354 GB, free: 6.75 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.0006233/1.185, allocations: 376 kB / 1.355 GB, free: 6.32 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002675/1.185, allocations: 130.6 kB / 1.355 GB, free: 6.184 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001243/1.185, allocations: 56.45 kB / 1.355 GB, free: 6.129 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01171/1.197, allocations: 4.23 MB / 1.359 GB, free: 1.582 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.044e-05/1.197, allocations: 34.56 kB / 1.359 GB, free: 1.539 MB / 1.076 GB Notification: Performance of pre-optimization done (n=13): time 2.204e-06/1.197, allocations: 0 / 1.359 GB, free: 1.539 MB / 1.076 GB Notification: Performance of matching and sorting (n=13): time 0.0005662/1.197, allocations: 165.5 kB / 1.359 GB, free: 1.371 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.049e-05/1.197, allocations: 55.41 kB / 1.359 GB, free: 1.305 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.449e-05/1.197, allocations: 105.8 kB / 1.359 GB, free: 1.191 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 2.155e-05/1.197, allocations: 33.7 kB / 1.359 GB, free: 1.152 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 4.619e-05/1.198, allocations: 80.14 kB / 1.36 GB, free: 1.07 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 5.797e-05/1.198, allocations: 47.44 kB / 1.36 GB, free: 1.023 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.258e-05/1.198, allocations: 25.72 kB / 1.36 GB, free: 0.9922 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001333/1.198, allocations: 318.8 kB / 1.36 GB, free: 0.6719 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.886e-05/1.198, allocations: 23.98 kB / 1.36 GB, free: 0.6484 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.912e-05/1.198, allocations: 27.98 kB / 1.36 GB, free: 0.6211 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001149/1.198, allocations: 64.86 kB / 1.36 GB, free: 0.5547 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/1.198, allocations: 4 kB / 1.36 GB, free: 0.5508 MB / 1.076 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001859/1.198, allocations: 116.8 kB / 1.36 GB, free: 444 kB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 2.145e-05/1.198, allocations: 7.984 kB / 1.36 GB, free: 436 kB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/1.198, allocations: 0 / 1.36 GB, free: 436 kB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.966e-05/1.198, allocations: 0 / 1.36 GB, free: 436 kB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001304/1.198, allocations: 19.98 kB / 1.36 GB, free: 416 kB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.373e-06/1.198, allocations: 7.938 kB / 1.36 GB, free: 408 kB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.942e-05/1.198, allocations: 7.938 kB / 1.36 GB, free: 400 kB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.349e-05/1.199, allocations: 4 kB / 1.36 GB, free: 396 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 9.607e-05/1.199, allocations: 121.8 kB / 1.36 GB, free: 264 kB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.597e-05/1.199, allocations: 7.844 kB / 1.36 GB, free: 256 kB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004938/1.199, allocations: 368 kB / 1.361 GB, free: 15.89 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.375e-05/1.199, allocations: 11.98 kB / 1.361 GB, free: 15.88 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/1.199, allocations: 0 / 1.361 GB, free: 15.88 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.384e-05/1.199, allocations: 3.938 kB / 1.361 GB, free: 15.87 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000367/1.2, allocations: 281.3 kB / 1.361 GB, free: 15.55 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/1.2, allocations: 0 / 1.361 GB, free: 15.55 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.608e-05/1.2, allocations: 27.92 kB / 1.361 GB, free: 15.52 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.093e-06/1.2, allocations: 0 / 1.361 GB, free: 15.52 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.391e-05/1.2, allocations: 8 kB / 1.361 GB, free: 15.51 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.512e-06/1.2, allocations: 0 / 1.361 GB, free: 15.51 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/1.2, allocations: 4 kB / 1.361 GB, free: 15.51 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004788/1.2, allocations: 327 kB / 1.361 GB, free: 15.17 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 8.923e-05/1.2, allocations: 104.8 kB / 1.361 GB, free: 15.05 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.341e-05/1.2, allocations: 4 kB / 1.361 GB, free: 15.05 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001321/1.201, allocations: 7.984 kB / 1.361 GB, free: 15.04 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.247e-05/1.201, allocations: 15.92 kB / 1.361 GB, free: 15.02 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.454e-05/1.201, allocations: 8 kB / 1.361 GB, free: 15.02 MB / 1.092 GB Notification: Performance of sorting global known variables: time 6.203e-05/1.201, allocations: 79.28 kB / 1.362 GB, free: 14.94 MB / 1.092 GB Notification: Performance of sort global known variables: time 1.4e-07/1.201, allocations: 0 / 1.362 GB, free: 14.94 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.001293/1.202, allocations: 299.9 kB / 1.362 GB, free: 14.64 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.001364/1.203, allocations: 407 kB / 1.362 GB, free: 14.23 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.0002432/1.204, allocations: 123 kB / 1.362 GB, free: 14.12 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 5.099e-06/1.204, allocations: 4 kB / 1.362 GB, free: 14.11 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 0.0001417/1.204, allocations: 111.9 kB / 1.362 GB, free: 14 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003211/1.204, allocations: 20 kB / 1.362 GB, free: 13.98 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005542/1.205, allocations: 308.5 kB / 1.363 GB, free: 13.66 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003399/1.205, allocations: 0.7127 MB / 1.363 GB, free: 12.91 MB / 1.092 GB Notification: Performance of simCode: alias equations: time 0.0001133/1.205, allocations: 32.34 kB / 1.363 GB, free: 12.88 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.54e-05/1.205, allocations: 15.44 kB / 1.363 GB, free: 12.87 MB / 1.092 GB Notification: Performance of SimCode: time 2.2e-07/1.205, allocations: 0 / 1.363 GB, free: 12.87 MB / 1.092 GB Notification: Performance of Templates: time 0.01476/1.22, allocations: 9.799 MB / 1.373 GB, free: 3.062 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.SteamSaturationConsistencyCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches