I believe that the factors of two in the expression for tau(4:6) are errors in version 8.4. The Cauchy stresses are stored in Voigt notation so, for example, sig(4) = sigma_{12} NOT = 2*sigma_{12} [note, the Berkeley ordering for entries 4:6]. The expressions in version 8.4 are giving incorrect factors of two in the shear stresses.
If you are using 8.4, you should delete the *2.d0 on tau(4:6).