I am replicating CEE(2005) Nominal Rigidities and the Dynamic Effects of a Shock to Monetary Policy. And my derivations are the same as CEE’s, but I cannot use dynare to solve the model well.
I tried to solve the model in 2 ways:

CEE2005.mod (3.3 KB) do the log linear, and my results of log linear are totally the same as CEE’s, but the dynare code cannot run whether I lagged or not all stock variables just like k and kh in my code. The issue is shown as below.
There are 9 eigenvalue(s) larger than 1 in modulus
for 8 forwardlooking variable(s)
The rank condition ISN’T verified!

CEE2005exp.mod (5.4 KB) use the loglevel to solve the model, so that all variables in dynare code become exp(.). but there were issues of 29 equations.( there are 30 equations in total).
ERROR: If the model is declared linear the second derivatives must be equal to zero.
The following equations had nonzero second derivatives:
* Eq # 1 [70 mc]
* Eq # 2 [71 rk]
* Eq # 3 [72 inflation]
* Eq # 4 [73 kh accumulation]
* Eq # 5 [74 consumption Euler]
* Eq # 6 [75 R]
* Eq # 7 [76 q]
* Eq # 8 [77 Pk]
* Eq # 9 [78 pk&i]
* Eq # 10 [79 rk&k]
* Eq # 11 [80 resource]
* Eq # 12 [81 Loan Market]
* Eq # 13 [82 Money growth]
* Eq # 14 [83 Y]
* Eq # 15 [84 money policy]
* Eq # 16 [85]
* Eq # 17 [86]
* Eq # 18 [87 ]
* Eq # 19 [88 B1]
* Eq # 20 [89 B2]
* Eq # 21 [90]
* Eq # 22 [91 hjL]
* Eq # 23 [92 ]
* Eq # 24 [93 pstar]
* Eq # 25 [94 wstar]
* Eq # 26 [95]
* Eq # 27 [96 ]
* Eq # 28 [97 ]
* Eq # 29 [98 ]
Then, I do not know how to solve the model with dynare.
I hope someone knows which faults I made.
Thanks in advance for your kind help.