Check options for the linear solver, casADi and libraries like openBLAS for multithreading parameters during compilation and see if they make a difference, maybe even by solving a larger optimization problem to test multlthreading.
HSL has a NUM_THREADS compile options it seems, casadi has -DWITH_THREAD=ON and others, openBLAS has env variables and compile-time options.
Check options for the linear solver, casADi and libraries like openBLAS for multithreading parameters during compilation and see if they make a difference, maybe even by solving a larger optimization problem to test multlthreading.
HSL has a
NUM_THREADS
compile options it seems, casadi has-DWITH_THREAD=ON
and others, openBLAS has env variables and compile-time options.