Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,fileNamePrefix="Buildings_5_0_1_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 3.788/3.788, allocations: 403.3 MB / 415.4 MB, free: 12.95 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 4.551e-05/4.573e-05, allocations: 3.938 kB / 0.4991 GB, free: 13.35 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6801/0.6802, allocations: 92.68 MB / 0.5896 GB, free: 14.46 MB / 490.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2522/0.9324, allocations: 138.9 MB / 0.7252 GB, free: 3.41 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000373/0.9329, allocations: 95.92 kB / 0.7253 GB, free: 3.316 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 0.1178/1.051, allocations: 27.05 MB / 0.7518 GB, free: 8.02 MB / 0.6355 GB Notification: Performance of FrontEnd: time 4.258e-06/1.051, allocations: 0 / 0.7518 GB, free: 8.02 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 4.756e-05/1.051, allocations: 15.94 kB / 0.7518 GB, free: 8.004 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.002593/1.053, allocations: 0.8182 MB / 0.7526 GB, free: 7.129 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.457e-05/1.053, allocations: 12.03 kB / 0.7526 GB, free: 7.117 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002396/1.054, allocations: 90.5 kB / 0.7527 GB, free: 7.02 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001453/1.055, allocations: 155 kB / 0.7528 GB, free: 6.867 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001139/1.056, allocations: 435.3 kB / 0.7532 GB, free: 6.402 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.581e-05/1.056, allocations: 36.98 kB / 0.7533 GB, free: 6.367 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001581/1.057, allocations: 52 kB / 0.7533 GB, free: 6.316 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001764/1.058, allocations: 0.6614 MB / 0.754 GB, free: 5.629 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.301e-05/1.059, allocations: 0 / 0.754 GB, free: 5.629 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001052/1.059, allocations: 24 kB / 0.754 GB, free: 5.605 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001102/1.059, allocations: 36.98 kB / 0.754 GB, free: 5.566 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001582/1.06, allocations: 0.5348 MB / 0.7545 GB, free: 5.031 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005773/1.066, allocations: 2.373 MB / 0.7569 GB, free: 2.539 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001515/1.068, allocations: 0.5416 MB / 0.7574 GB, free: 1.977 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006006/1.068, allocations: 246.4 kB / 0.7576 GB, free: 1.73 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006414/1.069, allocations: 0.5703 MB / 0.7582 GB, free: 1.031 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009776/1.07, allocations: 399.6 kB / 0.7586 GB, free: 0.625 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=49): time 3.757e-06/1.07, allocations: 0 / 0.7586 GB, free: 0.625 MB / 0.6355 GB Notification: Performance of matching and sorting (n=49): time 0.001541/1.072, allocations: 0.5073 MB / 0.7591 GB, free: 112 kB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.326e-05/1.072, allocations: 85.55 kB / 0.7591 GB, free: 8 kB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006083/1.072, allocations: 299.5 kB / 0.7594 GB, free: 15.7 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0001347/1.072, allocations: 41.7 kB / 0.7595 GB, free: 15.66 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003192/1.073, allocations: 276.5 kB / 0.7597 GB, free: 15.38 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002234/1.073, allocations: 161.8 kB / 0.7599 GB, free: 15.22 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.558e-05/1.073, allocations: 8 kB / 0.7599 GB, free: 15.21 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001923/1.073, allocations: 358.8 kB / 0.7602 GB, free: 14.86 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006239/1.074, allocations: 221.1 kB / 0.7604 GB, free: 14.64 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007645/1.075, allocations: 342.4 kB / 0.7608 GB, free: 14.26 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007141/1.075, allocations: 273.5 kB / 0.761 GB, free: 13.99 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-05/1.076, allocations: 4 kB / 0.761 GB, free: 13.98 MB / 0.6511 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001896/1.077, allocations: 0.6623 MB / 0.7617 GB, free: 13.31 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004908/1.078, allocations: 1.068 MB / 0.7627 GB, free: 12.15 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.311e-05/1.078, allocations: 11.94 kB / 0.7627 GB, free: 12.14 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.865e-05/1.078, allocations: 4 kB / 0.7627 GB, free: 12.14 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001109/1.079, allocations: 111.9 kB / 0.7628 GB, free: 12.03 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.384e-05/1.079, allocations: 11.92 kB / 0.7629 GB, free: 12.02 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009401/1.08, allocations: 75.56 kB / 0.7629 GB, free: 11.94 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.575e-05/1.08, allocations: 20 kB / 0.7629 GB, free: 11.92 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/1.08, allocations: 13.98 kB / 0.763 GB, free: 11.91 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001567/1.082, allocations: 0.5444 MB / 0.7635 GB, free: 11.36 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/1.082, allocations: 4 kB / 0.7635 GB, free: 11.36 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/1.082, allocations: 4 kB / 0.7635 GB, free: 11.35 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008936/1.083, allocations: 108.2 kB / 0.7636 GB, free: 11.25 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.37e-05/1.083, allocations: 4 kB / 0.7636 GB, free: 11.24 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008049/1.084, allocations: 75.88 kB / 0.7637 GB, free: 11.17 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.899e-05/1.084, allocations: 20 kB / 0.7637 GB, free: 11.15 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.0002829/1.084, allocations: 147 kB / 0.7638 GB, free: 11 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001366/1.084, allocations: 47.39 kB / 0.7639 GB, free: 10.95 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001649/1.086, allocations: 0.5672 MB / 0.7644 GB, free: 10.38 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.544e-05/1.086, allocations: 8 kB / 0.7644 GB, free: 10.37 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/1.086, allocations: 0 / 0.7644 GB, free: 10.37 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.055e-05/1.086, allocations: 0 / 0.7644 GB, free: 10.37 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001297/1.087, allocations: 0.6263 MB / 0.7651 GB, free: 9.691 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.656e-06/1.087, allocations: 0 / 0.7651 GB, free: 9.691 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001031/1.088, allocations: 95.86 kB / 0.7651 GB, free: 9.598 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.1e-05/1.088, allocations: 0 / 0.7651 GB, free: 9.598 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.8e-05/1.088, allocations: 19.94 kB / 0.7652 GB, free: 9.578 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.576e-06/1.089, allocations: 4 kB / 0.7652 GB, free: 9.574 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/1.089, allocations: 4 kB / 0.7652 GB, free: 9.57 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002326/1.091, allocations: 0.8696 MB / 0.766 GB, free: 8.672 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004066/1.091, allocations: 172.5 kB / 0.7662 GB, free: 8.484 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001242/1.091, allocations: 15.95 kB / 0.7662 GB, free: 8.469 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006427/1.092, allocations: 43.95 kB / 0.7662 GB, free: 8.426 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002114/1.092, allocations: 52.36 kB / 0.7663 GB, free: 8.375 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.983e-05/1.092, allocations: 19.98 kB / 0.7663 GB, free: 8.355 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0004376/1.093, allocations: 230.2 kB / 0.7665 GB, free: 8.137 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.41e-07/1.093, allocations: 0 / 0.7665 GB, free: 8.137 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001147/1.094, allocations: 283 kB / 0.7668 GB, free: 7.859 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.002688/1.097, allocations: 1.538 MB / 0.7683 GB, free: 6.285 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.002392/1.099, allocations: 0.937 MB / 0.7692 GB, free: 5.324 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 6.543e-06/1.099, allocations: 4.312 kB / 0.7692 GB, free: 5.32 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0007228/1.1, allocations: 262.4 kB / 0.7695 GB, free: 5.062 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001394/1.101, allocations: 142.6 kB / 0.7696 GB, free: 4.922 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00295/1.104, allocations: 0.959 MB / 0.7705 GB, free: 3.93 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006589/1.105, allocations: 0.9113 MB / 0.7714 GB, free: 2.988 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.001138/1.106, allocations: 164.5 kB / 0.7716 GB, free: 2.824 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000507/1.107, allocations: 183.4 kB / 0.7718 GB, free: 2.645 MB / 0.6511 GB Notification: Performance of SimCode: time 1.543e-06/1.107, allocations: 0 / 0.7718 GB, free: 2.645 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6371/1.744, allocations: 12.47 MB / 0.7839 GB, free: 165 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002091/1.744, allocations: 168 kB / 0.7841 GB, free: 164.8 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.83/4.574, allocations: 1.859 kB / 0.7841 GB, free: 164.8 MB / 0.6511 GB