Dominic Thiem advanced to the quarter finals of Apia International Sydney in Australia after a three-set victory over qualifier Gastao Elias.