You can remember the meaning of 一模一样 with this easy mnemonic:
You two act exactly the same, it's like you are made out of one (一) mold (模), and each one (一) of you acts exactly the same way (样) as the other.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.