Stochastic thermodynamics of nonharmonic oscillators in high vacuum.