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={"dynamic"}) Notification: Performance of loadModel(Buildings): time 4.255/4.255, allocations: 404.1 MB / 411.3 MB, free: 404 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.58e-05/2.578e-05, allocations: 4 kB / 0.4945 GB, free: 1.301 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6675/0.6676, allocations: 92.68 MB / 0.5851 GB, free: 2.316 MB / 474.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2869/0.9546, allocations: 139.7 MB / 0.7215 GB, free: 6.453 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005646/0.9552, allocations: 91.94 kB / 0.7215 GB, free: 6.363 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 0.1635/1.119, allocations: 28.82 MB / 0.7497 GB, free: 9.262 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.515e-06/1.119, allocations: 0 / 0.7497 GB, free: 9.262 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.871e-05/1.119, allocations: 15.98 kB / 0.7497 GB, free: 9.246 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.003534/1.122, allocations: 0.8171 MB / 0.7505 GB, free: 8.379 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 7.019e-05/1.123, allocations: 16.02 kB / 0.7505 GB, free: 8.363 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002385/1.125, allocations: 163 kB / 0.7507 GB, free: 8.203 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001602/1.127, allocations: 431.2 kB / 0.7511 GB, free: 7.738 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.236e-05/1.127, allocations: 12 kB / 0.7511 GB, free: 7.727 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002182/1.127, allocations: 32 kB / 0.7511 GB, free: 7.695 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002126/1.129, allocations: 454.5 kB / 0.7516 GB, free: 7.25 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00245/1.132, allocations: 0.591 MB / 0.7521 GB, free: 6.629 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.109e-05/1.132, allocations: 0 / 0.7521 GB, free: 6.629 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001445/1.132, allocations: 8 kB / 0.7521 GB, free: 6.621 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001637/1.132, allocations: 57.11 kB / 0.7522 GB, free: 6.562 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007978/1.14, allocations: 2.268 MB / 0.7544 GB, free: 4.191 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002247/1.142, allocations: 0.5211 MB / 0.7549 GB, free: 3.648 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000927/1.143, allocations: 233.6 kB / 0.7551 GB, free: 3.414 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000944/1.144, allocations: 0.5671 MB / 0.7557 GB, free: 2.719 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001385/1.146, allocations: 374.8 kB / 0.7561 GB, free: 2.336 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=49): time 5.22e-06/1.146, allocations: 4 kB / 0.7561 GB, free: 2.332 MB / 0.6355 GB Notification: Performance of matching and sorting (n=49): time 0.002369/1.148, allocations: 495.4 kB / 0.7565 GB, free: 1.84 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.622e-05/1.148, allocations: 85.53 kB / 0.7566 GB, free: 1.738 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007562/1.149, allocations: 278.4 kB / 0.7569 GB, free: 1.465 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 0.0001387/1.149, allocations: 33.7 kB / 0.7569 GB, free: 1.426 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004488/1.149, allocations: 272.5 kB / 0.7572 GB, free: 1.152 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003118/1.15, allocations: 149.8 kB / 0.7573 GB, free: 1.004 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.998e-05/1.15, allocations: 0 / 0.7573 GB, free: 1.004 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0002649/1.15, allocations: 362.8 kB / 0.7577 GB, free: 0.6406 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009555/1.151, allocations: 209.1 kB / 0.7579 GB, free: 448 kB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001116/1.152, allocations: 325.3 kB / 0.7582 GB, free: 76 kB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001144/1.153, allocations: 244.2 kB / 0.7584 GB, free: 15.84 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.223e-05/1.154, allocations: 4 kB / 0.7584 GB, free: 15.83 MB / 0.6511 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002762/1.156, allocations: 0.5905 MB / 0.759 GB, free: 15.23 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007579/1.157, allocations: 1.076 MB / 0.76 GB, free: 14.07 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.465e-05/1.157, allocations: 0 / 0.76 GB, free: 14.07 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.847e-05/1.157, allocations: 8 kB / 0.76 GB, free: 14.06 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001773/1.159, allocations: 115.8 kB / 0.7601 GB, free: 13.95 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.943e-05/1.159, allocations: 15.92 kB / 0.7602 GB, free: 13.93 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001317/1.16, allocations: 55.77 kB / 0.7602 GB, free: 13.88 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.967e-05/1.16, allocations: 23.98 kB / 0.7602 GB, free: 13.86 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/1.161, allocations: 4 kB / 0.7602 GB, free: 13.85 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001687/1.162, allocations: 475.9 kB / 0.7607 GB, free: 13.39 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.333e-05/1.162, allocations: 4 kB / 0.7607 GB, free: 13.38 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/1.162, allocations: 7.953 kB / 0.7607 GB, free: 13.38 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001119/1.163, allocations: 111.8 kB / 0.7608 GB, free: 13.27 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.187e-05/1.163, allocations: 4 kB / 0.7608 GB, free: 13.26 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009243/1.164, allocations: 51.95 kB / 0.7609 GB, free: 13.21 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.336e-05/1.164, allocations: 20 kB / 0.7609 GB, free: 13.19 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.0002892/1.165, allocations: 131 kB / 0.761 GB, free: 13.05 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001718/1.167, allocations: 499.4 kB / 0.7615 GB, free: 12.56 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000148/1.167, allocations: 51.39 kB / 0.7615 GB, free: 12.51 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00186/1.169, allocations: 0.5244 MB / 0.7621 GB, free: 11.98 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.166e-05/1.169, allocations: 8.031 kB / 0.7621 GB, free: 11.97 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.055e-06/1.169, allocations: 0 / 0.7621 GB, free: 11.97 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.151e-05/1.169, allocations: 7.938 kB / 0.7621 GB, free: 11.96 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001359/1.17, allocations: 0.537 MB / 0.7626 GB, free: 11.39 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/1.17, allocations: 0 / 0.7626 GB, free: 11.39 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001323/1.171, allocations: 95.86 kB / 0.7627 GB, free: 11.29 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.081e-05/1.171, allocations: 48 / 0.7627 GB, free: 11.29 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.512e-05/1.172, allocations: 15.94 kB / 0.7627 GB, free: 11.28 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.42e-06/1.172, allocations: 0 / 0.7627 GB, free: 11.28 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.733e-06/1.172, allocations: 4 kB / 0.7627 GB, free: 11.27 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0025/1.174, allocations: 0.8306 MB / 0.7635 GB, free: 10.41 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004487/1.175, allocations: 176.4 kB / 0.7637 GB, free: 10.22 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001752/1.175, allocations: 20.06 kB / 0.7637 GB, free: 10.2 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007837/1.176, allocations: 31.95 kB / 0.7637 GB, free: 10.17 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002554/1.176, allocations: 56.36 kB / 0.7638 GB, free: 10.12 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.575e-05/1.176, allocations: 16 kB / 0.7638 GB, free: 10.1 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0004162/1.176, allocations: 220.6 kB / 0.764 GB, free: 9.891 MB / 0.6511 GB Notification: Performance of sort global known variables: time 6.42e-07/1.176, allocations: 0 / 0.764 GB, free: 9.891 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001406/1.178, allocations: 247.2 kB / 0.7642 GB, free: 9.648 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.003086/1.181, allocations: 1.488 MB / 0.7657 GB, free: 8.125 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.002638/1.184, allocations: 0.8965 MB / 0.7666 GB, free: 7.207 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 4.469e-06/1.184, allocations: 1 kB / 0.7666 GB, free: 7.207 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0008127/1.184, allocations: 257.5 kB / 0.7668 GB, free: 6.957 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001667/1.186, allocations: 146.5 kB / 0.767 GB, free: 6.816 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003516/1.19, allocations: 0.9155 MB / 0.7679 GB, free: 5.855 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008438/1.19, allocations: 0.9113 MB / 0.7687 GB, free: 4.918 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.001442/1.192, allocations: 160.5 kB / 0.7689 GB, free: 4.762 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006356/1.193, allocations: 187.3 kB / 0.7691 GB, free: 4.578 MB / 0.6511 GB Notification: Performance of SimCode: time 1.142e-06/1.193, allocations: 3.938 kB / 0.7691 GB, free: 4.574 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6253/1.818, allocations: 11.81 MB / 0.7806 GB, free: 168.1 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002573/1.818, allocations: 164.5 kB / 0.7808 GB, free: 167.9 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.408/5.227, allocations: 3.938 kB / 0.7808 GB, free: 167.9 MB / 0.6511 GB