Fernando Alonso and teammate Lance Stroll both retired from the Melbourne race after problems with the power unit limited the amount of laps the drivers could complete.