Ramsey Optimal Policy

I have a linear model and when I try to run ramsey with a linear planner objective function, it crashes.
This is while there is no problem when I use a quadratic function as the planner objective.
Would you mind advising me if there is any way to solve this problem.
The error I get is:
Some element of Newton direction isn't finite. Jacobian maybe singular or there is a
problem with initial values
Thank you
This is while there is no problem when I use a quadratic function as the planner objective.
Would you mind advising me if there is any way to solve this problem.
The error I get is:
Some element of Newton direction isn't finite. Jacobian maybe singular or there is a
problem with initial values
Thank you