Macdonald identities and Euclidean Lie algebras