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.772/3.772, allocations: 403.3 MB / 415.4 MB, free: 13.01 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.543e-05/3.546e-05, allocations: 4 kB / 0.4991 GB, free: 13.37 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5944/0.5944, allocations: 92.68 MB / 0.5896 GB, free: 14.48 MB / 490.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.076/1.671, allocations: 385.1 MB / 0.9657 GB, free: 4.555 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003295/1.671, allocations: 88.19 kB / 0.9658 GB, free: 4.508 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 12.49/14.17, allocations: 2.273 GB / 3.239 GB, free: 78.91 MB / 0.8073 GB Notification: Performance of FrontEnd: time 2.535e-06/14.17, allocations: 0 / 3.239 GB, free: 78.91 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 0.001744/14.17, allocations: 260.5 kB / 3.239 GB, free: 78.88 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.03433/14.2, allocations: 8.339 MB / 3.247 GB, free: 75.95 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 5.772e-05/14.2, allocations: 15.31 kB / 3.247 GB, free: 75.95 MB / 0.8073 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005745/14.21, allocations: 1.152 MB / 3.248 GB, free: 75.86 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009406/14.22, allocations: 1.184 MB / 3.249 GB, free: 75.3 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04179/14.26, allocations: 11.93 MB / 3.261 GB, free: 74.12 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009487/14.26, allocations: 0.6221 MB / 3.262 GB, free: 74.11 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004091/14.26, allocations: 0.8327 MB / 3.262 GB, free: 74.1 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04245/14.31, allocations: 11.81 MB / 3.274 GB, free: 72.52 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000559/14.31, allocations: 34.22 kB / 3.274 GB, free: 72.52 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003567/14.31, allocations: 361.9 kB / 3.274 GB, free: 72.52 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003459/14.31, allocations: 260.5 kB / 3.275 GB, free: 72.52 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03275/14.34, allocations: 9.614 MB / 3.284 GB, free: 72.46 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.1069/14.45, allocations: 51.14 MB / 3.334 GB, free: 48.54 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01629/14.47, allocations: 6.453 MB / 3.34 GB, free: 48.21 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01341/14.48, allocations: 5.748 MB / 3.346 GB, free: 48.04 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001793/14.48, allocations: 0.4974 MB / 3.346 GB, free: 47.66 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01231/14.49, allocations: 3.894 MB / 3.35 GB, free: 47.44 MB / 0.8073 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.007088/14.5, allocations: 0.56 MB / 3.351 GB, free: 47.14 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=507): time 2.692e-05/14.5, allocations: 1.438 kB / 3.351 GB, free: 47.14 MB / 0.8073 GB Notification: Performance of matching and sorting (n=547): time 0.07916/14.58, allocations: 22 MB / 3.372 GB, free: 42.74 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001484/14.58, allocations: 249.4 kB / 3.372 GB, free: 42.51 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01958/14.6, allocations: 6.899 MB / 3.379 GB, free: 42.05 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 0.001568/14.6, allocations: 122.1 kB / 3.379 GB, free: 42.02 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 0.006866/14.61, allocations: 4.305 MB / 3.383 GB, free: 40.44 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 0.003884/14.61, allocations: 1.893 MB / 3.385 GB, free: 39 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001341/14.61, allocations: 131.6 kB / 3.385 GB, free: 38.9 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 0.0007077/14.62, allocations: 0.5657 MB / 3.386 GB, free: 38.48 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009541/14.62, allocations: 3.341 MB / 3.389 GB, free: 37.32 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0112/14.64, allocations: 5.232 MB / 3.394 GB, free: 33.84 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01149/14.65, allocations: 4.483 MB / 3.399 GB, free: 32.27 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.337e-05/14.65, allocations: 18.94 kB / 3.399 GB, free: 32.27 MB / 0.8073 GB Notification: Performance of matching and sorting (n=831) (initialization): time 0.02959/14.68, allocations: 9.631 MB / 3.408 GB, free: 29.06 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 0.009899/14.69, allocations: 29.05 MB / 3.436 GB, free: 13.71 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002287/14.69, allocations: 60.19 kB / 3.437 GB, free: 13.71 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001751/14.69, allocations: 100.1 kB / 3.437 GB, free: 13.71 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01328/14.7, allocations: 1.623 MB / 3.438 GB, free: 13.66 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002109/14.7, allocations: 133 kB / 3.438 GB, free: 13.66 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01307/14.71, allocations: 0.6819 MB / 3.439 GB, free: 13.46 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002275/14.72, allocations: 305.9 kB / 3.439 GB, free: 13.41 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.924e-05/14.72, allocations: 4.406 kB / 3.439 GB, free: 13.41 MB / 0.823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02675/14.74, allocations: 8.998 MB / 3.448 GB, free: 10.27 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001757/14.74, allocations: 58.09 kB / 3.448 GB, free: 10.27 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001404/14.74, allocations: 97.31 kB / 3.448 GB, free: 10.27 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0129/14.76, allocations: 1.609 MB / 3.45 GB, free: 10.11 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002025/14.76, allocations: 133.6 kB / 3.45 GB, free: 10.09 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01265/14.77, allocations: 0.6513 MB / 3.451 GB, free: 9.898 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002181/14.77, allocations: 302.4 kB / 3.451 GB, free: 9.848 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.00361/14.78, allocations: 0.5686 MB / 3.451 GB, free: 9.352 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003346/14.78, allocations: 0.7362 MB / 3.452 GB, free: 8.969 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02929/14.81, allocations: 8.795 MB / 3.461 GB, free: 2.973 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001307/14.81, allocations: 67.28 kB / 3.461 GB, free: 2.91 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.784e-05/14.81, allocations: 0 / 3.461 GB, free: 2.91 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02437/14.83, allocations: 7.125 MB / 3.468 GB, free: 12.74 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07405/14.91, allocations: 19.41 MB / 3.487 GB, free: 12.98 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001056/14.91, allocations: 8 kB / 3.487 GB, free: 12.97 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01198/14.92, allocations: 1.178 MB / 3.488 GB, free: 11.99 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001314/14.92, allocations: 32 kB / 3.488 GB, free: 11.96 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00158/14.92, allocations: 164.6 kB / 3.488 GB, free: 11.82 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.988e-05/14.92, allocations: 39.88 kB / 3.488 GB, free: 11.78 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.968e-05/14.92, allocations: 15.94 kB / 3.488 GB, free: 11.77 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.7092/15.63, allocations: 14.57 MB / 3.502 GB, free: 114.9 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009847/15.64, allocations: 1.84 MB / 3.504 GB, free: 114.8 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004/15.64, allocations: 137.8 kB / 3.504 GB, free: 114.8 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01282/15.66, allocations: 0.6485 MB / 3.505 GB, free: 114.8 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001877/15.66, allocations: 363.2 kB / 3.505 GB, free: 114.8 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001196/15.66, allocations: 211.8 kB / 3.505 GB, free: 114.8 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.01682/15.68, allocations: 5.394 MB / 3.511 GB, free: 114.6 MB / 0.8542 GB Notification: Performance of sort global known variables: time 8.51e-07/15.68, allocations: 0 / 3.511 GB, free: 114.6 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.02386/15.7, allocations: 4.08 MB / 3.515 GB, free: 114.6 MB / 0.8542 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.03571/15.74, allocations: 17.2 MB / 3.531 GB, free: 109.1 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.03339/15.77, allocations: 13.15 MB / 3.544 GB, free: 108.6 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.965e-05/15.77, allocations: 4.312 kB / 3.544 GB, free: 108.6 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.01038/15.78, allocations: 3.873 MB / 3.548 GB, free: 108.5 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03753/15.82, allocations: 4.522 MB / 3.553 GB, free: 108.4 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06884/15.89, allocations: 21.54 MB / 3.574 GB, free: 104.9 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01348/15.9, allocations: 6.542 MB / 3.58 GB, free: 104 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.03642/15.94, allocations: 6.851 MB / 3.587 GB, free: 103.9 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01115/15.95, allocations: 3.87 MB / 3.59 GB, free: 103.9 MB / 0.8542 GB Notification: Performance of SimCode: time 1.643e-06/15.95, allocations: 0 / 3.59 GB, free: 103.9 MB / 0.8542 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.233/17.18, allocations: 252.3 MB / 3.837 GB, free: 120.9 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002693/17.18, allocations: 193 kB / 3.837 GB, free: 120.6 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.03/31.21, allocations: 2.953 kB / 3.837 GB, free: 120.6 MB / 0.8855 GB