Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature") translateModel(Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.694/2.694, allocations: 287.5 MB / 302.4 MB, free: 8.297 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001371/0.001371, allocations: 178.1 kB / 371 MB, free: 10.86 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.253/2.253, allocations: 205.4 MB / 0.6297 GB, free: 10.59 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001008/0.001008, allocations: 90.34 kB / 0.743 GB, free: 6.598 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000495/0.0004954, allocations: 16.98 kB / 0.8658 GB, free: 141 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2202/0.2208, allocations: 115.3 MB / 0.9784 GB, free: 28.37 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature): time 0.04971/0.2705, allocations: 34.9 MB / 1.012 GB, free: 9.363 MB / 0.6355 GB Notification: Performance of NFInst.instExpressions: time 0.02768/0.2983, allocations: 11.76 MB / 1.024 GB, free: 13.58 MB / 0.6511 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002242/0.3006, allocations: 47.62 kB / 1.024 GB, free: 13.54 MB / 0.6511 GB Notification: Performance of NFTyping.typeComponents: time 0.002359/0.303, allocations: 429.2 kB / 1.024 GB, free: 13.11 MB / 0.6511 GB Notification: Performance of NFTyping.typeBindings: time 0.006014/0.309, allocations: 1.257 MB / 1.026 GB, free: 11.85 MB / 0.6511 GB Notification: Performance of NFTyping.typeClassSections: time 0.00472/0.3138, allocations: 0.9579 MB / 1.027 GB, free: 10.9 MB / 0.6511 GB Notification: Performance of NFFlatten.flatten: time 0.01767/0.3315, allocations: 8.881 MB / 1.035 GB, free: 2 MB / 0.6511 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01093/0.3425, allocations: 2.743 MB / 1.038 GB, free: 15.21 MB / 0.6667 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006621/0.3492, allocations: 2.128 MB / 1.04 GB, free: 13.07 MB / 0.6667 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005692/0.3549, allocations: 2.139 MB / 1.042 GB, free: 10.92 MB / 0.6667 GB Notification: Performance of NFPackage.collectConstants: time 0.0009389/0.3559, allocations: 136 kB / 1.042 GB, free: 10.79 MB / 0.6667 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004448/0.3604, allocations: 0.7876 MB / 1.043 GB, free: 10 MB / 0.6667 GB Notification: Performance of NFScalarize.scalarize: time 0.001588/0.362, allocations: 0.5875 MB / 1.044 GB, free: 9.41 MB / 0.6667 GB Notification: Performance of NFVerifyModel.verify: time 0.001732/0.3638, allocations: 0.6408 MB / 1.044 GB, free: 8.762 MB / 0.6667 GB Notification: Performance of NFConvertDAE.convert: time 0.007768/0.3716, allocations: 3.994 MB / 1.048 GB, free: 4.758 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.3716, allocations: 0 / 1.048 GB, free: 4.758 MB / 0.6667 GB Notification: Performance of FrontEnd: time 3.387e-06/0.3717, allocations: 0 / 1.048 GB, free: 4.758 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 0.0001613/0.3718, allocations: 0 / 1.048 GB, free: 4.758 MB / 0.6667 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 586 * Number of variables: 586 Notification: Performance of Generate backend data structure: time 0.01011/0.382, allocations: 3 MB / 1.051 GB, free: 1.691 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.845e-05/0.382, allocations: 12.03 kB / 1.051 GB, free: 1.68 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002025/0.3841, allocations: 356 kB / 1.051 GB, free: 1.328 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008107/0.3922, allocations: 2.513 MB / 1.054 GB, free: 14.77 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002855/0.3926, allocations: 176.6 kB / 1.054 GB, free: 14.59 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009361/0.3935, allocations: 235.9 kB / 1.054 GB, free: 14.36 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01026/0.4038, allocations: 3.218 MB / 1.057 GB, free: 11 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.132e-05/0.4039, allocations: 7.938 kB / 1.057 GB, free: 10.99 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004247/0.4044, allocations: 96 kB / 1.057 GB, free: 10.9 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001219/0.4045, allocations: 67.98 kB / 1.057 GB, free: 10.83 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00841/0.4129, allocations: 2.562 MB / 1.06 GB, free: 8.254 MB / 0.6823 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.6593/1.072, allocations: 13.74 MB / 1.073 GB, free: 81.98 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005031/1.077, allocations: 1.621 MB / 1.075 GB, free: 81.4 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00331/1.081, allocations: 1.183 MB / 1.076 GB, free: 81.01 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001187/1.082, allocations: 0.7201 MB / 1.077 GB, free: 80.25 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.966e-05/1.082, allocations: 59.28 kB / 1.077 GB, free: 80.2 MB / 0.6823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002319/1.084, allocations: 184.5 kB / 1.077 GB, free: 80.17 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=126): time 7.444e-06/1.084, allocations: 2.344 kB / 1.077 GB, free: 80.17 MB / 0.6823 GB Notification: Performance of matching and sorting (n=126): time 0.0178/1.102, allocations: 3.445 MB / 1.08 GB, free: 79.15 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.573e-05/1.102, allocations: 143 kB / 1.081 GB, free: 79 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004977/1.107, allocations: 1.941 MB / 1.082 GB, free: 78.27 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0004654/1.108, allocations: 59.61 kB / 1.083 GB, free: 78.21 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.001615/1.109, allocations: 1.251 MB / 1.084 GB, free: 77.32 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008694/1.11, allocations: 446.4 kB / 1.084 GB, free: 76.99 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001564/1.111, allocations: 35.03 kB / 1.084 GB, free: 76.96 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001864/1.111, allocations: 380.1 kB / 1.085 GB, free: 76.62 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002154/1.113, allocations: 0.7274 MB / 1.085 GB, free: 76.38 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002682/1.116, allocations: 1.237 MB / 1.087 GB, free: 75.53 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003122/1.119, allocations: 0.9475 MB / 1.087 GB, free: 75.16 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-05/1.119, allocations: 4.375 kB / 1.087 GB, free: 75.16 MB / 0.6823 GB Notification: Performance of matching and sorting (n=213) (initialization): time 0.008744/1.128, allocations: 2.407 MB / 1.09 GB, free: 74.22 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004259/1.128, allocations: 0.5007 MB / 1.09 GB, free: 73.56 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.796e-05/1.128, allocations: 13.53 kB / 1.09 GB, free: 73.56 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004022/1.132, allocations: 0.5183 MB / 1.091 GB, free: 73.46 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002922/1.135, allocations: 351.7 kB / 1.091 GB, free: 73.42 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005379/1.141, allocations: 3.138 MB / 1.094 GB, free: 71 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003882/1.145, allocations: 230.4 kB / 1.094 GB, free: 70.93 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004283/1.145, allocations: 79.05 kB / 1.094 GB, free: 70.92 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.646e-05/1.145, allocations: 4.375 kB / 1.094 GB, free: 70.92 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006626/1.152, allocations: 2.181 MB / 1.097 GB, free: 70.09 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.229e-05/1.152, allocations: 16.36 kB / 1.097 GB, free: 70.09 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009934/1.153, allocations: 244.7 kB / 1.097 GB, free: 70.03 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00288/1.156, allocations: 367.2 kB / 1.097 GB, free: 69.99 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00622/1.162, allocations: 4.178 MB / 1.101 GB, free: 66.62 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003665/1.166, allocations: 222.7 kB / 1.102 GB, free: 66.57 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000507/1.166, allocations: 78.11 kB / 1.102 GB, free: 66.55 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.onOffBot.y,onOffBot.y,$PRE.onOffMid.y,onOffMid.y,and2.y,yTop.u,$PRE.onOffHea.y,onOffHea.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (179): * Single equations (assignments): 177 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 10} * Non-linear torn systems: 1 {3 22} Notification: Performance of prepare postOptimizeDAE: time 0.002933/1.169, allocations: 0.9991 MB / 1.103 GB, free: 66.04 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008574/1.17, allocations: 216 kB / 1.103 GB, free: 65.92 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01023/1.18, allocations: 2.051 MB / 1.105 GB, free: 65.11 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.879e-05/1.181, allocations: 14.59 kB / 1.105 GB, free: 65.11 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.915e-05/1.181, allocations: 2.469 kB / 1.105 GB, free: 65.11 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00793/1.189, allocations: 1.66 MB / 1.106 GB, free: 64.46 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02269/1.211, allocations: 4.686 MB / 1.111 GB, free: 62.21 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.522e-05/1.211, allocations: 1 kB / 1.111 GB, free: 62.21 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003055/1.214, allocations: 206 kB / 1.111 GB, free: 62.16 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004747/1.219, allocations: 458.2 kB / 1.112 GB, free: 61.95 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004451/1.22, allocations: 40.23 kB / 1.112 GB, free: 61.93 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006521/1.226, allocations: 3.045 MB / 1.115 GB, free: 59.31 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.466e-06/1.226, allocations: 1.031 kB / 1.115 GB, free: 59.31 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01241/1.239, allocations: 2.993 MB / 1.118 GB, free: 57.62 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002697/1.242, allocations: 0.5075 MB / 1.118 GB, free: 57.25 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001043/1.243, allocations: 29 kB / 1.118 GB, free: 57.23 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005204/1.248, allocations: 212.3 kB / 1.118 GB, free: 57.12 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007131/1.249, allocations: 108.1 kB / 1.118 GB, free: 57.06 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003748/1.249, allocations: 55.45 kB / 1.118 GB, free: 57.04 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.005315/1.254, allocations: 1.328 MB / 1.12 GB, free: 56.29 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.853e-06/1.255, allocations: 0 / 1.12 GB, free: 56.29 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.01033/1.265, allocations: 1.471 MB / 1.121 GB, free: 55.98 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 5 (tan.vol[1].dynBal.U,tan.vol[2].dynBal.U,tan.vol[3].dynBal.U,tan.vol[4].dynBal.U,tan.vol[5].dynBal.U) * Number of discrete variables: 5 (onOffBot.y,onOffMid.y,and2.y,yTop.u,onOffHea.y) * Number of discrete states: 3 (onOffBot.y,onOffMid.y,onOffHea.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 10} * Non-linear torn systems: 1 {3 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.00173/1.267, allocations: 369.6 kB / 1.122 GB, free: 55.8 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.01363/1.28, allocations: 3.366 MB / 1.125 GB, free: 53.98 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.169e-05/1.28, allocations: 0 / 1.125 GB, free: 53.98 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.004086/1.285, allocations: 1.015 MB / 1.126 GB, free: 53.42 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01195/1.297, allocations: 1.17 MB / 1.127 GB, free: 52.84 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01326/1.31, allocations: 6.269 MB / 1.133 GB, free: 47.39 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002373/1.312, allocations: 2.156 MB / 1.135 GB, free: 45.2 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.004923/1.317, allocations: 0.9432 MB / 1.136 GB, free: 44.27 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009724/1.318, allocations: 175.3 kB / 1.136 GB, free: 44.1 MB / 0.6823 GB Notification: Performance of SimCode: time 1.172e-06/1.318, allocations: 0 / 1.136 GB, free: 44.1 MB / 0.6823 GB Notification: Performance of Templates: time 0.1055/1.424, allocations: 44.88 MB / 1.18 GB, free: 15.61 MB / 0.698 GB make -j1 -f Buildings_8.0.0_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.makefile (rm -f Buildings_8.0.0_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.sim & ./Buildings_8.0.0_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe 2>&1)