Error when simulating spice model in OrCAD PSpice
A guess is that it might refer to the (analog) on this line:  

 .SUBCKT TS522 1 3 2 4 5 (analog)


Try removing that and see if it works.

Checking further down, there is also a problem on this line:

 E1 50 40 51 0 1 E2 40 39 52 0 1


It should be:

 E1 50 40 51 0 1 
 E2 40 39 52 0 1


I just tried it in LTSpice with these two changes and it doesn't complain.