Recently, the number of Battery Energy Systems (BESs) connected to the grid has grown significantly. These assets can alleviate some operational issues such as demand surges and occasional power fluctuations associated with the Renewable Energy Sources (RESs) connected to the grid. Nonetheless, both overcharging and frequent usage severely affect their health status and shorten their life expectancy. In this paper, an Energy Management System (EMS) framework with a linearised algorithm and in-depth analysis on BES life extension is presented, which optimises the techno-economic aspects of an Active Distribution Network (ADN) connected to RESs. By applying a mathematical linearisation formulation, a Mixed-Integer Linear Programming (MILP) model is proposed for linearising the Optimal Power Flow (OPF) problem. This technique, which has the merit of fair accuracy while having high speed, is used for scheduling BESs to increase their durability and decrease grid costs. To consider the inherent uncertainty associated with demand and RES generation, a two-stage Stochastic Programming (SP) method is implemented in the proposed model. In terms of battery Loss of Health (LoH) assessment, a linearised battery lifetime method is introduced. Ultimately, a modified 33-bus radial distribution test system with a day-ahead Real-Time Pricing (RTP) program was chosen to apply the proposed algorithm and assess its efficiency.INDEX TERMS Energy management system (EMS), optimal power flow (OPF), linearised AC-OPF, battery scheduling, battery degradation, rain-flow cycle counting, day-ahead pricing. NOMENCLATURE A. INDICES & SETS C BES bat Purchasing cost of bat energy storage system [$]. λ Piecewise linearisation segments for linearising AC-OPF model [-]. p ω Probability of scenario ω [-].C. BINARY VARIABLES q ij,t,ω Line power exchange between bus i and j [-].