Using optimization parameters in ModelingToolkit

@YingboMa this looks like a bug?