From Am−1 trigonometric S-matrices to the thermodynamic Bethe Ansatz