modify generation script program for concurrence more than 2 subtasks.

test complete.