﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
4991	Too many simulations fail with too long a timeout in the TEST_LIBS_FMI_MASTER Hudson job	Francesco Casella	Lennart Ochel	"The job triggered by TEST_LIBS_FMI_MASTER can take up to 14 hrs, see, e.g.

https://test.openmodelica.org/hudson/job/OpenModelica_TEST_LIBS_RIPPER/1581/

which is way too much, since it is run on a daily basis.

I have checked the [https://libraries.openmodelica.org/branches/master-fmi/ reports]. If you check the [https://libraries.openmodelica.org/branches/master-fmi/Buildings_latest/Buildings_latest.html Building_latest] results, you'll see that about 100 models fail after 480 seconds, which I guess is the timeout. Considering 16 threads that gives about one hour of real time, which is then multiplied by 5 since we are testing five different versions of Buildings. There are probably similar issue with other libraries, which explains the 14 hrs issue.

If you check the [https://libraries.openmodelica.org/branches/master/Buildings_5.0.1/Buildings_5.0.1.html regular version] of the test, you'll see that most of those 480 s simulations take less than 0.1 s, so there are obviously bugs in the FMI generation/simulation that generate infinite loops.

As an immediate measure, I would suggest to reduce the timeout for the Simulate phase of the master-fmi task to 50 s. With the exception of the ScalableTestSuite (which probably doesn't make sense to run with FMI), there are actually few models in the testsuite that require more than 10 seconds of simulation time, so 50 should be more than adequate.

I guess this measure should already reduce the running time of that task dramatically.

I would then suggest to @lochel to investigate why so many simulation end up in an infinite loop.
"	defect	closed	critical	1.13.0	FMI		fixed		Martin Sjölund
