Initial value NaN although initval block used

See

In your case pibar in Rbar = pibar/beta; was not defined.