unloadAllModels frees memory by unloading all loaded models from COPASI.

unloadAllModels()