Simulating MOSFET equations with ModelingToolkit

Is there a reason why you commented out the index lowering? @shashi @YingboMa you might want to take a look at making this into the tutorial we were discussing. The key might be missing the simple alias elimination?

A differential algebraic equation (DAE) is a differential equation which mixes in algebraic equations. A purely algebraic system is a NonlinearSystem, and a purely differential equation is an index-0 DAE. So indeed you can think of a DAE as an ODE with algebraic loops.

Right now MTK always targets ODEProblem and thus needs to use the methods for mass matrices:

https://diffeq.sciml.ai/stable/solvers/dae_solve/#OrdinaryDiffEq.jl-(Mass-Matrix)

But that should change soon.