Error: [fmi2GetContinuousStates]: Simulation terminated at t=0.0000000000000000e+00: error running events
Hello to all, in my first model i want to simulate a dumper using a cylinder with orifice in the line to the tank.
I've tried different configuration but every time appears this type of error and i don't understand what it mean.
Is there someone that can help me uderstand this error? What i have to change?
Thanks in advance!
Arnigaber
Answers

Hello Arnigaber,
can you share your model file?
Lorenzo
0 
Hi Arbigaber,
It's a problem of initial values. In Modelica mechanics length of elements in a row are added. with basic parameters, the initial position of vsource is 0 m, length of left rod 0,4 m. Position of fixed is 0 m => relative stroke of cylinder is 0,4 m (in right end stop). Now you have to move either vsource to the left or fixed to the right to move piston into middle of the cylinder.
My demo model has a fixed position of 0,2 m.
0 
Hi RoKet, with your help I managed to run the simulation.
Thank you very much!
0 
Hi guys,
I'm having a similar problem with a model I'm trying to set up and I'm hoping I can get some help.
I've got a cylinder being driven by a position source, but when I run I get the same error. I've tried changing the fixed position as per RoKet's post above but this doesn't seem to work on this model.
I eventually need to add an accumulator onto the piston side of the cylinder, but need to get this simple model working first!
Could someone have a look at this model and let me know what I'm doing wrong here?
Many thanks!
0 
Hi BrettL,
It's the same solution. You have to consider all positions and length. In Modelica (and the hydraulics library) positions are calculated as a row of points and lengths. In your case the row starts with the fixed element at 0 m. The cylinder has a minimum length of 0.4 m, so the rod tip has a minimum position of 0.4 m, a maximum position of 0.8 m (stroke of 0.4 m).
The range of position source has to be in the given limits of the cylinder, I've shifted the offset to 0.6 m (0.4 m length and initial stroke of 0.2 m). In addition I've set all initial values to the right value (cylinder stroke, s_ref, ToModelica. It's not always necessary, but helps the solver to find the correct initial state.
RoKet
0 
Hey RoKet,
Thanks a lot for that... your explanation makes more sense to me now. Your model works as I'd intended, so really appreciate your help.
Now to work on the accumulator... /emoticons/default_smile.png' srcset='/emoticons/smile@2x.png 2x' title=':)' width='20' />
Cheers, Brett.
0