Problem with some values of Steady State

The following file works on my machine:
rams2.mod (6.7 KB)
You cannot call resid or steady before defining the planner_objective and planner_discount.