Trying SymPy common subexpression elimination to simplify complex models.
Fixed SymPy cse bugs