First of all, did you check your errorlog to see if the game gave you any hints about something being wrong in your raws?
I don't think the caste/select caste tokens work the way you think they do. You have: [CASTE:HUMANBASIC]
[SELECT_CASTE:HUMAN_MALE]
[SELECT_ADDITIONAL_CASTE:HUMAN_FEMALE]
What this does is create a caste - HUMANBASIC. Anything after that will modify the HUMANBASIC caste... except that your next line chooses a NEW caste to modify. The second line says "Forget about HUMANBASIC, now we're going to talk about HUMAN_MALE caste." The third line adds HUMAN_FEMALE to the list of castes you're talking about, which is fine. However, I get the impression you wanted to nestle castes, as in HUMAN_MALE and HUMAN_FEMALE are part of HUMANBASIC, but you can't do that.
I am not sure about this, but SELECT_CASTE says it loads up a previously defined caste, and you don't define HUMAN_MALE and HUMAN_FEMALE until later in the file. May want to move those up to above that point.
You do a similar thing later with [CASTE:ELFBASIC]
[SELECT_CASTE:ELF_MALE]
[SELECT_CASTE:ELF_FEMALE]
Same issues as above, but this time also note you used SELECT_CASTE twice instead of SELECT_CASTE and then SELECT_ADDITIONAL_CASTE.