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"}) [: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.032/4.032, allocations: 404 MB / 410.9 MB, free: 4.922 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2985/4.33, allocations: 95.02 MB / 0.4941 GB, free: 7.309 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5195/4.85, allocations: 92.68 MB / 0.5846 GB, free: 3.246 MB / 474.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2738/5.124, allocations: 138.1 MB / 0.7195 GB, free: 11.45 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004073/5.124, allocations: 91.94 kB / 0.7196 GB, free: 11.36 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.1373/5.262, allocations: 27.39 MB / 0.7463 GB, free: 15.67 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.256e-05/5.262, allocations: 16 kB / 0.7464 GB, free: 15.65 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001675/5.263, allocations: 147 kB / 0.7465 GB, free: 15.51 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001223/5.265, allocations: 443.2 kB / 0.7469 GB, free: 15.03 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.695e-05/5.265, allocations: 16 kB / 0.7469 GB, free: 15.02 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001546/5.265, allocations: 28 kB / 0.747 GB, free: 14.99 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001634/5.266, allocations: 470.1 kB / 0.7474 GB, free: 14.53 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001734/5.268, allocations: 0.597 MB / 0.748 GB, free: 13.9 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.81e-05/5.268, allocations: 7.984 kB / 0.748 GB, free: 13.89 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.34e-05/5.268, allocations: 0 / 0.748 GB, free: 13.89 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.982e-05/5.268, allocations: 44.97 kB / 0.748 GB, free: 13.85 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005785/5.274, allocations: 2.259 MB / 0.7502 GB, free: 11.49 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001663/5.276, allocations: 0.5286 MB / 0.7508 GB, free: 10.94 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006798/5.277, allocations: 233.6 kB / 0.751 GB, free: 10.71 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007815/5.278, allocations: 0.5671 MB / 0.7515 GB, free: 10.01 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009402/5.278, allocations: 350.9 kB / 0.7519 GB, free: 9.652 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=49): time 3.917e-06/5.278, allocations: 0 / 0.7519 GB, free: 9.652 MB / 0.6355 GB Notification: Performance of matching and sorting (n=49): time 0.001802/5.28, allocations: 0.4947 MB / 0.7524 GB, free: 9.152 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.086e-05/5.28, allocations: 85.55 kB / 0.7524 GB, free: 9.047 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005843/5.281, allocations: 282.1 kB / 0.7527 GB, free: 8.773 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 0.0001067/5.281, allocations: 33.7 kB / 0.7527 GB, free: 8.734 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002861/5.281, allocations: 228.5 kB / 0.753 GB, free: 8.504 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002238/5.282, allocations: 149.8 kB / 0.7531 GB, free: 8.355 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.428e-05/5.282, allocations: 4.031 kB / 0.7531 GB, free: 8.352 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001955/5.282, allocations: 358.8 kB / 0.7534 GB, free: 7.992 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000686/5.283, allocations: 213.8 kB / 0.7537 GB, free: 7.781 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008179/5.283, allocations: 338 kB / 0.754 GB, free: 7.406 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000838/5.284, allocations: 239.8 kB / 0.7542 GB, free: 7.172 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.894e-06/5.284, allocations: 11.94 kB / 0.7542 GB, free: 7.16 MB / 0.6355 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001997/5.286, allocations: 0.5944 MB / 0.7548 GB, free: 6.559 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005219/5.287, allocations: 1.051 MB / 0.7558 GB, free: 5.426 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.369e-05/5.287, allocations: 4 kB / 0.7558 GB, free: 5.422 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.917e-05/5.287, allocations: 11.91 kB / 0.7558 GB, free: 5.41 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00136/5.288, allocations: 107.8 kB / 0.7559 GB, free: 5.305 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.736e-05/5.288, allocations: 4.188 kB / 0.7559 GB, free: 5.301 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001147/5.29, allocations: 67.58 kB / 0.756 GB, free: 5.234 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.857e-05/5.29, allocations: 23.98 kB / 0.756 GB, free: 5.211 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/5.29, allocations: 5.25 kB / 0.756 GB, free: 5.207 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00159/5.291, allocations: 467.8 kB / 0.7565 GB, free: 4.75 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.143e-05/5.291, allocations: 4 kB / 0.7565 GB, free: 4.746 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.024e-05/5.291, allocations: 8.156 kB / 0.7565 GB, free: 4.738 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001001/5.292, allocations: 111.8 kB / 0.7566 GB, free: 4.629 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.039e-05/5.292, allocations: 4 kB / 0.7566 GB, free: 4.625 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009566/5.293, allocations: 51.64 kB / 0.7567 GB, free: 4.574 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.471e-05/5.293, allocations: 24 kB / 0.7567 GB, free: 4.551 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.0002713/5.294, allocations: 126.9 kB / 0.7568 GB, free: 4.422 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001551/5.294, allocations: 47.44 kB / 0.7568 GB, free: 4.375 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001929/5.296, allocations: 0.5391 MB / 0.7574 GB, free: 3.836 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-05/5.296, allocations: 11.91 kB / 0.7574 GB, free: 3.824 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.657e-06/5.296, allocations: 0 / 0.7574 GB, free: 3.824 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.38e-05/5.296, allocations: 3.984 kB / 0.7574 GB, free: 3.82 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001278/5.297, allocations: 0.5449 MB / 0.7579 GB, free: 3.234 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.268e-05/5.297, allocations: 0 / 0.7579 GB, free: 3.234 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001289/5.299, allocations: 91.81 kB / 0.758 GB, free: 3.145 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.552e-05/5.299, allocations: 4 kB / 0.758 GB, free: 3.141 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.393e-05/5.299, allocations: 0 / 0.758 GB, free: 3.141 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.178e-05/5.299, allocations: 7.984 kB / 0.758 GB, free: 3.133 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/5.299, allocations: 0 / 0.758 GB, free: 3.133 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002672/5.301, allocations: 0.8652 MB / 0.7589 GB, free: 2.242 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003639/5.305, allocations: 1.563 MB / 0.7604 GB, free: 0.6484 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005141/5.306, allocations: 176.4 kB / 0.7606 GB, free: 468 kB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001694/5.306, allocations: 15.98 kB / 0.7606 GB, free: 452 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008219/5.307, allocations: 23.97 kB / 0.7606 GB, free: 428 kB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002295/5.307, allocations: 56.27 kB / 0.7606 GB, free: 372 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.695e-05/5.307, allocations: 12 kB / 0.7607 GB, free: 360 kB / 0.6355 GB Notification: Performance of sort global known variables: time 0.0004362/5.308, allocations: 224.6 kB / 0.7609 GB, free: 132 kB / 0.6355 GB Notification: Performance of remove unused functions: time 0.003379/5.311, allocations: 243.4 kB / 0.7611 GB, free: 15.89 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.0003832/5.311, allocations: 151.7 kB / 0.7612 GB, free: 15.73 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.002587/5.314, allocations: 0.8547 MB / 0.7621 GB, free: 14.86 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 8.756e-06/5.314, allocations: 8.312 kB / 0.7621 GB, free: 14.86 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0007846/5.315, allocations: 265.5 kB / 0.7623 GB, free: 14.6 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001738/5.317, allocations: 133.9 kB / 0.7625 GB, free: 14.47 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003096/5.32, allocations: 0.8319 MB / 0.7633 GB, free: 13.61 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001181/5.321, allocations: 0.9615 MB / 0.7642 GB, free: 12.62 MB / 0.6511 GB Notification: Performance of SimCode: time 2.144e-06/5.321, allocations: 0 / 0.7642 GB, free: 12.62 MB / 0.6511 GB