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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.01058/0.01058, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001657/0.001657, allocations: 196.9 kB / 16.67 MB, free: 5.973 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.41/1.41, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.505/2.505, allocations: 390.2 MB / 0.6648 GB, free: 216 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 62.53 kB / 0.9508 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3144/0.3156, allocations: 140.4 MB / 1.088 GB, free: 1.512 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamSaturationConsistencyCheck): time 0.1677/0.4833, allocations: 135.6 MB / 1.22 GB, free: 9.398 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.01093/0.4943, allocations: 7.923 MB / 1.228 GB, free: 1.438 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001024/0.4945, allocations: 3.938 kB / 1.228 GB, free: 1.434 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0002594/0.4948, allocations: 19.91 kB / 1.228 GB, free: 1.414 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.32e-05/0.4949, allocations: 19.83 kB / 1.228 GB, free: 1.395 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.004154/0.4991, allocations: 1.477 MB / 1.23 GB, free: 15.92 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001342/0.4992, allocations: 67.66 kB / 1.23 GB, free: 15.85 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.488e-05/0.4993, allocations: 11.98 kB / 1.23 GB, free: 15.84 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001277/0.4994, allocations: 47.84 kB / 1.23 GB, free: 15.79 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 8.628e-05/0.4995, allocations: 35.83 kB / 1.23 GB, free: 15.76 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.446e-05/0.4995, allocations: 4 kB / 1.23 GB, free: 15.75 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004489/0.504, allocations: 2.708 MB / 1.232 GB, free: 13.04 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.983e-05/0.504, allocations: 11.92 kB / 1.232 GB, free: 13.03 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 5.938e-05/0.5041, allocations: 35.8 kB / 1.232 GB, free: 13 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.002141/0.5063, allocations: 1.372 MB / 1.234 GB, free: 11.62 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.5063, allocations: 0 / 1.234 GB, free: 11.62 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.613e-06/0.5063, allocations: 4 kB / 1.234 GB, free: 11.62 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 9.387e-06/0.5063, allocations: 0 / 1.234 GB, free: 11.62 MB / 0.9981 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.000998/0.5073, allocations: 0.5022 MB / 1.234 GB, free: 11.07 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.823e-05/0.5074, allocations: 12.03 kB / 1.234 GB, free: 11.05 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003824/0.5078, allocations: 20.91 kB / 1.234 GB, free: 11.04 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002037/0.508, allocations: 176.2 kB / 1.234 GB, free: 10.82 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.728e-05/0.5081, allocations: 34.27 kB / 1.234 GB, free: 10.79 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.094e-05/0.5081, allocations: 7.938 kB / 1.234 GB, free: 10.78 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003791/0.5085, allocations: 121.6 kB / 1.235 GB, free: 10.65 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.5085, allocations: 0 / 1.235 GB, free: 10.65 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.57e-05/0.5085, allocations: 4 kB / 1.235 GB, free: 10.65 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.296e-06/0.5085, allocations: 0 / 1.235 GB, free: 10.65 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002938/0.5088, allocations: 115.9 kB / 1.235 GB, free: 10.54 MB / 0.9981 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.0006078/0.5094, allocations: 384 kB / 1.235 GB, free: 10.1 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002717/0.5097, allocations: 126.6 kB / 1.235 GB, free: 9.965 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.09e-05/0.5098, allocations: 56.77 kB / 1.235 GB, free: 9.906 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01211/0.5219, allocations: 4.222 MB / 1.239 GB, free: 5.367 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.769e-05/0.522, allocations: 34.56 kB / 1.239 GB, free: 5.324 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=13): time 4.218e-06/0.522, allocations: 0 / 1.239 GB, free: 5.324 MB / 0.9981 GB Notification: Performance of matching and sorting (n=13): time 0.0005604/0.5226, allocations: 173.1 kB / 1.24 GB, free: 5.152 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.381e-05/0.5227, allocations: 55.41 kB / 1.24 GB, free: 5.086 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.785e-05/0.5227, allocations: 105.8 kB / 1.24 GB, free: 4.973 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.933e-05/0.5228, allocations: 25.7 kB / 1.24 GB, free: 4.941 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 5.976e-05/0.5228, allocations: 92.12 kB / 1.24 GB, free: 4.848 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 5.158e-05/0.5229, allocations: 47.58 kB / 1.24 GB, free: 4.801 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.7e-05/0.523, allocations: 29.7 kB / 1.24 GB, free: 4.766 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001179/0.5231, allocations: 318.8 kB / 1.24 GB, free: 4.445 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.955e-05/0.5231, allocations: 27.98 kB / 1.24 GB, free: 4.418 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.615e-05/0.5232, allocations: 23.98 kB / 1.24 GB, free: 4.395 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001122/0.5233, allocations: 68.84 kB / 1.24 GB, free: 4.324 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.5233, allocations: 0 / 1.24 GB, free: 4.324 MB / 0.9981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001851/0.5235, allocations: 117.6 kB / 1.24 GB, free: 4.203 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/0.5235, allocations: 4 kB / 1.24 GB, free: 4.199 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.5236, allocations: 0 / 1.24 GB, free: 4.199 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.5236, allocations: 0 / 1.24 GB, free: 4.199 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001352/0.5237, allocations: 23.98 kB / 1.24 GB, free: 4.176 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.236e-06/0.5237, allocations: 0 / 1.24 GB, free: 4.176 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.195e-05/0.5238, allocations: 3.938 kB / 1.24 GB, free: 4.172 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.274e-05/0.5238, allocations: 8 kB / 1.24 GB, free: 4.164 MB / 0.9981 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.445e-05/0.5239, allocations: 117.8 kB / 1.241 GB, free: 4.039 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.175e-05/0.524, allocations: 15.94 kB / 1.241 GB, free: 4.023 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000468/0.5244, allocations: 355 kB / 1.241 GB, free: 3.676 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.365e-05/0.5245, allocations: 11.98 kB / 1.241 GB, free: 3.664 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.5245, allocations: 0 / 1.241 GB, free: 3.664 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.5245, allocations: 3.938 kB / 1.241 GB, free: 3.66 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003134/0.5248, allocations: 289.1 kB / 1.241 GB, free: 3.328 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.5248, allocations: 0 / 1.241 GB, free: 3.328 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001051/0.5249, allocations: 27.92 kB / 1.241 GB, free: 3.301 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.5249, allocations: 0 / 1.241 GB, free: 3.301 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.372e-05/0.525, allocations: 7.984 kB / 1.241 GB, free: 3.293 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.028e-06/0.525, allocations: 4 kB / 1.241 GB, free: 3.289 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.525, allocations: 4 kB / 1.241 GB, free: 3.285 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004171/0.5254, allocations: 323.3 kB / 1.242 GB, free: 2.953 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 8.096e-05/0.5255, allocations: 108.9 kB / 1.242 GB, free: 2.828 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.123e-05/0.5255, allocations: 4 kB / 1.242 GB, free: 2.824 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001395/0.5257, allocations: 7.938 kB / 1.242 GB, free: 2.816 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.446e-05/0.5257, allocations: 7.984 kB / 1.242 GB, free: 2.809 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.497e-05/0.5257, allocations: 15.92 kB / 1.242 GB, free: 2.793 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 4.454e-05/0.5258, allocations: 83.28 kB / 1.242 GB, free: 2.711 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.533e-06/0.5258, allocations: 0 / 1.242 GB, free: 2.711 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0009493/0.5267, allocations: 307.5 kB / 1.242 GB, free: 2.41 MB / 0.9981 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.001623/0.5284, allocations: 391.1 kB / 1.242 GB, free: 2.016 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002426/0.5286, allocations: 131.8 kB / 1.243 GB, free: 1.887 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.5286, allocations: 0 / 1.243 GB, free: 1.887 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001383/0.5288, allocations: 108 kB / 1.243 GB, free: 1.781 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003258/0.5291, allocations: 19.98 kB / 1.243 GB, free: 1.762 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005213/0.5296, allocations: 320.2 kB / 1.243 GB, free: 1.422 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002936/0.5299, allocations: 0.7166 MB / 1.244 GB, free: 0.6797 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001309/0.5301, allocations: 40.31 kB / 1.244 GB, free: 0.6406 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.649e-05/0.5301, allocations: 11.44 kB / 1.244 GB, free: 0.6289 MB / 0.9981 GB Notification: Performance of SimCode: time 4.11e-07/0.5301, allocations: 0 / 1.244 GB, free: 0.6289 MB / 0.9981 GB Notification: Performance of Templates: time 0.01554/0.5457, allocations: 9.798 MB / 1.253 GB, free: 6.832 MB / 1.014 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.SteamSaturationConsistencyCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches