Running command: translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") Notification: Performance of loadModel(Buildings): time 4.572/4.572, allocations: 431.3 MB / 445.8 MB, free: 5.402 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 4.483e-05/4.491e-05, allocations: 4 kB / 0.5354 GB, free: 14.81 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7498/0.7499, allocations: 98.7 MB / 0.6318 GB, free: 11.94 MB / 0.5105 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery): time 0.006744/0.7567, allocations: 3.747 MB / 0.6355 GB, free: 8.176 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.004537/0.7613, allocations: 1.939 MB / 0.6374 GB, free: 6.227 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003551/0.7617, allocations: 15.94 kB / 0.6374 GB, free: 6.211 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.0002406/0.7619, allocations: 55.55 kB / 0.6374 GB, free: 6.156 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.0008151/0.7627, allocations: 227.2 kB / 0.6376 GB, free: 5.934 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.001023/0.7638, allocations: 283.2 kB / 0.6379 GB, free: 5.656 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.0008299/0.7646, allocations: 403.1 kB / 0.6383 GB, free: 5.262 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001555/0.7662, allocations: 0.65 MB / 0.6389 GB, free: 4.574 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003998/0.7666, allocations: 187.4 kB / 0.6391 GB, free: 4.391 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005118/0.7671, allocations: 219.3 kB / 0.6393 GB, free: 4.176 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005828/0.7677, allocations: 171.8 kB / 0.6395 GB, free: 4.008 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.0001146/0.7679, allocations: 24 kB / 0.6395 GB, free: 3.984 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.0001981/0.7681, allocations: 131.6 kB / 0.6396 GB, free: 3.855 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.0001592/0.7682, allocations: 51.94 kB / 0.6397 GB, free: 3.805 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.001161/0.7694, allocations: 0.7348 MB / 0.6404 GB, free: 3.07 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.7694, allocations: 0 / 0.6404 GB, free: 3.07 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.484e-06/0.7695, allocations: 0 / 0.6404 GB, free: 3.07 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 1.548e-05/0.7695, allocations: 0 / 0.6404 GB, free: 3.07 MB / 0.5105 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.002191/0.7717, allocations: 0.7747 MB / 0.6412 GB, free: 2.238 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.88e-05/0.7717, allocations: 12.02 kB / 0.6412 GB, free: 2.227 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001122/0.7729, allocations: 139 kB / 0.6413 GB, free: 2.09 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008793/0.7738, allocations: 421.9 kB / 0.6417 GB, free: 1.637 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.419e-05/0.7739, allocations: 40.98 kB / 0.6417 GB, free: 1.598 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001567/0.774, allocations: 55.91 kB / 0.6418 GB, free: 1.543 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001861/0.7759, allocations: 0.6809 MB / 0.6425 GB, free: 0.8281 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.123e-05/0.7759, allocations: 0 / 0.6425 GB, free: 0.8281 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.785e-05/0.7761, allocations: 27.98 kB / 0.6425 GB, free: 0.8008 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001212/0.7762, allocations: 56.92 kB / 0.6425 GB, free: 0.7461 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00183/0.778, allocations: 0.5698 MB / 0.6431 GB, free: 180 kB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005449/0.7835, allocations: 2.814 MB / 0.6458 GB, free: 13.14 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001889/0.7854, allocations: 0.5691 MB / 0.6464 GB, free: 12.55 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006939/0.7862, allocations: 0.5622 MB / 0.6469 GB, free: 11.86 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001142/0.7873, allocations: 412.1 kB / 0.6473 GB, free: 11.44 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=46): time 6.953e-06/0.7874, allocations: 0 / 0.6473 GB, free: 11.44 MB / 0.5261 GB Notification: Performance of matching and sorting (n=46): time 0.00253/0.7899, allocations: 0.751 MB / 0.6481 GB, free: 10.68 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001006/0.79, allocations: 81.11 kB / 0.6481 GB, free: 10.58 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005563/0.7906, allocations: 308.7 kB / 0.6484 GB, free: 10.28 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001299/0.7908, allocations: 45.7 kB / 0.6485 GB, free: 10.23 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003001/0.7911, allocations: 280.5 kB / 0.6488 GB, free: 9.945 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.000211/0.7913, allocations: 154.1 kB / 0.6489 GB, free: 9.793 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.858e-05/0.7914, allocations: 12 kB / 0.6489 GB, free: 9.781 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001995/0.7916, allocations: 354.8 kB / 0.6493 GB, free: 9.426 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008302/0.7924, allocations: 233 kB / 0.6495 GB, free: 9.195 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009201/0.7934, allocations: 358.7 kB / 0.6498 GB, free: 8.805 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008824/0.7943, allocations: 289.7 kB / 0.6501 GB, free: 8.516 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.7943, allocations: 0 / 0.6501 GB, free: 8.516 MB / 0.5261 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002075/0.7964, allocations: 0.684 MB / 0.6508 GB, free: 7.82 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.000508/0.7969, allocations: 1.084 MB / 0.6518 GB, free: 6.648 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.318e-05/0.7969, allocations: 4 kB / 0.6518 GB, free: 6.645 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.305e-05/0.797, allocations: 4 kB / 0.6518 GB, free: 6.641 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009815/0.798, allocations: 111.8 kB / 0.6519 GB, free: 6.531 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.78e-05/0.798, allocations: 11.89 kB / 0.6519 GB, free: 6.52 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008526/0.7989, allocations: 83.47 kB / 0.652 GB, free: 6.438 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.158e-05/0.799, allocations: 20.19 kB / 0.652 GB, free: 6.418 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.114e-05/0.799, allocations: 4 kB / 0.652 GB, free: 6.414 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0018/0.8008, allocations: 0.5833 MB / 0.6526 GB, free: 5.824 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.8008, allocations: 0 / 0.6526 GB, free: 5.824 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.325e-05/0.8009, allocations: 8 kB / 0.6526 GB, free: 5.816 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008608/0.8017, allocations: 107.8 kB / 0.6527 GB, free: 5.711 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.587e-05/0.8018, allocations: 7.984 kB / 0.6527 GB, free: 5.703 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008437/0.8026, allocations: 67.7 kB / 0.6528 GB, free: 5.637 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.66e-05/0.8027, allocations: 24 kB / 0.6528 GB, free: 5.613 MB / 0.5261 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 (66): * Single equations (assignments): 65 * 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.0005122/0.8032, allocations: 222.1 kB / 0.653 GB, free: 5.387 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001366/0.8034, allocations: 47.48 kB / 0.6531 GB, free: 5.34 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00192/0.8053, allocations: 0.6023 MB / 0.6537 GB, free: 4.734 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.34e-05/0.8054, allocations: 8 kB / 0.6537 GB, free: 4.727 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.558e-06/0.8054, allocations: 3.984 kB / 0.6537 GB, free: 4.723 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.538e-06/0.8054, allocations: 0 / 0.6537 GB, free: 4.723 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003892/0.8093, allocations: 1.376 MB / 0.655 GB, free: 3.285 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.004e-05/0.8094, allocations: 3.984 kB / 0.655 GB, free: 3.281 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008937/0.8103, allocations: 91.81 kB / 0.6551 GB, free: 3.191 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.777e-06/0.8103, allocations: 0 / 0.6551 GB, free: 3.191 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.53e-05/0.8104, allocations: 8 kB / 0.6551 GB, free: 3.184 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.406e-06/0.8104, allocations: 8 kB / 0.6551 GB, free: 3.176 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.8104, allocations: 3.938 kB / 0.6551 GB, free: 3.172 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003707/0.8141, allocations: 0.9886 MB / 0.6561 GB, free: 2.16 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006424/0.8148, allocations: 180.5 kB / 0.6563 GB, free: 1.965 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002619/0.8151, allocations: 12 kB / 0.6563 GB, free: 1.953 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001185/0.8163, allocations: 40.14 kB / 0.6563 GB, free: 1.914 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003301/0.8167, allocations: 48.5 kB / 0.6564 GB, free: 1.867 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001244/0.8168, allocations: 20 kB / 0.6564 GB, free: 1.848 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0008499/0.8177, allocations: 247.2 kB / 0.6566 GB, free: 1.605 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.11e-07/0.8177, allocations: 0 / 0.6566 GB, free: 1.605 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002284/0.82, allocations: 271 kB / 0.6569 GB, free: 1.34 MB / 0.5261 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.0003976/0.8205, allocations: 135.2 kB / 0.657 GB, free: 1.199 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.003792/0.8243, allocations: 0.9812 MB / 0.658 GB, free: 200 kB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.454e-06/0.8244, allocations: 128 / 0.658 GB, free: 200 kB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0009094/0.8253, allocations: 290.3 kB / 0.6582 GB, free: 15.91 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001356/0.8267, allocations: 144.9 kB / 0.6584 GB, free: 15.78 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003015/0.8297, allocations: 1.251 MB / 0.6596 GB, free: 14.49 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006934/0.8304, allocations: 0.9117 MB / 0.6605 GB, free: 13.55 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.001079/0.8315, allocations: 164.2 kB / 0.6607 GB, free: 13.39 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002625/0.8318, allocations: 39.42 kB / 0.6607 GB, free: 13.36 MB / 0.5417 GB Notification: Performance of SimCode: time 3.116e-06/0.8318, allocations: 0 / 0.6607 GB, free: 13.36 MB / 0.5417 GB Notification: Performance of Templates: time 0.02899/0.8608, allocations: 8.366 MB / 0.6689 GB, free: 5.078 MB / 0.5417 GB