Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.Stratified,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.258/4.258, allocations: 464.6 MB / 476.8 MB, free: 2.18 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.652e-05/3.663e-05, allocations: 4 kB / 0.5732 GB, free: 5.617 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2525/0.2526, allocations: 107.2 MB / 0.6778 GB, free: 10.28 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.296/1.549, allocations: 404 MB / 1.072 GB, free: 14.17 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003447/1.549, allocations: 88.81 kB / 1.072 GB, free: 14.12 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 15.43/16.98, allocations: 2.845 GB / 3.918 GB, free: 126.2 MB / 0.9167 GB Notification: Performance of FrontEnd: time 2.124e-06/16.98, allocations: 0 / 3.918 GB, free: 126.2 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 0.001725/16.98, allocations: 249.9 kB / 3.918 GB, free: 126.2 MB / 0.9167 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.03425/17.02, allocations: 8.291 MB / 3.926 GB, free: 123.5 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.985e-05/17.02, allocations: 9.719 kB / 3.926 GB, free: 123.5 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005685/17.02, allocations: 1.145 MB / 3.927 GB, free: 123.4 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008362/17.03, allocations: 1.159 MB / 3.928 GB, free: 122.8 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04067/17.07, allocations: 10.71 MB / 3.939 GB, free: 121.7 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00124/17.08, allocations: 0.6102 MB / 3.939 GB, free: 121.7 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005547/17.08, allocations: 0.8163 MB / 3.94 GB, free: 121.7 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05023/17.13, allocations: 11.33 MB / 3.951 GB, free: 120.6 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006087/17.13, allocations: 34 kB / 3.951 GB, free: 120.6 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003616/17.14, allocations: 352.3 kB / 3.951 GB, free: 120.6 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003122/17.14, allocations: 251 kB / 3.952 GB, free: 120.6 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03103/17.17, allocations: 9.318 MB / 3.961 GB, free: 120.5 MB / 0.9167 GB Warning: The model contains alias variables with conflicting start and/or 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.1042/17.27, allocations: 46.11 MB / 4.006 GB, free: 101.5 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01535/17.29, allocations: 6.229 MB / 4.012 GB, free: 101.3 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01268/17.3, allocations: 5.42 MB / 4.017 GB, free: 101.1 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002036/17.3, allocations: 0.8252 MB / 4.018 GB, free: 100.4 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.009648/17.31, allocations: 3.257 MB / 4.021 GB, free: 100.2 MB / 0.9167 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.007125/17.32, allocations: 0.5536 MB / 4.022 GB, free: 99.9 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=455): time 2.305e-05/17.32, allocations: 3.094 kB / 4.022 GB, free: 99.9 MB / 0.9167 GB Notification: Performance of matching and sorting (n=455): time 0.01987/17.34, allocations: 6.226 MB / 4.028 GB, free: 99.34 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000101/17.34, allocations: 155.9 kB / 4.028 GB, free: 99.21 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01976/17.36, allocations: 7.009 MB / 4.035 GB, free: 98.75 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 0.00151/17.36, allocations: 111.9 kB / 4.035 GB, free: 98.72 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.006765/17.37, allocations: 4.273 MB / 4.039 GB, free: 97.11 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.003219/17.37, allocations: 1.582 MB / 4.041 GB, free: 96.12 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001262/17.37, allocations: 123.8 kB / 4.041 GB, free: 96.12 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0006311/17.37, allocations: 0.5393 MB / 4.041 GB, free: 95.8 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008151/17.38, allocations: 2.911 MB / 4.044 GB, free: 95.79 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009868/17.39, allocations: 4.729 MB / 4.049 GB, free: 93.64 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01013/17.4, allocations: 3.97 MB / 4.053 GB, free: 93.52 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.049e-05/17.4, allocations: 18.16 kB / 4.053 GB, free: 93.52 MB / 0.9167 GB Notification: Performance of matching and sorting (n=758) (initialization): time 0.02656/17.43, allocations: 8.53 MB / 4.061 GB, free: 91.23 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.006391/17.43, allocations: 28.65 MB / 4.089 GB, free: 61.05 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002286/17.43, allocations: 56.94 kB / 4.089 GB, free: 61.05 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001777/17.43, allocations: 100.9 kB / 4.089 GB, free: 61.05 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01192/17.45, allocations: 1.443 MB / 4.091 GB, free: 61 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001996/17.45, allocations: 131.8 kB / 4.091 GB, free: 61 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01306/17.46, allocations: 0.6145 MB / 4.091 GB, free: 60.86 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001866/17.46, allocations: 285.2 kB / 4.092 GB, free: 60.81 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/17.46, allocations: 4.125 kB / 4.092 GB, free: 60.81 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02403/17.49, allocations: 7.949 MB / 4.099 GB, free: 58.23 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001905/17.49, allocations: 59 kB / 4.099 GB, free: 58.23 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000147/17.49, allocations: 99.19 kB / 4.099 GB, free: 58.23 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01209/17.5, allocations: 1.449 MB / 4.101 GB, free: 58.09 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000181/17.5, allocations: 128.8 kB / 4.101 GB, free: 58.06 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0126/17.51, allocations: 0.5946 MB / 4.102 GB, free: 57.92 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001996/17.51, allocations: 282.4 kB / 4.102 GB, free: 57.87 MB / 0.9167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 260 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (748): * Single equations (assignments): 746 * 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.003761/17.52, allocations: 0.5358 MB / 4.102 GB, free: 57.4 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003688/17.52, allocations: 0.7062 MB / 4.103 GB, free: 57.04 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02901/17.55, allocations: 7.003 MB / 4.11 GB, free: 54.49 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.835e-05/17.55, allocations: 42.16 kB / 4.11 GB, free: 54.49 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.312e-05/17.55, allocations: 2.031 kB / 4.11 GB, free: 54.49 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02319/17.57, allocations: 5.705 MB / 4.115 GB, free: 52.5 MB / 0.9167 GB Warning: The model contains alias variables with conflicting start and/or 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.06172/17.63, allocations: 16.45 MB / 4.132 GB, free: 46.3 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.092e-05/17.63, allocations: 0 / 4.132 GB, free: 46.3 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009063/17.64, allocations: 0.9215 MB / 4.132 GB, free: 46.23 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.7e-05/17.64, allocations: 14.69 kB / 4.132 GB, free: 46.23 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001093/17.64, allocations: 125.8 kB / 4.133 GB, free: 46.17 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-05/17.64, allocations: 19.53 kB / 4.133 GB, free: 46.17 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/17.64, allocations: 0 / 4.133 GB, free: 46.17 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02732/17.67, allocations: 10.6 MB / 4.143 GB, free: 40.75 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007552/17.68, allocations: 1.715 MB / 4.145 GB, free: 39.25 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003678/17.68, allocations: 99.59 kB / 4.145 GB, free: 39.16 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01161/17.69, allocations: 0.5546 MB / 4.145 GB, free: 38.8 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001414/17.7, allocations: 261.1 kB / 4.146 GB, free: 38.64 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00101/17.7, allocations: 185.8 kB / 4.146 GB, free: 38.49 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.01443/17.71, allocations: 5.47 MB / 4.151 GB, free: 33.77 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.223e-06/17.71, allocations: 0 / 4.151 GB, free: 33.77 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0235/17.74, allocations: 4.914 MB / 4.156 GB, free: 28.86 MB / 0.9167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 23 (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,HOut_flow.h_out,HOut_flow1.h_out,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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (451): * Single equations (assignments): 447 * 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.03785/17.77, allocations: 12.08 MB / 4.168 GB, free: 18.25 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.04002/17.81, allocations: 11.25 MB / 4.179 GB, free: 8.156 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.219e-05/17.81, allocations: 4 kB / 4.179 GB, free: 8.152 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.008124/17.82, allocations: 3.123 MB / 4.182 GB, free: 5.32 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03671/17.86, allocations: 4.376 MB / 4.186 GB, free: 2.246 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0754/17.93, allocations: 19.81 MB / 4.205 GB, free: 2.25 MB / 0.9323 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01509/17.95, allocations: 6.28 MB / 4.211 GB, free: 13.59 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.04036/17.99, allocations: 6.574 MB / 4.218 GB, free: 9.512 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01552/18.01, allocations: 3.614 MB / 4.221 GB, free: 6.164 MB / 0.948 GB Notification: Performance of SimCode: time 1.623e-06/18.01, allocations: 0 / 4.221 GB, free: 6.164 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.259/19.26, allocations: 237.2 MB / 4.453 GB, free: 84.04 MB / 0.948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002469/19.26, allocations: 189.8 kB / 4.453 GB, free: 83.82 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.88/32.15, allocations: 0 / 4.453 GB, free: 83.82 MB / 0.948 GB