Analyses of mode partition and mode hopping in semiconductor lasers