Transport electrification represents one of the key aspects of achieving carbon neutrality. Despite the decreasing price of electric vehicles, the transition to electric vehicles is progressing relatively slowly. The main reasons delaying transport electrification are associated with the long charging time of electric vehicles, limited charging infrastructure, along the so-called range anxiety manifesting itself in driver's uncertainty on whether the vehicle can reach the target destination successfully. Energy consumption prediction plays an important role in reducing range anxiety by providing the driver an accurate estimate of the remaining range. This paper presents a MATLAB/Simulink model for the energy consumption prediction of electric vehicles on a designated route. The developed model is a physical model relying on longitudinal vehicle dynamics which can be easily personalized according to different models of electric vehicles. The developed model is tested on a standard FTP75 driving cycle using the available data on Tesla Model S.