Rachin Ravindra and Kane Williamson ground out unbeaten centuries as New Zealand punished a second-string South Africa on the opening day of the first Test at Mount Maunganui on Sunday.