Tomic looked in pain at different stages of his match.