Elon Musk repeatedly described OpenAI as a charity and testified that Altman and Brockman reneged on an initial promise to keep the nonprofit model.