Automatically Generated Dynamic Equivalents for RTDS Applications