Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Storage.Examples.Stratified,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(BuildingSystems): time 3.596/3.596, allocations: 343.8 MB / 355.9 MB, free: 9.352 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.052e-05/4.059e-05, allocations: 4 kB / 436.6 MB, free: 2.355 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1694/0.1695, allocations: 77.73 MB / 0.5023 GB, free: 4.465 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.507/1.677, allocations: 376.8 MB / 0.8703 GB, free: 149.7 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003225/1.677, allocations: 87.08 kB / 0.8704 GB, free: 149.7 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 15.28/16.96, allocations: 2.822 GB / 3.693 GB, free: 84.53 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.334e-06/16.96, allocations: 0 / 3.693 GB, free: 84.53 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.00192/16.96, allocations: 249.8 kB / 3.693 GB, free: 84.49 MB / 0.7136 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.03409/16.99, allocations: 8.29 MB / 3.701 GB, free: 81.43 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.45e-05/16.99, allocations: 10.81 kB / 3.701 GB, free: 81.43 MB / 0.7136 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005588/17, allocations: 1.138 MB / 3.702 GB, free: 81.34 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008537/17.01, allocations: 1.156 MB / 3.703 GB, free: 80.79 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03706/17.05, allocations: 10.68 MB / 3.714 GB, free: 79.7 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008995/17.05, allocations: 0.6142 MB / 3.714 GB, free: 79.68 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00397/17.05, allocations: 0.8169 MB / 3.715 GB, free: 79.67 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03998/17.09, allocations: 11.25 MB / 3.726 GB, free: 78.53 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006058/17.09, allocations: 29.25 kB / 3.726 GB, free: 78.52 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003643/17.1, allocations: 350.9 kB / 3.726 GB, free: 78.52 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003172/17.1, allocations: 249.5 kB / 3.727 GB, free: 78.52 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03076/17.13, allocations: 9.321 MB / 3.736 GB, free: 78.49 MB / 0.7136 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.1015/17.23, allocations: 46.01 MB / 3.781 GB, free: 54.48 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01504/17.24, allocations: 6.228 MB / 3.787 GB, free: 52.04 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01222/17.26, allocations: 5.427 MB / 3.792 GB, free: 50.32 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001941/17.26, allocations: 0.8256 MB / 3.793 GB, free: 49.55 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008949/17.27, allocations: 3.168 MB / 3.796 GB, free: 48.4 MB / 0.7136 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.006574/17.27, allocations: 0.5573 MB / 3.797 GB, free: 48.03 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=455): time 1.921e-05/17.27, allocations: 0 / 3.797 GB, free: 48.03 MB / 0.7136 GB Notification: Performance of matching and sorting (n=455): time 0.01835/17.29, allocations: 6.22 MB / 3.803 GB, free: 44.1 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.684e-05/17.29, allocations: 154.3 kB / 3.803 GB, free: 43.92 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01804/17.31, allocations: 7.014 MB / 3.81 GB, free: 37.84 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.001266/17.31, allocations: 109.7 kB / 3.81 GB, free: 37.72 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.006307/17.32, allocations: 4.273 MB / 3.814 GB, free: 33.87 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.00291/17.32, allocations: 1.576 MB / 3.815 GB, free: 32.44 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007239/17.32, allocations: 124 kB / 3.816 GB, free: 32.32 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0004657/17.32, allocations: 0.5441 MB / 3.816 GB, free: 31.84 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007425/17.33, allocations: 2.906 MB / 3.819 GB, free: 29.3 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009755/17.34, allocations: 4.733 MB / 3.824 GB, free: 24.21 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01/17.35, allocations: 3.973 MB / 3.827 GB, free: 20.9 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.005e-05/17.35, allocations: 18.16 kB / 3.827 GB, free: 20.88 MB / 0.7136 GB Notification: Performance of matching and sorting (n=758) (initialization): time 0.02672/17.38, allocations: 8.53 MB / 3.836 GB, free: 13.42 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.5629/17.94, allocations: 28.65 MB / 3.864 GB, free: 64.45 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000193/17.94, allocations: 58.47 kB / 3.864 GB, free: 64.45 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001958/17.94, allocations: 101.4 kB / 3.864 GB, free: 64.45 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01263/17.95, allocations: 1.45 MB / 3.865 GB, free: 64.45 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002662/17.95, allocations: 123.8 kB / 3.865 GB, free: 64.45 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01339/17.97, allocations: 0.6195 MB / 3.866 GB, free: 64.45 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002038/17.97, allocations: 283 kB / 3.866 GB, free: 64.45 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/17.97, allocations: 4.312 kB / 3.866 GB, free: 64.45 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02617/17.99, allocations: 7.946 MB / 3.874 GB, free: 64.29 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002074/17.99, allocations: 61.56 kB / 3.874 GB, free: 64.29 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001683/17.99, allocations: 97.17 kB / 3.874 GB, free: 64.29 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01229/18.01, allocations: 1.444 MB / 3.876 GB, free: 64.29 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002792/18.01, allocations: 129.2 kB / 3.876 GB, free: 64.29 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0127/18.02, allocations: 0.5988 MB / 3.876 GB, free: 64.29 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002095/18.02, allocations: 280.1 kB / 3.877 GB, free: 64.29 MB / 0.7136 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.003454/18.03, allocations: 0.5408 MB / 3.877 GB, free: 64.12 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003553/18.03, allocations: 0.7068 MB / 3.878 GB, free: 64.12 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02686/18.06, allocations: 7.008 MB / 3.885 GB, free: 63.85 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.381e-05/18.06, allocations: 43.7 kB / 3.885 GB, free: 63.85 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.41e-05/18.06, allocations: 3.25 kB / 3.885 GB, free: 63.85 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01962/18.08, allocations: 5.701 MB / 3.89 GB, free: 63.63 MB / 0.7136 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.05699/18.13, allocations: 16.36 MB / 3.906 GB, free: 62.63 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-05/18.13, allocations: 1.75 kB / 3.906 GB, free: 62.63 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01014/18.14, allocations: 0.9174 MB / 3.907 GB, free: 62.63 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.8e-05/18.14, allocations: 15.69 kB / 3.907 GB, free: 62.63 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00135/18.14, allocations: 127.5 kB / 3.907 GB, free: 62.63 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.693e-05/18.14, allocations: 16.84 kB / 3.907 GB, free: 62.63 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/18.14, allocations: 0 / 3.907 GB, free: 62.63 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02805/18.17, allocations: 10.59 MB / 3.918 GB, free: 61.87 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007683/18.18, allocations: 1.678 MB / 3.919 GB, free: 61.41 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003663/18.18, allocations: 95.5 kB / 3.919 GB, free: 61.41 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01125/18.2, allocations: 0.5592 MB / 3.92 GB, free: 61.39 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001489/18.2, allocations: 263.4 kB / 3.92 GB, free: 61.38 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008874/18.2, allocations: 146.8 kB / 3.92 GB, free: 61.38 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.01468/18.21, allocations: 5.467 MB / 3.926 GB, free: 61.14 MB / 0.7136 GB Notification: Performance of sort global known variables: time 9.41e-07/18.21, allocations: 0 / 3.926 GB, free: 61.14 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0291/18.24, allocations: 4.91 MB / 3.93 GB, free: 60.78 MB / 0.7136 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.04109/18.28, allocations: 12.07 MB / 3.942 GB, free: 59.21 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.04282/18.33, allocations: 11.26 MB / 3.953 GB, free: 58.86 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.821e-05/18.33, allocations: 6.547 kB / 3.953 GB, free: 58.86 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0117/18.34, allocations: 3.119 MB / 3.956 GB, free: 58.72 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.05623/18.39, allocations: 4.384 MB / 3.961 GB, free: 58.63 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08176/18.48, allocations: 19.54 MB / 3.98 GB, free: 55.64 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01268/18.49, allocations: 6.274 MB / 3.986 GB, free: 54.75 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.03428/18.52, allocations: 6.549 MB / 3.992 GB, free: 54.32 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00988/18.53, allocations: 3.617 MB / 3.996 GB, free: 54.32 MB / 0.7136 GB Notification: Performance of SimCode: time 1.873e-06/18.53, allocations: 7.469 kB / 3.996 GB, free: 54.32 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.15/19.68, allocations: 234.1 MB / 4.224 GB, free: 89.73 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002044/19.68, allocations: 197.8 kB / 4.224 GB, free: 89.51 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.07/32.75, allocations: 0 / 4.224 GB, free: 89.51 MB / 0.7292 GB