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.0009629/0.0009632, allocations: 91.69 kB / 16.02 MB, free: 80 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.001163/0.001162, allocations: 180 kB / 16.92 MB, free: 6.652 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.365/1.365, allocations: 223.3 MB / 241 MB, free: 5.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.722/2.722, allocations: 462.7 MB / 0.7371 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003706/0.0003707, allocations: 8.75 kB / 0.9034 GB, free: 36.37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3043/0.3047, allocations: 159.6 MB / 1.059 GB, free: 4.996 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamSaturationConsistencyCheck): time 0.1319/0.4366, allocations: 131.7 MB / 1.188 GB, free: 0.7695 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.009764/0.4465, allocations: 8.394 MB / 1.196 GB, free: 8.352 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.923e-05/0.4465, allocations: 4 kB / 1.196 GB, free: 8.348 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001629/0.4467, allocations: 19.89 kB / 1.196 GB, free: 8.328 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 5.701e-05/0.4468, allocations: 15.84 kB / 1.196 GB, free: 8.312 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.003192/0.45, allocations: 1.145 MB / 1.197 GB, free: 7.168 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001205/0.4501, allocations: 79.59 kB / 1.197 GB, free: 7.09 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 4.092e-05/0.4502, allocations: 4 kB / 1.197 GB, free: 7.086 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001431/0.4503, allocations: 47.83 kB / 1.197 GB, free: 7.039 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 8.875e-05/0.4504, allocations: 35.83 kB / 1.197 GB, free: 7.004 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.532e-05/0.4504, allocations: 4 kB / 1.197 GB, free: 7 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004305/0.4547, allocations: 2.653 MB / 1.2 GB, free: 4.344 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 2.822e-05/0.4548, allocations: 7.984 kB / 1.2 GB, free: 4.336 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 6.234e-05/0.4549, allocations: 57.56 kB / 1.2 GB, free: 4.273 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.001384/0.4562, allocations: 0.9239 MB / 1.201 GB, free: 3.348 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.4563, allocations: 0 / 1.201 GB, free: 3.348 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.322e-06/0.4563, allocations: 0 / 1.201 GB, free: 3.348 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.208e-06/0.4563, allocations: 4 kB / 1.201 GB, free: 3.344 MB / 0.9512 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.00113/0.4574, allocations: 483.2 kB / 1.201 GB, free: 2.824 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.4575, allocations: 15.97 kB / 1.201 GB, free: 2.809 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003801/0.4579, allocations: 20.83 kB / 1.201 GB, free: 2.789 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001166/0.458, allocations: 168.3 kB / 1.202 GB, free: 2.586 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.323e-05/0.4581, allocations: 38.23 kB / 1.202 GB, free: 2.543 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.945e-05/0.4581, allocations: 15.88 kB / 1.202 GB, free: 2.527 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003539/0.4585, allocations: 123.8 kB / 1.202 GB, free: 2.402 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.522e-06/0.4585, allocations: 0 / 1.202 GB, free: 2.402 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.586e-05/0.4585, allocations: 4 kB / 1.202 GB, free: 2.398 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.4585, allocations: 0 / 1.202 GB, free: 2.398 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002744/0.4588, allocations: 119.9 kB / 1.202 GB, free: 2.281 MB / 0.9512 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.0004422/0.4592, allocations: 376 kB / 1.202 GB, free: 1.852 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002489/0.4595, allocations: 130.5 kB / 1.202 GB, free: 1.715 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.204e-05/0.4596, allocations: 48.84 kB / 1.202 GB, free: 1.664 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01126/0.4708, allocations: 4.257 MB / 1.207 GB, free: 13.09 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.725e-05/0.4709, allocations: 30.56 kB / 1.207 GB, free: 13.05 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=13): time 2.766e-06/0.4709, allocations: 0 / 1.207 GB, free: 13.05 MB / 0.9669 GB Notification: Performance of matching and sorting (n=13): time 0.0005454/0.4715, allocations: 163.5 kB / 1.207 GB, free: 12.88 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.854e-05/0.4715, allocations: 55.34 kB / 1.207 GB, free: 12.82 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.077e-05/0.4716, allocations: 101.8 kB / 1.207 GB, free: 12.71 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.49e-05/0.4716, allocations: 33.7 kB / 1.207 GB, free: 12.67 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.805e-05/0.4717, allocations: 88.12 kB / 1.207 GB, free: 12.58 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.521e-05/0.4717, allocations: 43.44 kB / 1.207 GB, free: 12.54 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.249e-05/0.4718, allocations: 17.72 kB / 1.207 GB, free: 12.51 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 9.917e-05/0.4719, allocations: 318.8 kB / 1.207 GB, free: 12.19 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.611e-05/0.4719, allocations: 27.98 kB / 1.207 GB, free: 12.16 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.287e-05/0.472, allocations: 27.98 kB / 1.207 GB, free: 12.14 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001069/0.4721, allocations: 74.09 kB / 1.208 GB, free: 12.06 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.4721, allocations: 4 kB / 1.208 GB, free: 12.06 MB / 0.9669 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001756/0.4723, allocations: 103.9 kB / 1.208 GB, free: 11.95 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/0.4723, allocations: 7.938 kB / 1.208 GB, free: 11.95 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.4723, allocations: 0 / 1.208 GB, free: 11.95 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.4723, allocations: 4 kB / 1.208 GB, free: 11.94 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001224/0.4725, allocations: 19.98 kB / 1.208 GB, free: 11.92 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.4725, allocations: 0 / 1.208 GB, free: 11.92 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.614e-05/0.4725, allocations: 7.844 kB / 1.208 GB, free: 11.91 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.122e-05/0.4726, allocations: 8 kB / 1.208 GB, free: 11.91 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 8.525e-05/0.4727, allocations: 119.4 kB / 1.208 GB, free: 11.78 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.53e-05/0.4727, allocations: 4 kB / 1.208 GB, free: 11.78 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004594/0.4732, allocations: 379.8 kB / 1.208 GB, free: 11.4 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-05/0.4732, allocations: 3.984 kB / 1.208 GB, free: 11.4 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.4732, allocations: 0 / 1.208 GB, free: 11.4 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.4732, allocations: 7.938 kB / 1.208 GB, free: 11.39 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002691/0.4735, allocations: 285.4 kB / 1.208 GB, free: 11.06 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.4735, allocations: 0 / 1.208 GB, free: 11.06 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.799e-05/0.4736, allocations: 19.98 kB / 1.208 GB, free: 11.04 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.4736, allocations: 0 / 1.208 GB, free: 11.04 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.182e-05/0.4736, allocations: 11.94 kB / 1.209 GB, free: 11.03 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.4736, allocations: 0 / 1.209 GB, free: 11.03 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.4736, allocations: 4 kB / 1.209 GB, free: 11.03 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003193/0.474, allocations: 338.8 kB / 1.209 GB, free: 10.68 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.95e-05/0.4741, allocations: 108.8 kB / 1.209 GB, free: 10.56 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.555e-05/0.4741, allocations: 4 kB / 1.209 GB, free: 10.55 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001421/0.4742, allocations: 11.98 kB / 1.209 GB, free: 10.54 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.119e-05/0.4743, allocations: 7.984 kB / 1.209 GB, free: 10.54 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.314e-05/0.4743, allocations: 7.938 kB / 1.209 GB, free: 10.53 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.783e-05/0.4743, allocations: 87.27 kB / 1.209 GB, free: 10.44 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4743, allocations: 0 / 1.209 GB, free: 10.44 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0008622/0.4752, allocations: 295.9 kB / 1.209 GB, free: 10.15 MB / 0.9669 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.001368/0.4766, allocations: 386.9 kB / 1.21 GB, free: 9.762 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002075/0.4768, allocations: 131.9 kB / 1.21 GB, free: 9.633 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.4768, allocations: 0 / 1.21 GB, free: 9.633 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001229/0.4769, allocations: 111.9 kB / 1.21 GB, free: 9.523 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003267/0.4773, allocations: 15.98 kB / 1.21 GB, free: 9.508 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005587/0.4778, allocations: 413.5 kB / 1.21 GB, free: 9.074 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002401/0.4781, allocations: 0.7208 MB / 1.211 GB, free: 8.328 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.086e-05/0.4781, allocations: 19.44 kB / 1.211 GB, free: 8.309 MB / 0.9669 GB Notification: Performance of SimCode: time 1.853e-06/0.4781, allocations: 0 / 1.211 GB, free: 8.309 MB / 0.9669 GB Notification: Performance of Templates: time 0.0106/0.4887, allocations: 6.737 MB / 1.218 GB, free: 1.562 MB / 0.9669 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.SteamSaturationConsistencyCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches