not sure what you are trying to test, but there must be many papers which used codeml to analyze paralogous genes. one possible analysis is use a big tree for all the orthologues and paralogues, and then identify branches right after gene duplication and test whether functional divergence accelerated amino acid changes after gene duplication.
perhaps you can glance over this old paper and see whether there is anything relevant:
Bielawski JP, Yang Z. 2003. Maximum likelihood methods for detecting adaptive evolution after gene duplication. J Struct Funct Genomics 3:201-212.
ziheng