Computer aided analysis of mechanical systems