How to use FMU export function?

One can only export FMU’s for Atomic subsystems. See the PLECS documentation on Exporting FMU’s and a related post in the PLECS Knowledge Base.