Opened 12 years ago

Closed 12 years ago

#1902 closed defect (fixed)

problems with event handling on 32-bit with gcc-4.6

Reported by: ekofman@… Owned by: somebody
Priority: high Milestone: 1.9.0
Component: Run-time Version: 1.9.0Beta
Keywords: Event Handling, DASSL Cc:

Description

I was using MSL 3.1 and omc r13538. Now I switched to MSL 3.2.1 and omc r13569 but I am still experiencing problems with event handling. For instance, in model Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes the simulation is stuck at t= 0.0833517 when it keeps detecting events for ever.

In model Modelica.Electrical.Analog.Examples.CharacteristicThyristors the problem is similar. Here, it enters a loop at t= 0.0833333 (when the first zero crossing occurs).

Anyway, I think the problem is related to the solver. I am simulating from OMEdit. If I change dassl by dasslwort (I think it is DASSL without internal root finding) it works (but I suspect that it does not search for zero crossings in a correct way).

Change History (1)

comment:1 by Willi Braun, 12 years ago

Resolution: fixed
Status: newclosed
Summary: problems with event handlingproblems with event handling on 32-bit with gcc-4.6

The issue was that gcc-4.6 on i386 was using the 387 arithmetics, which lead to wrong behaviour of the dassl code. We fixed it by using on that platforms -ffloat-store, which may slow down the solver.
Fixed in r13621 by Martin.

Note: See TracTickets for help on using tickets.