Running command: translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Electrical.DC.Storage.Examples.Battery") Notification: Performance of loadModel(Buildings): time 4.695/4.695, allocations: 458.9 MB / 473.4 MB, free: 11.87 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.121e-05/3.114e-05, allocations: 3.125 kB / 0.5697 GB, free: 9.812 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.26/0.26, allocations: 106.2 MB / 0.6734 GB, free: 2.609 MB / 0.5417 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Storage.Examples.Battery): time 0.008742/0.2688, allocations: 3.629 MB / 0.677 GB, free: 14.96 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.00566/0.2745, allocations: 1.766 MB / 0.6787 GB, free: 13.18 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006092/0.2752, allocations: 27.88 kB / 0.6787 GB, free: 13.16 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.000379/0.2756, allocations: 83.28 kB / 0.6788 GB, free: 13.07 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0007816/0.2764, allocations: 147.4 kB / 0.679 GB, free: 12.93 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.001588/0.278, allocations: 303.5 kB / 0.6792 GB, free: 12.63 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.001559/0.2796, allocations: 499.9 kB / 0.6797 GB, free: 12.14 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001688/0.2813, allocations: 0.7314 MB / 0.6804 GB, free: 11.37 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000492/0.2818, allocations: 199.5 kB / 0.6806 GB, free: 11.18 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006826/0.2825, allocations: 235.1 kB / 0.6808 GB, free: 10.95 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004384/0.283, allocations: 91.81 kB / 0.6809 GB, free: 10.86 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 0.0001455/0.2832, allocations: 24 kB / 0.681 GB, free: 10.83 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.000294/0.2835, allocations: 155.5 kB / 0.6811 GB, free: 10.68 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.0002123/0.2837, allocations: 48 kB / 0.6812 GB, free: 10.63 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.001498/0.2852, allocations: 0.6393 MB / 0.6818 GB, free: 9.992 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.2853, allocations: 4 kB / 0.6818 GB, free: 9.988 MB / 0.5573 GB Notification: Performance of FrontEnd: time 3.226e-06/0.2853, allocations: 0 / 0.6818 GB, free: 9.988 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 2.555e-05/0.2853, allocations: 0 / 0.6818 GB, free: 9.988 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: 191 * Number of variables: 191 Notification: Performance of Generate backend data structure: time 0.002341/0.2877, allocations: 0.7701 MB / 0.6825 GB, free: 9.168 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.367e-05/0.2877, allocations: 8.031 kB / 0.6825 GB, free: 9.16 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001123/0.2889, allocations: 131 kB / 0.6827 GB, free: 9.031 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001156/0.29, allocations: 423.7 kB / 0.6831 GB, free: 8.578 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001273/0.2902, allocations: 65.92 kB / 0.6831 GB, free: 8.512 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002411/0.2904, allocations: 80 kB / 0.6832 GB, free: 8.434 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002845/0.2933, allocations: 0.8664 MB / 0.6841 GB, free: 7.508 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.096e-05/0.2934, allocations: 3.953 kB / 0.6841 GB, free: 7.504 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001454/0.2935, allocations: 36 kB / 0.6841 GB, free: 7.469 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001368/0.2937, allocations: 45.92 kB / 0.6841 GB, free: 7.422 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002268/0.296, allocations: 0.5659 MB / 0.6847 GB, free: 6.855 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01156/0.3076, allocations: 3.716 MB / 0.6883 GB, free: 2.926 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001369/0.309, allocations: 308.3 kB / 0.6886 GB, free: 2.617 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 7.518e-05/0.3091, allocations: 8.359 kB / 0.6886 GB, free: 2.609 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008776/0.31, allocations: 229.3 kB / 0.6888 GB, free: 2.375 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=47): time 4.588e-06/0.31, allocations: 0 / 0.6888 GB, free: 2.375 MB / 0.5573 GB Notification: Performance of matching and sorting (n=47): time 0.002053/0.3121, allocations: 450.5 kB / 0.6893 GB, free: 1.93 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.845e-05/0.3122, allocations: 63.83 kB / 0.6893 GB, free: 1.855 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009105/0.3131, allocations: 372.3 kB / 0.6897 GB, free: 1.488 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001496/0.3133, allocations: 49.69 kB / 0.6897 GB, free: 1.434 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004746/0.3138, allocations: 339.5 kB / 0.6901 GB, free: 1.098 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002399/0.314, allocations: 130.3 kB / 0.6902 GB, free: 0.9688 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.798e-05/0.3141, allocations: 16 kB / 0.6902 GB, free: 0.9531 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002396/0.3144, allocations: 362.8 kB / 0.6905 GB, free: 0.5898 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007631/0.3152, allocations: 161.9 kB / 0.6907 GB, free: 440 kB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001024/0.3162, allocations: 379.6 kB / 0.6911 GB, free: 15.96 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008306/0.3171, allocations: 198 kB / 0.6912 GB, free: 15.77 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.641e-05/0.3171, allocations: 4 kB / 0.6912 GB, free: 15.77 MB / 0.573 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002339/0.3195, allocations: 0.5879 MB / 0.6918 GB, free: 15.17 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001503/0.321, allocations: 2.705 MB / 0.6945 GB, free: 12.25 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.289e-05/0.3211, allocations: 8 kB / 0.6945 GB, free: 12.25 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.879e-05/0.3212, allocations: 12 kB / 0.6945 GB, free: 12.23 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001079/0.3223, allocations: 103.8 kB / 0.6946 GB, free: 12.13 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.452e-05/0.3223, allocations: 27.88 kB / 0.6946 GB, free: 12.11 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009123/0.3233, allocations: 83.11 kB / 0.6947 GB, free: 12.02 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001147/0.3234, allocations: 32 kB / 0.6947 GB, free: 11.99 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.731e-05/0.3234, allocations: 4 kB / 0.6947 GB, free: 11.99 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002087/0.3255, allocations: 0.5171 MB / 0.6952 GB, free: 11.47 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.904e-05/0.3256, allocations: 12.03 kB / 0.6952 GB, free: 11.46 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.889e-05/0.3256, allocations: 12 kB / 0.6953 GB, free: 11.45 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009638/0.3266, allocations: 103.8 kB / 0.6954 GB, free: 11.35 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.213e-05/0.3267, allocations: 11.94 kB / 0.6954 GB, free: 11.34 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000854/0.3275, allocations: 71.36 kB / 0.6954 GB, free: 11.27 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001131/0.3277, allocations: 35.98 kB / 0.6955 GB, free: 11.23 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 48 ($PRE.toOn.enableFire,$PRE.toHold.enableFire,$PRE.toDischarge.enableFire,$PRE.toOff.enableFire,$whenCondition1,$PRE.bat.cha.underCharged,bat.cha.underCharged,$PRE.bat.cha.overCharged,bat.cha.overCharged,off.active,$PRE.off.localActive,off.localActive,$PRE.off.newActive,off.newActive,$PRE.off.oldActive,off.oldActive,toOn.condition,toOn.enableFire,$PRE.charge.localActive,charge.localActive,$PRE.charge.newActive,charge.newActive,$PRE.charge.oldActive,charge.oldActive,charge.active,toHold.condition,toHold.enableFire,hold.active,$PRE.hold.localActive,hold.localActive,$PRE.hold.newActive,hold.newActive,$PRE.hold.oldActive,hold.oldActive,toDischarge.condition,toDischarge.enableFire,$PRE.discharge.localActive,discharge.localActive,$PRE.discharge.newActive,discharge.newActive,$PRE.discharge.oldActive,discharge.oldActive,discharge.active,toOff.condition,toOff.enableFire,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (92): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * 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.0007345/0.3284, allocations: 245.5 kB / 0.6957 GB, free: 10.98 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001715/0.3286, allocations: 47.39 kB / 0.6957 GB, free: 10.93 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001718/0.3303, allocations: 397.5 kB / 0.6961 GB, free: 10.54 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.577e-05/0.3304, allocations: 4 kB / 0.6961 GB, free: 10.54 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.016e-05/0.3304, allocations: 0 / 0.6961 GB, free: 10.54 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.628e-05/0.3305, allocations: 3.984 kB / 0.6961 GB, free: 10.53 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003938/0.3344, allocations: 1.075 MB / 0.6972 GB, free: 9.391 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.227e-06/0.3345, allocations: 0 / 0.6972 GB, free: 9.391 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006944/0.3352, allocations: 43.91 kB / 0.6972 GB, free: 9.348 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-05/0.3352, allocations: 4 kB / 0.6972 GB, free: 9.344 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.396e-05/0.3353, allocations: 12 kB / 0.6972 GB, free: 9.332 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.73e-05/0.3354, allocations: 7.938 kB / 0.6972 GB, free: 9.324 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.3354, allocations: 0 / 0.6972 GB, free: 9.324 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002314/0.3377, allocations: 0.6642 MB / 0.6979 GB, free: 8.625 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004137/0.3382, allocations: 152.4 kB / 0.698 GB, free: 8.457 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001601/0.3384, allocations: 15.98 kB / 0.6981 GB, free: 8.441 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005029/0.3389, allocations: 19.95 kB / 0.6981 GB, free: 8.422 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002702/0.3392, allocations: 48.42 kB / 0.6981 GB, free: 8.375 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.213e-05/0.3393, allocations: 15.94 kB / 0.6981 GB, free: 8.359 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0006111/0.3399, allocations: 255.2 kB / 0.6984 GB, free: 8.109 MB / 0.573 GB Notification: Performance of sort global known variables: time 3.566e-06/0.3399, allocations: 0 / 0.6984 GB, free: 8.109 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.001845/0.3418, allocations: 282.8 kB / 0.6986 GB, free: 7.832 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (bat.cha.SOC) * Number of discrete variables: 32 (off.localActive,charge.localActive,hold.localActive,discharge.localActive,$cse1,$cse2,$cse3,$cse4,$whenCondition1,bat.cha.underCharged,bat.cha.overCharged,off.active,off.newActive,off.oldActive,toOn.condition,toOn.enableFire,charge.newActive,charge.oldActive,charge.active,toHold.condition,toHold.enableFire,hold.active,hold.newActive,hold.oldActive,toDischarge.condition,toDischarge.enableFire,discharge.newActive,discharge.oldActive,discharge.active,toOff.condition,toOff.enableFire,stateGraphRoot.activeSteps) * Number of discrete states: 6 (discharge.newActive,hold.newActive,charge.newActive,off.newActive,bat.cha.underCharged,bat.cha.overCharged) * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0003379/0.3421, allocations: 129.4 kB / 0.6988 GB, free: 7.695 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.002826/0.345, allocations: 0.7285 MB / 0.6995 GB, free: 6.973 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 5.07e-06/0.345, allocations: 3.938 kB / 0.6995 GB, free: 6.969 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0007174/0.3458, allocations: 190.4 kB / 0.6997 GB, free: 6.777 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001183/0.347, allocations: 89.67 kB / 0.6998 GB, free: 6.691 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003634/0.3506, allocations: 1.177 MB / 0.7009 GB, free: 5.48 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008761/0.3515, allocations: 0.9272 MB / 0.7018 GB, free: 4.527 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.001216/0.3528, allocations: 132.7 kB / 0.7019 GB, free: 4.398 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002929/0.3531, allocations: 43.42 kB / 0.702 GB, free: 4.355 MB / 0.573 GB Notification: Performance of SimCode: time 1.402e-06/0.3531, allocations: 3.938 kB / 0.702 GB, free: 4.352 MB / 0.573 GB Notification: Performance of Templates: time 0.02721/0.3803, allocations: 5.83 MB / 0.7077 GB, free: 14.56 MB / 0.5886 GB