Autonomous driving and electrification make over-actuation technologies more feasible and advantageous. Integrating autonomous driving with over-actuation allows for the effective use of their respective strengths, e.g., for studying energy and time optimal control. To model AVs, several vehicle coordinate systems have been used, e.g., Cartesian, Frenet and spatial coordinates. The present study aims to achieve energy and time optimal control of autonomous vehicles by using Frenet frame modelling and over-actuation. This study enhances the existing Frenet-based modeling by incorporating double-track dynamic vehicle models and torque vectoring. The problem is formulated in an optimal control framework, with carefully designed cost function terms and constraints. Two control strategies are examined, one for minimising travel time and the other for jointly optimising energy consumption and travel time. The results indicate that by considering both energy and time in the formulation, the energy consumption can be apparently reduced while the travel time is merely slightly increased.