we have implemented an external delay function in C and we want to recall it in our Modelica model (transmission line). our goal is to accelerate the CPU time. unfortunately, it increased the CPU time.
My questions are:
Does calling the external function principally increase the simulation time in Modelica compared to the existing built-in delay?
Does use an external object in OpenModelica significantly increase the simulation time?
How to compile only our external function with Open MP (how we can add -fopenmp flag only for external function)? The following error (see the bekow Fig) was created when we did not use the above flag (as shown below figure), but using the flag from the beginning of compilation, made the simulation time longer while we have expected a shorter simulation time. PS: our function is compiled as a library in which we have included the -fopenmp flag.
