Permanent Shock in deterministic model

That is only true if your model does not feature forward-looking variables. You did not instruct the code to end in the terminal steady state. For that to be the case, you need to set not only the exogenous variables, but also the other variables. As documented, you need to put steady after endval-block. However, your steady_state file is not correct. You set
z_shock=0.34456;
but that is not correct. The model equation is
z_shock=z_L+epsilon;
so the file must work for any value of epsilon provided in the input exo to the steady state file.