The result of deterministic simulation is divergent

Dear all, I am trying to solve perfect foresight model, the shock happens just in the first period, but the result of output (y) goes quite strange, it becomes very large as time goes by, could anyone helps me? Thanks!
aa.mod (2.6 KB)

Are you sure the timing of the factor prices is correct? Why are r and w forward-looking?