By using the “-sv” switch, you are turning on the SV compiler for ALL files. By using the “-ams” switch, you are turning on the AMS compiler for ALL files. Since AMS does not support SV, this is a conflict.
The best way to use the “irun” command is to take advantage of automatic compiler selection by file name extension. You would name all your SV files with a “.sv” filename extension and all the Verilog AMS files with “.vams” extension. You would not need to specify the “-sv” or “-ams” switch and irun would pick the compiler based on the extension.
If you don’t want to rename the filename extensions, you would need to run “irun –compile –ams” on just the Verilog AMS files and then run “irun –compile –sv” on just the SV files. Then you can run “irun –c” and “irun –R” to elaborate and simulate.