Running command: translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") Notification: Performance of loadModel(Buildings): time 4.787/4.787, allocations: 458.9 MB / 473.4 MB, free: 11.9 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.452e-05/3.45e-05, allocations: 8.094 kB / 0.5697 GB, free: 9.809 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2383/0.2384, allocations: 106.2 MB / 0.6734 GB, free: 2.641 MB / 0.5417 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery): time 0.008304/0.2468, allocations: 3.77 MB / 0.6771 GB, free: 14.85 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.00483/0.2516, allocations: 1.939 MB / 0.679 GB, free: 12.9 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004393/0.2521, allocations: 19.94 kB / 0.679 GB, free: 12.88 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.000259/0.2524, allocations: 67.47 kB / 0.6791 GB, free: 12.82 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0008335/0.2532, allocations: 215.3 kB / 0.6793 GB, free: 12.61 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.001057/0.2543, allocations: 275.3 kB / 0.6796 GB, free: 12.34 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0009184/0.2552, allocations: 399.1 kB / 0.6799 GB, free: 11.95 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001677/0.2569, allocations: 0.658 MB / 0.6806 GB, free: 11.25 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004457/0.2574, allocations: 195.4 kB / 0.6808 GB, free: 11.06 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005293/0.258, allocations: 215.2 kB / 0.681 GB, free: 10.85 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005891/0.2586, allocations: 179.7 kB / 0.6812 GB, free: 10.67 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 0.0001245/0.2587, allocations: 24 kB / 0.6812 GB, free: 10.65 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.0001989/0.2589, allocations: 127.6 kB / 0.6813 GB, free: 10.52 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.0001684/0.2591, allocations: 48 kB / 0.6813 GB, free: 10.48 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.001249/0.2604, allocations: 0.7327 MB / 0.6821 GB, free: 9.742 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 3.716e-06/0.2604, allocations: 0 / 0.6821 GB, free: 9.742 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.976e-06/0.2604, allocations: 0 / 0.6821 GB, free: 9.742 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 2e-05/0.2604, allocations: 0 / 0.6821 GB, free: 9.742 MB / 0.5573 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.2626, allocations: 0.7747 MB / 0.6828 GB, free: 8.91 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.778e-05/0.2627, allocations: 12.02 kB / 0.6828 GB, free: 8.898 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00115/0.2638, allocations: 139 kB / 0.683 GB, free: 8.762 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009124/0.2648, allocations: 421.9 kB / 0.6834 GB, free: 8.309 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.36e-05/0.2649, allocations: 44.94 kB / 0.6834 GB, free: 8.266 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001506/0.265, allocations: 55.89 kB / 0.6835 GB, free: 8.211 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001899/0.2669, allocations: 0.6925 MB / 0.6841 GB, free: 7.484 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.161e-05/0.267, allocations: 0 / 0.6841 GB, free: 7.484 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.184e-05/0.2671, allocations: 23.98 kB / 0.6842 GB, free: 7.461 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001175/0.2672, allocations: 60.92 kB / 0.6842 GB, free: 7.402 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001844/0.2691, allocations: 0.5698 MB / 0.6848 GB, free: 6.832 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005471/0.2746, allocations: 2.893 MB / 0.6876 GB, free: 3.695 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001893/0.2765, allocations: 0.5639 MB / 0.6881 GB, free: 3.113 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006508/0.2772, allocations: 0.5668 MB / 0.6887 GB, free: 2.418 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001113/0.2783, allocations: 400.2 kB / 0.6891 GB, free: 2.008 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=46): time 3.657e-06/0.2783, allocations: 0 / 0.6891 GB, free: 2.008 MB / 0.5573 GB Notification: Performance of matching and sorting (n=46): time 0.002557/0.2809, allocations: 0.7471 MB / 0.6898 GB, free: 1.254 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.893e-05/0.281, allocations: 81.11 kB / 0.6899 GB, free: 1.156 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005603/0.2816, allocations: 316.7 kB / 0.6902 GB, free: 0.8438 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.000108/0.2817, allocations: 45.83 kB / 0.6902 GB, free: 0.793 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003003/0.282, allocations: 280.5 kB / 0.6905 GB, free: 0.5117 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002062/0.2822, allocations: 141.9 kB / 0.6906 GB, free: 380 kB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.304e-05/0.2823, allocations: 12 kB / 0.6906 GB, free: 368 kB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001722/0.2825, allocations: 358.8 kB / 0.691 GB, free: 0 / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008362/0.2833, allocations: 233 kB / 0.6912 GB, free: 15.77 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000982/0.2843, allocations: 358.6 kB / 0.6916 GB, free: 15.38 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008981/0.2852, allocations: 289.5 kB / 0.6918 GB, free: 15.09 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.789e-06/0.2853, allocations: 8 kB / 0.6918 GB, free: 15.08 MB / 0.573 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.00214/0.2874, allocations: 0.6795 MB / 0.6925 GB, free: 14.39 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006164/0.2881, allocations: 1.081 MB / 0.6936 GB, free: 13.22 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.118e-05/0.2881, allocations: 0 / 0.6936 GB, free: 13.22 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.883e-05/0.2881, allocations: 11.98 kB / 0.6936 GB, free: 13.21 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009978/0.2891, allocations: 107.8 kB / 0.6937 GB, free: 13.1 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.827e-05/0.2892, allocations: 7.953 kB / 0.6937 GB, free: 13.09 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008722/0.2901, allocations: 79.53 kB / 0.6938 GB, free: 13.02 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.36e-05/0.2902, allocations: 20 kB / 0.6938 GB, free: 13 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.206e-05/0.2902, allocations: 4 kB / 0.6938 GB, free: 12.99 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001834/0.292, allocations: 0.5717 MB / 0.6943 GB, free: 12.41 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.769e-06/0.2921, allocations: 4 kB / 0.6943 GB, free: 12.41 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.229e-05/0.2921, allocations: 4 kB / 0.6943 GB, free: 12.41 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000808/0.2929, allocations: 107.8 kB / 0.6944 GB, free: 12.3 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.391e-05/0.2929, allocations: 7.938 kB / 0.6945 GB, free: 12.29 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007509/0.2937, allocations: 75.77 kB / 0.6945 GB, free: 12.22 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.079e-05/0.2938, allocations: 16.11 kB / 0.6945 GB, free: 12.2 MB / 0.573 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.000479/0.2943, allocations: 222 kB / 0.6948 GB, free: 11.98 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001248/0.2944, allocations: 51.39 kB / 0.6948 GB, free: 11.93 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00188/0.2963, allocations: 0.5878 MB / 0.6954 GB, free: 11.34 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.698e-06/0.2963, allocations: 4 kB / 0.6954 GB, free: 11.33 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.2963, allocations: 4.312 kB / 0.6954 GB, free: 11.33 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.029e-05/0.2963, allocations: 3.984 kB / 0.6954 GB, free: 11.32 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0011/0.2975, allocations: 0.6219 MB / 0.696 GB, free: 10.65 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.87e-06/0.2975, allocations: 0 / 0.696 GB, free: 10.65 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001025/0.2985, allocations: 107.8 kB / 0.6961 GB, free: 10.55 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.514e-06/0.2985, allocations: 0 / 0.6961 GB, free: 10.55 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.348e-05/0.2986, allocations: 15.98 kB / 0.6961 GB, free: 10.53 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.564e-06/0.2986, allocations: 4 kB / 0.6961 GB, free: 10.53 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.2986, allocations: 0 / 0.6961 GB, free: 10.53 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002659/0.3013, allocations: 0.9073 MB / 0.697 GB, free: 9.594 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003475/0.3017, allocations: 176.5 kB / 0.6972 GB, free: 9.402 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001389/0.3018, allocations: 15.98 kB / 0.6972 GB, free: 9.387 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005947/0.3024, allocations: 39.95 kB / 0.6972 GB, free: 9.348 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001922/0.3026, allocations: 51.92 kB / 0.6973 GB, free: 9.297 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.92e-05/0.3027, allocations: 16 kB / 0.6973 GB, free: 9.281 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0004159/0.3031, allocations: 239.2 kB / 0.6975 GB, free: 9.047 MB / 0.573 GB Notification: Performance of sort global known variables: time 4.41e-07/0.3031, allocations: 0 / 0.6975 GB, free: 9.047 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.001085/0.3042, allocations: 263.1 kB / 0.6978 GB, free: 8.789 MB / 0.573 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 (47): * Single equations (assignments): 45 * 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.0002807/0.3045, allocations: 135.2 kB / 0.6979 GB, free: 8.648 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.002927/0.3075, allocations: 0.9853 MB / 0.6989 GB, free: 7.641 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/0.3075, allocations: 0 / 0.6989 GB, free: 7.641 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.001162/0.3087, allocations: 272.1 kB / 0.6991 GB, free: 7.375 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001306/0.31, allocations: 152.9 kB / 0.6993 GB, free: 7.23 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00313/0.3132, allocations: 1.257 MB / 0.7005 GB, free: 5.941 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006817/0.3139, allocations: 0.8995 MB / 0.7014 GB, free: 5.016 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.001068/0.315, allocations: 164.3 kB / 0.7015 GB, free: 4.855 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002419/0.3152, allocations: 47.42 kB / 0.7016 GB, free: 4.809 MB / 0.573 GB Notification: Performance of SimCode: time 1.232e-06/0.3152, allocations: 0 / 0.7016 GB, free: 4.809 MB / 0.573 GB Notification: Performance of Templates: time 0.02443/0.3397, allocations: 8.128 MB / 0.7095 GB, free: 12.77 MB / 0.5886 GB