﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
6409	Simulation is not stopped when an error happens	Simone Bosotti <simone1.bosotti@…>	Andreas Heuermann	"My ""Network"" simulation, in the output tab, gives these errors:
{{{
Error solving nonlinear system 6721 at time 40.5601
nonlinear system 6721 fails: at t=40.5601
Fatal error on line 1118, column 11: tag mismatch
}}}
but the process Network.exe is not stopped after this, it continues running. This is not so clear in the interface (see screenshot) because the progress bar remains stuck at 0%.

OMEdit allows to start a new try of the simulation (so it does not recognize that the process is still running), but the compilation an raises an error because it can't overwrite Network.exe.
{{{
C:\PROGRA~1\OPENMO~2.0-D\tools\msys\mingw64\bin\ld: cannot open output file Network.exe: Permission denied
clang: error: unable to remove file: Permission denied
clang: error: linker command failed with exit code 1 (use -v to see invocation)
mingw32-make: *** [Network.makefile:39: omc_main_target] Error 1
mingw32-make: Leaving directory 'C:/Users/simon/AppData/Local/Temp/OPENMO~1/OMEdit/Net~1.NET'
Compilation process failed. Exited with code 2.
}}}

OpenModelica v1.18.0-dev-132-gc048acb712 (64-bit)
Windows 10 64-bit"	defect	assigned	high		Run-time	1.18.0-dev			
