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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.0009044/0.0009043, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.0009353/0.0009355, allocations: 173.4 kB / 16.27 MB, free: 6.664 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.492/1.492, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Experimental/DHC/UsersGuide/package.mo:2:1-389:15:writable] Warning: UsersGuide was referenced in the package.order file, but was not found in package.mo, UsersGuide/package.mo or UsersGuide.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.804/2.804, allocations: 443.3 MB / 0.7175 GB, free: 1.32 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003716/0.0003717, allocations: 12.38 kB / 0.8795 GB, free: 41.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3791/0.3795, allocations: 155.2 MB / 1.031 GB, free: 4.309 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamSaturationConsistencyCheck): time 0.1524/0.5319, allocations: 131.7 MB / 1.16 GB, free: 88 kB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.01109/0.5431, allocations: 8.394 MB / 1.168 GB, free: 7.668 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.457e-05/0.5431, allocations: 0 / 1.168 GB, free: 7.668 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001755/0.5433, allocations: 23.89 kB / 1.168 GB, free: 7.645 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 6.213e-05/0.5434, allocations: 15.86 kB / 1.168 GB, free: 7.629 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.003611/0.547, allocations: 1.153 MB / 1.169 GB, free: 6.477 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001244/0.5472, allocations: 71.66 kB / 1.169 GB, free: 6.406 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 4.537e-05/0.5472, allocations: 0 / 1.169 GB, free: 6.406 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001508/0.5474, allocations: 47.83 kB / 1.169 GB, free: 6.359 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 9.553e-05/0.5475, allocations: 35.84 kB / 1.169 GB, free: 6.324 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.951e-05/0.5475, allocations: 4 kB / 1.169 GB, free: 6.32 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004885/0.5524, allocations: 2.645 MB / 1.172 GB, free: 3.672 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 4.014e-05/0.5525, allocations: 15.97 kB / 1.172 GB, free: 3.656 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 8.082e-05/0.5526, allocations: 61.56 kB / 1.172 GB, free: 3.59 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.002819/0.5554, allocations: 1.384 MB / 1.173 GB, free: 2.203 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 7.183e-06/0.5554, allocations: 0 / 1.173 GB, free: 2.203 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.484e-06/0.5554, allocations: 0 / 1.173 GB, free: 2.203 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.573e-06/0.5554, allocations: 0 / 1.173 GB, free: 2.203 MB / 0.92 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.001267/0.5567, allocations: 475.2 kB / 1.174 GB, free: 1.691 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.03e-05/0.5568, allocations: 12.03 kB / 1.174 GB, free: 1.68 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004321/0.5572, allocations: 28.81 kB / 1.174 GB, free: 1.652 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000151/0.5574, allocations: 168.3 kB / 1.174 GB, free: 1.449 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.208e-05/0.5574, allocations: 34.27 kB / 1.174 GB, free: 1.41 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.928e-05/0.5575, allocations: 7.938 kB / 1.174 GB, free: 1.402 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003982/0.5579, allocations: 127.6 kB / 1.174 GB, free: 1.273 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/0.5579, allocations: 0 / 1.174 GB, free: 1.273 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.794e-05/0.5579, allocations: 0 / 1.174 GB, free: 1.273 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.007e-06/0.5579, allocations: 3.984 kB / 1.174 GB, free: 1.27 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003011/0.5583, allocations: 123.8 kB / 1.174 GB, free: 1.148 MB / 0.92 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.0005248/0.5588, allocations: 380.1 kB / 1.175 GB, free: 0.7148 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000268/0.5591, allocations: 134.5 kB / 1.175 GB, free: 0.5742 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.734e-05/0.5592, allocations: 48.84 kB / 1.175 GB, free: 0.5234 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0118/0.571, allocations: 4.242 MB / 1.179 GB, free: 11.96 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.292e-05/0.571, allocations: 34.56 kB / 1.179 GB, free: 11.92 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=13): time 2.855e-06/0.5711, allocations: 4 kB / 1.179 GB, free: 11.92 MB / 0.9356 GB Notification: Performance of matching and sorting (n=13): time 0.0005864/0.5716, allocations: 167.9 kB / 1.179 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.578e-05/0.5717, allocations: 51.41 kB / 1.179 GB, free: 11.69 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.643e-05/0.5718, allocations: 97.84 kB / 1.179 GB, free: 11.58 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.549e-05/0.5718, allocations: 37.64 kB / 1.179 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 4.978e-05/0.5719, allocations: 84.22 kB / 1.179 GB, free: 11.45 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 4.563e-05/0.5719, allocations: 43.34 kB / 1.179 GB, free: 11.41 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.341e-05/0.572, allocations: 17.72 kB / 1.179 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001155/0.5721, allocations: 330.6 kB / 1.18 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.544e-05/0.5721, allocations: 31.98 kB / 1.18 GB, free: 11.02 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.319e-05/0.5722, allocations: 23.98 kB / 1.18 GB, free: 11 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001111/0.5723, allocations: 68.86 kB / 1.18 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.5723, allocations: 0 / 1.18 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001836/0.5725, allocations: 103.3 kB / 1.18 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.029e-05/0.5725, allocations: 6.188 kB / 1.18 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.5726, allocations: 0 / 1.18 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.59e-05/0.5726, allocations: 4 kB / 1.18 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001449/0.5727, allocations: 23.92 kB / 1.18 GB, free: 10.79 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.703e-06/0.5727, allocations: 0 / 1.18 GB, free: 10.79 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.452e-05/0.5728, allocations: 23.77 kB / 1.18 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.143e-05/0.5728, allocations: 4 kB / 1.18 GB, free: 10.77 MB / 0.9356 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.852e-05/0.5729, allocations: 115.4 kB / 1.18 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.64e-05/0.573, allocations: 4 kB / 1.18 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004784/0.5735, allocations: 383.9 kB / 1.18 GB, free: 10.26 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.556e-06/0.5735, allocations: 0 / 1.18 GB, free: 10.26 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.5735, allocations: 0 / 1.18 GB, free: 10.26 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.837e-06/0.5735, allocations: 7.922 kB / 1.18 GB, free: 10.25 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000321/0.5738, allocations: 277.4 kB / 1.181 GB, free: 9.934 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.5739, allocations: 0 / 1.181 GB, free: 9.934 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001108/0.574, allocations: 23.98 kB / 1.181 GB, free: 9.91 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.574, allocations: 0 / 1.181 GB, free: 9.91 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.34e-05/0.574, allocations: 4 kB / 1.181 GB, free: 9.906 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.574, allocations: 0 / 1.181 GB, free: 9.906 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.574, allocations: 4 kB / 1.181 GB, free: 9.902 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003781/0.5744, allocations: 338.8 kB / 1.181 GB, free: 9.555 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 8.359e-05/0.5745, allocations: 104.8 kB / 1.181 GB, free: 9.434 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.964e-05/0.5745, allocations: 8 kB / 1.181 GB, free: 9.426 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001443/0.5747, allocations: 7.984 kB / 1.181 GB, free: 9.418 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.34e-05/0.5747, allocations: 11.98 kB / 1.181 GB, free: 9.406 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.567e-05/0.5747, allocations: 7.938 kB / 1.181 GB, free: 9.398 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 3.96e-05/0.5748, allocations: 83.47 kB / 1.181 GB, free: 9.316 MB / 0.9356 GB Notification: Performance of sort global known variables: time 3.31e-07/0.5748, allocations: 0 / 1.181 GB, free: 9.316 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.001068/0.5759, allocations: 299.9 kB / 1.182 GB, free: 9.023 MB / 0.9356 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.001632/0.5775, allocations: 395 kB / 1.182 GB, free: 8.629 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002098/0.5777, allocations: 127.9 kB / 1.182 GB, free: 8.504 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.5777, allocations: 0 / 1.182 GB, free: 8.504 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001282/0.5779, allocations: 115.8 kB / 1.182 GB, free: 8.391 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003347/0.5782, allocations: 19.44 kB / 1.182 GB, free: 8.375 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005752/0.5788, allocations: 391.8 kB / 1.183 GB, free: 7.961 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002769/0.5791, allocations: 0.7169 MB / 1.183 GB, free: 7.219 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0001152/0.5792, allocations: 24.36 kB / 1.183 GB, free: 7.191 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.757e-05/0.5793, allocations: 15.42 kB / 1.183 GB, free: 7.18 MB / 0.9356 GB Notification: Performance of SimCode: time 2.41e-07/0.5793, allocations: 7.938 kB / 1.183 GB, free: 7.172 MB / 0.9356 GB Notification: Performance of Templates: time 0.01675/0.596, allocations: 9.723 MB / 1.193 GB, free: 13.44 MB / 0.9512 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