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

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

By the way, the warning is suggesting that you need to use g10.3 instead of g9.3
severe (38) error appears to be a symptom instead of the cause of the error. I am finding several potential causes for it, all completely different -- indicating that something else is going on in the appropriate code leading to internal problems that just happen to trigger an error 38.
For example I find one reference saying that for a particullar program, the problem is simultaneous action to temporary files. I find another reference saying that for a different program, the problem is differences between the system locale and the user locale. Another site suggests maybe you ran out of disk space. The same site suggests adding FLUSH_FILE_BUFFERS=.FALSE (which solved that problem for that particular user.)
There is 637GB free. Where should I add FLUSH_FILE_BUFFERS=.FALSE ?
I am finding hints that FLUSH_FILE_BUFFERS might only apply to Fire Dynamics Simulation (FDS) programs.

댓글을 달려면 로그인하십시오.

 채택된 답변

Tuan
Tuan 2026년 2월 10일
이동: Walter Roberson 2026년 2월 10일

0 개 추천

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(*.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Simulink Compiler에 대해 자세히 알아보기

제품

릴리스

R2025a

태그

질문:

2025년 12월 11일

이동:

2026년 2월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by