Ernesto Valverde to be confirmed as new coach.
Reigning champion beat Francesca Schiavone 6-2, 6-4.
He held off Brazil's three-time winner Helio Castroneves in a dramatic climax.
Two died at the stadium as the game was getting under way.
Totti made his 619th and final Serie A appearance of 785 in total.