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/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001365/0.001365, allocations: 92.2 kB / 20.19 MB, free: 4.359 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001586/0.001586, allocations: 177 kB / 23.49 MB, free: 1.055 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.033/1.033, allocations: 177.1 MB / 203.8 MB, free: 5.641 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.111/2.111, allocations: 429.5 MB / 0.6736 GB, free: 4.051 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Media.Examples.SteamSaturationConsistencyCheck,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,variableFilter="time|TSat0|TSat|pSat|hlvErr|hlErr|hvErr|hlvIF97|hlvWatSte|hlIF97|hlWat|hvIF97|hvSte",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.SteamSaturationConsistencyCheck") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.214e-06/2.214e-06, allocations: 0.6562 kB / 0.8781 GB, free: 6.691 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.473e-05/2.694e-05, allocations: 2.312 kB / 0.8781 GB, free: 6.688 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamSaturationConsistencyCheck): time 0.1374/0.1374, allocations: 131 MB / 1.006 GB, free: 3.188 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.007261/0.1447, allocations: 7.933 MB / 1.014 GB, free: 11.23 MB / 0.9792 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.635e-05/0.1448, allocations: 0 / 1.014 GB, free: 11.23 MB / 0.9792 GB Notification: Performance of NFTyping.typeComponents: time 0.000211/0.145, allocations: 19.84 kB / 1.014 GB, free: 11.21 MB / 0.9792 GB Notification: Performance of NFTyping.typeBindings: time 4.185e-05/0.145, allocations: 23.84 kB / 1.014 GB, free: 11.18 MB / 0.9792 GB Notification: Performance of NFTyping.typeClassSections: time 0.002564/0.1476, allocations: 1.475 MB / 1.015 GB, free: 9.703 MB / 0.9792 GB Notification: Performance of NFFlatten.flatten: time 0.0001347/0.1477, allocations: 75.64 kB / 1.015 GB, free: 9.629 MB / 0.9792 GB Notification: Performance of NFFlatten.resolveConnections: time 5.058e-05/0.1478, allocations: 0 / 1.015 GB, free: 9.629 MB / 0.9792 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001622/0.1479, allocations: 63.75 kB / 1.015 GB, free: 9.566 MB / 0.9792 GB Notification: Performance of NFSimplifyModel.simplify: time 8.325e-05/0.148, allocations: 23.95 kB / 1.015 GB, free: 9.543 MB / 0.9792 GB Notification: Performance of NFPackage.collectConstants: time 1.683e-05/0.148, allocations: 8 kB / 1.016 GB, free: 9.535 MB / 0.9792 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002739/0.1508, allocations: 2.618 MB / 1.018 GB, free: 6.914 MB / 0.9792 GB Notification: Performance of NFScalarize.scalarize: time 2.59e-05/0.1508, allocations: 19.91 kB / 1.018 GB, free: 6.895 MB / 0.9792 GB Notification: Performance of NFVerifyModel.verify: time 3.83e-05/0.1508, allocations: 23.97 kB / 1.018 GB, free: 6.871 MB / 0.9792 GB Notification: Performance of NFConvertDAE.convert: time 0.001572/0.1524, allocations: 1.797 MB / 1.02 GB, free: 5.07 MB / 0.9792 GB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.1524, allocations: 0 / 1.02 GB, free: 5.07 MB / 0.9792 GB Notification: Performance of FrontEnd: time 1.783e-06/0.1524, allocations: 0 / 1.02 GB, free: 5.07 MB / 0.9792 GB Notification: Performance of Transformations before backend: time 6.954e-06/0.1524, allocations: 0 / 1.02 GB, free: 5.07 MB / 0.9792 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.0009305/0.1533, allocations: 0.5226 MB / 1.02 GB, free: 4.512 MB / 0.9792 GB Notification: Performance of prepare preOptimizeDAE: time 4.786e-05/0.1534, allocations: 16.03 kB / 1.02 GB, free: 4.496 MB / 0.9792 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003241/0.1537, allocations: 44.67 kB / 1.02 GB, free: 4.453 MB / 0.9792 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001009/0.1538, allocations: 120.5 kB / 1.021 GB, free: 4.309 MB / 0.9792 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.883e-05/0.1539, allocations: 51.97 kB / 1.021 GB, free: 4.246 MB / 0.9792 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.577e-05/0.1539, allocations: 16.31 kB / 1.021 GB, free: 4.23 MB / 0.9792 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002669/0.1542, allocations: 140.3 kB / 1.021 GB, free: 4.078 MB / 0.9792 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.652e-06/0.1542, allocations: 0 / 1.021 GB, free: 4.078 MB / 0.9792 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.861e-05/0.1542, allocations: 4 kB / 1.021 GB, free: 4.074 MB / 0.9792 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.486e-06/0.1542, allocations: 0 / 1.021 GB, free: 4.074 MB / 0.9792 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001776/0.1544, allocations: 91.89 kB / 1.021 GB, free: 3.984 MB / 0.9792 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003971/0.1548, allocations: 327.6 kB / 1.021 GB, free: 3.629 MB / 0.9792 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001886/0.155, allocations: 121.6 kB / 1.021 GB, free: 3.5 MB / 0.9792 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.313e-05/0.155, allocations: 43.66 kB / 1.021 GB, free: 3.453 MB / 0.9792 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00568/0.1607, allocations: 3.055 MB / 1.024 GB, free: 408 kB / 0.9792 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.043e-05/0.1607, allocations: 41.39 kB / 1.024 GB, free: 356 kB / 0.9792 GB Notification: Performance of pre-optimization done (n=13): time 1.403e-06/0.1607, allocations: 0 / 1.024 GB, free: 356 kB / 0.9792 GB Notification: Performance of matching and sorting (n=13): time 0.0003672/0.1611, allocations: 161.5 kB / 1.024 GB, free: 188 kB / 0.9792 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.102e-05/0.1611, allocations: 59.39 kB / 1.025 GB, free: 116 kB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.727e-05/0.1612, allocations: 153.9 kB / 1.025 GB, free: 15.95 MB / 0.9948 GB Notification: Performance of collectPreVariables (initialization): time 1.699e-05/0.1612, allocations: 29.7 kB / 1.025 GB, free: 15.91 MB / 0.9948 GB Notification: Performance of collectInitialEqns (initialization): time 5.135e-05/0.1613, allocations: 130.9 kB / 1.025 GB, free: 15.78 MB / 0.9948 GB Notification: Performance of collectInitialBindings (initialization): time 4.577e-05/0.1613, allocations: 47.58 kB / 1.025 GB, free: 15.73 MB / 0.9948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.819e-05/0.1614, allocations: 31.36 kB / 1.025 GB, free: 15.69 MB / 0.9948 GB Notification: Performance of setup shared object (initialization): time 0.0001493/0.1616, allocations: 0.4884 MB / 1.025 GB, free: 15.19 MB / 0.9948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.982e-05/0.1616, allocations: 19.98 kB / 1.025 GB, free: 15.17 MB / 0.9948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.751e-05/0.1616, allocations: 15.98 kB / 1.025 GB, free: 15.16 MB / 0.9948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001027/0.1617, allocations: 70.86 kB / 1.025 GB, free: 15.09 MB / 0.9948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.1617, allocations: 0 / 1.025 GB, free: 15.09 MB / 0.9948 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001841/0.1619, allocations: 109.6 kB / 1.026 GB, free: 14.97 MB / 0.9948 GB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/0.1619, allocations: 4 kB / 1.026 GB, free: 14.97 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.1619, allocations: 4 kB / 1.026 GB, free: 14.96 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.162, allocations: 0 / 1.026 GB, free: 14.96 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001049/0.1621, allocations: 19.98 kB / 1.026 GB, free: 14.95 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.176e-06/0.1621, allocations: 0 / 1.026 GB, free: 14.95 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.504e-05/0.1621, allocations: 11.89 kB / 1.026 GB, free: 14.93 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.949e-06/0.1621, allocations: 8.172 kB / 1.026 GB, free: 14.93 MB / 0.9948 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 7.522e-05/0.1622, allocations: 172.5 kB / 1.026 GB, free: 14.75 MB / 0.9948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.125e-05/0.1622, allocations: 8 kB / 1.026 GB, free: 14.74 MB / 0.9948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002719/0.1625, allocations: 280.1 kB / 1.026 GB, free: 14.45 MB / 0.9948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.1625, allocations: 3.984 kB / 1.026 GB, free: 14.45 MB / 0.9948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.586e-06/0.1625, allocations: 4 kB / 1.026 GB, free: 14.45 MB / 0.9948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.1625, allocations: 0 / 1.026 GB, free: 14.45 MB / 0.9948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001542/0.1627, allocations: 196.4 kB / 1.026 GB, free: 14.22 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.606e-06/0.1627, allocations: 3.984 kB / 1.026 GB, free: 14.21 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.344e-05/0.1627, allocations: 23.94 kB / 1.026 GB, free: 14.19 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.776e-06/0.1627, allocations: 0 / 1.026 GB, free: 14.19 MB / 0.9948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.999e-06/0.1627, allocations: 7.922 kB / 1.026 GB, free: 14.18 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.1627, allocations: 4 kB / 1.026 GB, free: 14.18 MB / 0.9948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1627, allocations: 0 / 1.026 GB, free: 14.18 MB / 0.9948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002276/0.163, allocations: 339.4 kB / 1.027 GB, free: 13.83 MB / 0.9948 GB Notification: Performance of postOpt removeConstants (simulation): time 3.812e-05/0.163, allocations: 31.75 kB / 1.027 GB, free: 13.8 MB / 0.9948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.454e-05/0.163, allocations: 4 kB / 1.027 GB, free: 13.79 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.879e-05/0.1631, allocations: 4 kB / 1.027 GB, free: 13.79 MB / 0.9948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.112e-05/0.1631, allocations: 7.984 kB / 1.027 GB, free: 13.78 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.151e-05/0.1631, allocations: 11.98 kB / 1.027 GB, free: 13.77 MB / 0.9948 GB Notification: Performance of sorting global known variables: time 4.326e-05/0.1631, allocations: 123.2 kB / 1.027 GB, free: 13.65 MB / 0.9948 GB Notification: Performance of sort global known variables: time 2.7e-07/0.1631, allocations: 0 / 1.027 GB, free: 13.65 MB / 0.9948 GB Notification: Performance of remove unused functions: time 0.0005191/0.1637, allocations: 307.6 kB / 1.027 GB, free: 13.35 MB / 0.9948 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.000892/0.1646, allocations: 450.7 kB / 1.028 GB, free: 12.9 MB / 0.9948 GB Notification: Performance of simCode: created initialization part: time 0.0001613/0.1647, allocations: 87.59 kB / 1.028 GB, free: 12.81 MB / 0.9948 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1647, allocations: 0 / 1.028 GB, free: 12.81 MB / 0.9948 GB Notification: Performance of simCode: created simulation system equations: time 7.4e-05/0.1648, allocations: 83.19 kB / 1.028 GB, free: 12.73 MB / 0.9948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002381/0.165, allocations: 32.94 kB / 1.028 GB, free: 12.7 MB / 0.9948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006797/0.1657, allocations: 302.2 kB / 1.028 GB, free: 12.38 MB / 0.9948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.108e-05/0.1658, allocations: 71.84 kB / 1.028 GB, free: 12.29 MB / 0.9948 GB Notification: Performance of simCode: alias equations: time 8.503e-05/0.1658, allocations: 28.41 kB / 1.028 GB, free: 12.26 MB / 0.9948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.98e-05/0.1659, allocations: 20.44 kB / 1.028 GB, free: 12.24 MB / 0.9948 GB Notification: Performance of SimCode: time 8.81e-07/0.1659, allocations: 0 / 1.028 GB, free: 12.24 MB / 0.9948 GB Notification: Performance of Templates: time 0.01052/0.1764, allocations: 10.33 MB / 1.038 GB, free: 1.934 MB / 0.9948 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Media.Examples.SteamSaturationConsistencyCheck.makefile [Timeout 300] (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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Media.Examples.SteamSaturationConsistencyCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_SteamSaturationConsistencyCheck.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.858758056070656]