Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.001358/0.001358, allocations: 92.39 kB / 15.06 MB, free: 1.098 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.001697/0.001697, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.5/1.5, allocations: 223.3 MB / 240 MB, free: 5.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.818/2.818, allocations: 437.7 MB / 0.7117 GB, free: 7.004 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004303/0.0004305, allocations: 12 kB / 0.8722 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9055/0.9059, allocations: 153.8 MB / 1.022 GB, free: 8 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamSaturationConsistencyCheck): time 0.18/1.086, allocations: 122.7 MB / 1.142 GB, free: 4.969 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.01024/1.096, allocations: 7.478 MB / 1.149 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.18e-05/1.096, allocations: 0 / 1.149 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0001865/1.097, allocations: 19.89 kB / 1.15 GB, free: 13.45 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 7.44e-05/1.097, allocations: 15.84 kB / 1.15 GB, free: 13.43 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.003743/1.1, allocations: 1.117 MB / 1.151 GB, free: 12.32 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.000146/1.101, allocations: 71.64 kB / 1.151 GB, free: 12.25 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 5.258e-05/1.101, allocations: 8 kB / 1.151 GB, free: 12.24 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001554/1.101, allocations: 43.83 kB / 1.151 GB, free: 12.2 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001126/1.101, allocations: 27.91 kB / 1.151 GB, free: 12.17 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 1.533e-05/1.101, allocations: 4 kB / 1.151 GB, free: 12.16 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005227/1.106, allocations: 2.516 MB / 1.153 GB, free: 9.645 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 3.207e-05/1.106, allocations: 11.97 kB / 1.153 GB, free: 9.633 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 4.579e-05/1.106, allocations: 37.64 kB / 1.153 GB, free: 9.59 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.001813/1.108, allocations: 0.9102 MB / 1.154 GB, free: 8.68 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 6.092e-06/1.108, allocations: 0 / 1.154 GB, free: 8.68 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.705e-06/1.108, allocations: 0 / 1.154 GB, free: 8.68 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 5.3e-06/1.108, allocations: 3.938 kB / 1.154 GB, free: 8.676 MB / 0.9044 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.001249/1.109, allocations: 496.7 kB / 1.155 GB, free: 8.145 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.821e-05/1.109, allocations: 8.562 kB / 1.155 GB, free: 8.137 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003921/1.11, allocations: 19.98 kB / 1.155 GB, free: 8.117 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001577/1.11, allocations: 178.8 kB / 1.155 GB, free: 7.902 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.667e-05/1.11, allocations: 29.7 kB / 1.155 GB, free: 7.867 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.08e-05/1.11, allocations: 8 kB / 1.155 GB, free: 7.859 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004071/1.111, allocations: 121.6 kB / 1.155 GB, free: 7.734 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/1.111, allocations: 0 / 1.155 GB, free: 7.734 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.137e-05/1.111, allocations: 4 kB / 1.155 GB, free: 7.73 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/1.111, allocations: 4 kB / 1.155 GB, free: 7.727 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002959/1.111, allocations: 111.9 kB / 1.155 GB, free: 7.617 MB / 0.9044 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.0008701/1.112, allocations: 388 kB / 1.155 GB, free: 7.176 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003688/1.112, allocations: 118.6 kB / 1.156 GB, free: 7.051 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001236/1.112, allocations: 52.83 kB / 1.156 GB, free: 6.996 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01503/1.127, allocations: 4.257 MB / 1.16 GB, free: 2.422 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.168e-05/1.127, allocations: 30.56 kB / 1.16 GB, free: 2.383 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=13): time 3.076e-06/1.127, allocations: 0 / 1.16 GB, free: 2.383 MB / 0.9044 GB Notification: Performance of matching and sorting (n=13): time 0.000878/1.128, allocations: 161.5 kB / 1.16 GB, free: 2.219 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.36e-05/1.128, allocations: 55.41 kB / 1.16 GB, free: 2.152 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001119/1.129, allocations: 101.8 kB / 1.16 GB, free: 2.043 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.656e-05/1.129, allocations: 25.7 kB / 1.16 GB, free: 2.012 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 6.933e-05/1.129, allocations: 100 kB / 1.16 GB, free: 1.91 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 6.409e-05/1.129, allocations: 35.55 kB / 1.16 GB, free: 1.875 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.216e-06/1.129, allocations: 0 / 1.16 GB, free: 1.875 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001512/1.129, allocations: 318.8 kB / 1.161 GB, free: 1.555 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.509e-05/1.129, allocations: 27.98 kB / 1.161 GB, free: 1.527 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.596e-05/1.129, allocations: 27.98 kB / 1.161 GB, free: 1.5 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.254e-05/1.129, allocations: 29.25 kB / 1.161 GB, free: 1.473 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/1.129, allocations: 0 / 1.161 GB, free: 1.473 MB / 0.9044 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002629/1.129, allocations: 110.5 kB / 1.161 GB, free: 1.359 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.491e-05/1.129, allocations: 8 kB / 1.161 GB, free: 1.352 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/1.129, allocations: 192 / 1.161 GB, free: 1.352 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.737e-05/1.13, allocations: 0 / 1.161 GB, free: 1.352 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001649/1.13, allocations: 23.98 kB / 1.161 GB, free: 1.328 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.456e-06/1.13, allocations: 0 / 1.161 GB, free: 1.328 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.776e-05/1.13, allocations: 11.94 kB / 1.161 GB, free: 1.316 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.909e-05/1.13, allocations: 4 kB / 1.161 GB, free: 1.312 MB / 0.9044 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001326/1.13, allocations: 117.8 kB / 1.161 GB, free: 1.188 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.669e-05/1.13, allocations: 11.84 kB / 1.161 GB, free: 1.176 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006155/1.131, allocations: 364 kB / 1.161 GB, free: 0.8164 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.885e-05/1.131, allocations: 11.98 kB / 1.161 GB, free: 0.8047 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/1.131, allocations: 4 kB / 1.161 GB, free: 0.8008 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/1.131, allocations: 0 / 1.161 GB, free: 0.8008 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004457/1.131, allocations: 289.2 kB / 1.162 GB, free: 480 kB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/1.131, allocations: 4 kB / 1.162 GB, free: 476 kB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001355/1.131, allocations: 16 kB / 1.162 GB, free: 460 kB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.671e-05/1.131, allocations: 7.984 kB / 1.162 GB, free: 452 kB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.692e-05/1.131, allocations: 11.88 kB / 1.162 GB, free: 440 kB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.382e-06/1.131, allocations: 3.984 kB / 1.162 GB, free: 436 kB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/1.131, allocations: 0 / 1.162 GB, free: 436 kB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004981/1.132, allocations: 330.9 kB / 1.162 GB, free: 88 kB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001321/1.132, allocations: 100.9 kB / 1.162 GB, free: 15.97 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.914e-05/1.132, allocations: 12 kB / 1.162 GB, free: 15.96 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001894/1.132, allocations: 7.906 kB / 1.162 GB, free: 15.95 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.029e-05/1.132, allocations: 7.984 kB / 1.162 GB, free: 15.94 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.31e-05/1.132, allocations: 11.98 kB / 1.162 GB, free: 15.93 MB / 0.92 GB Notification: Performance of sorting global known variables: time 4.939e-05/1.132, allocations: 75.28 kB / 1.162 GB, free: 15.86 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.6e-07/1.132, allocations: 0 / 1.162 GB, free: 15.86 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.001458/1.134, allocations: 299.9 kB / 1.162 GB, free: 15.56 MB / 0.92 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001764/1.136, allocations: 406.8 kB / 1.163 GB, free: 15.16 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002329/1.136, allocations: 124 kB / 1.163 GB, free: 15.04 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/1.136, allocations: 0 / 1.163 GB, free: 15.04 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.000143/1.136, allocations: 118 kB / 1.163 GB, free: 14.92 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003251/1.136, allocations: 15.98 kB / 1.163 GB, free: 14.91 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006461/1.137, allocations: 389.8 kB / 1.163 GB, free: 14.5 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003284/1.137, allocations: 0.713 MB / 1.164 GB, free: 13.76 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0001293/1.138, allocations: 32.48 kB / 1.164 GB, free: 13.73 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.629e-05/1.138, allocations: 15.44 kB / 1.164 GB, free: 13.71 MB / 0.92 GB Notification: Performance of SimCode: time 5.71e-07/1.138, allocations: 0 / 1.164 GB, free: 13.71 MB / 0.92 GB Notification: Performance of Templates: time 0.01872/1.156, allocations: 9.98 MB / 1.174 GB, free: 3.727 MB / 0.92 GB make -j1 -f Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck.makefile (rm -f Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe ; mkfifo Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe >> ../files/Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck.sim & ./Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Examples_SteamSaturationConsistencyCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches