Log messages in SQPMethod
Simplification in if_else
Removed MPI linking for SWIG