Skip to content
Moritz Shore edited this page Apr 8, 2024 · 2 revisions

A list of SWAP errors that I want to resolve

Cut-off paths

I think this error occurs when the file paths are too long. They are truncated by SWAP resulting in the model not being able to find the file. If my memory serves me correctly, this is why the SWAP.exe always needed to be in the parent directory of the project path, to avoid long file names. This example shows a truncated filename at 41 characters. I should follow this up with the SWAP team to see if my suspicions are correct.

 running swap ....
ERROR in FOPENG: system error while trying to open file

Arguments of the call to FOPENG leading to this error:
  Unit             =    20
  File name        =    ../../rswaptesting/hupselbrook/r_swap.log
  File status      =    new
  File type        =    FS
  Record length    =    0
  Delete privilege =    del
  IOSTAT           =    602 <-- system I/O status code
Fatal execution error, press <Enter>
forrtl: severe (24): end-of-file during read, unit -4, file CONIN$
Image              PC                Routine            Line        Source             
swap.exe           00007FF705DE7B58  Unknown               Unknown  Unknown
swap.exe           00007FF705DA2BB6  Unknown               Unknown  Unknown
swap.exe           00007FF705D7C879  Unknown               Unknown  Unknown
swap.exe           00007FF705D9177F  Unknown               Unknown  Unknown
swap.exe           00007FF705D9098F  Unknown               Unknown  Unknown
swap.exe           00007FF705D81166  Unknown               Unknown  Unknown
swap.exe           00007FF705D5F89C  Unknown               Unknown  Unknown
swap.exe           00007FF705CC2766  Unknown               Unknown  Unknown
swap.exe           00007FF705CC3C49  Unknown               Unknown  Unknown
swap.exe           00007FF705E4F4E2  Unknown               Unknown  Unknown
swap.exe           00007FF705E4F8D4  Unknown               Unknown  Unknown
KERNEL32.DLL       00007FF831A27344  Unknown               Unknown  Unknown
ntdll.dll          00007FF831D026B1  Unknown               Unknown  Unknown

Locked files in parallel

Currently rswap creates separate runs for every run to avoid file locking. It would be nice if the same input files could be used to run multiple runs. (This may be possible if I change the "working dir" parameter in the swap main file)...