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.001051/0.001051, allocations: 112.6 kB / 16.37 MB, free: 6 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.001049/0.001049, allocations: 196 kB / 17.31 MB, free: 5.613 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.349/1.349, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.505/2.505, allocations: 442.6 MB / 0.7165 GB, free: 14.72 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 60.19 kB / 0.8773 GB, free: 11.02 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3089/0.3103, allocations: 153 MB / 1.027 GB, free: 2.094 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamSaturationConsistencyCheck): time 0.6373/0.9476, allocations: 135.5 MB / 1.159 GB, free: 5.473 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.00879/0.9564, allocations: 7.913 MB / 1.167 GB, free: 44 kB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.473e-05/0.9565, allocations: 1.25 kB / 1.167 GB, free: 44 kB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.0001738/0.9567, allocations: 26.5 kB / 1.167 GB, free: 28 kB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 4.79e-05/0.9568, allocations: 20.5 kB / 1.167 GB, free: 12 kB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.003873/0.9607, allocations: 1.468 MB / 1.168 GB, free: 15.48 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001217/0.9608, allocations: 76.2 kB / 1.168 GB, free: 15.45 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 3.582e-05/0.9609, allocations: 6.406 kB / 1.168 GB, free: 15.45 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001178/0.961, allocations: 43.94 kB / 1.168 GB, free: 15.43 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 8.157e-05/0.9611, allocations: 31.94 kB / 1.168 GB, free: 15.42 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.282e-05/0.9611, allocations: 3.375 kB / 1.168 GB, free: 15.42 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004565/0.9657, allocations: 2.705 MB / 1.171 GB, free: 14.29 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.016e-05/0.9657, allocations: 14.94 kB / 1.171 GB, free: 14.28 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 5.963e-05/0.9658, allocations: 40.83 kB / 1.171 GB, free: 14.25 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.002137/0.9679, allocations: 1.37 MB / 1.172 GB, free: 13.38 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.968, allocations: 0 / 1.172 GB, free: 13.38 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.004e-06/0.968, allocations: 0 / 1.172 GB, free: 13.38 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.356e-05/0.968, allocations: 1.469 kB / 1.172 GB, free: 13.38 MB / 0.8887 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.0009975/0.969, allocations: 0.4908 MB / 1.173 GB, free: 12.94 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.969, allocations: 9.469 kB / 1.173 GB, free: 12.94 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003726/0.9694, allocations: 26.97 kB / 1.173 GB, free: 12.93 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001283/0.9696, allocations: 174.7 kB / 1.173 GB, free: 12.72 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.875e-05/0.9696, allocations: 30.08 kB / 1.173 GB, free: 12.69 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.805e-05/0.9697, allocations: 15.52 kB / 1.173 GB, free: 12.68 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003479/0.97, allocations: 121.2 kB / 1.173 GB, free: 12.59 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.97, allocations: 0 / 1.173 GB, free: 12.59 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.662e-05/0.9701, allocations: 5.281 kB / 1.173 GB, free: 12.59 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.9701, allocations: 2.375 kB / 1.173 GB, free: 12.59 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002913/0.9704, allocations: 112.8 kB / 1.173 GB, free: 12.54 MB / 0.8887 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.0004841/0.9709, allocations: 391.5 kB / 1.174 GB, free: 12.13 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002557/0.9711, allocations: 115.4 kB / 1.174 GB, free: 12.06 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.924e-05/0.9712, allocations: 54.05 kB / 1.174 GB, free: 12.03 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01124/0.9825, allocations: 4.228 MB / 1.178 GB, free: 9.301 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.716e-05/0.9825, allocations: 31.44 kB / 1.178 GB, free: 9.262 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=13): time 3.447e-06/0.9825, allocations: 0 / 1.178 GB, free: 9.262 MB / 0.8887 GB Notification: Performance of matching and sorting (n=13): time 0.0005489/0.9831, allocations: 169.9 kB / 1.178 GB, free: 9.164 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.279e-05/0.9831, allocations: 57.62 kB / 1.178 GB, free: 9.098 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.644e-05/0.9832, allocations: 102.4 kB / 1.178 GB, free: 8.992 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 2.069e-05/0.9832, allocations: 26.89 kB / 1.178 GB, free: 8.961 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 4.628e-05/0.9833, allocations: 85.52 kB / 1.179 GB, free: 8.875 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 3.76e-05/0.9833, allocations: 44.31 kB / 1.179 GB, free: 8.836 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.858e-05/0.9834, allocations: 29.48 kB / 1.179 GB, free: 8.809 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001009/0.9835, allocations: 321.1 kB / 1.179 GB, free: 8.488 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.804e-05/0.9835, allocations: 28.42 kB / 1.179 GB, free: 8.473 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.309e-05/0.9836, allocations: 27.23 kB / 1.179 GB, free: 8.461 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001144/0.9837, allocations: 74.25 kB / 1.179 GB, free: 8.418 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.9837, allocations: 1.25 kB / 1.179 GB, free: 8.418 MB / 0.8887 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001823/0.9839, allocations: 109.9 kB / 1.179 GB, free: 8.352 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/0.9839, allocations: 4.844 kB / 1.179 GB, free: 8.352 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.984, allocations: 0.8125 kB / 1.179 GB, free: 8.352 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.984, allocations: 1.094 kB / 1.179 GB, free: 8.352 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001326/0.9841, allocations: 24.92 kB / 1.179 GB, free: 8.348 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.9841, allocations: 1.562 kB / 1.179 GB, free: 8.348 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.65e-05/0.9842, allocations: 6.594 kB / 1.179 GB, free: 8.344 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.649e-05/0.9842, allocations: 14.72 kB / 1.179 GB, free: 8.332 MB / 0.8887 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.808e-05/0.9843, allocations: 120.5 kB / 1.179 GB, free: 8.207 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.883e-05/0.9844, allocations: 6.906 kB / 1.179 GB, free: 8.203 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004555/0.9848, allocations: 360.5 kB / 1.18 GB, free: 7.988 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.141e-05/0.9849, allocations: 10.2 kB / 1.18 GB, free: 7.98 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.9849, allocations: 1.25 kB / 1.18 GB, free: 7.98 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.9849, allocations: 0 / 1.18 GB, free: 7.98 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003113/0.9852, allocations: 285.8 kB / 1.18 GB, free: 7.703 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.9852, allocations: 0 / 1.18 GB, free: 7.703 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001005/0.9853, allocations: 24.72 kB / 1.18 GB, free: 7.695 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.929e-06/0.9853, allocations: 5.266 kB / 1.18 GB, free: 7.691 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.201e-05/0.9853, allocations: 4.969 kB / 1.18 GB, free: 7.688 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.9854, allocations: 1 kB / 1.18 GB, free: 7.688 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.9854, allocations: 1.062 kB / 1.18 GB, free: 7.688 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000384/0.9858, allocations: 330 kB / 1.18 GB, free: 7.449 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 7.626e-05/0.9858, allocations: 107.4 kB / 1.18 GB, free: 7.332 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.714e-05/0.9859, allocations: 2.438 kB / 1.18 GB, free: 7.332 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001335/0.986, allocations: 14.59 kB / 1.18 GB, free: 7.32 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.742e-05/0.986, allocations: 16.69 kB / 1.18 GB, free: 7.309 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.998e-05/0.9861, allocations: 6.953 kB / 1.18 GB, free: 7.305 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 3.989e-05/0.9861, allocations: 87.38 kB / 1.181 GB, free: 7.223 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9861, allocations: 0 / 1.181 GB, free: 7.223 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001125/0.9873, allocations: 297.6 kB / 1.181 GB, free: 7.191 MB / 0.8887 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.001324/0.9886, allocations: 397.6 kB / 1.181 GB, free: 7.016 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.0002336/0.9888, allocations: 129.7 kB / 1.181 GB, free: 6.957 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.9888, allocations: 4 kB / 1.181 GB, free: 6.953 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0001233/0.989, allocations: 110.1 kB / 1.181 GB, free: 6.902 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003053/0.9893, allocations: 19.11 kB / 1.181 GB, free: 6.891 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000551/0.9898, allocations: 307.2 kB / 1.182 GB, free: 6.668 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003083/0.9902, allocations: 0.7198 MB / 1.182 GB, free: 5.953 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0001091/0.9903, allocations: 28.31 kB / 1.182 GB, free: 5.938 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.276e-05/0.9903, allocations: 14.09 kB / 1.182 GB, free: 5.934 MB / 0.8887 GB Notification: Performance of SimCode: time 2.61e-07/0.9903, allocations: 0 / 1.182 GB, free: 5.934 MB / 0.8887 GB Notification: Performance of Templates: time 0.01477/1.005, allocations: 9.77 MB / 1.192 GB, free: 0.8086 MB / 0.8887 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.SteamSaturationConsistencyCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches