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.001563/0.001563, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001681/0.001681, allocations: 195.2 kB / 16.26 MB, free: 6.621 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.392/1.392, allocations: 222.9 MB / 239.9 MB, free: 4.535 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.422/2.422, allocations: 390.2 MB / 0.6643 GB, free: 0.5586 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001454/0.001454, allocations: 67.91 kB / 0.812 GB, free: 14.77 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7005/0.7019, allocations: 140.4 MB / 0.9491 GB, free: 9.141 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamSaturationConsistencyCheck): time 0.1553/0.8573, allocations: 133.7 MB / 1.08 GB, free: 11.87 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.009475/0.8668, allocations: 7.975 MB / 1.087 GB, free: 3.867 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.014e-05/0.8669, allocations: 7.938 kB / 1.087 GB, free: 3.859 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001897/0.8671, allocations: 23.89 kB / 1.087 GB, free: 3.836 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 4.71e-05/0.8672, allocations: 15.91 kB / 1.087 GB, free: 3.82 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.003766/0.871, allocations: 1.288 MB / 1.089 GB, free: 2.535 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001292/0.8712, allocations: 83.56 kB / 1.089 GB, free: 2.453 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 4.587e-05/0.8712, allocations: 8 kB / 1.089 GB, free: 2.445 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001282/0.8713, allocations: 43.84 kB / 1.089 GB, free: 2.402 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 8.394e-05/0.8714, allocations: 27.91 kB / 1.089 GB, free: 2.375 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.506e-05/0.8715, allocations: 4 kB / 1.089 GB, free: 2.371 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004052/0.8755, allocations: 2.649 MB / 1.091 GB, free: 15.72 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.04e-05/0.8756, allocations: 15.92 kB / 1.091 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.169e-05/0.8756, allocations: 31.84 kB / 1.091 GB, free: 15.67 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.002135/0.8778, allocations: 1.388 MB / 1.093 GB, free: 14.28 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.8778, allocations: 0 / 1.093 GB, free: 14.28 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.402e-06/0.8778, allocations: 0 / 1.093 GB, free: 14.28 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.621e-06/0.8778, allocations: 0 / 1.093 GB, free: 14.28 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.000937/0.8787, allocations: 495.2 kB / 1.093 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.8788, allocations: 12.02 kB / 1.093 GB, free: 13.74 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003639/0.8792, allocations: 24.83 kB / 1.093 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001249/0.8793, allocations: 168.3 kB / 1.094 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.666e-05/0.8794, allocations: 38.2 kB / 1.094 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.057e-05/0.8794, allocations: 15.91 kB / 1.094 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003426/0.8797, allocations: 117.6 kB / 1.094 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.8798, allocations: 3.938 kB / 1.094 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.275e-05/0.8798, allocations: 0 / 1.094 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.8798, allocations: 4 kB / 1.094 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002872/0.8801, allocations: 115.9 kB / 1.094 GB, free: 13.21 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.0004654/0.8806, allocations: 384 kB / 1.094 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002605/0.8808, allocations: 126.5 kB / 1.094 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.798e-05/0.8809, allocations: 56.78 kB / 1.094 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01098/0.8919, allocations: 4.206 MB / 1.098 GB, free: 8.059 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.333e-05/0.892, allocations: 34.56 kB / 1.098 GB, free: 8.016 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=13): time 1.904e-06/0.892, allocations: 0 / 1.098 GB, free: 8.016 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13): time 0.0005636/0.8926, allocations: 165.5 kB / 1.099 GB, free: 7.848 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.554e-05/0.8926, allocations: 51.41 kB / 1.099 GB, free: 7.785 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.09e-05/0.8927, allocations: 97.84 kB / 1.099 GB, free: 7.68 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.243e-05/0.8928, allocations: 29.7 kB / 1.099 GB, free: 7.645 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.417e-05/0.8928, allocations: 84.14 kB / 1.099 GB, free: 7.559 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.297e-05/0.8929, allocations: 47.53 kB / 1.099 GB, free: 7.512 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.945e-05/0.8929, allocations: 29.61 kB / 1.099 GB, free: 7.477 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001237/0.8931, allocations: 322.7 kB / 1.099 GB, free: 7.152 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.792e-05/0.8931, allocations: 27.98 kB / 1.099 GB, free: 7.125 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.794e-05/0.8932, allocations: 24.86 kB / 1.099 GB, free: 7.102 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001104/0.8933, allocations: 70.84 kB / 1.099 GB, free: 7.031 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.8933, allocations: 0 / 1.099 GB, free: 7.031 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001884/0.8935, allocations: 105.7 kB / 1.099 GB, free: 6.922 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/0.8935, allocations: 4 kB / 1.099 GB, free: 6.918 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.8935, allocations: 11.94 kB / 1.1 GB, free: 6.906 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/0.8935, allocations: 4 kB / 1.1 GB, free: 6.902 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001353/0.8937, allocations: 23.92 kB / 1.1 GB, free: 6.879 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.8937, allocations: 0 / 1.1 GB, free: 6.879 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.915e-05/0.8938, allocations: 11.84 kB / 1.1 GB, free: 6.867 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.778e-06/0.8938, allocations: 4 kB / 1.1 GB, free: 6.863 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.471e-05/0.8939, allocations: 113.8 kB / 1.1 GB, free: 6.742 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.557e-05/0.8939, allocations: 4 kB / 1.1 GB, free: 6.738 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004529/0.8944, allocations: 387.5 kB / 1.1 GB, free: 6.352 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.818e-06/0.8944, allocations: 3.984 kB / 1.1 GB, free: 6.348 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.8944, allocations: 0 / 1.1 GB, free: 6.348 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.8944, allocations: 3.938 kB / 1.1 GB, free: 6.344 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002837/0.8947, allocations: 281.4 kB / 1.1 GB, free: 6.02 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.8947, allocations: 0 / 1.1 GB, free: 6.02 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001006/0.8948, allocations: 27.98 kB / 1.1 GB, free: 5.992 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.8948, allocations: 0 / 1.1 GB, free: 5.992 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.114e-05/0.8949, allocations: 4 kB / 1.1 GB, free: 5.988 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.8949, allocations: 3.984 kB / 1.1 GB, free: 5.984 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.8949, allocations: 0 / 1.1 GB, free: 5.984 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003479/0.8952, allocations: 338.8 kB / 1.101 GB, free: 5.637 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.732e-05/0.8953, allocations: 100.8 kB / 1.101 GB, free: 5.52 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.973e-05/0.8953, allocations: 8.172 kB / 1.101 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001438/0.8955, allocations: 8 kB / 1.101 GB, free: 5.504 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.538e-05/0.8955, allocations: 15.97 kB / 1.101 GB, free: 5.488 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.468e-05/0.8955, allocations: 7.938 kB / 1.101 GB, free: 5.48 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.729e-05/0.8956, allocations: 79.27 kB / 1.101 GB, free: 5.402 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8956, allocations: 4 kB / 1.101 GB, free: 5.398 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0009205/0.8965, allocations: 295.9 kB / 1.101 GB, free: 5.109 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.001306/0.8978, allocations: 404.3 kB / 1.102 GB, free: 4.707 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002572/0.8981, allocations: 129.8 kB / 1.102 GB, free: 4.582 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.8981, allocations: 4 kB / 1.102 GB, free: 4.578 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001369/0.8982, allocations: 107.9 kB / 1.102 GB, free: 4.473 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003071/0.8986, allocations: 19.98 kB / 1.102 GB, free: 4.453 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005243/0.8991, allocations: 378.4 kB / 1.102 GB, free: 4.059 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002819/0.8994, allocations: 0.7166 MB / 1.103 GB, free: 3.316 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001219/0.8995, allocations: 32.34 kB / 1.103 GB, free: 3.285 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.579e-05/0.8996, allocations: 15.44 kB / 1.103 GB, free: 3.27 MB / 0.8575 GB Notification: Performance of SimCode: time 5.11e-07/0.8996, allocations: 0 / 1.103 GB, free: 3.27 MB / 0.8575 GB Notification: Performance of Templates: time 0.01486/0.9144, allocations: 9.815 MB / 1.112 GB, free: 9.449 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.SteamSaturationConsistencyCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches