[:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Warning: Requested package Modelica of version 3.2.2, but this package was already loaded with version 3.2.1. You might experience problems if these versions are incompatible. Notification: Performance of loadModel(Buildings): time 3.061/3.061, allocations: 320.9 MB / 327.9 MB, free: 5.582 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3423/3.403, allocations: 75.73 MB / 403.6 MB, free: 0.5664 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1863/3.59, allocations: 73.4 MB / 477 MB, free: 7.027 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5082/4.098, allocations: 121 MB / 0.584 GB, free: 0.7227 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004937/4.098, allocations: 87.12 kB / 0.5841 GB, free: 0.6758 MB / 458.7 MB 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.1381/4.237, allocations: 29.91 MB / 0.6133 GB, free: 7.711 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.496e-05/4.237, allocations: 12 kB / 0.6133 GB, free: 7.699 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001766/4.238, allocations: 147 kB / 0.6135 GB, free: 7.555 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001161/4.24, allocations: 434 kB / 0.6139 GB, free: 7.152 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.276e-05/4.24, allocations: 20 kB / 0.6139 GB, free: 7.133 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001386/4.24, allocations: 32 kB / 0.6139 GB, free: 7.102 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001411/4.241, allocations: 472.9 kB / 0.6144 GB, free: 6.805 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001533/4.243, allocations: 0.5974 MB / 0.615 GB, free: 6.328 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.123e-05/4.243, allocations: 0 / 0.615 GB, free: 6.328 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.998e-05/4.243, allocations: 7.812 kB / 0.615 GB, free: 6.324 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.469e-05/4.243, allocations: 44.72 kB / 0.615 GB, free: 6.285 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005293/4.248, allocations: 2.251 MB / 0.6172 GB, free: 4.336 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001401/4.25, allocations: 0.5246 MB / 0.6177 GB, free: 3.957 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006286/4.25, allocations: 234.6 kB / 0.618 GB, free: 3.805 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006277/4.251, allocations: 0.5623 MB / 0.6185 GB, free: 3.117 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008293/4.252, allocations: 346.1 kB / 0.6188 GB, free: 2.855 MB / 490.7 MB Notification: Performance of pre-optimization done (n=49): time 3.046e-06/4.252, allocations: 0 / 0.6188 GB, free: 2.855 MB / 490.7 MB Notification: Performance of matching and sorting (n=49): time 0.001632/4.254, allocations: 0.5081 MB / 0.6193 GB, free: 2.477 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.267e-05/4.254, allocations: 85.55 kB / 0.6194 GB, free: 2.375 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005361/4.254, allocations: 277.5 kB / 0.6197 GB, free: 2.156 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001058/4.254, allocations: 32.83 kB / 0.6197 GB, free: 2.121 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002952/4.255, allocations: 237 kB / 0.6199 GB, free: 1.906 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002137/4.255, allocations: 150.2 kB / 0.6201 GB, free: 1.777 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.073e-05/4.255, allocations: 8.031 kB / 0.6201 GB, free: 1.77 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001748/4.255, allocations: 349.4 kB / 0.6204 GB, free: 1.438 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005958/4.256, allocations: 215.3 kB / 0.6206 GB, free: 1.312 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007103/4.256, allocations: 345.6 kB / 0.621 GB, free: 1.027 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008011/4.257, allocations: 239.5 kB / 0.6212 GB, free: 0.8789 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.967e-06/4.257, allocations: 8 kB / 0.6212 GB, free: 0.8711 MB / 490.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001793/4.259, allocations: 0.5907 MB / 0.6218 GB, free: 448 kB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005511/4.26, allocations: 1.056 MB / 0.6228 GB, free: 15.32 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.336e-05/4.26, allocations: 0 / 0.6228 GB, free: 15.32 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.463e-05/4.26, allocations: 16.03 kB / 0.6228 GB, free: 15.3 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00124/4.261, allocations: 111.1 kB / 0.6229 GB, free: 15.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.371e-05/4.261, allocations: 4 kB / 0.6229 GB, free: 15.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001033/4.262, allocations: 59.64 kB / 0.623 GB, free: 15.14 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.769e-05/4.262, allocations: 19.25 kB / 0.623 GB, free: 15.12 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.46e-05/4.262, allocations: 4 kB / 0.623 GB, free: 15.12 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001406/4.264, allocations: 470.4 kB / 0.6235 GB, free: 14.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/4.264, allocations: 4 kB / 0.6235 GB, free: 14.79 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.558e-05/4.264, allocations: 7.906 kB / 0.6235 GB, free: 14.79 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009746/4.265, allocations: 114.3 kB / 0.6236 GB, free: 14.68 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.094e-05/4.265, allocations: 4 kB / 0.6236 GB, free: 14.68 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008804/4.266, allocations: 51.64 kB / 0.6236 GB, free: 14.62 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.764e-05/4.266, allocations: 23.5 kB / 0.6236 GB, free: 14.61 MB / 0.4948 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.0002586/4.266, allocations: 132.3 kB / 0.6238 GB, free: 14.48 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001375/4.266, allocations: 47.44 kB / 0.6238 GB, free: 14.43 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001633/4.268, allocations: 0.5368 MB / 0.6243 GB, free: 14.05 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.628e-05/4.268, allocations: 7.906 kB / 0.6244 GB, free: 14.05 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/4.268, allocations: 3.938 kB / 0.6244 GB, free: 14.04 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.109e-05/4.268, allocations: 3.984 kB / 0.6244 GB, free: 14.04 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001105/4.269, allocations: 0.5436 MB / 0.6249 GB, free: 13.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/4.269, allocations: 0 / 0.6249 GB, free: 13.59 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001063/4.27, allocations: 87.56 kB / 0.625 GB, free: 13.51 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.333e-05/4.27, allocations: 4 kB / 0.625 GB, free: 13.5 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.82e-05/4.27, allocations: 7.734 kB / 0.625 GB, free: 13.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.446e-06/4.27, allocations: 4 kB / 0.625 GB, free: 13.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/4.27, allocations: 0 / 0.625 GB, free: 13.5 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002234/4.272, allocations: 0.8633 MB / 0.6258 GB, free: 12.87 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003435/4.276, allocations: 1.561 MB / 0.6274 GB, free: 11.54 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004638/4.276, allocations: 184.3 kB / 0.6275 GB, free: 11.34 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001447/4.277, allocations: 4 kB / 0.6275 GB, free: 11.34 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000739/4.277, allocations: 27.97 kB / 0.6276 GB, free: 11.31 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002527/4.278, allocations: 52.27 kB / 0.6276 GB, free: 11.26 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.793e-05/4.278, allocations: 20.17 kB / 0.6276 GB, free: 11.24 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.0004032/4.278, allocations: 216.6 kB / 0.6278 GB, free: 11.03 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.003127/4.281, allocations: 259 kB / 0.6281 GB, free: 10.77 MB / 0.4948 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.000412/4.282, allocations: 147.2 kB / 0.6282 GB, free: 10.62 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.002309/4.284, allocations: 0.8555 MB / 0.6291 GB, free: 9.746 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 6.802e-06/4.284, allocations: 192 / 0.6291 GB, free: 9.746 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0007845/4.285, allocations: 269.5 kB / 0.6293 GB, free: 9.484 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001565/4.286, allocations: 141.1 kB / 0.6295 GB, free: 9.352 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003461/4.29, allocations: 0.8665 MB / 0.6303 GB, free: 8.465 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001035/4.291, allocations: 0.9693 MB / 0.6312 GB, free: 7.465 MB / 0.4948 GB Notification: Performance of SimCode: time 1.242e-06/4.291, allocations: 0 / 0.6312 GB, free: 7.465 MB / 0.4948 GB