Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.00146/0.00146, allocations: 108 kB / 15.6 MB, free: 132 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.001782/0.001782, allocations: 193.8 kB / 16.53 MB, free: 6.391 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.418/1.418, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.384/2.384, allocations: 390.2 MB / 0.6647 GB, free: 288 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001402/0.001402, allocations: 60.03 kB / 0.8125 GB, free: 14.27 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7165/0.718, allocations: 140.4 MB / 0.9496 GB, free: 9.352 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamSaturationConsistencyCheck): time 0.1728/0.8908, allocations: 135.6 MB / 1.082 GB, free: 9.855 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.01072/0.9016, allocations: 7.935 MB / 1.09 GB, free: 1.898 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.776e-05/0.9018, allocations: 0 / 1.09 GB, free: 1.898 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0002607/0.9021, allocations: 23.89 kB / 1.09 GB, free: 1.875 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 5.746e-05/0.9022, allocations: 19.84 kB / 1.09 GB, free: 1.855 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.004661/0.9068, allocations: 1.475 MB / 1.091 GB, free: 392 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001382/0.907, allocations: 75.66 kB / 1.091 GB, free: 316 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 5.666e-05/0.907, allocations: 4 kB / 1.091 GB, free: 312 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001588/0.9072, allocations: 47.83 kB / 1.091 GB, free: 264 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 8.784e-05/0.9073, allocations: 31.89 kB / 1.091 GB, free: 232 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.678e-05/0.9073, allocations: 4 kB / 1.091 GB, free: 228 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004474/0.9118, allocations: 2.645 MB / 1.094 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.51e-05/0.9119, allocations: 15.92 kB / 1.094 GB, free: 13.56 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.357e-05/0.9119, allocations: 27.86 kB / 1.094 GB, free: 13.53 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.002045/0.914, allocations: 1.38 MB / 1.095 GB, free: 12.15 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.914, allocations: 0 / 1.095 GB, free: 12.15 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.893e-06/0.914, allocations: 0 / 1.095 GB, free: 12.15 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.672e-06/0.914, allocations: 4 kB / 1.095 GB, free: 12.14 MB / 0.8575 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.001057/0.9151, allocations: 499.1 kB / 1.096 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.833e-05/0.9151, allocations: 8.031 kB / 1.096 GB, free: 11.6 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003995/0.9155, allocations: 28.83 kB / 1.096 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001429/0.9157, allocations: 172.2 kB / 1.096 GB, free: 11.37 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.213e-05/0.9158, allocations: 30.27 kB / 1.096 GB, free: 11.33 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.781e-05/0.9158, allocations: 11.94 kB / 1.096 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003626/0.9162, allocations: 121.6 kB / 1.096 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.378e-06/0.9162, allocations: 0 / 1.096 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.664e-05/0.9162, allocations: 4 kB / 1.096 GB, free: 11.19 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.9162, allocations: 7.938 kB / 1.096 GB, free: 11.18 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002933/0.9165, allocations: 111.9 kB / 1.096 GB, free: 11.07 MB / 0.8575 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.0005345/0.9171, allocations: 380 kB / 1.097 GB, free: 10.64 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002836/0.9174, allocations: 126.6 kB / 1.097 GB, free: 10.51 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.705e-05/0.9175, allocations: 60.81 kB / 1.097 GB, free: 10.45 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01201/0.9295, allocations: 4.199 MB / 1.101 GB, free: 5.93 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.383e-05/0.9296, allocations: 34.56 kB / 1.101 GB, free: 5.887 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=13): time 2.555e-06/0.9296, allocations: 4 kB / 1.101 GB, free: 5.883 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13): time 0.0005853/0.9302, allocations: 161.5 kB / 1.101 GB, free: 5.719 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.891e-05/0.9302, allocations: 55.41 kB / 1.101 GB, free: 5.652 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.369e-05/0.9303, allocations: 101.8 kB / 1.101 GB, free: 5.543 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.133e-05/0.9303, allocations: 25.7 kB / 1.101 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.946e-05/0.9304, allocations: 84.14 kB / 1.101 GB, free: 5.426 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.971e-05/0.9305, allocations: 47.52 kB / 1.101 GB, free: 5.379 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.2e-05/0.9305, allocations: 33.61 kB / 1.101 GB, free: 5.34 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001317/0.9307, allocations: 322.7 kB / 1.102 GB, free: 5.016 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.906e-05/0.9307, allocations: 27.98 kB / 1.102 GB, free: 4.988 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.289e-05/0.9308, allocations: 27.98 kB / 1.102 GB, free: 4.961 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001172/0.9309, allocations: 74.16 kB / 1.102 GB, free: 4.887 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.9309, allocations: 0 / 1.102 GB, free: 4.887 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001971/0.9311, allocations: 102.5 kB / 1.102 GB, free: 4.781 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.292e-05/0.9312, allocations: 4 kB / 1.102 GB, free: 4.777 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.9312, allocations: 0 / 1.102 GB, free: 4.777 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.862e-05/0.9312, allocations: 0 / 1.102 GB, free: 4.777 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001486/0.9314, allocations: 27.98 kB / 1.102 GB, free: 4.75 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.483e-06/0.9314, allocations: 4 kB / 1.102 GB, free: 4.746 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.948e-05/0.9314, allocations: 7.844 kB / 1.102 GB, free: 4.738 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.412e-05/0.9315, allocations: 7.938 kB / 1.102 GB, free: 4.73 MB / 0.8575 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 0.0001079/0.9316, allocations: 121.8 kB / 1.102 GB, free: 4.602 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.021e-05/0.9316, allocations: 4 kB / 1.102 GB, free: 4.598 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004961/0.9321, allocations: 371.6 kB / 1.102 GB, free: 4.227 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-05/0.9322, allocations: 7.984 kB / 1.103 GB, free: 4.219 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.9322, allocations: 192 / 1.103 GB, free: 4.219 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.133e-06/0.9322, allocations: 3.938 kB / 1.103 GB, free: 4.215 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003169/0.9325, allocations: 285.4 kB / 1.103 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.9325, allocations: 8 kB / 1.103 GB, free: 3.879 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.884e-05/0.9326, allocations: 19.94 kB / 1.103 GB, free: 3.859 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.909e-06/0.9326, allocations: 3.984 kB / 1.103 GB, free: 3.855 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.15e-05/0.9327, allocations: 4 kB / 1.103 GB, free: 3.852 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.689e-06/0.9327, allocations: 4 kB / 1.103 GB, free: 3.848 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.9327, allocations: 0 / 1.103 GB, free: 3.848 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003666/0.933, allocations: 330.9 kB / 1.103 GB, free: 3.508 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 7.602e-05/0.9331, allocations: 104.8 kB / 1.103 GB, free: 3.387 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.166e-05/0.9332, allocations: 4 kB / 1.103 GB, free: 3.383 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000137/0.9333, allocations: 4 kB / 1.103 GB, free: 3.379 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.665e-05/0.9333, allocations: 11.98 kB / 1.103 GB, free: 3.367 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.64e-05/0.9334, allocations: 11.92 kB / 1.103 GB, free: 3.355 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.958e-05/0.9334, allocations: 83.22 kB / 1.103 GB, free: 3.273 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9334, allocations: 0 / 1.103 GB, free: 3.273 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.001173/0.9346, allocations: 303.9 kB / 1.104 GB, free: 2.977 MB / 0.8575 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.00133/0.9359, allocations: 398.9 kB / 1.104 GB, free: 2.578 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003303/0.9363, allocations: 136.3 kB / 1.104 GB, free: 2.449 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.9363, allocations: 0 / 1.104 GB, free: 2.449 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001401/0.9364, allocations: 115.8 kB / 1.104 GB, free: 2.336 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003373/0.9368, allocations: 20 kB / 1.104 GB, free: 2.316 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000636/0.9374, allocations: 304.7 kB / 1.105 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003346/0.9378, allocations: 0.7088 MB / 1.105 GB, free: 1.258 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001287/0.9379, allocations: 32.33 kB / 1.105 GB, free: 1.227 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.576e-05/0.938, allocations: 19.44 kB / 1.105 GB, free: 1.207 MB / 0.8575 GB Notification: Performance of SimCode: time 2.5e-07/0.938, allocations: 0 / 1.105 GB, free: 1.207 MB / 0.8575 GB Notification: Performance of Templates: time 0.01455/0.9525, allocations: 9.813 MB / 1.115 GB, free: 7.391 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Media.Examples.SteamSaturationConsistencyCheck.makefile (rm -f Buildings_9_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe >> ../files/Buildings_9_Buildings.Media.Examples.SteamSaturationConsistencyCheck.sim & ./Buildings_9_Buildings.Media.Examples.SteamSaturationConsistencyCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.SteamSaturationConsistencyCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_SteamSaturationConsistencyCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.SteamSaturationConsistencyCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches