Help with RANK Condition not being satisfied

Now I see what you mean with predetermined risk-free rate. Indeed your timing for the risk-free rate in the model looks wrong.
The underlying reason why the wrong timing makes the model run might be the same as in [Timing of capital in two sector economy)