Running command: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,fileNamePrefix="Buildings_5_0_1_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 3.902/3.902, allocations: 403.3 MB / 415.4 MB, free: 13 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 4.383e-05/4.39e-05, allocations: 4 kB / 0.4991 GB, free: 13.32 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7572/0.7572, allocations: 92.69 MB / 0.5897 GB, free: 14.36 MB / 490.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2722/1.029, allocations: 140.3 MB / 0.7267 GB, free: 1.836 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003536/1.03, allocations: 91.94 kB / 0.7268 GB, free: 1.746 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 0.1263/1.156, allocations: 28.94 MB / 0.7551 GB, free: 4.523 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.865e-06/1.156, allocations: 0 / 0.7551 GB, free: 4.523 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 5.401e-05/1.156, allocations: 12 kB / 0.7551 GB, free: 4.512 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.002662/1.159, allocations: 0.8242 MB / 0.7559 GB, free: 3.633 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 6.409e-05/1.159, allocations: 12.03 kB / 0.7559 GB, free: 3.621 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002529/1.159, allocations: 94.52 kB / 0.756 GB, free: 3.52 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001498/1.161, allocations: 155 kB / 0.7561 GB, free: 3.367 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001163/1.162, allocations: 435.2 kB / 0.7565 GB, free: 2.902 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.256e-05/1.162, allocations: 37 kB / 0.7566 GB, free: 2.867 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001635/1.162, allocations: 55.98 kB / 0.7566 GB, free: 2.812 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001857/1.164, allocations: 0.64 MB / 0.7572 GB, free: 2.145 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.534e-05/1.164, allocations: 0 / 0.7572 GB, free: 2.145 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001096/1.164, allocations: 27.98 kB / 0.7573 GB, free: 2.117 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001149/1.165, allocations: 40.97 kB / 0.7573 GB, free: 2.078 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001618/1.166, allocations: 0.5212 MB / 0.7578 GB, free: 1.555 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006019/1.172, allocations: 2.381 MB / 0.7601 GB, free: 15.06 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001667/1.174, allocations: 0.5403 MB / 0.7607 GB, free: 14.5 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006639/1.175, allocations: 249.6 kB / 0.7609 GB, free: 14.25 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007035/1.175, allocations: 0.559 MB / 0.7615 GB, free: 13.56 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00101/1.176, allocations: 395.4 kB / 0.7618 GB, free: 13.16 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=49): time 4.478e-06/1.177, allocations: 4 kB / 0.7618 GB, free: 13.16 MB / 0.6511 GB Notification: Performance of matching and sorting (n=49): time 0.001622/1.178, allocations: 0.5073 MB / 0.7623 GB, free: 12.64 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.299e-05/1.178, allocations: 81.55 kB / 0.7624 GB, free: 12.54 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006087/1.179, allocations: 299.5 kB / 0.7627 GB, free: 12.24 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0001525/1.179, allocations: 41.7 kB / 0.7627 GB, free: 12.19 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003245/1.179, allocations: 284.7 kB / 0.763 GB, free: 11.91 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002351/1.18, allocations: 157.8 kB / 0.7632 GB, free: 11.75 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.649e-05/1.18, allocations: 8 kB / 0.7632 GB, free: 11.75 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.000205/1.18, allocations: 358.8 kB / 0.7635 GB, free: 11.39 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006285/1.181, allocations: 217.1 kB / 0.7637 GB, free: 11.18 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007912/1.181, allocations: 349.2 kB / 0.764 GB, free: 10.79 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007319/1.182, allocations: 269.6 kB / 0.7643 GB, free: 10.52 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/1.182, allocations: 3.938 kB / 0.7643 GB, free: 10.52 MB / 0.6511 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001787/1.184, allocations: 0.6468 MB / 0.7649 GB, free: 9.855 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005931/1.185, allocations: 1.084 MB / 0.766 GB, free: 8.684 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.759e-05/1.185, allocations: 7.984 kB / 0.766 GB, free: 8.676 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.198e-05/1.185, allocations: 4 kB / 0.766 GB, free: 8.672 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00115/1.186, allocations: 115.8 kB / 0.7661 GB, free: 8.559 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.946e-05/1.186, allocations: 4 kB / 0.7661 GB, free: 8.555 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009503/1.187, allocations: 71.75 kB / 0.7662 GB, free: 8.484 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.772e-05/1.187, allocations: 31.95 kB / 0.7662 GB, free: 8.453 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/1.187, allocations: 6.188 kB / 0.7662 GB, free: 8.449 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001538/1.189, allocations: 0.5329 MB / 0.7668 GB, free: 7.91 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/1.189, allocations: 3.938 kB / 0.7668 GB, free: 7.906 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.999e-05/1.189, allocations: 8 kB / 0.7668 GB, free: 7.898 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009282/1.19, allocations: 100.1 kB / 0.7669 GB, free: 7.801 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.062e-05/1.19, allocations: 15.94 kB / 0.7669 GB, free: 7.785 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008211/1.19, allocations: 59.7 kB / 0.7669 GB, free: 7.727 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.208e-05/1.19, allocations: 23.98 kB / 0.767 GB, free: 7.703 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition2,$PRE.bat_ideal.cha.underCharged,bat_ideal.cha.underCharged,$PRE.bat_ideal.cha.overCharged,bat_ideal.cha.overCharged,$whenCondition3,$PRE.bat_loss_acdc.cha.underCharged,bat_loss_acdc.cha.underCharged,$PRE.bat_loss_acdc.cha.overCharged,bat_loss_acdc.cha.overCharged,$whenCondition4,$PRE.bat.cha.underCharged,bat.cha.underCharged,$PRE.bat.cha.overCharged,bat.cha.overCharged,$whenCondition1,$PRE.pow.T_start,pow.T_start,$PRE.pow.count,pow.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 1 * 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.0002818/1.191, allocations: 143 kB / 0.7671 GB, free: 7.555 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001467/1.191, allocations: 51.44 kB / 0.7671 GB, free: 7.504 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001642/1.193, allocations: 0.5635 MB / 0.7677 GB, free: 6.934 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.187e-05/1.193, allocations: 4 kB / 0.7677 GB, free: 6.93 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.715e-06/1.193, allocations: 0 / 0.7677 GB, free: 6.93 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.051e-05/1.193, allocations: 4 kB / 0.7677 GB, free: 6.926 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001347/1.194, allocations: 0.6263 MB / 0.7683 GB, free: 6.25 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.293e-06/1.194, allocations: 0 / 0.7683 GB, free: 6.25 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001075/1.195, allocations: 99.8 kB / 0.7684 GB, free: 6.152 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.384e-05/1.195, allocations: 4 kB / 0.7684 GB, free: 6.148 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.941e-05/1.195, allocations: 11.94 kB / 0.7684 GB, free: 6.137 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.112e-06/1.195, allocations: 8 kB / 0.7684 GB, free: 6.129 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.1e-06/1.195, allocations: 7.922 kB / 0.7684 GB, free: 6.121 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002238/1.198, allocations: 0.8603 MB / 0.7693 GB, free: 5.238 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004312/1.198, allocations: 192.3 kB / 0.7695 GB, free: 5.031 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001264/1.198, allocations: 16.19 kB / 0.7695 GB, free: 5.016 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006681/1.199, allocations: 43.95 kB / 0.7695 GB, free: 4.973 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002127/1.199, allocations: 48.36 kB / 0.7696 GB, free: 4.926 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.773e-05/1.199, allocations: 16 kB / 0.7696 GB, free: 4.91 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.000436/1.2, allocations: 238.2 kB / 0.7698 GB, free: 4.684 MB / 0.6511 GB Notification: Performance of sort global known variables: time 5.81e-07/1.2, allocations: 4 kB / 0.7698 GB, free: 4.68 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001236/1.201, allocations: 271.2 kB / 0.7701 GB, free: 4.414 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (bat_ideal.cha.SOC,bat_loss_acdc.cha.SOC,bat.cha.SOC) * Number of discrete variables: 12 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,bat_ideal.cha.underCharged,bat_ideal.cha.overCharged,pow.T_start,pow.count,bat_loss_acdc.cha.underCharged,bat_loss_acdc.cha.overCharged,bat.cha.underCharged,bat.cha.overCharged) * Number of discrete states: 7 (pow.count,bat_ideal.cha.underCharged,bat_ideal.cha.overCharged,bat_loss_acdc.cha.underCharged,bat_loss_acdc.cha.overCharged,bat.cha.underCharged,bat.cha.overCharged) * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.002835/1.204, allocations: 1.528 MB / 0.7716 GB, free: 2.852 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.00236/1.206, allocations: 0.9288 MB / 0.7725 GB, free: 1.895 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/1.206, allocations: 4.125 kB / 0.7725 GB, free: 1.891 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0007292/1.207, allocations: 269.5 kB / 0.7727 GB, free: 1.629 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001362/1.208, allocations: 153.1 kB / 0.7729 GB, free: 1.477 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002909/1.211, allocations: 0.9582 MB / 0.7738 GB, free: 492 kB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.5546/1.766, allocations: 0.9018 MB / 0.7747 GB, free: 165.4 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.001251/1.767, allocations: 157.8 kB / 0.7748 GB, free: 165.4 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006259/1.768, allocations: 184.8 kB / 0.775 GB, free: 165.4 MB / 0.6511 GB Notification: Performance of SimCode: time 1.213e-06/1.768, allocations: 0.5 kB / 0.775 GB, free: 165.4 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04773/1.816, allocations: 12.44 MB / 0.7872 GB, free: 164.9 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002312/1.816, allocations: 178.6 kB / 0.7873 GB, free: 164.6 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.963/4.779, allocations: 0 / 0.7873 GB, free: 164.6 MB / 0.6511 GB