Analysis of flexible manufacturing systems