Writing to CSV files and plotting are getting slower in every run

Yes, you’ll need to confirm this is the issue,
but it seems that your Warning message points to this SOLN >>
MKL+PyPlot

Error: .. Warning: both Julia and NumPy are linked with MKL, which may cause conflicts and crashes (#433).
└ @ PyCall .. .julia\packages\PyCall\ .. \src\numpy.jl

The kernel appears to have died. It will restart automatically.

And the real underlying problem seems to possibly be that essentially julia recompiles mkl from source per this >>

Is it possible to link julia to mkl without recompiling from source?

NOTE Julia uses OpenBLAS, and MATLAB (& Python ?) uses MKL.
The easiest way to use Julia is probably here >>

… So IF you confirm you actually ARE recompiling MKL over and over (Ugh :grimacing: ) ;
At a Birds Eye View it Appears your bottom line options may be :
– add OpenBLAS and then using OpenBLAS , and confirm reconfiguration has stopped Julia calling MKL to stop recompiling MKL etc.
– add Plots and then using Plots , Ditch PyPlot PyCall to stop recompiling MKL