removed constant pointers in case of external models (from CasADi)