newCppModel function

Create a new C++ model object with parameters