Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Storage.Examples.Stratified.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.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 9.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Fluid.Storage.Examples.Stratified") translateModel(Buildings.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Fluid.Storage.Examples.Stratified") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.687/1.687, allocations: 297.8 MB / 313.7 MB, free: 120 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001131/0.001131, allocations: 176.5 kB / 384.6 MB, free: 10.87 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.478/1.478, allocations: 223.2 MB / 0.6626 GB, free: 4.355 MB / 490.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008954/0.0008955, allocations: 95.33 kB / 0.7808 GB, free: 43.68 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.0003957/0.0003958, allocations: 12 kB / 0.9088 GB, free: 0.6758 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6957/0.6961, allocations: 120.3 MB / 1.026 GB, free: 56.64 MB / 0.698 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.129/1.825, allocations: 414.9 MB / 1.431 GB, free: 158.9 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002917/1.826, allocations: 92.62 kB / 1.432 GB, free: 158.9 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 10.49/12.31, allocations: 2.952 GB / 4.384 GB, free: 120.2 MB / 1.01 GB Notification: Performance of FrontEnd: time 2.364e-06/12.31, allocations: 0 / 4.384 GB, free: 120.2 MB / 1.01 GB Notification: Performance of Transformations before backend: time 0.001749/12.31, allocations: 254.9 kB / 4.384 GB, free: 120.1 MB / 1.01 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2145 * Number of variables: 2145 Notification: Performance of Generate backend data structure: time 0.03893/12.35, allocations: 9.707 MB / 4.393 GB, free: 116.9 MB / 1.01 GB Notification: Performance of prepare preOptimizeDAE: time 4.864e-05/12.35, allocations: 15.12 kB / 4.393 GB, free: 116.9 MB / 1.01 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008235/12.36, allocations: 1.168 MB / 4.395 GB, free: 116.4 MB / 1.01 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03134/12.39, allocations: 10.43 MB / 4.405 GB, free: 115 MB / 1.01 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001075/12.39, allocations: 0.615 MB / 4.405 GB, free: 115 MB / 1.01 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005014/12.4, allocations: 0.8171 MB / 4.406 GB, free: 115 MB / 1.01 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0403/12.44, allocations: 11.77 MB / 4.418 GB, free: 113.8 MB / 1.01 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008297/12.44, allocations: 32.28 kB / 4.418 GB, free: 113.8 MB / 1.01 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004247/12.44, allocations: 357.9 kB / 4.418 GB, free: 113.8 MB / 1.01 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005694/12.44, allocations: 250.2 kB / 4.418 GB, free: 113.8 MB / 1.01 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02637/12.47, allocations: 9.627 MB / 4.428 GB, free: 113.7 MB / 1.01 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.08917/12.56, allocations: 46.28 MB / 4.473 GB, free: 94.25 MB / 1.01 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01002/12.57, allocations: 6.188 MB / 4.479 GB, free: 93.94 MB / 1.01 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007594/12.58, allocations: 5.492 MB / 4.484 GB, free: 93.8 MB / 1.01 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001165/12.58, allocations: 0.8181 MB / 4.485 GB, free: 93.04 MB / 1.01 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006941/12.58, allocations: 3.407 MB / 4.488 GB, free: 92.87 MB / 1.01 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.006409/12.59, allocations: 0.5229 MB / 4.489 GB, free: 92.6 MB / 1.01 GB Notification: Performance of pre-optimization done (n=449): time 2.868e-05/12.59, allocations: 3.609 kB / 4.489 GB, free: 92.6 MB / 1.01 GB Notification: Performance of matching and sorting (n=449): time 0.01939/12.61, allocations: 8.798 MB / 4.497 GB, free: 92.03 MB / 1.01 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.666e-05/12.61, allocations: 155.6 kB / 4.498 GB, free: 91.9 MB / 1.01 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01718/12.63, allocations: 7.279 MB / 4.505 GB, free: 91.43 MB / 1.01 GB Notification: Performance of collectPreVariables (initialization): time 0.001455/12.63, allocations: 114.4 kB / 4.505 GB, free: 91.4 MB / 1.01 GB Notification: Performance of collectInitialEqns (initialization): time 0.005724/12.64, allocations: 4.275 MB / 4.509 GB, free: 89.79 MB / 1.01 GB Notification: Performance of collectInitialBindings (initialization): time 0.002656/12.64, allocations: 1.563 MB / 4.511 GB, free: 88.81 MB / 1.01 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00113/12.64, allocations: 115.8 kB / 4.511 GB, free: 88.81 MB / 1.01 GB Notification: Performance of setup shared object (initialization): time 0.0005831/12.64, allocations: 0.5421 MB / 4.511 GB, free: 88.49 MB / 1.01 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005369/12.65, allocations: 2.97 MB / 4.514 GB, free: 88.48 MB / 1.01 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006822/12.65, allocations: 4.865 MB / 4.519 GB, free: 86.28 MB / 1.01 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01304/12.67, allocations: 8.521 MB / 4.527 GB, free: 83.99 MB / 1.01 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000118/12.67, allocations: 18.5 kB / 4.527 GB, free: 83.99 MB / 1.01 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.02014/12.69, allocations: 8.822 MB / 4.536 GB, free: 83.45 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 0.001383/12.69, allocations: 1.891 MB / 4.538 GB, free: 81.19 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001503/12.69, allocations: 59.16 kB / 4.538 GB, free: 81.19 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000133/12.69, allocations: 93.52 kB / 4.538 GB, free: 81.19 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006219/12.69, allocations: 1.376 MB / 4.539 GB, free: 81.19 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002031/12.69, allocations: 124.4 kB / 4.539 GB, free: 81.19 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009378/12.7, allocations: 0.6138 MB / 4.54 GB, free: 81.13 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001626/12.7, allocations: 280 kB / 4.54 GB, free: 81.13 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/12.7, allocations: 3.312 kB / 4.54 GB, free: 81.13 MB / 1.01 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01721/12.72, allocations: 8.239 MB / 4.548 GB, free: 80.73 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002304/12.72, allocations: 64.19 kB / 4.548 GB, free: 80.73 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001308/12.72, allocations: 88.38 kB / 4.548 GB, free: 80.73 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006299/12.73, allocations: 1.382 MB / 4.55 GB, free: 80.64 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000173/12.73, allocations: 122.8 kB / 4.55 GB, free: 80.61 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009201/12.74, allocations: 0.5868 MB / 4.55 GB, free: 80.51 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001916/12.74, allocations: 284.3 kB / 4.551 GB, free: 80.46 MB / 1.01 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 264 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition1,$whenCondition2,TWat.a,TWat.b,TWat.last,$PRE.TWat.nextEvent,TWat.nextEvent,TWat.nextEventScaled,P.a,P.b,P.last,$PRE.P.nextEvent,P.nextEvent,P.nextEventScaled,dH.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (744): * Single equations (assignments): 742 * Array equations: 0 * Algorithm blocks: 2 * 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.01039/12.75, allocations: 3.558 MB / 4.554 GB, free: 78.9 MB / 1.01 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003533/12.75, allocations: 0.7116 MB / 4.555 GB, free: 78.54 MB / 1.01 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01733/12.77, allocations: 7.074 MB / 4.562 GB, free: 75.86 MB / 1.01 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.245e-05/12.77, allocations: 39.25 kB / 4.562 GB, free: 75.86 MB / 1.01 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.54e-05/12.77, allocations: 0 / 4.562 GB, free: 75.86 MB / 1.01 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009797/12.78, allocations: 5.797 MB / 4.567 GB, free: 73.74 MB / 1.01 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 postOpt removeSimpleEquations (simulation): time 0.03898/12.82, allocations: 16.48 MB / 4.583 GB, free: 67.42 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.338e-05/12.82, allocations: 0 / 4.583 GB, free: 67.42 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003719/12.82, allocations: 0.9532 MB / 4.584 GB, free: 67.35 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.948e-05/12.82, allocations: 18.22 kB / 4.584 GB, free: 67.35 MB / 1.01 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003203/12.82, allocations: 119.5 kB / 4.585 GB, free: 67.29 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.171e-05/12.82, allocations: 20.11 kB / 4.585 GB, free: 67.29 MB / 1.01 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/12.82, allocations: 3.75 kB / 4.585 GB, free: 67.29 MB / 1.01 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01458/12.84, allocations: 10.53 MB / 4.595 GB, free: 63.07 MB / 1.01 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006069/12.85, allocations: 1.656 MB / 4.596 GB, free: 62.21 MB / 1.01 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002455/12.85, allocations: 94.91 kB / 4.597 GB, free: 62.14 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007245/12.86, allocations: 0.6005 MB / 4.597 GB, free: 62.05 MB / 1.01 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006324/12.86, allocations: 260.9 kB / 4.597 GB, free: 62.02 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005863/12.86, allocations: 199.2 kB / 4.598 GB, free: 61.98 MB / 1.01 GB Notification: Performance of sorting global known variables: time 0.009154/12.87, allocations: 5.066 MB / 4.603 GB, free: 60.29 MB / 1.01 GB Notification: Performance of sort global known variables: time 6.01e-07/12.87, allocations: 0 / 4.603 GB, free: 60.29 MB / 1.01 GB Notification: Performance of remove unused functions: time 0.02008/12.89, allocations: 4.872 MB / 4.607 GB, free: 59.28 MB / 1.01 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 21 (tanSim.vol[1].dynBal.U,tanSim.vol[2].dynBal.U,tanSim.vol[3].dynBal.U,tanSim.vol[4].dynBal.U,tanSim.vol[5].dynBal.U,tanSim.vol[6].dynBal.U,tanSim.vol[7].dynBal.U,tanSim.vol[8].dynBal.U,tanSim.vol[9].dynBal.U,tanSim.vol[10].dynBal.U,tanEnh.vol[1].dynBal.U,tanEnh.vol[2].dynBal.U,tanEnh.vol[3].dynBal.U,tanEnh.vol[4].dynBal.U,tanEnh.vol[5].dynBal.U,tanEnh.vol[6].dynBal.U,tanEnh.vol[7].dynBal.U,tanEnh.vol[8].dynBal.U,tanEnh.vol[9].dynBal.U,tanEnh.vol[10].dynBal.U,dH.y) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,TWat.a,TWat.b,TWat.last,TWat.nextEvent,TWat.nextEventScaled,P.a,P.b,P.last,P.nextEvent,P.nextEventScaled) * Number of discrete states: 12 (P.nextEvent,P.last,P.nextEventScaled,P.b,P.a,$whenCondition2,TWat.nextEvent,TWat.last,TWat.nextEventScaled,TWat.b,TWat.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (445): * Single equations (assignments): 441 * Array equations: 0 * Algorithm blocks: 2 * 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.003045/12.89, allocations: 0.9181 MB / 4.608 GB, free: 58.97 MB / 1.01 GB Notification: Performance of simCode: created initialization part: time 0.0174/12.91, allocations: 11.38 MB / 4.619 GB, free: 54.98 MB / 1.01 GB Notification: Performance of simCode: created event and clocks part: time 1.358e-05/12.91, allocations: 4.094 kB / 4.619 GB, free: 54.98 MB / 1.01 GB Notification: Performance of simCode: created simulation system equations: time 0.004727/12.91, allocations: 3.156 MB / 4.622 GB, free: 53.79 MB / 1.01 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02719/12.94, allocations: 4.423 MB / 4.627 GB, free: 53.12 MB / 1.01 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04643/12.98, allocations: 22.49 MB / 4.649 GB, free: 36.29 MB / 1.01 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01129/13, allocations: 6.09 MB / 4.655 GB, free: 31.66 MB / 1.01 GB Notification: Performance of simCode: alias equations: time 0.01767/13.01, allocations: 4.238 MB / 4.659 GB, free: 28.84 MB / 1.01 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003666/13.02, allocations: 0.6132 MB / 4.659 GB, free: 28.28 MB / 1.01 GB Notification: Performance of SimCode: time 8.82e-07/13.02, allocations: 4 kB / 4.659 GB, free: 28.27 MB / 1.01 GB Notification: Performance of Templates: time 0.8385/13.86, allocations: 160.1 MB / 4.816 GB, free: 111.4 MB / 1.026 GB make -j1 -f Buildings_latest_Buildings.Fluid.Storage.Examples.Stratified.makefile (rm -f Buildings_latest_Buildings.Fluid.Storage.Examples.Stratified.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Examples.Stratified.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Examples.Stratified.sim & ./Buildings_latest_Buildings.Fluid.Storage.Examples.Stratified -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Storage.Examples.Stratified.pipe 2>&1)