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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0009834/0.0009835, allocations: 98.88 kB / 16.02 MB, free: 76 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.001127/0.001127, allocations: 187.8 kB / 16.93 MB, free: 6.773 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.405/1.405, allocations: 223.3 MB / 241 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.414/2.414, allocations: 390.9 MB / 0.667 GB, free: 2.406 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003876/0.0003876, allocations: 15.98 kB / 0.8166 GB, free: 13.31 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6804/0.6808, allocations: 142.4 MB / 0.9557 GB, free: 7.973 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamSaturationConsistencyCheck): time 0.1716/0.8524, allocations: 131.7 MB / 1.084 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.009871/0.8623, allocations: 8.409 MB / 1.093 GB, free: 2.922 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.749e-05/0.8624, allocations: 0 / 1.093 GB, free: 2.922 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001792/0.8626, allocations: 19.89 kB / 1.093 GB, free: 2.902 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 6.794e-05/0.8627, allocations: 19.86 kB / 1.093 GB, free: 2.883 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.003119/0.8658, allocations: 1.156 MB / 1.094 GB, free: 1.73 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001148/0.8659, allocations: 75.64 kB / 1.094 GB, free: 1.656 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 4.146e-05/0.866, allocations: 4 kB / 1.094 GB, free: 1.652 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001338/0.8661, allocations: 47.83 kB / 1.094 GB, free: 1.605 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 8.201e-05/0.8662, allocations: 31.86 kB / 1.094 GB, free: 1.574 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.293e-05/0.8662, allocations: 0 / 1.094 GB, free: 1.574 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004173/0.8704, allocations: 2.665 MB / 1.096 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.31e-05/0.8705, allocations: 11.98 kB / 1.096 GB, free: 14.89 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.835e-05/0.8705, allocations: 53.56 kB / 1.097 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001179/0.8717, allocations: 0.92 MB / 1.097 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.8717, allocations: 3.938 kB / 1.097 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.204e-06/0.8717, allocations: 4 kB / 1.097 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.659e-06/0.8717, allocations: 0 / 1.097 GB, free: 13.91 MB / 0.8575 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.0009436/0.8727, allocations: 487.2 kB / 1.098 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.8727, allocations: 12.03 kB / 1.098 GB, free: 13.37 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000355/0.8731, allocations: 16.92 kB / 1.098 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001206/0.8732, allocations: 176.2 kB / 1.098 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.741e-05/0.8733, allocations: 34.27 kB / 1.098 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.642e-05/0.8733, allocations: 15.88 kB / 1.098 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000348/0.8737, allocations: 117.6 kB / 1.098 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.8737, allocations: 7.922 kB / 1.098 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.454e-05/0.8737, allocations: 0 / 1.098 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.8737, allocations: 0 / 1.098 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002915/0.874, allocations: 122 kB / 1.098 GB, free: 12.84 MB / 0.8575 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.0004985/0.8745, allocations: 372.1 kB / 1.099 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000264/0.8748, allocations: 126.6 kB / 1.099 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.667e-05/0.8749, allocations: 56.77 kB / 1.099 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01157/0.8865, allocations: 4.253 MB / 1.103 GB, free: 7.656 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.616e-05/0.8866, allocations: 34.56 kB / 1.103 GB, free: 7.613 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=13): time 1.803e-06/0.8866, allocations: 0 / 1.103 GB, free: 7.613 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13): time 0.0005316/0.8871, allocations: 159.1 kB / 1.103 GB, free: 7.453 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.203e-05/0.8872, allocations: 55.39 kB / 1.103 GB, free: 7.387 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.943e-05/0.8873, allocations: 101.9 kB / 1.103 GB, free: 7.277 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.603e-05/0.8873, allocations: 33.7 kB / 1.103 GB, free: 7.238 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.427e-05/0.8874, allocations: 84.05 kB / 1.104 GB, free: 7.152 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.654e-05/0.8874, allocations: 39.58 kB / 1.104 GB, free: 7.113 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.359e-05/0.8874, allocations: 21.7 kB / 1.104 GB, free: 7.086 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001261/0.8876, allocations: 318.8 kB / 1.104 GB, free: 6.766 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.777e-05/0.8876, allocations: 31.92 kB / 1.104 GB, free: 6.734 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.465e-05/0.8877, allocations: 25.61 kB / 1.104 GB, free: 6.711 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001198/0.8878, allocations: 68.84 kB / 1.104 GB, free: 6.641 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.8878, allocations: 4 kB / 1.104 GB, free: 6.637 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001864/0.888, allocations: 111 kB / 1.104 GB, free: 6.523 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/0.888, allocations: 4 kB / 1.104 GB, free: 6.52 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.888, allocations: 0 / 1.104 GB, free: 6.52 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.459e-05/0.8881, allocations: 4 kB / 1.104 GB, free: 6.516 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001272/0.8882, allocations: 23.92 kB / 1.104 GB, free: 6.492 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.651e-06/0.8882, allocations: 0 / 1.104 GB, free: 6.492 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.74e-05/0.8883, allocations: 11.88 kB / 1.104 GB, free: 6.48 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.039e-05/0.8883, allocations: 4 kB / 1.104 GB, free: 6.477 MB / 0.8575 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.064e-05/0.8884, allocations: 117.8 kB / 1.104 GB, free: 6.352 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.694e-05/0.8884, allocations: 7.906 kB / 1.104 GB, free: 6.344 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004601/0.8889, allocations: 371.9 kB / 1.105 GB, free: 5.969 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.197e-05/0.8889, allocations: 7.984 kB / 1.105 GB, free: 5.961 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.8889, allocations: 4 kB / 1.105 GB, free: 5.957 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.8889, allocations: 3.938 kB / 1.105 GB, free: 5.953 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000279/0.8892, allocations: 289.4 kB / 1.105 GB, free: 5.621 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.8892, allocations: 3.938 kB / 1.105 GB, free: 5.617 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.552e-05/0.8893, allocations: 19.98 kB / 1.105 GB, free: 5.598 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.8894, allocations: 3.984 kB / 1.105 GB, free: 5.594 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.279e-05/0.8894, allocations: 8 kB / 1.105 GB, free: 5.586 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.8894, allocations: 4 kB / 1.105 GB, free: 5.582 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.91e-07/0.8894, allocations: 0 / 1.105 GB, free: 5.582 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003461/0.8897, allocations: 338.8 kB / 1.105 GB, free: 5.234 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 7.126e-05/0.8898, allocations: 100.9 kB / 1.105 GB, free: 5.117 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.704e-05/0.8898, allocations: 4 kB / 1.105 GB, free: 5.113 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001453/0.89, allocations: 7.984 kB / 1.105 GB, free: 5.105 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.25e-05/0.89, allocations: 7.984 kB / 1.105 GB, free: 5.098 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.583e-05/0.89, allocations: 11.94 kB / 1.105 GB, free: 5.086 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.57e-05/0.8901, allocations: 83.27 kB / 1.105 GB, free: 5.004 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.41e-07/0.8901, allocations: 0 / 1.105 GB, free: 5.004 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0008699/0.891, allocations: 291.9 kB / 1.106 GB, free: 4.719 MB / 0.8575 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.001327/0.8923, allocations: 403 kB / 1.106 GB, free: 4.316 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002419/0.8926, allocations: 123.9 kB / 1.106 GB, free: 4.195 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.8926, allocations: 0 / 1.106 GB, free: 4.195 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001953/0.8928, allocations: 111.9 kB / 1.106 GB, free: 4.086 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005077/0.8933, allocations: 17.39 kB / 1.106 GB, free: 4.07 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006532/0.894, allocations: 417.5 kB / 1.107 GB, free: 3.637 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003239/0.8943, allocations: 0.7208 MB / 1.107 GB, free: 2.891 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.373e-05/0.8943, allocations: 15.44 kB / 1.108 GB, free: 2.875 MB / 0.8575 GB Notification: Performance of SimCode: time 3.71e-07/0.8944, allocations: 0 / 1.108 GB, free: 2.875 MB / 0.8575 GB Notification: Performance of Templates: time 0.01137/0.9057, allocations: 6.736 MB / 1.114 GB, free: 12.13 MB / 0.8731 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.SteamSaturationConsistencyCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches