Nested optimization - matrix multiplication and internal functions

As usual, please give the complete error message, in a Markdown code block (with ```julia-repl), instead of a screenshot. See the PSA for more such advice: