Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.Stratified,fileNamePrefix="Buildings_6_0_0_Buildings_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.362/4.362, allocations: 432.8 MB / 444.9 MB, free: 15.7 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 4.772e-05/4.78e-05, allocations: 3.703 kB / 0.5338 GB, free: 12.26 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2755/0.2756, allocations: 98.73 MB / 0.6302 GB, free: 6.129 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.209/1.485, allocations: 395 MB / 1.016 GB, free: 0.7109 MB / 0.7605 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003439/1.485, allocations: 88.39 kB / 1.016 GB, free: 0.668 MB / 0.7605 GB Notification: Performance of FrontEnd - DAE generated: time 15.25/16.73, allocations: 2.821 GB / 3.837 GB, free: 118.6 MB / 0.8542 GB Notification: Performance of FrontEnd: time 2.144e-06/16.73, allocations: 4 kB / 3.837 GB, free: 118.6 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 0.001858/16.73, allocations: 251 kB / 3.837 GB, free: 118.5 MB / 0.8542 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2143 * Number of variables: 2143 Notification: Performance of Generate backend data structure: time 0.03601/16.77, allocations: 8.236 MB / 3.845 GB, free: 114.6 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 5.76e-05/16.77, allocations: 12.72 kB / 3.845 GB, free: 114.6 MB / 0.8542 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00611/16.78, allocations: 1.134 MB / 3.847 GB, free: 113.8 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008925/16.79, allocations: 1.155 MB / 3.848 GB, free: 113.3 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03888/16.82, allocations: 10.62 MB / 3.858 GB, free: 107 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00104/16.83, allocations: 0.6196 MB / 3.859 GB, free: 106.7 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004403/16.83, allocations: 0.8265 MB / 3.859 GB, free: 106.4 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04142/16.87, allocations: 11.2 MB / 3.87 GB, free: 95.17 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006024/16.87, allocations: 23.77 kB / 3.87 GB, free: 95.15 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003737/16.88, allocations: 360 kB / 3.871 GB, free: 94.8 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003089/16.88, allocations: 243.9 kB / 3.871 GB, free: 94.56 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0324/16.91, allocations: 9.296 MB / 3.88 GB, free: 85.26 MB / 0.8542 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.1022/17.01, allocations: 45.75 MB / 3.925 GB, free: 37.93 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01484/17.03, allocations: 6.212 MB / 3.931 GB, free: 31.72 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01198/17.04, allocations: 5.395 MB / 3.936 GB, free: 26.32 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001884/17.04, allocations: 0.8226 MB / 3.937 GB, free: 25.38 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00879/17.05, allocations: 3.143 MB / 3.94 GB, free: 22.2 MB / 0.8542 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.006586/17.06, allocations: 0.5564 MB / 3.94 GB, free: 21.64 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=453): time 1.774e-05/17.06, allocations: 0 / 3.94 GB, free: 21.64 MB / 0.8542 GB Notification: Performance of matching and sorting (n=453): time 0.01792/17.07, allocations: 6.106 MB / 3.946 GB, free: 15.5 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001067/17.07, allocations: 158.2 kB / 3.947 GB, free: 15.32 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01829/17.09, allocations: 6.924 MB / 3.953 GB, free: 8.41 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 0.001309/17.09, allocations: 113.7 kB / 3.953 GB, free: 8.293 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.006367/17.1, allocations: 4.247 MB / 3.958 GB, free: 4.031 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.003014/17.1, allocations: 1.574 MB / 3.959 GB, free: 2.469 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007319/17.1, allocations: 120 kB / 3.959 GB, free: 2.352 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.000477/17.1, allocations: 0.5459 MB / 3.96 GB, free: 1.797 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.7341/17.84, allocations: 2.893 MB / 3.963 GB, free: 123.4 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01152/17.85, allocations: 4.697 MB / 3.967 GB, free: 121.2 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01217/17.86, allocations: 3.965 MB / 3.971 GB, free: 121.1 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001293/17.86, allocations: 15.91 kB / 3.971 GB, free: 121.1 MB / 0.8542 GB Notification: Performance of matching and sorting (n=756) (initialization): time 0.02944/17.89, allocations: 8.397 MB / 3.979 GB, free: 120.9 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 0.007212/17.9, allocations: 28.33 MB / 4.007 GB, free: 91.45 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003508/17.9, allocations: 57.31 kB / 4.007 GB, free: 91.45 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001965/17.9, allocations: 94.34 kB / 4.007 GB, free: 91.45 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01257/17.91, allocations: 1.445 MB / 4.008 GB, free: 91.45 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002285/17.91, allocations: 126.1 kB / 4.009 GB, free: 91.45 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01434/17.93, allocations: 0.619 MB / 4.009 GB, free: 91.45 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002006/17.93, allocations: 281.9 kB / 4.009 GB, free: 91.45 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/17.93, allocations: 3.531 kB / 4.009 GB, free: 91.45 MB / 0.8542 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02292/17.95, allocations: 7.828 MB / 4.017 GB, free: 91.3 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000192/17.95, allocations: 56.75 kB / 4.017 GB, free: 91.3 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001285/17.95, allocations: 94.56 kB / 4.017 GB, free: 91.3 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01179/17.96, allocations: 1.446 MB / 4.019 GB, free: 91.3 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001937/17.96, allocations: 121.8 kB / 4.019 GB, free: 91.3 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01228/17.98, allocations: 0.5997 MB / 4.019 GB, free: 91.3 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001921/17.98, allocations: 278.6 kB / 4.02 GB, free: 91.3 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 258 * 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 (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.002598/17.98, allocations: 0.5355 MB / 4.02 GB, free: 91.12 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003116/17.98, allocations: 0.6987 MB / 4.021 GB, free: 91 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0236/18.01, allocations: 6.887 MB / 4.028 GB, free: 90.72 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.445e-05/18.01, allocations: 40.62 kB / 4.028 GB, free: 90.72 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.766e-05/18.01, allocations: 7.422 kB / 4.028 GB, free: 90.71 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0174/18.03, allocations: 5.594 MB / 4.033 GB, free: 90.49 MB / 0.8542 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.05425/18.08, allocations: 16.12 MB / 4.049 GB, free: 89.46 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.195e-05/18.08, allocations: 3.656 kB / 4.049 GB, free: 89.46 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009202/18.09, allocations: 0.9142 MB / 4.05 GB, free: 89.46 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.451e-05/18.09, allocations: 16.56 kB / 4.05 GB, free: 89.45 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001354/18.09, allocations: 120.3 kB / 4.05 GB, free: 89.45 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.684e-05/18.09, allocations: 15.53 kB / 4.05 GB, free: 89.45 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/18.09, allocations: 4.5 kB / 4.05 GB, free: 89.45 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0266/18.12, allocations: 10.34 MB / 4.06 GB, free: 88.66 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007697/18.12, allocations: 1.667 MB / 4.062 GB, free: 88.2 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003588/18.13, allocations: 99.11 kB / 4.062 GB, free: 88.2 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0111/18.14, allocations: 0.5589 MB / 4.062 GB, free: 88.19 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001493/18.14, allocations: 253 kB / 4.062 GB, free: 88.18 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008511/18.14, allocations: 145.9 kB / 4.063 GB, free: 88.18 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.01505/18.16, allocations: 5.396 MB / 4.068 GB, free: 87.94 MB / 0.8542 GB Notification: Performance of sort global known variables: time 8.02e-07/18.16, allocations: 0 / 4.068 GB, free: 87.94 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.02511/18.18, allocations: 4.875 MB / 4.073 GB, free: 87.58 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (447): * Single equations (assignments): 443 * 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.02877/18.21, allocations: 11.75 MB / 4.084 GB, free: 86.2 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.02846/18.24, allocations: 11.23 MB / 4.095 GB, free: 85.85 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.237e-05/18.24, allocations: 6.156 kB / 4.095 GB, free: 85.85 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.00769/18.25, allocations: 3.109 MB / 4.098 GB, free: 85.7 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03528/18.28, allocations: 4.342 MB / 4.102 GB, free: 85.61 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06351/18.35, allocations: 19.41 MB / 4.121 GB, free: 82.64 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0133/18.36, allocations: 6.238 MB / 4.127 GB, free: 81.66 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.03494/18.39, allocations: 6.521 MB / 4.134 GB, free: 81.23 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01173/18.41, allocations: 3.59 MB / 4.137 GB, free: 81.22 MB / 0.8542 GB Notification: Performance of SimCode: time 1.894e-06/18.41, allocations: 0 / 4.137 GB, free: 81.22 MB / 0.8542 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.335/19.74, allocations: 231.5 MB / 4.363 GB, free: 144 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002589/19.74, allocations: 184.7 kB / 4.364 GB, free: 143.8 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.45/33.19, allocations: 0 / 4.364 GB, free: 143.8 MB / 0.8855 GB