You have to only remove
Specifies not to optimize the input class files. By default, optimization is enabled; all methods are optimized at a bytecode level.
Specifies the optimizations to be enabled and disabled, at a more fine-grained level. Only applicable when optimizing. This is an expert option.
So basically you cannot use both these options together as -optimizations option is only applicable when you are optimizing.
Example: If you use
-optimizations "!foobar,*bar", it matches all names ending with bar, except foobar.
For more info check here https://stuff.mit.edu/afs/sipb/project/android/sdk/android-sdk-linux/tools/proguard/docs/index.html#manual/usage.html