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.007606/0.007606, allocations: 101.7 kB / 15.73 MB, free: 5.59 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.001358/0.001358, allocations: 191.7 kB / 16.67 MB, free: 5.523 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.391/1.391, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.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.349/2.349, allocations: 390.2 MB / 0.6648 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001208, allocations: 63.91 kB / 0.9508 GB, free: 7.633 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9909/0.9921, allocations: 140.4 MB / 1.088 GB, free: 5.508 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamSaturationConsistencyCheck): time 0.2048/1.197, allocations: 135.6 MB / 1.22 GB, free: 0.6523 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.01146/1.208, allocations: 7.919 MB / 1.228 GB, free: 10.32 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001042/1.209, allocations: 0 / 1.228 GB, free: 10.32 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0002587/1.209, allocations: 25.05 kB / 1.228 GB, free: 10.3 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001215/1.209, allocations: 18.06 kB / 1.228 GB, free: 10.29 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.005803/1.215, allocations: 1.48 MB / 1.23 GB, free: 9.246 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001772/1.215, allocations: 78.78 kB / 1.23 GB, free: 9.203 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.946e-05/1.215, allocations: 3.812 kB / 1.23 GB, free: 9.203 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001762/1.215, allocations: 45.28 kB / 1.23 GB, free: 9.18 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001204/1.215, allocations: 32.53 kB / 1.23 GB, free: 9.16 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.097e-05/1.215, allocations: 2.969 kB / 1.23 GB, free: 9.16 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006797/1.222, allocations: 2.704 MB / 1.232 GB, free: 7.754 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 4.312e-05/1.222, allocations: 19.19 kB / 1.232 GB, free: 7.738 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 7.048e-05/1.222, allocations: 28.52 kB / 1.232 GB, free: 7.723 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.004054/1.226, allocations: 1.384 MB / 1.234 GB, free: 6.84 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/1.226, allocations: 0 / 1.234 GB, free: 6.84 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.783e-06/1.226, allocations: 0 / 1.234 GB, free: 6.84 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.153e-06/1.226, allocations: 1.375 kB / 1.234 GB, free: 6.84 MB / 0.9669 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.001967/1.228, allocations: 0.4902 MB / 1.234 GB, free: 6.395 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/1.229, allocations: 9.625 kB / 1.234 GB, free: 6.395 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004832/1.229, allocations: 22.58 kB / 1.234 GB, free: 6.387 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001452/1.229, allocations: 167.1 kB / 1.234 GB, free: 6.188 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.415e-05/1.229, allocations: 42.38 kB / 1.234 GB, free: 6.145 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.731e-05/1.229, allocations: 8.062 kB / 1.234 GB, free: 6.141 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004536/1.23, allocations: 120.2 kB / 1.235 GB, free: 6.059 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/1.23, allocations: 0 / 1.235 GB, free: 6.059 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.651e-05/1.23, allocations: 1.375 kB / 1.235 GB, free: 6.059 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/1.23, allocations: 1.375 kB / 1.235 GB, free: 6.059 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003049/1.23, allocations: 119.1 kB / 1.235 GB, free: 6.004 MB / 0.9669 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.0006531/1.231, allocations: 381.2 kB / 1.235 GB, free: 5.605 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002733/1.231, allocations: 134.9 kB / 1.235 GB, free: 5.52 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.651e-05/1.231, allocations: 49.59 kB / 1.235 GB, free: 5.492 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01188/1.243, allocations: 4.23 MB / 1.239 GB, free: 2.234 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.401e-05/1.243, allocations: 34.55 kB / 1.239 GB, free: 2.191 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=13): time 2.315e-06/1.243, allocations: 0 / 1.239 GB, free: 2.191 MB / 0.9669 GB Notification: Performance of matching and sorting (n=13): time 0.000563/1.244, allocations: 161.5 kB / 1.24 GB, free: 2.027 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.985e-05/1.244, allocations: 55.34 kB / 1.24 GB, free: 1.961 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.675e-05/1.244, allocations: 101.9 kB / 1.24 GB, free: 1.852 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.171e-05/1.244, allocations: 29.7 kB / 1.24 GB, free: 1.816 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.229e-05/1.244, allocations: 88.12 kB / 1.24 GB, free: 1.727 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 6.035e-05/1.244, allocations: 47.42 kB / 1.24 GB, free: 1.68 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.729e-05/1.244, allocations: 25.72 kB / 1.24 GB, free: 1.648 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0002108/1.244, allocations: 326.8 kB / 1.24 GB, free: 1.32 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.705e-05/1.244, allocations: 23.98 kB / 1.24 GB, free: 1.297 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.011e-05/1.244, allocations: 31.98 kB / 1.24 GB, free: 1.266 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001901/1.245, allocations: 72.73 kB / 1.24 GB, free: 1.195 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/1.245, allocations: 0 / 1.24 GB, free: 1.195 MB / 0.9669 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003031/1.245, allocations: 113.5 kB / 1.24 GB, free: 1.078 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.845e-05/1.245, allocations: 8 kB / 1.24 GB, free: 1.07 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/1.245, allocations: 0 / 1.24 GB, free: 1.07 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.563e-05/1.245, allocations: 3.984 kB / 1.24 GB, free: 1.066 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001682/1.245, allocations: 16 kB / 1.24 GB, free: 1.051 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.985e-06/1.245, allocations: 0 / 1.24 GB, free: 1.051 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.119e-05/1.245, allocations: 15.92 kB / 1.24 GB, free: 1.035 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.761e-05/1.245, allocations: 4 kB / 1.24 GB, free: 1.031 MB / 0.9669 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.000139/1.246, allocations: 113.8 kB / 1.241 GB, free: 0.9102 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.344e-05/1.246, allocations: 7.906 kB / 1.241 GB, free: 0.9023 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007932/1.246, allocations: 372.2 kB / 1.241 GB, free: 0.5312 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.496e-05/1.247, allocations: 8 kB / 1.241 GB, free: 0.5234 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.176e-06/1.247, allocations: 3.984 kB / 1.241 GB, free: 0.5195 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/1.247, allocations: 4.125 kB / 1.241 GB, free: 0.5156 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000399/1.247, allocations: 289 kB / 1.241 GB, free: 188 kB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.422e-06/1.247, allocations: 3.984 kB / 1.241 GB, free: 184 kB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001411/1.247, allocations: 19.98 kB / 1.241 GB, free: 164 kB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.222e-06/1.247, allocations: 8 kB / 1.241 GB, free: 156 kB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.444e-05/1.247, allocations: 4 kB / 1.241 GB, free: 152 kB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/1.247, allocations: 0 / 1.241 GB, free: 152 kB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/1.247, allocations: 3.938 kB / 1.241 GB, free: 148 kB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005171/1.248, allocations: 323.3 kB / 1.242 GB, free: 15.81 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001048/1.248, allocations: 104.8 kB / 1.242 GB, free: 15.69 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.107e-05/1.248, allocations: 0 / 1.242 GB, free: 15.69 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001971/1.248, allocations: 11.98 kB / 1.242 GB, free: 15.68 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.976e-05/1.248, allocations: 11.98 kB / 1.242 GB, free: 15.66 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.946e-05/1.248, allocations: 11.94 kB / 1.242 GB, free: 15.65 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.707e-05/1.248, allocations: 79.28 kB / 1.242 GB, free: 15.57 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.61e-07/1.248, allocations: 0 / 1.242 GB, free: 15.57 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.001879/1.25, allocations: 299.9 kB / 1.242 GB, free: 15.28 MB / 0.9825 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.002672/1.253, allocations: 394.8 kB / 1.242 GB, free: 14.89 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003426/1.253, allocations: 124 kB / 1.243 GB, free: 14.77 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/1.253, allocations: 0 / 1.243 GB, free: 14.77 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001984/1.253, allocations: 107.9 kB / 1.243 GB, free: 14.66 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005031/1.254, allocations: 23.98 kB / 1.243 GB, free: 14.64 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007357/1.255, allocations: 312.5 kB / 1.243 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003819/1.255, allocations: 0.7166 MB / 1.244 GB, free: 13.56 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001554/1.255, allocations: 32.28 kB / 1.244 GB, free: 13.53 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.931e-05/1.255, allocations: 15.44 kB / 1.244 GB, free: 13.51 MB / 0.9825 GB Notification: Performance of SimCode: time 4.91e-07/1.255, allocations: 0 / 1.244 GB, free: 13.51 MB / 0.9825 GB Notification: Performance of Templates: time 0.02439/1.28, allocations: 9.806 MB / 1.253 GB, free: 3.703 MB / 0.9825 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