First I checked all the new modules I made. The only difference between the pre-existing modules is I didn't text-label the ports names. Then I labeled them, but no improvement.
Second, I recreated the modules in CppSimModule library instead of building somewhere else and moving to above libary. However, it didn't work either. the same error message occured no matter which schematics I simulated.
Finally, I removed the original module files in my own library. This time it works! But another error occured. You have to add semicolon';' at the end of the each sentence in "code" segment of module.par.