thanks for that simplified code. it cleared all problems.
Just one problem remains, when I try the ma27 solver, I get the error: (but the collocation works with "max iteration" option.
Exception message: Selected linear solver MA27 not available.
Tried to obtain MA27 from shared library "libhsl.so", but the following error occured:
libhsl.so: cannot open shared object file: No such file or directory