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={"dynamic"}) Notification: Performance of loadModel(Buildings): time 4.195/4.195, allocations: 404.1 MB / 411.3 MB, free: 428 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.47e-05/2.491e-05, allocations: 4 kB / 0.4945 GB, free: 1.301 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6541/0.6541, allocations: 92.68 MB / 0.5851 GB, free: 2.297 MB / 474.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2695/0.9237, allocations: 138.2 MB / 0.72 GB, free: 7.914 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003917/0.9242, allocations: 95.88 kB / 0.7201 GB, free: 7.82 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 0.1318/1.056, allocations: 26.93 MB / 0.7464 GB, free: 12.64 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.184e-06/1.056, allocations: 0 / 0.7464 GB, free: 12.64 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 5.689e-05/1.056, allocations: 15.98 kB / 0.7464 GB, free: 12.62 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.002692/1.059, allocations: 0.8146 MB / 0.7472 GB, free: 11.76 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.995e-05/1.059, allocations: 16.03 kB / 0.7472 GB, free: 11.74 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001741/1.061, allocations: 155 kB / 0.7474 GB, free: 11.59 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001189/1.062, allocations: 439.3 kB / 0.7478 GB, free: 11.12 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.369e-05/1.062, allocations: 12 kB / 0.7478 GB, free: 11.11 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001496/1.062, allocations: 32 kB / 0.7478 GB, free: 11.07 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001463/1.064, allocations: 450.5 kB / 0.7483 GB, free: 10.63 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00166/1.065, allocations: 0.5949 MB / 0.7489 GB, free: 10 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.428e-05/1.065, allocations: 0 / 0.7489 GB, free: 10 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001035/1.065, allocations: 7.984 kB / 0.7489 GB, free: 9.992 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000113/1.066, allocations: 41.25 kB / 0.7489 GB, free: 9.953 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005654/1.071, allocations: 2.268 MB / 0.7511 GB, free: 7.582 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0016/1.073, allocations: 0.5329 MB / 0.7516 GB, free: 7.027 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00063/1.073, allocations: 229.6 kB / 0.7519 GB, free: 6.797 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007167/1.074, allocations: 0.5632 MB / 0.7524 GB, free: 6.105 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001066/1.075, allocations: 378.8 kB / 0.7528 GB, free: 5.719 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=49): time 3.647e-06/1.075, allocations: 0 / 0.7528 GB, free: 5.719 MB / 0.6355 GB Notification: Performance of matching and sorting (n=49): time 0.001748/1.077, allocations: 495.5 kB / 0.7532 GB, free: 5.227 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.968e-05/1.077, allocations: 85.53 kB / 0.7533 GB, free: 5.125 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005755/1.078, allocations: 282.3 kB / 0.7536 GB, free: 4.848 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 0.000104/1.078, allocations: 33.7 kB / 0.7536 GB, free: 4.809 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003448/1.078, allocations: 276.5 kB / 0.7539 GB, free: 4.531 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002362/1.079, allocations: 149.9 kB / 0.754 GB, free: 4.383 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.7e-05/1.079, allocations: 0 / 0.754 GB, free: 4.383 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001871/1.079, allocations: 358.8 kB / 0.7544 GB, free: 4.023 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006122/1.079, allocations: 205.1 kB / 0.7546 GB, free: 3.824 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007877/1.08, allocations: 333.3 kB / 0.7549 GB, free: 3.453 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008128/1.081, allocations: 244.2 kB / 0.7551 GB, free: 3.215 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.051e-06/1.081, allocations: 0 / 0.7551 GB, free: 3.215 MB / 0.6355 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001842/1.083, allocations: 0.5827 MB / 0.7557 GB, free: 2.625 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 0.000495/1.083, allocations: 1.092 MB / 0.7568 GB, free: 1.445 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.613e-05/1.083, allocations: 7.984 kB / 0.7568 GB, free: 1.438 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.925e-05/1.084, allocations: 4 kB / 0.7568 GB, free: 1.434 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001232/1.085, allocations: 115.8 kB / 0.7569 GB, free: 1.32 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.498e-05/1.085, allocations: 7.984 kB / 0.7569 GB, free: 1.312 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001021/1.086, allocations: 59.58 kB / 0.7569 GB, free: 1.254 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.831e-05/1.086, allocations: 27.92 kB / 0.757 GB, free: 1.227 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/1.086, allocations: 8 kB / 0.757 GB, free: 1.219 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001503/1.087, allocations: 467.9 kB / 0.7574 GB, free: 0.7617 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/1.088, allocations: 4 kB / 0.7574 GB, free: 0.7578 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.653e-05/1.088, allocations: 7.953 kB / 0.7574 GB, free: 0.75 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001035/1.089, allocations: 111.8 kB / 0.7575 GB, free: 0.6406 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.216e-05/1.089, allocations: 8.188 kB / 0.7576 GB, free: 0.6328 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008833/1.09, allocations: 59.58 kB / 0.7576 GB, free: 0.5742 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.522e-05/1.09, allocations: 20 kB / 0.7576 GB, free: 0.5547 MB / 0.6355 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.0002547/1.09, allocations: 123.1 kB / 0.7577 GB, free: 436 kB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001475/1.091, allocations: 495.4 kB / 0.7582 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000134/1.092, allocations: 51.39 kB / 0.7583 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001699/1.093, allocations: 0.5322 MB / 0.7588 GB, free: 15.34 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.208e-05/1.093, allocations: 4 kB / 0.7588 GB, free: 15.34 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.765e-06/1.093, allocations: 0 / 0.7588 GB, free: 15.34 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.114e-05/1.093, allocations: 0 / 0.7588 GB, free: 15.34 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001224/1.095, allocations: 0.5448 MB / 0.7593 GB, free: 14.76 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/1.095, allocations: 0 / 0.7593 GB, free: 14.76 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001169/1.096, allocations: 92.05 kB / 0.7594 GB, free: 14.67 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.59e-05/1.096, allocations: 8 kB / 0.7594 GB, free: 14.66 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.296e-05/1.096, allocations: 7.953 kB / 0.7594 GB, free: 14.65 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.082e-06/1.096, allocations: 4 kB / 0.7594 GB, free: 14.65 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/1.096, allocations: 0 / 0.7594 GB, free: 14.65 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002365/1.098, allocations: 0.8345 MB / 0.7602 GB, free: 13.79 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004501/1.099, allocations: 176.5 kB / 0.7604 GB, free: 13.59 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001642/1.099, allocations: 15.94 kB / 0.7604 GB, free: 13.58 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007573/1.1, allocations: 31.95 kB / 0.7605 GB, free: 13.55 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002378/1.1, allocations: 48.36 kB / 0.7605 GB, free: 13.5 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.66e-05/1.1, allocations: 16 kB / 0.7605 GB, free: 13.48 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0004028/1.1, allocations: 220.6 kB / 0.7607 GB, free: 13.27 MB / 0.6511 GB Notification: Performance of sort global known variables: time 6.11e-07/1.1, allocations: 4 kB / 0.7607 GB, free: 13.27 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001291/1.102, allocations: 243.2 kB / 0.761 GB, free: 13.03 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.002842/1.105, allocations: 1.501 MB / 0.7624 GB, free: 11.49 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.002329/1.107, allocations: 0.8974 MB / 0.7633 GB, free: 10.57 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 4.479e-06/1.107, allocations: 4 kB / 0.7633 GB, free: 10.57 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0007197/1.108, allocations: 257.5 kB / 0.7636 GB, free: 10.32 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001521/1.109, allocations: 141 kB / 0.7637 GB, free: 10.19 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003075/1.112, allocations: 0.9213 MB / 0.7646 GB, free: 9.223 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006804/1.113, allocations: 0.9074 MB / 0.7655 GB, free: 8.289 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.001381/1.114, allocations: 164.5 kB / 0.7656 GB, free: 8.129 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006002/1.115, allocations: 187.4 kB / 0.7658 GB, free: 7.945 MB / 0.6511 GB Notification: Performance of SimCode: time 1.803e-06/1.115, allocations: 0 / 0.7658 GB, free: 7.945 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6197/1.735, allocations: 11.81 MB / 0.7773 GB, free: 169.9 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.000254/1.735, allocations: 154.3 kB / 0.7775 GB, free: 169.7 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.338/5.074, allocations: 0 / 0.7775 GB, free: 169.7 MB / 0.6511 GB