﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
4959	Exited with code -1 when simulating FMU	frape315@…	Adeel Asghar	"I have made 2 small test models, TestModel1 and TestModel3 in OMEdit, I then exported them as 2.0 ME FMUs.

I then import these 2 FMUs back into OMEdit and attempt to simulate them.

If I import TestModel1 first, then import TestModel3, and attempt to simulate them, TestModel1 will run fine, while TestModel3 will error out with the following messages:

{{{
fmi2GetContinuousStates failed with status : Error

module = TestModel3, log level = ERROR: [logStatusError][FMU status:Error] fmi2GetContinuousStates: Invalid argument nx = 1. Expected 0.

simulation terminated by an assertion at initialization
module = TestModel3, log level = ERROR: [logStatusError][FMU status:Error] fmi2Terminate: Illegal call sequence. fmi2Terminate is not allowed in Error state.

Simulation process failed. Exited with code -1.
}}}

If I now delete remove TestModel3 FMU from inside OMEdit (Delete), and import it again fresh. It will now simulate successfully, but TestModel1 now instead gives this error:


{{{
fmi2SetReal failed with status : Error

simulation terminated by an assertion at initialization
module = TestModel1, log level = ERROR: [logStatusError][FMU status:Error] fmi2Terminate: Illegal call sequence. fmi2Terminate is not allowed in Instantiated state.

Simulation process failed. Exited with code -1.
}}}

From this point on this can be repeated as much as you want, by simply importing a fresh version of the model FMU that is giving errors, it will break the other one. Meaning I can never make a model including both these FMUs.
"	defect	closed	normal	1.13.0	OMEdit	v1.13.0-dev-nightly	fixed	code -1, simulation terminated, invalid argument	
