Forrtl: severe (38): error during write, unit -1 file CONOUT$

41 views (last 30 days)
I created the model in 2020. It was compiled and ran successfully. I was able to compile this model successfully with MATLAB 2024b and 2025a but error occured during runtime.
  4 Comments
Tuan
Tuan on 12 Dec 2025
There is 637GB free. Where should I add FLUSH_FILE_BUFFERS=.FALSE ?
Walter Roberson
Walter Roberson on 12 Dec 2025
I am finding hints that FLUSH_FILE_BUFFERS might only apply to Fire Dynamics Simulation (FDS) programs.

Sign in to comment.

Accepted Answer

Tuan
Tuan on 10 Feb 2026 at 18:56
Moved: Walter Roberson on 10 Feb 2026 at 19:49
The problem is solved.
Google search indicated:This runtime error occurs when an Intel Fortran application fails to write output to the console or a standard output device. Error 38 specifically indicates a "write error" during an I/O operation. This suggested statements like Write(*, or Print*, in Fortran codes caused the problem. And I found WRITE(*,193)t,Thet ... in the codes that caused simulink crashed. Matlab 2024 had no problem with WRITE(*.

More Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Tags

Products


Release

R2025a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!