Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Media.Examples.SteamProperties.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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.SteamProperties,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p|X.1.|d|eta|h|u|s|g|f|hIse|beta|kappa|ddhp|ddph|cp|cv|lambda|pMed|TMed|MM",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.SteamProperties") translateModel(Buildings.Media.Examples.SteamProperties,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p|X.1.|d|eta|h|u|s|g|f|hIse|beta|kappa|ddhp|ddph|cp|cv|lambda|pMed|TMed|MM",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.SteamProperties") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007689/0.0007689, allocations: 97.78 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008805/0.0008805, allocations: 187.3 kB / 16.92 MB, free: 6.75 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.331/1.331, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.709/2.709, allocations: 462.7 MB / 0.7371 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003711/0.0003715, allocations: 14.12 kB / 0.9034 GB, free: 36.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2846/0.285, allocations: 159.6 MB / 1.059 GB, free: 5.012 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamProperties): time 0.1428/0.4279, allocations: 132.2 MB / 1.188 GB, free: 260 kB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.02911/0.457, allocations: 24.76 MB / 1.213 GB, free: 7.422 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001751/0.4572, allocations: 0 / 1.213 GB, free: 7.422 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0002744/0.4575, allocations: 35.8 kB / 1.213 GB, free: 7.387 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0002982/0.4578, allocations: 83.44 kB / 1.213 GB, free: 7.305 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.01543/0.4733, allocations: 5.493 MB / 1.218 GB, free: 1.828 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0004391/0.4737, allocations: 315.8 kB / 1.218 GB, free: 1.52 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 5.286e-05/0.4738, allocations: 13.5 kB / 1.218 GB, free: 1.508 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002895/0.4741, allocations: 127.5 kB / 1.219 GB, free: 1.383 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001534/0.4743, allocations: 95.59 kB / 1.219 GB, free: 1.289 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.98e-05/0.4743, allocations: 4 kB / 1.219 GB, free: 1.285 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02002/0.4943, allocations: 11.52 MB / 1.23 GB, free: 5.75 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001112/0.4945, allocations: 39.88 kB / 1.23 GB, free: 5.711 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.000138/0.4946, allocations: 109.4 kB / 1.23 GB, free: 5.598 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.008074/0.5027, allocations: 4.315 MB / 1.234 GB, free: 1.273 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.5027, allocations: 0 / 1.234 GB, free: 1.273 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.315e-06/0.5027, allocations: 0 / 1.234 GB, free: 1.273 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.881e-06/0.5027, allocations: 0 / 1.234 GB, free: 1.273 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.003465/0.5062, allocations: 1.166 MB / 1.235 GB, free: 60 kB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.13e-05/0.5063, allocations: 8.031 kB / 1.235 GB, free: 52 kB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001115/0.5074, allocations: 92.67 kB / 1.235 GB, free: 15.96 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000227/0.5076, allocations: 224.1 kB / 1.236 GB, free: 15.7 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.714e-05/0.5077, allocations: 20.12 kB / 1.236 GB, free: 15.68 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.41e-05/0.5077, allocations: 12 kB / 1.236 GB, free: 15.67 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001058/0.5087, allocations: 456.3 kB / 1.236 GB, free: 15.21 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.285e-06/0.5088, allocations: 0 / 1.236 GB, free: 15.21 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.801e-05/0.5088, allocations: 12 kB / 1.236 GB, free: 15.2 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.5088, allocations: 4 kB / 1.236 GB, free: 15.19 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001126/0.5099, allocations: 0.5931 MB / 1.237 GB, free: 14.6 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009881/0.5109, allocations: 0.8822 MB / 1.238 GB, free: 13.63 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007513/0.5117, allocations: 246.4 kB / 1.238 GB, free: 13.38 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001194/0.5118, allocations: 81.27 kB / 1.238 GB, free: 13.3 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.6258/1.138, allocations: 35.32 MB / 1.272 GB, free: 173.3 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.169e-05/1.138, allocations: 40.78 kB / 1.272 GB, free: 173.3 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=25): time 3.056e-06/1.138, allocations: 0.5 kB / 1.272 GB, free: 173.3 MB / 0.9981 GB Notification: Performance of matching and sorting (n=25): time 0.001924/1.14, allocations: 419.1 kB / 1.273 GB, free: 173.3 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.472e-05/1.14, allocations: 54.03 kB / 1.273 GB, free: 173.2 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001405/1.14, allocations: 147.7 kB / 1.273 GB, free: 173.1 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 4.122e-05/1.14, allocations: 31.61 kB / 1.273 GB, free: 173.1 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 5.732e-05/1.14, allocations: 104.3 kB / 1.273 GB, free: 173 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 8.343e-05/1.14, allocations: 92.64 kB / 1.273 GB, free: 172.9 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6e-05/1.14, allocations: 26.42 kB / 1.273 GB, free: 172.9 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.727e-05/1.14, allocations: 322.5 kB / 1.274 GB, free: 172.6 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002211/1.14, allocations: 83.55 kB / 1.274 GB, free: 172.6 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002502/1.141, allocations: 132 kB / 1.274 GB, free: 172.6 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004721/1.141, allocations: 219.4 kB / 1.274 GB, free: 172.5 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/1.141, allocations: 0.5312 kB / 1.274 GB, free: 172.5 MB / 0.9981 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008286/1.142, allocations: 303.5 kB / 1.274 GB, free: 172.5 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.13e-05/1.142, allocations: 10.45 kB / 1.274 GB, free: 172.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/1.142, allocations: 3.172 kB / 1.274 GB, free: 172.4 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.025e-05/1.142, allocations: 2.812 kB / 1.274 GB, free: 172.4 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002977/1.142, allocations: 80.48 kB / 1.274 GB, free: 172.4 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.032e-05/1.142, allocations: 10.98 kB / 1.274 GB, free: 172.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000157/1.143, allocations: 22.25 kB / 1.274 GB, free: 172.4 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.381e-05/1.143, allocations: 23.58 kB / 1.274 GB, free: 172.4 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (30): * Single equations (assignments): 30 * 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 0.0001201/1.143, allocations: 132.2 kB / 1.275 GB, free: 172.3 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001604/1.143, allocations: 17.58 kB / 1.275 GB, free: 172.3 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00243/1.145, allocations: 2.342 MB / 1.277 GB, free: 172.2 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.769e-05/1.145, allocations: 12.06 kB / 1.277 GB, free: 172.2 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/1.145, allocations: 4.906 kB / 1.277 GB, free: 172.2 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/1.145, allocations: 1.266 kB / 1.277 GB, free: 172.2 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003228/1.149, allocations: 3.423 MB / 1.28 GB, free: 171.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.401e-06/1.149, allocations: 1.812 kB / 1.28 GB, free: 171.6 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000257/1.149, allocations: 57.84 kB / 1.28 GB, free: 171.6 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.04e-06/1.149, allocations: 8.969 kB / 1.28 GB, free: 171.6 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.391e-05/1.149, allocations: 8.891 kB / 1.28 GB, free: 171.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/1.149, allocations: 1.125 kB / 1.28 GB, free: 171.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/1.149, allocations: 1.062 kB / 1.28 GB, free: 171.6 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007589/1.15, allocations: 0.5482 MB / 1.281 GB, free: 171.5 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001107/1.15, allocations: 138.2 kB / 1.281 GB, free: 171.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.409e-05/1.15, allocations: 5.75 kB / 1.281 GB, free: 171.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002415/1.15, allocations: 25.69 kB / 1.281 GB, free: 171.3 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.225e-05/1.15, allocations: 18.64 kB / 1.281 GB, free: 171.3 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.905e-05/1.15, allocations: 14.72 kB / 1.281 GB, free: 171.3 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 6.38e-05/1.15, allocations: 110 kB / 1.281 GB, free: 171.3 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.2e-07/1.15, allocations: 1.031 kB / 1.281 GB, free: 171.3 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.004325/1.155, allocations: 1.679 MB / 1.283 GB, free: 171.2 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.008259/1.163, allocations: 1.936 MB / 1.285 GB, free: 170.9 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0006674/1.164, allocations: 322.3 kB / 1.285 GB, free: 170.9 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.678e-06/1.164, allocations: 1.984 kB / 1.285 GB, free: 170.9 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003293/1.164, allocations: 242.6 kB / 1.285 GB, free: 170.9 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005877/1.165, allocations: 63.5 kB / 1.285 GB, free: 170.9 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001098/1.166, allocations: 0.8326 MB / 1.286 GB, free: 170.5 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001896/1.166, allocations: 0.764 MB / 1.287 GB, free: 169.8 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001644/1.166, allocations: 53.33 kB / 1.287 GB, free: 169.7 MB / 0.9981 GB Notification: Performance of SimCode: time 2.7e-07/1.166, allocations: 4 kB / 1.287 GB, free: 169.7 MB / 0.9981 GB Notification: Performance of Templates: time 0.04214/1.208, allocations: 32.78 MB / 1.319 GB, free: 145.3 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Media.Examples.SteamProperties.makefile (rm -f Buildings_latest_Buildings.Media.Examples.SteamProperties.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.SteamProperties.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.SteamProperties.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.SteamProperties.sim & ./Buildings_latest_Buildings.Media.Examples.SteamProperties -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Examples.SteamProperties.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.SteamProperties_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_SteamProperties.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.SteamProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches