Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,fileNamePrefix="Buildings_7_0_0_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.219/4.219, allocations: 460.4 MB / 472.6 MB, free: 5.383 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.448e-05/3.458e-05, allocations: 4 kB / 0.5682 GB, free: 10.09 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.233/0.233, allocations: 106.2 MB / 0.6719 GB, free: 15.67 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8903/1.123, allocations: 150.2 MB / 0.8187 GB, free: 12.71 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003196/1.124, allocations: 100.2 kB / 0.8187 GB, free: 12.71 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.103/1.227, allocations: 27.17 MB / 0.8453 GB, free: 2.688 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.663e-06/1.227, allocations: 3.781 kB / 0.8453 GB, free: 2.688 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 3.974e-05/1.227, allocations: 11.16 kB / 0.8453 GB, free: 2.688 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.002106/1.229, allocations: 0.82 MB / 0.8461 GB, free: 2.035 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.778e-05/1.229, allocations: 7.75 kB / 0.8461 GB, free: 2.035 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001456/1.229, allocations: 94.52 kB / 0.8462 GB, free: 1.984 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001292/1.231, allocations: 159.8 kB / 0.8463 GB, free: 1.906 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000821/1.231, allocations: 434.7 kB / 0.8468 GB, free: 1.598 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.671e-05/1.231, allocations: 39.59 kB / 0.8468 GB, free: 1.594 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000128/1.232, allocations: 50.25 kB / 0.8468 GB, free: 1.59 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001451/1.233, allocations: 0.6493 MB / 0.8475 GB, free: 1.383 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.174e-05/1.233, allocations: 0 / 0.8475 GB, free: 1.383 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001251/1.233, allocations: 27.91 kB / 0.8475 GB, free: 1.383 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001085/1.233, allocations: 42.62 kB / 0.8475 GB, free: 1.375 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001726/1.235, allocations: 0.5148 MB / 0.848 GB, free: 1.324 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006179/1.241, allocations: 2.83 MB / 0.8508 GB, free: 15.24 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001734/1.243, allocations: 0.5418 MB / 0.8513 GB, free: 15.12 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007225/1.244, allocations: 239 kB / 0.8516 GB, free: 15.09 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008847/1.245, allocations: 0.5609 MB / 0.8521 GB, free: 14.42 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001415/1.246, allocations: 397 kB / 0.8525 GB, free: 14.12 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=49): time 5.15e-06/1.246, allocations: 3.938 kB / 0.8525 GB, free: 14.12 MB / 0.6511 GB Notification: Performance of matching and sorting (n=49): time 0.002276/1.248, allocations: 0.5008 MB / 0.853 GB, free: 13.75 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001/1.249, allocations: 85.48 kB / 0.8531 GB, free: 13.64 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007998/1.249, allocations: 302.7 kB / 0.8534 GB, free: 13.4 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0001631/1.25, allocations: 43.14 kB / 0.8534 GB, free: 13.36 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004074/1.25, allocations: 279.8 kB / 0.8537 GB, free: 13.15 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003065/1.25, allocations: 154.6 kB / 0.8538 GB, free: 13.02 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.158e-05/1.251, allocations: 17.34 kB / 0.8538 GB, free: 13.02 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.00025/1.251, allocations: 357 kB / 0.8542 GB, free: 12.68 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008808/1.252, allocations: 223.4 kB / 0.8544 GB, free: 12.55 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001077/1.253, allocations: 338.8 kB / 0.8547 GB, free: 12.27 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009163/1.254, allocations: 275.8 kB / 0.855 GB, free: 12.08 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.743e-06/1.254, allocations: 0 / 0.855 GB, free: 12.08 MB / 0.6511 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002291/1.256, allocations: 0.644 MB / 0.8556 GB, free: 11.6 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006599/1.257, allocations: 1.082 MB / 0.8567 GB, free: 10.45 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.346e-05/1.257, allocations: 3.938 kB / 0.8567 GB, free: 10.45 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.395e-05/1.257, allocations: 8 kB / 0.8567 GB, free: 10.44 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001339/1.258, allocations: 111.1 kB / 0.8568 GB, free: 10.34 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.529e-05/1.258, allocations: 7.938 kB / 0.8568 GB, free: 10.33 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001168/1.259, allocations: 73.31 kB / 0.8568 GB, free: 10.27 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.533e-05/1.26, allocations: 22.69 kB / 0.8569 GB, free: 10.25 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.279e-05/1.26, allocations: 4 kB / 0.8569 GB, free: 10.24 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001967/1.262, allocations: 0.5431 MB / 0.8574 GB, free: 9.863 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.426e-05/1.262, allocations: 4 kB / 0.8574 GB, free: 9.859 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.723e-05/1.262, allocations: 4 kB / 0.8574 GB, free: 9.855 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001141/1.263, allocations: 111.7 kB / 0.8575 GB, free: 9.75 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.163e-05/1.263, allocations: 16.17 kB / 0.8575 GB, free: 9.734 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001008/1.264, allocations: 59.02 kB / 0.8576 GB, free: 9.684 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.47e-05/1.264, allocations: 19.62 kB / 0.8576 GB, free: 9.668 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.0003311/1.264, allocations: 148.7 kB / 0.8578 GB, free: 9.535 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001818/1.264, allocations: 54.88 kB / 0.8578 GB, free: 9.484 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002126/1.267, allocations: 0.5656 MB / 0.8584 GB, free: 9.094 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-05/1.267, allocations: 8.031 kB / 0.8584 GB, free: 9.086 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/1.267, allocations: 0 / 0.8584 GB, free: 9.086 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.537e-05/1.267, allocations: 3.984 kB / 0.8584 GB, free: 9.082 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00154/1.268, allocations: 0.6211 MB / 0.859 GB, free: 8.578 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/1.268, allocations: 0 / 0.859 GB, free: 8.578 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001269/1.27, allocations: 95.11 kB / 0.8591 GB, free: 8.488 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.829e-06/1.27, allocations: 0 / 0.8591 GB, free: 8.488 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.078e-05/1.27, allocations: 12.94 kB / 0.8591 GB, free: 8.484 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-05/1.27, allocations: 11.95 kB / 0.8591 GB, free: 8.473 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/1.27, allocations: 3.938 kB / 0.8591 GB, free: 8.469 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002727/1.272, allocations: 0.8579 MB / 0.8599 GB, free: 7.859 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004376/1.273, allocations: 182.2 kB / 0.8601 GB, free: 7.691 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001582/1.273, allocations: 15.33 kB / 0.8601 GB, free: 7.684 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008273/1.274, allocations: 47.75 kB / 0.8602 GB, free: 7.645 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002519/1.274, allocations: 48.23 kB / 0.8602 GB, free: 7.605 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.627e-05/1.274, allocations: 15.81 kB / 0.8602 GB, free: 7.594 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0005116/1.275, allocations: 236.8 kB / 0.8605 GB, free: 7.41 MB / 0.6511 GB Notification: Performance of sort global known variables: time 6.81e-07/1.275, allocations: 0 / 0.8605 GB, free: 7.41 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001618/1.276, allocations: 281.8 kB / 0.8607 GB, free: 7.16 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.003489/1.28, allocations: 1.529 MB / 0.8622 GB, free: 5.891 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.003044/1.283, allocations: 0.9178 MB / 0.8631 GB, free: 5.219 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 4.538e-06/1.283, allocations: 4.25 kB / 0.8631 GB, free: 5.215 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0009095/1.284, allocations: 268 kB / 0.8634 GB, free: 5.035 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001725/1.286, allocations: 155.6 kB / 0.8635 GB, free: 4.914 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003648/1.289, allocations: 0.9392 MB / 0.8644 GB, free: 4.09 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008827/1.29, allocations: 0.9095 MB / 0.8653 GB, free: 3.168 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.001416/1.292, allocations: 168.6 kB / 0.8655 GB, free: 3 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005843/1.292, allocations: 184 kB / 0.8657 GB, free: 2.949 MB / 0.6511 GB Notification: Performance of SimCode: time 1.162e-06/1.292, allocations: 0 / 0.8657 GB, free: 2.949 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07149/1.364, allocations: 12.43 MB / 0.8778 GB, free: 6.684 MB / 0.6667 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003562/1.364, allocations: 166.3 kB / 0.878 GB, free: 6.461 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.898/4.263, allocations: 0 / 0.878 GB, free: 6.461 MB / 0.6667 GB