Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001531/0.001531, allocations: 106.5 kB / 16.27 MB, free: 6.402 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.001554/0.001554, allocations: 191.2 kB / 17.2 MB, free: 5.938 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.416/1.416, allocations: 222.9 MB / 240.9 MB, free: 15.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.653/2.653, allocations: 437.1 MB / 0.711 GB, free: 4.469 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001945/0.001945, allocations: 68.48 kB / 0.8699 GB, free: 2.23 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.322/0.324, allocations: 151.6 MB / 1.018 GB, free: 10.68 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamSaturationConsistencyCheck): time 0.6258/0.9499, allocations: 135.5 MB / 1.15 GB, free: 15.22 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01027/0.9602, allocations: 7.916 MB / 1.158 GB, free: 9.789 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.8e-05/0.9603, allocations: 0 / 1.158 GB, free: 9.789 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.0001862/0.9606, allocations: 24.03 kB / 1.158 GB, free: 9.777 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 5.094e-05/0.9607, allocations: 17.67 kB / 1.158 GB, free: 9.766 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.004701/0.9654, allocations: 1.471 MB / 1.16 GB, free: 9.227 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.0001423/0.9655, allocations: 81.73 kB / 1.16 GB, free: 9.191 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 4.034e-05/0.9656, allocations: 5.469 kB / 1.16 GB, free: 9.191 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001311/0.9657, allocations: 41.72 kB / 1.16 GB, free: 9.176 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 9.029e-05/0.9658, allocations: 31.27 kB / 1.16 GB, free: 9.164 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 1.604e-05/0.9658, allocations: 2.938 kB / 1.16 GB, free: 9.164 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005441/0.9713, allocations: 2.643 MB / 1.162 GB, free: 8.504 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 3.941e-05/0.9713, allocations: 13.62 kB / 1.162 GB, free: 8.496 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 7.519e-05/0.9714, allocations: 40.23 kB / 1.162 GB, free: 8.473 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.002942/0.9744, allocations: 1.371 MB / 1.164 GB, free: 7.789 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.9744, allocations: 4 kB / 1.164 GB, free: 7.785 MB / 0.8731 GB Notification: Performance of FrontEnd: time 3.437e-06/0.9744, allocations: 0 / 1.164 GB, free: 7.785 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 5.571e-06/0.9744, allocations: 3.938 kB / 1.164 GB, free: 7.781 MB / 0.8731 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.001388/0.9758, allocations: 500 kB / 1.164 GB, free: 7.34 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 5.058e-05/0.9759, allocations: 10.48 kB / 1.164 GB, free: 7.34 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004343/0.9763, allocations: 26.06 kB / 1.164 GB, free: 7.328 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001799/0.9765, allocations: 170.4 kB / 1.164 GB, free: 7.125 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.139e-05/0.9766, allocations: 30.05 kB / 1.164 GB, free: 7.094 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.548e-05/0.9766, allocations: 17.31 kB / 1.164 GB, free: 7.082 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004097/0.977, allocations: 124.6 kB / 1.165 GB, free: 7 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.9771, allocations: 3.938 kB / 1.165 GB, free: 6.996 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.731e-05/0.9771, allocations: 5.062 kB / 1.165 GB, free: 6.992 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.9771, allocations: 5.219 kB / 1.165 GB, free: 6.988 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003047/0.9774, allocations: 112.9 kB / 1.165 GB, free: 6.938 MB / 0.8731 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.0006066/0.978, allocations: 384.7 kB / 1.165 GB, free: 6.535 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002737/0.9783, allocations: 127.9 kB / 1.165 GB, free: 6.457 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.922e-05/0.9784, allocations: 50.22 kB / 1.165 GB, free: 6.43 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01233/0.9907, allocations: 4.205 MB / 1.169 GB, free: 3.715 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.119e-05/0.9908, allocations: 35.62 kB / 1.169 GB, free: 3.672 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=13): time 1.993e-06/0.9908, allocations: 0 / 1.169 GB, free: 3.672 MB / 0.8731 GB Notification: Performance of matching and sorting (n=13): time 0.0005579/0.9914, allocations: 164.6 kB / 1.169 GB, free: 3.578 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.111e-05/0.9914, allocations: 52.62 kB / 1.17 GB, free: 3.516 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000101/0.9915, allocations: 102.4 kB / 1.17 GB, free: 3.41 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.099e-05/0.9916, allocations: 26.77 kB / 1.17 GB, free: 3.379 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 5.353e-05/0.9916, allocations: 85.42 kB / 1.17 GB, free: 3.293 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 5.635e-05/0.9917, allocations: 45.16 kB / 1.17 GB, free: 3.254 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.309e-05/0.9918, allocations: 30.06 kB / 1.17 GB, free: 3.227 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001508/0.9919, allocations: 324 kB / 1.17 GB, free: 2.902 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.855e-05/0.992, allocations: 21.7 kB / 1.17 GB, free: 2.895 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.015e-05/0.992, allocations: 32.2 kB / 1.17 GB, free: 2.879 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001154/0.9921, allocations: 69.88 kB / 1.17 GB, free: 2.84 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.9922, allocations: 0 / 1.17 GB, free: 2.84 MB / 0.8731 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001972/0.9924, allocations: 109 kB / 1.17 GB, free: 2.773 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/0.9924, allocations: 4.719 kB / 1.17 GB, free: 2.773 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.128e-06/0.9924, allocations: 1.344 kB / 1.17 GB, free: 2.773 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.9924, allocations: 4 kB / 1.17 GB, free: 2.77 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001271/0.9925, allocations: 21.73 kB / 1.17 GB, free: 2.766 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.591e-06/0.9926, allocations: 3.938 kB / 1.17 GB, free: 2.762 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.226e-05/0.9926, allocations: 6.125 kB / 1.17 GB, free: 2.758 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.451e-05/0.9926, allocations: 10.72 kB / 1.17 GB, free: 2.75 MB / 0.8731 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.522e-05/0.9927, allocations: 117.2 kB / 1.17 GB, free: 2.629 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.67e-05/0.9928, allocations: 3.906 kB / 1.17 GB, free: 2.629 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004942/0.9933, allocations: 369.2 kB / 1.171 GB, free: 2.406 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.358e-05/0.9933, allocations: 11.58 kB / 1.171 GB, free: 2.398 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.9933, allocations: 0 / 1.171 GB, free: 2.398 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.303e-06/0.9933, allocations: 3.984 kB / 1.171 GB, free: 2.395 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003178/0.9936, allocations: 281.9 kB / 1.171 GB, free: 2.121 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.9937, allocations: 1.062 kB / 1.171 GB, free: 2.121 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001005/0.9938, allocations: 24.23 kB / 1.171 GB, free: 2.113 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.9938, allocations: 5.312 kB / 1.171 GB, free: 2.109 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.136e-05/0.9938, allocations: 9.094 kB / 1.171 GB, free: 2.102 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.9938, allocations: 1.406 kB / 1.171 GB, free: 2.102 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.113e-06/0.9938, allocations: 1.5 kB / 1.171 GB, free: 2.102 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003894/0.9942, allocations: 333.9 kB / 1.171 GB, free: 1.859 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 9.168e-05/0.9943, allocations: 103.9 kB / 1.172 GB, free: 1.746 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.725e-05/0.9943, allocations: 1.094 kB / 1.172 GB, free: 1.746 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001456/0.9945, allocations: 10.86 kB / 1.172 GB, free: 1.738 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.807e-05/0.9945, allocations: 12.73 kB / 1.172 GB, free: 1.73 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.199e-05/0.9945, allocations: 4.5 kB / 1.172 GB, free: 1.73 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 5.196e-05/0.9946, allocations: 89.52 kB / 1.172 GB, free: 1.645 MB / 0.8731 GB Notification: Performance of sort global known variables: time 3.61e-07/0.9946, allocations: 1.125 kB / 1.172 GB, free: 1.645 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.001202/0.9958, allocations: 298.3 kB / 1.172 GB, free: 1.613 MB / 0.8731 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.001332/0.9971, allocations: 397.2 kB / 1.172 GB, free: 1.438 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0002972/0.9975, allocations: 137.9 kB / 1.172 GB, free: 1.375 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.9975, allocations: 0 / 1.172 GB, free: 1.375 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001377/0.9976, allocations: 118.5 kB / 1.173 GB, free: 1.312 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003146/0.9979, allocations: 19.95 kB / 1.173 GB, free: 1.301 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005582/0.9985, allocations: 333.8 kB / 1.173 GB, free: 1.043 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000351/0.9989, allocations: 0.7168 MB / 1.174 GB, free: 340 kB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.226e-05/0.9989, allocations: 19.69 kB / 1.174 GB, free: 332 kB / 0.8731 GB Notification: Performance of SimCode: time 2.4e-07/0.9989, allocations: 0 / 1.174 GB, free: 332 kB / 0.8731 GB Notification: Performance of Templates: time 0.01227/1.011, allocations: 6.757 MB / 1.18 GB, free: 12.83 MB / 0.8887 GB make -j1 -f Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck.makefile (rm -f Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe ; mkfifo Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe >> ../files/Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck.sim & ./Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Examples_SteamSaturationConsistencyCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches