OptOutputs function

Prepare outputs to export after the model optimization