Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.Stratified,fileNamePrefix="Buildings_5_0_1_Buildings_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 3.869/3.869, allocations: 403.3 MB / 415.4 MB, free: 12.88 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 4.426e-05/4.436e-05, allocations: 4 kB / 0.4991 GB, free: 13.27 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6263/0.6264, allocations: 92.68 MB / 0.5896 GB, free: 14.44 MB / 490.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.1/1.727, allocations: 385.1 MB / 0.9658 GB, free: 4.512 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003224/1.727, allocations: 84.95 kB / 0.9658 GB, free: 4.469 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 12.24/13.97, allocations: 2.273 GB / 3.239 GB, free: 79.78 MB / 0.8073 GB Notification: Performance of FrontEnd: time 1.813e-06/13.97, allocations: 0 / 3.239 GB, free: 79.78 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 0.001821/13.97, allocations: 260.8 kB / 3.239 GB, free: 79.75 MB / 0.8073 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2186 * Number of variables: 2186 Notification: Performance of Generate backend data structure: time 0.03582/14.01, allocations: 8.343 MB / 3.247 GB, free: 76.81 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 6.278e-05/14.01, allocations: 10.94 kB / 3.247 GB, free: 76.8 MB / 0.8073 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005759/14.01, allocations: 1.156 MB / 3.248 GB, free: 76.71 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008816/14.02, allocations: 1.181 MB / 3.249 GB, free: 76.16 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04265/14.06, allocations: 11.93 MB / 3.261 GB, free: 74.98 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009674/14.06, allocations: 0.6217 MB / 3.262 GB, free: 74.96 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005843/14.07, allocations: 0.834 MB / 3.262 GB, free: 74.96 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0432/14.11, allocations: 11.7 MB / 3.274 GB, free: 73.42 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006791/14.11, allocations: 37.47 kB / 3.274 GB, free: 73.42 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003956/14.12, allocations: 362.3 kB / 3.274 GB, free: 73.42 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003487/14.12, allocations: 263.5 kB / 3.274 GB, free: 73.42 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03395/14.15, allocations: 9.458 MB / 3.284 GB, free: 73.39 MB / 0.8073 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.1061/14.26, allocations: 51.14 MB / 3.334 GB, free: 49.48 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01603/14.27, allocations: 6.391 MB / 3.34 GB, free: 49.15 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01353/14.29, allocations: 5.748 MB / 3.345 GB, free: 48.98 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00179/14.29, allocations: 0.5048 MB / 3.346 GB, free: 48.6 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01221/14.3, allocations: 3.863 MB / 3.35 GB, free: 48.39 MB / 0.8073 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.007064/14.31, allocations: 0.5618 MB / 3.35 GB, free: 48.09 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=507): time 2.266e-05/14.31, allocations: 0 / 3.35 GB, free: 48.09 MB / 0.8073 GB Notification: Performance of matching and sorting (n=547): time 0.07927/14.39, allocations: 22 MB / 3.372 GB, free: 43.69 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001405/14.39, allocations: 249.6 kB / 3.372 GB, free: 43.46 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01853/14.41, allocations: 6.889 MB / 3.379 GB, free: 43.01 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 0.001489/14.41, allocations: 122.8 kB / 3.379 GB, free: 42.98 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 0.006173/14.41, allocations: 4.311 MB / 3.383 GB, free: 41.36 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 0.003547/14.42, allocations: 1.892 MB / 3.385 GB, free: 39.91 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009582/14.42, allocations: 126.8 kB / 3.385 GB, free: 39.82 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 0.0005534/14.42, allocations: 0.5674 MB / 3.386 GB, free: 39.4 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009012/14.43, allocations: 3.34 MB / 3.389 GB, free: 38.23 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01204/14.44, allocations: 5.193 MB / 3.394 GB, free: 34.77 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01115/14.45, allocations: 4.48 MB / 3.398 GB, free: 33.21 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.221e-05/14.45, allocations: 18.53 kB / 3.398 GB, free: 33.21 MB / 0.8073 GB Notification: Performance of matching and sorting (n=831) (initialization): time 0.02733/14.48, allocations: 9.474 MB / 3.408 GB, free: 30.04 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 0.009198/14.49, allocations: 29.05 MB / 3.436 GB, free: 14.69 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002125/14.49, allocations: 58.16 kB / 3.436 GB, free: 14.69 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001814/14.49, allocations: 108.9 kB / 3.436 GB, free: 14.69 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01314/14.5, allocations: 1.62 MB / 3.438 GB, free: 14.63 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002074/14.5, allocations: 129.8 kB / 3.438 GB, free: 14.63 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01304/14.52, allocations: 0.6771 MB / 3.438 GB, free: 14.43 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002015/14.52, allocations: 306.2 kB / 3.439 GB, free: 14.38 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/14.52, allocations: 7.812 kB / 3.439 GB, free: 14.38 MB / 0.823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02508/14.54, allocations: 8.842 MB / 3.447 GB, free: 11.43 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001528/14.54, allocations: 56.62 kB / 3.447 GB, free: 11.43 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001548/14.54, allocations: 103.6 kB / 3.448 GB, free: 11.43 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01264/14.56, allocations: 1.605 MB / 3.449 GB, free: 11.27 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002177/14.56, allocations: 135.3 kB / 3.449 GB, free: 11.24 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01212/14.57, allocations: 0.6521 MB / 3.45 GB, free: 11.05 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001956/14.57, allocations: 306.3 kB / 3.45 GB, free: 11 MB / 0.823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 261 * Number of states: 0 () * Number of discrete variables: 14 ($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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (819): * Single equations (assignments): 817 * 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.002642/14.57, allocations: 0.562 MB / 3.451 GB, free: 10.51 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002708/14.58, allocations: 0.7374 MB / 3.451 GB, free: 10.13 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02564/14.6, allocations: 8.797 MB / 3.46 GB, free: 4.094 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001146/14.6, allocations: 63.33 kB / 3.46 GB, free: 4.039 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.677e-05/14.6, allocations: 0 / 3.46 GB, free: 4.039 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03431/14.64, allocations: 7.875 MB / 3.468 GB, free: 15.75 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06544/14.7, allocations: 19.37 MB / 3.487 GB, free: 0 / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001235/14.7, allocations: 19.7 kB / 3.487 GB, free: 0 / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.668/15.37, allocations: 1.388 MB / 3.488 GB, free: 102.6 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001658/15.37, allocations: 32.19 kB / 3.488 GB, free: 102.6 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001628/15.37, allocations: 168.7 kB / 3.488 GB, free: 102.6 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001241/15.37, allocations: 39.77 kB / 3.488 GB, free: 102.6 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.917e-05/15.37, allocations: 14.88 kB / 3.488 GB, free: 102.6 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03439/15.41, allocations: 14.02 MB / 3.502 GB, free: 99.23 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007895/15.41, allocations: 1.84 MB / 3.504 GB, free: 99.13 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003485/15.42, allocations: 143 kB / 3.504 GB, free: 99.13 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01216/15.43, allocations: 0.6439 MB / 3.505 GB, free: 99.13 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001629/15.43, allocations: 360.6 kB / 3.505 GB, free: 99.12 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001103/15.43, allocations: 216.4 kB / 3.505 GB, free: 99.12 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.01408/15.45, allocations: 5.389 MB / 3.51 GB, free: 98.87 MB / 0.8386 GB Notification: Performance of sort global known variables: time 7.21e-07/15.45, allocations: 0 / 3.51 GB, free: 98.87 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.02272/15.47, allocations: 4.077 MB / 3.514 GB, free: 98.87 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 46 * Number of states: 23 (tanSim.port_a.h_outflow,tanSim.port_b.h_outflow,tanSim.vol[2].ports[2].h_outflow,tanSim.vol[3].ports[2].h_outflow,tanSim.vol[4].ports[2].h_outflow,tanSim.vol[5].ports[2].h_outflow,tanSim.vol[6].ports[2].h_outflow,tanSim.vol[7].ports[2].h_outflow,tanSim.vol[8].ports[2].h_outflow,tanSim.vol[9].ports[2].h_outflow,tanEnh.vol[1].ports[3].h_outflow,tanEnh.vol[2].ports[3].h_outflow,tanEnh.vol[3].ports[3].h_outflow,tanEnh.vol[4].ports[3].h_outflow,tanEnh.vol[5].ports[3].h_outflow,tanEnh.vol[6].ports[3].h_outflow,tanEnh.vol[7].ports[3].h_outflow,tanEnh.vol[8].ports[3].h_outflow,tanEnh.vol[9].ports[3].h_outflow,tanEnh.vol[10].ports[3].h_outflow,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 (579): * Single equations (assignments): 557 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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.03515/15.51, allocations: 17.24 MB / 3.531 GB, free: 93.3 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.03179/15.54, allocations: 12.92 MB / 3.544 GB, free: 92.88 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.026e-05/15.54, allocations: 5.234 kB / 3.544 GB, free: 92.88 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.009205/15.55, allocations: 3.828 MB / 3.548 GB, free: 92.73 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03655/15.58, allocations: 4.526 MB / 3.552 GB, free: 92.65 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0675/15.65, allocations: 21.5 MB / 3.573 GB, free: 89.17 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01316/15.66, allocations: 6.541 MB / 3.579 GB, free: 88.25 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.03718/15.7, allocations: 6.853 MB / 3.586 GB, free: 88.17 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01083/15.71, allocations: 3.869 MB / 3.59 GB, free: 88.16 MB / 0.8386 GB Notification: Performance of SimCode: time 1.322e-06/15.71, allocations: 0 / 3.59 GB, free: 88.16 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.28/16.99, allocations: 251 MB / 3.835 GB, free: 120 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002211/16.99, allocations: 188.6 kB / 3.835 GB, free: 119.8 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.07/31.06, allocations: 0 / 3.835 GB, free: 119.8 MB / 0.8698 GB