Real-time Model Predictive Control and System Identification Using Differentiable Physics Simulation