Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.376/4.376, allocations: 464.6 MB / 476.8 MB, free: 2.188 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.551e-05/3.567e-05, allocations: 4 kB / 0.5732 GB, free: 5.602 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2347/0.2348, allocations: 107.1 MB / 0.6778 GB, free: 10.27 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8886/1.123, allocations: 150.6 MB / 0.8249 GB, free: 12.09 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003352/1.124, allocations: 94.17 kB / 0.825 GB, free: 12.07 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.1072/1.231, allocations: 27.18 MB / 0.8516 GB, free: 12.45 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.295e-06/1.231, allocations: 0 / 0.8516 GB, free: 12.45 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 4.91e-05/1.231, allocations: 12 kB / 0.8516 GB, free: 12.43 MB / 0.6511 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.002736/1.234, allocations: 0.8277 MB / 0.8524 GB, free: 11.59 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.322e-05/1.234, allocations: 8.031 kB / 0.8524 GB, free: 11.58 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002577/1.234, allocations: 93.73 kB / 0.8525 GB, free: 11.52 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001528/1.236, allocations: 147.1 kB / 0.8526 GB, free: 11.37 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001031/1.237, allocations: 438.3 kB / 0.853 GB, free: 10.98 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.173e-05/1.237, allocations: 40.44 kB / 0.8531 GB, free: 10.95 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001382/1.237, allocations: 52.31 kB / 0.8531 GB, free: 10.92 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001653/1.239, allocations: 0.6476 MB / 0.8538 GB, free: 10.44 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.469e-05/1.239, allocations: 0 / 0.8538 GB, free: 10.44 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.68e-05/1.239, allocations: 33.94 kB / 0.8538 GB, free: 10.42 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001062/1.239, allocations: 40.42 kB / 0.8538 GB, free: 10.39 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001409/1.241, allocations: 0.5161 MB / 0.8543 GB, free: 10.05 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005671/1.246, allocations: 2.833 MB / 0.8571 GB, free: 7.449 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00148/1.248, allocations: 0.5463 MB / 0.8576 GB, free: 7.059 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000572/1.248, allocations: 244.8 kB / 0.8579 GB, free: 6.902 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006403/1.249, allocations: 0.5654 MB / 0.8584 GB, free: 6.211 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009082/1.25, allocations: 381.2 kB / 0.8588 GB, free: 5.922 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=49): time 3.607e-06/1.25, allocations: 4 kB / 0.8588 GB, free: 5.918 MB / 0.6511 GB Notification: Performance of matching and sorting (n=49): time 0.0015/1.251, allocations: 0.5121 MB / 0.8593 GB, free: 5.539 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.12e-05/1.252, allocations: 81.55 kB / 0.8594 GB, free: 5.438 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005148/1.252, allocations: 298.5 kB / 0.8597 GB, free: 5.191 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0001048/1.252, allocations: 39.95 kB / 0.8597 GB, free: 5.156 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002811/1.253, allocations: 284.4 kB / 0.86 GB, free: 4.938 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002061/1.253, allocations: 158.2 kB / 0.8601 GB, free: 4.812 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.413e-05/1.253, allocations: 10.81 kB / 0.8601 GB, free: 4.809 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.00017/1.253, allocations: 352.7 kB / 0.8605 GB, free: 4.473 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005735/1.254, allocations: 224.9 kB / 0.8607 GB, free: 4.34 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006927/1.254, allocations: 338.9 kB / 0.861 GB, free: 4.062 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006847/1.255, allocations: 272 kB / 0.8613 GB, free: 3.875 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.771e-06/1.255, allocations: 0 / 0.8613 GB, free: 3.875 MB / 0.6511 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001683/1.257, allocations: 0.6596 MB / 0.8619 GB, free: 3.387 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004718/1.257, allocations: 1.068 MB / 0.863 GB, free: 2.25 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.362e-05/1.257, allocations: 4 kB / 0.863 GB, free: 2.246 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.26e-05/1.257, allocations: 8 kB / 0.863 GB, free: 2.238 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001105/1.258, allocations: 115 kB / 0.8631 GB, free: 2.129 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.798e-05/1.258, allocations: 4 kB / 0.8631 GB, free: 2.125 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009321/1.259, allocations: 73.75 kB / 0.8631 GB, free: 2.062 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.1e-05/1.259, allocations: 22.92 kB / 0.8632 GB, free: 2.043 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/1.259, allocations: 4 kB / 0.8632 GB, free: 2.039 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001383/1.261, allocations: 0.5403 MB / 0.8637 GB, free: 1.66 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.969e-06/1.261, allocations: 4.375 kB / 0.8637 GB, free: 1.656 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.274e-05/1.261, allocations: 4 kB / 0.8637 GB, free: 1.652 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008961/1.262, allocations: 107.3 kB / 0.8638 GB, free: 1.551 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.749e-05/1.262, allocations: 11.94 kB / 0.8638 GB, free: 1.539 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008145/1.263, allocations: 78.17 kB / 0.8639 GB, free: 1.473 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.937e-05/1.263, allocations: 19.5 kB / 0.8639 GB, free: 1.457 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.0002653/1.263, allocations: 149.4 kB / 0.8641 GB, free: 1.328 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001313/1.263, allocations: 43.53 kB / 0.8641 GB, free: 1.285 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001532/1.265, allocations: 0.5697 MB / 0.8647 GB, free: 0.8984 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.411e-05/1.265, allocations: 12.03 kB / 0.8647 GB, free: 0.8867 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/1.265, allocations: 0 / 0.8647 GB, free: 0.8867 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.65e-05/1.265, allocations: 11.94 kB / 0.8647 GB, free: 0.875 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001144/1.266, allocations: 0.6183 MB / 0.8653 GB, free: 384 kB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/1.266, allocations: 0 / 0.8653 GB, free: 384 kB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001046/1.267, allocations: 95.16 kB / 0.8654 GB, free: 292 kB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.183e-05/1.267, allocations: 4 kB / 0.8654 GB, free: 288 kB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.565e-05/1.267, allocations: 11.06 kB / 0.8654 GB, free: 284 kB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-06/1.267, allocations: 0 / 0.8654 GB, free: 284 kB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/1.267, allocations: 4 kB / 0.8654 GB, free: 280 kB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002074/1.269, allocations: 0.868 MB / 0.8662 GB, free: 15.66 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004243/1.27, allocations: 184.2 kB / 0.8664 GB, free: 15.48 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001223/1.27, allocations: 12.56 kB / 0.8664 GB, free: 15.48 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000681/1.271, allocations: 38.52 kB / 0.8665 GB, free: 15.45 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002201/1.271, allocations: 54.19 kB / 0.8665 GB, free: 15.41 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.256e-05/1.271, allocations: 23.55 kB / 0.8665 GB, free: 15.39 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0004124/1.271, allocations: 232.4 kB / 0.8668 GB, free: 15.21 MB / 0.6667 GB Notification: Performance of sort global known variables: time 4.41e-07/1.271, allocations: 0 / 0.8668 GB, free: 15.21 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.001282/1.273, allocations: 286.1 kB / 0.867 GB, free: 14.95 MB / 0.6667 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.002638/1.275, allocations: 1.523 MB / 0.8685 GB, free: 13.69 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.002191/1.277, allocations: 0.9122 MB / 0.8694 GB, free: 13.02 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 1.016e-05/1.278, allocations: 4 kB / 0.8694 GB, free: 13.02 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0006413/1.278, allocations: 264.3 kB / 0.8697 GB, free: 12.84 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00137/1.28, allocations: 158.7 kB / 0.8698 GB, free: 12.71 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00281/1.282, allocations: 0.9446 MB / 0.8707 GB, free: 11.88 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006595/1.283, allocations: 0.9084 MB / 0.8716 GB, free: 10.96 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.001143/1.284, allocations: 165.1 kB / 0.8718 GB, free: 10.8 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004668/1.285, allocations: 190.7 kB / 0.872 GB, free: 10.74 MB / 0.6667 GB Notification: Performance of SimCode: time 1.302e-06/1.285, allocations: 0 / 0.872 GB, free: 10.74 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04734/1.332, allocations: 12.42 MB / 0.8841 GB, free: 14.49 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003581/1.333, allocations: 177.6 kB / 0.8843 GB, free: 14.25 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.934/4.267, allocations: 0 / 0.8843 GB, free: 14.25 MB / 0.6823 GB