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.911/3.911, allocations: 403.3 MB / 415.4 MB, free: 12.97 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.779e-05/3.788e-05, allocations: 7.938 kB / 0.4992 GB, free: 13.3 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6418/0.6418, allocations: 92.68 MB / 0.5897 GB, free: 14.32 MB / 490.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2559/0.8978, allocations: 138.9 MB / 0.7253 GB, free: 3.262 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003606/0.8982, allocations: 95.94 kB / 0.7254 GB, free: 3.168 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 0.1177/1.016, allocations: 27.05 MB / 0.7518 GB, free: 7.875 MB / 0.6355 GB Notification: Performance of FrontEnd: time 7.324e-06/1.016, allocations: 0 / 0.7518 GB, free: 7.875 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 4.669e-05/1.016, allocations: 15.94 kB / 0.7518 GB, free: 7.859 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.002301/1.018, allocations: 0.8182 MB / 0.7526 GB, free: 6.984 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.378e-05/1.018, allocations: 12.03 kB / 0.7526 GB, free: 6.973 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000183/1.019, allocations: 94.5 kB / 0.7527 GB, free: 6.871 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001356/1.02, allocations: 151 kB / 0.7528 GB, free: 6.723 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009531/1.021, allocations: 439.2 kB / 0.7533 GB, free: 6.254 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.85e-05/1.021, allocations: 37 kB / 0.7533 GB, free: 6.219 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001391/1.021, allocations: 48 kB / 0.7533 GB, free: 6.172 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001613/1.023, allocations: 0.6517 MB / 0.754 GB, free: 5.492 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.074e-05/1.023, allocations: 0 / 0.754 GB, free: 5.492 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001096/1.023, allocations: 27.98 kB / 0.754 GB, free: 5.465 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.562e-05/1.023, allocations: 44.97 kB / 0.754 GB, free: 5.422 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00142/1.024, allocations: 0.525 MB / 0.7546 GB, free: 4.895 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005141/1.03, allocations: 2.37 MB / 0.7569 GB, free: 2.41 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001451/1.031, allocations: 0.5368 MB / 0.7574 GB, free: 1.852 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005843/1.032, allocations: 245.6 kB / 0.7576 GB, free: 1.605 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006463/1.032, allocations: 0.5749 MB / 0.7582 GB, free: 0.9023 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009159/1.033, allocations: 382.9 kB / 0.7586 GB, free: 0.5117 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=49): time 3.126e-06/1.033, allocations: 0 / 0.7586 GB, free: 0.5117 MB / 0.6355 GB Notification: Performance of matching and sorting (n=49): time 0.001462/1.035, allocations: 0.5034 MB / 0.759 GB, free: 0 / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001098/1.035, allocations: 89.56 kB / 0.7591 GB, free: 15.89 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005445/1.036, allocations: 303.5 kB / 0.7594 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 9.814e-05/1.036, allocations: 37.7 kB / 0.7595 GB, free: 15.54 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.00029/1.036, allocations: 280.5 kB / 0.7597 GB, free: 15.27 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002096/1.036, allocations: 153.8 kB / 0.7599 GB, free: 15.11 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.92e-05/1.036, allocations: 16 kB / 0.7599 GB, free: 15.1 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001702/1.036, allocations: 354.7 kB / 0.7602 GB, free: 14.74 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005937/1.037, allocations: 221.1 kB / 0.7604 GB, free: 14.53 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007125/1.038, allocations: 349.2 kB / 0.7608 GB, free: 14.14 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006609/1.038, allocations: 265.5 kB / 0.761 GB, free: 13.88 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.48e-06/1.038, allocations: 0 / 0.761 GB, free: 13.88 MB / 0.6511 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001711/1.04, allocations: 0.6626 MB / 0.7617 GB, free: 13.2 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004691/1.041, allocations: 1.068 MB / 0.7627 GB, free: 12.04 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/1.041, allocations: 4 kB / 0.7627 GB, free: 12.04 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.864e-05/1.041, allocations: 11.94 kB / 0.7627 GB, free: 12.03 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001046/1.042, allocations: 115.8 kB / 0.7628 GB, free: 11.91 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.97e-05/1.042, allocations: 8 kB / 0.7628 GB, free: 11.91 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008853/1.043, allocations: 75.56 kB / 0.7629 GB, free: 11.83 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.116e-05/1.043, allocations: 24 kB / 0.7629 GB, free: 11.81 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/1.043, allocations: 8.578 kB / 0.763 GB, free: 11.8 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001394/1.044, allocations: 0.5291 MB / 0.7635 GB, free: 11.27 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/1.044, allocations: 4 kB / 0.7635 GB, free: 11.26 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/1.044, allocations: 4 kB / 0.7635 GB, free: 11.26 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008507/1.045, allocations: 115.8 kB / 0.7636 GB, free: 11.14 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.298e-05/1.045, allocations: 4 kB / 0.7636 GB, free: 11.14 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007719/1.046, allocations: 59.64 kB / 0.7636 GB, free: 11.08 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.096e-05/1.046, allocations: 20.05 kB / 0.7637 GB, free: 11.06 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.0002529/1.046, allocations: 151.7 kB / 0.7638 GB, free: 10.91 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001293/1.046, allocations: 51.39 kB / 0.7639 GB, free: 10.86 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001553/1.048, allocations: 0.5595 MB / 0.7644 GB, free: 10.29 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.245e-05/1.048, allocations: 8 kB / 0.7644 GB, free: 10.28 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/1.048, allocations: 0 / 0.7644 GB, free: 10.28 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.07e-05/1.048, allocations: 3.984 kB / 0.7644 GB, free: 10.28 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001166/1.049, allocations: 0.6266 MB / 0.765 GB, free: 9.602 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/1.049, allocations: 4 kB / 0.765 GB, free: 9.598 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009969/1.05, allocations: 99.8 kB / 0.7651 GB, free: 9.5 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-05/1.05, allocations: 4 kB / 0.7651 GB, free: 9.496 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.98e-05/1.05, allocations: 15.95 kB / 0.7651 GB, free: 9.48 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.885e-06/1.05, allocations: 3.984 kB / 0.7652 GB, free: 9.477 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/1.05, allocations: 4 kB / 0.7652 GB, free: 9.473 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002123/1.053, allocations: 0.8618 MB / 0.766 GB, free: 8.586 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003878/1.053, allocations: 176.5 kB / 0.7662 GB, free: 8.395 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001257/1.053, allocations: 19.94 kB / 0.7662 GB, free: 8.375 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006543/1.054, allocations: 39.95 kB / 0.7662 GB, free: 8.336 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001957/1.054, allocations: 48.36 kB / 0.7663 GB, free: 8.289 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.629e-05/1.054, allocations: 19.94 kB / 0.7663 GB, free: 8.27 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0004282/1.054, allocations: 242.2 kB / 0.7665 GB, free: 8.039 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.81e-07/1.055, allocations: 0 / 0.7665 GB, free: 8.039 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001242/1.056, allocations: 275.1 kB / 0.7668 GB, free: 7.77 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.002637/1.058, allocations: 1.534 MB / 0.7683 GB, free: 6.199 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.002304/1.061, allocations: 0.924 MB / 0.7692 GB, free: 5.246 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 5.571e-06/1.061, allocations: 0 / 0.7692 GB, free: 5.246 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.000673/1.061, allocations: 269.5 kB / 0.7694 GB, free: 4.984 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001376/1.063, allocations: 164.8 kB / 0.7696 GB, free: 4.824 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002876/1.066, allocations: 0.9504 MB / 0.7705 GB, free: 3.836 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006477/1.066, allocations: 0.9035 MB / 0.7714 GB, free: 2.902 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.001148/1.068, allocations: 164.4 kB / 0.7716 GB, free: 2.738 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004864/1.068, allocations: 179.4 kB / 0.7717 GB, free: 2.562 MB / 0.6511 GB Notification: Performance of SimCode: time 2.174e-06/1.068, allocations: 0 / 0.7717 GB, free: 2.562 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5467/1.615, allocations: 12.43 MB / 0.7839 GB, free: 164.8 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002552/1.615, allocations: 170 kB / 0.784 GB, free: 164.5 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.84/4.455, allocations: 1.859 kB / 0.784 GB, free: 164.5 MB / 0.6511 GB