Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Media.Examples.SteamSaturationConsistencyCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Media.Examples.SteamSaturationConsistencyCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.377/2.377, allocations: 393.5 MB / 408.4 MB, free: 11.02 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.002033/0.002033, allocations: 176 kB / 0.4902 GB, free: 2.246 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.824/1.824, allocations: 223.1 MB / 0.7992 GB, free: 14.74 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.001066/0.001066, allocations: 94.62 kB / 0.9396 GB, free: 1.918 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004779/0.0004779, allocations: 6.906 kB / 1.09 GB, free: 216.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3977/0.3982, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 2.383/2.781, allocations: 0.6907 GB / 1.92 GB, free: 404.1 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003202/2.781, allocations: 72.16 kB / 1.92 GB, free: 404 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 0.1579/2.939, allocations: 64.95 MB / 1.983 GB, free: 350.3 MB / 1.167 GB Notification: Performance of FrontEnd: time 2.515e-06/2.939, allocations: 0 / 1.983 GB, free: 350.3 MB / 1.167 GB Notification: Performance of Transformations before backend: time 1.17e-05/2.939, allocations: 0 / 1.983 GB, free: 350.3 MB / 1.167 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.002003/2.941, allocations: 498.9 kB / 1.984 GB, free: 349.7 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.693e-05/2.941, allocations: 8.562 kB / 1.984 GB, free: 349.7 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004181/2.942, allocations: 23.89 kB / 1.984 GB, free: 349.7 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.827e-05/2.942, allocations: 167 kB / 1.984 GB, free: 349.5 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.597e-05/2.942, allocations: 37.69 kB / 1.984 GB, free: 349.5 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.457e-05/2.942, allocations: 11.94 kB / 1.984 GB, free: 349.5 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003697/2.942, allocations: 114.9 kB / 1.984 GB, free: 349.3 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/2.942, allocations: 3.984 kB / 1.984 GB, free: 349.3 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.718e-05/2.942, allocations: 7.953 kB / 1.984 GB, free: 349.3 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.102e-06/2.942, allocations: 3.984 kB / 1.984 GB, free: 349.3 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002733/2.943, allocations: 111.9 kB / 1.984 GB, free: 349.2 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004338/2.943, allocations: 336.7 kB / 1.985 GB, free: 348.8 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000228/2.943, allocations: 122.6 kB / 1.985 GB, free: 348.7 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009881/2.953, allocations: 4.16 MB / 1.989 GB, free: 344.2 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.516e-05/2.953, allocations: 34.81 kB / 1.989 GB, free: 344.2 MB / 1.167 GB Notification: Performance of pre-optimization done (n=13): time 2.284e-06/2.953, allocations: 0 / 1.989 GB, free: 344.2 MB / 1.167 GB Notification: Performance of matching and sorting (n=13): time 0.0005512/2.954, allocations: 157.6 kB / 1.989 GB, free: 344 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.469e-05/2.954, allocations: 63.33 kB / 1.989 GB, free: 343.9 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.824e-05/2.954, allocations: 89 kB / 1.989 GB, free: 343.9 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 1.837e-05/2.954, allocations: 29.7 kB / 1.989 GB, free: 343.8 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 3.699e-05/2.954, allocations: 92.05 kB / 1.989 GB, free: 343.7 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 3.709e-05/2.954, allocations: 43.52 kB / 1.989 GB, free: 343.7 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.624e-06/2.954, allocations: 8 kB / 1.989 GB, free: 343.7 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 5.811e-05/2.954, allocations: 314.8 kB / 1.99 GB, free: 343.4 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.231e-05/2.954, allocations: 23.98 kB / 1.99 GB, free: 343.3 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.733e-05/2.954, allocations: 27.98 kB / 1.99 GB, free: 343.3 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.119e-05/2.954, allocations: 28 kB / 1.99 GB, free: 343.3 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/2.954, allocations: 0 / 1.99 GB, free: 343.3 MB / 1.167 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001768/2.955, allocations: 113.2 kB / 1.99 GB, free: 343.2 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 2.213e-05/2.955, allocations: 11.95 kB / 1.99 GB, free: 343.2 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.912e-06/2.955, allocations: 0 / 1.99 GB, free: 343.2 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.631e-05/2.955, allocations: 0 / 1.99 GB, free: 343.2 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001333/2.955, allocations: 23.92 kB / 1.99 GB, free: 343.1 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/2.955, allocations: 3.984 kB / 1.99 GB, free: 343.1 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.966e-05/2.955, allocations: 8 kB / 1.99 GB, free: 343.1 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.41e-05/2.955, allocations: 4 kB / 1.99 GB, free: 343.1 MB / 1.167 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 7.21e-05/2.955, allocations: 113.8 kB / 1.99 GB, free: 343 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.597e-05/2.955, allocations: 15.84 kB / 1.99 GB, free: 343 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004155/2.955, allocations: 367.9 kB / 1.99 GB, free: 342.6 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.028e-05/2.955, allocations: 8 kB / 1.99 GB, free: 342.6 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/2.955, allocations: 0 / 1.99 GB, free: 342.6 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/2.955, allocations: 3.984 kB / 1.99 GB, free: 342.6 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002508/2.956, allocations: 281.4 kB / 1.991 GB, free: 342.3 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/2.956, allocations: 4 kB / 1.991 GB, free: 342.3 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.699e-05/2.956, allocations: 23.92 kB / 1.991 GB, free: 342.2 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.588e-06/2.956, allocations: 0 / 1.991 GB, free: 342.2 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.165e-05/2.956, allocations: 0 / 1.991 GB, free: 342.2 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.659e-06/2.956, allocations: 7.953 kB / 1.991 GB, free: 342.2 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/2.956, allocations: 0 / 1.991 GB, free: 342.2 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002897/2.956, allocations: 336.2 kB / 1.991 GB, free: 341.9 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 5.744e-05/2.956, allocations: 104.8 kB / 1.991 GB, free: 341.8 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.579e-05/2.956, allocations: 4 kB / 1.991 GB, free: 341.8 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001317/2.956, allocations: 19.88 kB / 1.991 GB, free: 341.7 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.302e-05/2.956, allocations: 7.984 kB / 1.991 GB, free: 341.7 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.187e-05/2.956, allocations: 4 kB / 1.991 GB, free: 341.7 MB / 1.167 GB Notification: Performance of sorting global known variables: time 2.48e-05/2.956, allocations: 83.28 kB / 1.991 GB, free: 341.7 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.3e-07/2.956, allocations: 0 / 1.991 GB, free: 341.7 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.0019/2.958, allocations: 339.8 kB / 1.991 GB, free: 341.3 MB / 1.167 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.003252/2.962, allocations: 0.827 MB / 1.992 GB, free: 340.5 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.0002121/2.962, allocations: 131.8 kB / 1.992 GB, free: 340.4 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/2.962, allocations: 4 kB / 1.992 GB, free: 340.4 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0001048/2.962, allocations: 107.9 kB / 1.993 GB, free: 340.3 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000263/2.962, allocations: 15.98 kB / 1.993 GB, free: 340.2 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005064/2.963, allocations: 386.4 kB / 1.993 GB, free: 339.8 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001662/2.963, allocations: 0.7169 MB / 1.994 GB, free: 339.1 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.0001387/2.963, allocations: 40.27 kB / 1.994 GB, free: 339.1 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.538e-05/2.963, allocations: 15.44 kB / 1.994 GB, free: 339 MB / 1.167 GB Notification: Performance of SimCode: time 5.91e-07/2.963, allocations: 0 / 1.994 GB, free: 339 MB / 1.167 GB Notification: Performance of Templates: time 0.02042/2.984, allocations: 15.47 MB / 2.009 GB, free: 323.6 MB / 1.167 GB make -j1 -f Buildings_latest_Buildings.Media.Examples.SteamSaturationConsistencyCheck.makefile (rm -f Buildings_latest_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.SteamSaturationConsistencyCheck.sim & ./Buildings_latest_Buildings.Media.Examples.SteamSaturationConsistencyCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.SteamSaturationConsistencyCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_SteamSaturationConsistencyCheck.csv","../files/Buildings_latest_Buildings.Media.Examples.SteamSaturationConsistencyCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches