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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.477/2.477, allocations: 387.1 MB / 399.7 MB, free: 9.465 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00106/0.00106, allocations: 177 kB / 492.3 MB, free: 0.6016 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.579/1.579, allocations: 221.3 MB / 0.7871 GB, free: 12.93 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009245/0.0009244, allocations: 99.64 kB / 0.9267 GB, free: 14.01 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.06e-05/3.063e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3885/0.3885, allocations: 142.3 MB / 1.212 GB, free: 38.55 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 2.388/2.777, allocations: 0.6898 GB / 1.902 GB, free: 273 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000227/2.777, allocations: 71.16 kB / 1.902 GB, free: 273 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 0.147/2.924, allocations: 64.79 MB / 1.966 GB, free: 215.2 MB / 1.151 GB Notification: Performance of FrontEnd: time 3.837e-06/2.924, allocations: 0 / 1.966 GB, free: 215.2 MB / 1.151 GB Notification: Performance of Transformations before backend: time 1.242e-05/2.924, allocations: 7.938 kB / 1.966 GB, free: 215.2 MB / 1.151 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.002217/2.926, allocations: 496.4 kB / 1.966 GB, free: 214.7 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/2.926, allocations: 16.03 kB / 1.966 GB, free: 214.7 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003994/2.927, allocations: 23.92 kB / 1.966 GB, free: 214.7 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001015/2.927, allocations: 174.9 kB / 1.966 GB, free: 214.5 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.679e-05/2.927, allocations: 29.02 kB / 1.966 GB, free: 214.4 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.641e-05/2.927, allocations: 11.06 kB / 1.966 GB, free: 214.4 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003335/2.927, allocations: 121.3 kB / 1.966 GB, free: 214.3 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.758e-06/2.927, allocations: 0 / 1.966 GB, free: 214.3 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.848e-05/2.927, allocations: 7.25 kB / 1.966 GB, free: 214.3 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.643e-06/2.927, allocations: 7.953 kB / 1.966 GB, free: 214.3 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002701/2.927, allocations: 133.4 kB / 1.967 GB, free: 214.2 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004273/2.928, allocations: 325.5 kB / 1.967 GB, free: 213.9 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002244/2.928, allocations: 128.5 kB / 1.967 GB, free: 213.8 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.451e-05/2.928, allocations: 50.48 kB / 1.967 GB, free: 213.7 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009827/2.938, allocations: 4.179 MB / 1.971 GB, free: 209.3 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.229e-05/2.938, allocations: 42.45 kB / 1.971 GB, free: 209.3 MB / 1.151 GB Notification: Performance of pre-optimization done (n=13): time 1.653e-06/2.938, allocations: 0 / 1.971 GB, free: 209.3 MB / 1.151 GB Notification: Performance of matching and sorting (n=13): time 0.0004539/2.939, allocations: 137.1 kB / 1.971 GB, free: 209.2 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.692e-05/2.939, allocations: 51.41 kB / 1.971 GB, free: 209.1 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.348e-05/2.939, allocations: 89 kB / 1.971 GB, free: 209 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 1.64e-05/2.939, allocations: 32.83 kB / 1.971 GB, free: 209 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 3.812e-05/2.939, allocations: 84.12 kB / 1.972 GB, free: 208.9 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 3.034e-05/2.939, allocations: 37.95 kB / 1.972 GB, free: 208.8 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.881e-06/2.939, allocations: 2.812 kB / 1.972 GB, free: 208.8 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 5.943e-05/2.939, allocations: 321.3 kB / 1.972 GB, free: 208.5 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.824e-05/2.939, allocations: 20.75 kB / 1.972 GB, free: 208.5 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.83e-05/2.939, allocations: 27.25 kB / 1.972 GB, free: 208.5 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.042e-05/2.939, allocations: 33.05 kB / 1.972 GB, free: 208.5 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/2.939, allocations: 0 / 1.972 GB, free: 208.5 MB / 1.151 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001477/2.939, allocations: 111.3 kB / 1.972 GB, free: 208.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/2.939, allocations: 7.984 kB / 1.972 GB, free: 208.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.194e-06/2.939, allocations: 3.953 kB / 1.972 GB, free: 208.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.478e-05/2.939, allocations: 0 / 1.972 GB, free: 208.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001258/2.939, allocations: 19.98 kB / 1.972 GB, free: 208.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.577e-06/2.939, allocations: 4 kB / 1.972 GB, free: 208.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.331e-05/2.939, allocations: 3.938 kB / 1.972 GB, free: 208.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.226e-05/2.939, allocations: 11.56 kB / 1.972 GB, free: 208.3 MB / 1.151 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 () * 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 5.639e-05/2.94, allocations: 109 kB / 1.972 GB, free: 208.2 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.005e-05/2.94, allocations: 7.906 kB / 1.972 GB, free: 208.2 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000407/2.94, allocations: 373.5 kB / 1.973 GB, free: 208 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.939e-06/2.94, allocations: 7.984 kB / 1.973 GB, free: 207.9 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/2.94, allocations: 0 / 1.973 GB, free: 207.9 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.369e-06/2.94, allocations: 0 / 1.973 GB, free: 207.9 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002215/2.94, allocations: 282.8 kB / 1.973 GB, free: 207.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/2.94, allocations: 3.938 kB / 1.973 GB, free: 207.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.095e-05/2.94, allocations: 23.92 kB / 1.973 GB, free: 207.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/2.94, allocations: 7.938 kB / 1.973 GB, free: 207.6 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.248e-05/2.94, allocations: 6.984 kB / 1.973 GB, free: 207.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.866e-06/2.94, allocations: 3.953 kB / 1.973 GB, free: 207.6 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/2.94, allocations: 0 / 1.973 GB, free: 207.6 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002725/2.941, allocations: 321.5 kB / 1.973 GB, free: 207.4 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 5.942e-05/2.941, allocations: 104 kB / 1.973 GB, free: 207.2 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.625e-05/2.941, allocations: 192 / 1.973 GB, free: 207.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001241/2.941, allocations: 10.77 kB / 1.973 GB, free: 207.2 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.677e-05/2.941, allocations: 11.97 kB / 1.973 GB, free: 207.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.538e-05/2.941, allocations: 18.86 kB / 1.973 GB, free: 207.2 MB / 1.151 GB Notification: Performance of sorting global known variables: time 2.244e-05/2.941, allocations: 79.28 kB / 1.973 GB, free: 207.1 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.3e-07/2.941, allocations: 4 kB / 1.973 GB, free: 207.1 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001716/2.943, allocations: 344.4 kB / 1.974 GB, free: 206.8 MB / 1.151 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 () * 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.001784/2.944, allocations: 0.8242 MB / 1.975 GB, free: 206 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0001792/2.945, allocations: 128.5 kB / 1.975 GB, free: 205.9 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/2.945, allocations: 0 / 1.975 GB, free: 205.9 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.000101/2.945, allocations: 109.5 kB / 1.975 GB, free: 205.9 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002217/2.945, allocations: 10.48 kB / 1.975 GB, free: 205.9 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003539/2.945, allocations: 223.2 kB / 1.975 GB, free: 205.7 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001397/2.946, allocations: 0.7247 MB / 1.976 GB, free: 204.9 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.0001004/2.946, allocations: 20.36 kB / 1.976 GB, free: 204.9 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.971e-05/2.946, allocations: 19.42 kB / 1.976 GB, free: 204.9 MB / 1.151 GB Notification: Performance of SimCode: time 2.51e-07/2.946, allocations: 4 kB / 1.976 GB, free: 204.9 MB / 1.151 GB Notification: Performance of Templates: time 0.02028/2.966, allocations: 17.38 MB / 1.993 GB, free: 187.5 MB / 1.151 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","../files/Buildings_9_Buildings.Media.Examples.SteamSaturationConsistencyCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches