Running command: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,fileNamePrefix="Buildings_5_0_1_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"dynamic"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(Buildings): time 4.311/4.311, allocations: 403.9 MB / 410.9 MB, free: 4.961 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2771/4.588, allocations: 95.03 MB / 0.4941 GB, free: 7.336 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5761/5.164, allocations: 92.67 MB / 0.5846 GB, free: 3.434 MB / 474.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3195/5.484, allocations: 139.6 MB / 0.7209 GB, free: 10.09 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005525/5.484, allocations: 91.94 kB / 0.721 GB, free: 10 MB / 0.6042 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.2007/5.685, allocations: 29.28 MB / 0.7496 GB, free: 12.38 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 6.223e-05/5.685, allocations: 8 kB / 0.7496 GB, free: 12.38 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002567/5.688, allocations: 155 kB / 0.7498 GB, free: 12.22 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00166/5.69, allocations: 439.2 kB / 0.7502 GB, free: 11.75 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.892e-05/5.69, allocations: 20 kB / 0.7502 GB, free: 11.73 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000212/5.69, allocations: 28 kB / 0.7502 GB, free: 11.7 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002215/5.692, allocations: 466.1 kB / 0.7507 GB, free: 11.25 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002545/5.695, allocations: 0.6009 MB / 0.7513 GB, free: 10.62 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.509e-05/5.695, allocations: 4 kB / 0.7513 GB, free: 10.62 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001495/5.695, allocations: 4 kB / 0.7513 GB, free: 10.61 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001228/5.695, allocations: 44.97 kB / 0.7513 GB, free: 10.57 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006907/5.702, allocations: 2.255 MB / 0.7535 GB, free: 8.211 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001657/5.704, allocations: 0.527 MB / 0.754 GB, free: 7.664 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007426/5.705, allocations: 241.6 kB / 0.7543 GB, free: 7.422 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007406/5.705, allocations: 0.5551 MB / 0.7548 GB, free: 6.738 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009996/5.706, allocations: 350.9 kB / 0.7551 GB, free: 6.379 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=49): time 7.063e-06/5.706, allocations: 0 / 0.7551 GB, free: 6.379 MB / 0.6355 GB Notification: Performance of matching and sorting (n=49): time 0.001862/5.708, allocations: 0.5024 MB / 0.7556 GB, free: 5.871 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.334e-05/5.708, allocations: 81.55 kB / 0.7557 GB, free: 5.77 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006154/5.709, allocations: 278.1 kB / 0.756 GB, free: 5.5 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 0.0001287/5.709, allocations: 41.72 kB / 0.756 GB, free: 5.453 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002861/5.709, allocations: 236.4 kB / 0.7562 GB, free: 5.215 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002378/5.71, allocations: 149.8 kB / 0.7564 GB, free: 5.066 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.461e-05/5.71, allocations: 0 / 0.7564 GB, free: 5.066 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0002683/5.71, allocations: 354.8 kB / 0.7567 GB, free: 4.711 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000723/5.711, allocations: 217.8 kB / 0.7569 GB, free: 4.496 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008552/5.712, allocations: 334 kB / 0.7572 GB, free: 4.125 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001094/5.713, allocations: 247.8 kB / 0.7575 GB, free: 3.883 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.452e-06/5.713, allocations: 0 / 0.7575 GB, free: 3.883 MB / 0.6355 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.003143/5.716, allocations: 0.5905 MB / 0.7581 GB, free: 3.285 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008816/5.717, allocations: 1.051 MB / 0.7591 GB, free: 2.152 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-05/5.717, allocations: 8 kB / 0.7591 GB, free: 2.145 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.808e-05/5.717, allocations: 7.906 kB / 0.7591 GB, free: 2.137 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002199/5.719, allocations: 111.8 kB / 0.7592 GB, free: 2.027 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.547e-05/5.719, allocations: 11.94 kB / 0.7592 GB, free: 2.016 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001725/5.721, allocations: 59.58 kB / 0.7593 GB, free: 1.957 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002206/5.721, allocations: 20 kB / 0.7593 GB, free: 1.938 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.304e-05/5.721, allocations: 4 kB / 0.7593 GB, free: 1.934 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002651/5.724, allocations: 476 kB / 0.7597 GB, free: 1.469 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.187e-05/5.724, allocations: 0 / 0.7597 GB, free: 1.469 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.454e-05/5.724, allocations: 8 kB / 0.7598 GB, free: 1.461 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001611/5.726, allocations: 103.8 kB / 0.7599 GB, free: 1.359 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.214e-05/5.726, allocations: 11.91 kB / 0.7599 GB, free: 1.348 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001365/5.727, allocations: 43.84 kB / 0.7599 GB, free: 1.305 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001275/5.727, allocations: 23.98 kB / 0.7599 GB, free: 1.281 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.0004076/5.728, allocations: 130.8 kB / 0.7601 GB, free: 1.148 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002418/5.728, allocations: 47.44 kB / 0.7601 GB, free: 1.102 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002094/5.73, allocations: 0.5546 MB / 0.7606 GB, free: 0.543 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.25e-05/5.73, allocations: 4 kB / 0.7606 GB, free: 0.5391 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.078e-05/5.73, allocations: 3.906 kB / 0.7607 GB, free: 0.5352 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.025e-05/5.73, allocations: 0 / 0.7607 GB, free: 0.5352 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001282/5.732, allocations: 0.5448 MB / 0.7612 GB, free: 15.95 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.079e-06/5.732, allocations: 0 / 0.7612 GB, free: 15.95 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001254/5.733, allocations: 87.88 kB / 0.7613 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.587e-05/5.733, allocations: 4 kB / 0.7613 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.713e-05/5.733, allocations: 12.19 kB / 0.7613 GB, free: 15.85 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.614e-06/5.733, allocations: 4 kB / 0.7613 GB, free: 15.84 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/5.733, allocations: 0 / 0.7613 GB, free: 15.84 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002575/5.736, allocations: 0.8637 MB / 0.7621 GB, free: 14.96 MB / 0.6511 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00375/5.739, allocations: 1.556 MB / 0.7636 GB, free: 13.37 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004778/5.74, allocations: 184.4 kB / 0.7638 GB, free: 13.17 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001578/5.74, allocations: 0 / 0.7638 GB, free: 13.17 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008235/5.741, allocations: 35.95 kB / 0.7639 GB, free: 13.13 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002369/5.741, allocations: 48.36 kB / 0.7639 GB, free: 13.09 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.911e-05/5.741, allocations: 16 kB / 0.7639 GB, free: 13.07 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.000479/5.742, allocations: 224.5 kB / 0.7641 GB, free: 12.85 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.003478/5.745, allocations: 247.2 kB / 0.7644 GB, free: 12.61 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.0004145/5.746, allocations: 146.8 kB / 0.7645 GB, free: 12.45 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.002674/5.748, allocations: 0.8618 MB / 0.7654 GB, free: 11.58 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 5.911e-06/5.748, allocations: 0 / 0.7654 GB, free: 11.58 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0008479/5.749, allocations: 265.5 kB / 0.7656 GB, free: 11.32 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001629/5.751, allocations: 137 kB / 0.7657 GB, free: 11.19 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003312/5.754, allocations: 0.8319 MB / 0.7665 GB, free: 10.33 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001728/5.756, allocations: 0.9653 MB / 0.7675 GB, free: 9.332 MB / 0.6511 GB Notification: Performance of SimCode: time 6.542e-06/5.756, allocations: 0 / 0.7675 GB, free: 9.332 MB / 0.6511 GB