Real-Time Model Predictive Control and System Identification Using Differentiable Simulation