Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") Notification: Performance of loadModel(Buildings): time 4.564/4.564, allocations: 458.9 MB / 473.4 MB, free: 11.87 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.505e-05/3.508e-05, allocations: 3.344 kB / 0.5697 GB, free: 9.789 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2345/0.2345, allocations: 106.2 MB / 0.6734 GB, free: 2.586 MB / 0.5417 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery): time 0.009716/0.2443, allocations: 5.2 MB / 0.6785 GB, free: 13.36 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.004933/0.2493, allocations: 1.95 MB / 0.6804 GB, free: 11.4 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000462/0.2498, allocations: 16 kB / 0.6804 GB, free: 11.39 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.0002787/0.2501, allocations: 63.48 kB / 0.6805 GB, free: 11.32 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0008851/0.251, allocations: 223.2 kB / 0.6807 GB, free: 11.11 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.001127/0.2522, allocations: 275.3 kB / 0.681 GB, free: 10.84 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0009842/0.2532, allocations: 407.1 kB / 0.6814 GB, free: 10.44 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001726/0.2549, allocations: 0.6541 MB / 0.682 GB, free: 9.746 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004969/0.2554, allocations: 187.5 kB / 0.6822 GB, free: 9.562 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005528/0.256, allocations: 219.2 kB / 0.6824 GB, free: 9.348 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005836/0.2566, allocations: 171.8 kB / 0.6826 GB, free: 9.18 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 0.0001285/0.2568, allocations: 23.94 kB / 0.6826 GB, free: 9.156 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.000208/0.257, allocations: 131.6 kB / 0.6827 GB, free: 9.027 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.0001867/0.2572, allocations: 44 kB / 0.6827 GB, free: 8.984 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.001297/0.2585, allocations: 0.7327 MB / 0.6835 GB, free: 8.25 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.2585, allocations: 0 / 0.6835 GB, free: 8.25 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.835e-06/0.2585, allocations: 4 kB / 0.6835 GB, free: 8.246 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 1.986e-05/0.2586, allocations: 4 kB / 0.6835 GB, free: 8.242 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.002363/0.2609, allocations: 0.7746 MB / 0.6842 GB, free: 7.41 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.978e-05/0.261, allocations: 12.03 kB / 0.6842 GB, free: 7.398 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00121/0.2622, allocations: 139.1 kB / 0.6844 GB, free: 7.262 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009922/0.2633, allocations: 421.9 kB / 0.6848 GB, free: 6.809 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.542e-05/0.2634, allocations: 40.98 kB / 0.6848 GB, free: 6.77 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001457/0.2635, allocations: 44 kB / 0.6849 GB, free: 6.727 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001977/0.2655, allocations: 0.6887 MB / 0.6855 GB, free: 6.004 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.679e-05/0.2656, allocations: 3.938 kB / 0.6855 GB, free: 6 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.645e-05/0.2657, allocations: 27.92 kB / 0.6856 GB, free: 5.973 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000124/0.2658, allocations: 56.91 kB / 0.6856 GB, free: 5.918 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001947/0.2678, allocations: 0.5699 MB / 0.6862 GB, free: 5.348 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005888/0.2737, allocations: 2.908 MB / 0.689 GB, free: 2.195 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00186/0.2756, allocations: 0.5622 MB / 0.6896 GB, free: 1.617 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007443/0.2764, allocations: 0.5629 MB / 0.6901 GB, free: 0.9258 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001162/0.2776, allocations: 400.1 kB / 0.6905 GB, free: 0.5156 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=46): time 3.526e-06/0.2776, allocations: 0 / 0.6905 GB, free: 0.5156 MB / 0.5573 GB Notification: Performance of matching and sorting (n=46): time 0.002632/0.2802, allocations: 0.7434 MB / 0.6912 GB, free: 15.77 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.915e-05/0.2804, allocations: 89.05 kB / 0.6913 GB, free: 15.66 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005458/0.2809, allocations: 308.7 kB / 0.6916 GB, free: 15.36 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001046/0.2811, allocations: 45.69 kB / 0.6916 GB, free: 15.3 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003045/0.2814, allocations: 280.5 kB / 0.6919 GB, free: 15.02 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002085/0.2816, allocations: 158 kB / 0.6921 GB, free: 14.87 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.146e-05/0.2817, allocations: 8 kB / 0.6921 GB, free: 14.86 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001932/0.2819, allocations: 354.8 kB / 0.6924 GB, free: 14.5 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008111/0.2827, allocations: 233 kB / 0.6926 GB, free: 14.27 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009376/0.2836, allocations: 358.7 kB / 0.693 GB, free: 13.88 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000997/0.2847, allocations: 293.4 kB / 0.6932 GB, free: 13.59 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.997e-06/0.2847, allocations: 0 / 0.6932 GB, free: 13.59 MB / 0.573 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002132/0.2868, allocations: 0.6833 MB / 0.6939 GB, free: 12.89 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005623/0.2874, allocations: 1.077 MB / 0.695 GB, free: 11.73 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.452e-05/0.2875, allocations: 4 kB / 0.695 GB, free: 11.72 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.464e-05/0.2875, allocations: 4 kB / 0.695 GB, free: 11.72 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001012/0.2885, allocations: 111.8 kB / 0.6951 GB, free: 11.61 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.824e-05/0.2886, allocations: 15.89 kB / 0.6951 GB, free: 11.59 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008666/0.2894, allocations: 67.64 kB / 0.6952 GB, free: 11.53 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.762e-05/0.2895, allocations: 23.98 kB / 0.6952 GB, free: 11.5 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.281e-05/0.2896, allocations: 4 kB / 0.6952 GB, free: 11.5 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001807/0.2914, allocations: 0.5759 MB / 0.6957 GB, free: 10.92 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.2914, allocations: 4 kB / 0.6957 GB, free: 10.91 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.257e-05/0.2914, allocations: 4 kB / 0.6958 GB, free: 10.91 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008304/0.2923, allocations: 107.8 kB / 0.6959 GB, free: 10.8 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.429e-05/0.2923, allocations: 4 kB / 0.6959 GB, free: 10.8 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007606/0.2931, allocations: 71.48 kB / 0.6959 GB, free: 10.73 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.054e-05/0.2932, allocations: 24.17 kB / 0.696 GB, free: 10.71 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.000518/0.2937, allocations: 219.9 kB / 0.6962 GB, free: 10.48 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001444/0.2938, allocations: 55.38 kB / 0.6962 GB, free: 10.43 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001937/0.2958, allocations: 0.5839 MB / 0.6968 GB, free: 9.84 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-05/0.2958, allocations: 8.109 kB / 0.6968 GB, free: 9.832 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.445e-06/0.2959, allocations: 3.938 kB / 0.6968 GB, free: 9.828 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.306e-05/0.2959, allocations: 3.984 kB / 0.6968 GB, free: 9.824 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001195/0.2971, allocations: 0.618 MB / 0.6974 GB, free: 9.156 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.2971, allocations: 0 / 0.6974 GB, free: 9.156 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001044/0.2982, allocations: 103.8 kB / 0.6975 GB, free: 9.055 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.245e-05/0.2982, allocations: 4 kB / 0.6975 GB, free: 9.051 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.568e-05/0.2983, allocations: 11.98 kB / 0.6975 GB, free: 9.039 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.621e-06/0.2983, allocations: 4 kB / 0.6975 GB, free: 9.035 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.2983, allocations: 0 / 0.6975 GB, free: 9.035 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002687/0.301, allocations: 0.9073 MB / 0.6984 GB, free: 8.102 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003474/0.3014, allocations: 168.6 kB / 0.6986 GB, free: 7.918 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001381/0.3015, allocations: 15.98 kB / 0.6986 GB, free: 7.902 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005957/0.3022, allocations: 39.95 kB / 0.6986 GB, free: 7.863 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001932/0.3024, allocations: 47.92 kB / 0.6987 GB, free: 7.816 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.784e-05/0.3024, allocations: 16.19 kB / 0.6987 GB, free: 7.801 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0004096/0.3029, allocations: 243.2 kB / 0.6989 GB, free: 7.562 MB / 0.573 GB Notification: Performance of sort global known variables: time 4.3e-07/0.3029, allocations: 0 / 0.6989 GB, free: 7.562 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.001112/0.304, allocations: 263.1 kB / 0.6992 GB, free: 7.305 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.0003007/0.3043, allocations: 135.2 kB / 0.6993 GB, free: 7.164 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.002889/0.3072, allocations: 0.9815 MB / 0.7003 GB, free: 6.16 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 8.496e-06/0.3073, allocations: 8.125 kB / 0.7003 GB, free: 6.152 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0009294/0.3082, allocations: 276 kB / 0.7005 GB, free: 5.883 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00132/0.3096, allocations: 157.9 kB / 0.7007 GB, free: 5.734 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0033/0.3129, allocations: 1.249 MB / 0.7019 GB, free: 4.453 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007397/0.3137, allocations: 0.915 MB / 0.7028 GB, free: 3.512 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.001111/0.3148, allocations: 156.2 kB / 0.7029 GB, free: 3.359 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000266/0.3151, allocations: 39.42 kB / 0.703 GB, free: 3.32 MB / 0.573 GB Notification: Performance of SimCode: time 1.002e-06/0.3151, allocations: 0 / 0.703 GB, free: 3.32 MB / 0.573 GB Notification: Performance of Templates: time 0.03484/0.35, allocations: 8.129 MB / 0.7109 GB, free: 11.28 MB / 0.5886 GB