Opened 12 years ago
Closed 8 years ago
#2226 closed enhancement (fixed)
Improve event logging
| Reported by: | Francesco Casella | Owned by: | Lennart Ochel |
|---|---|---|---|
| Priority: | high | Milestone: | 1.12.0 |
| Component: | Backend | Version: | trunk |
| Keywords: | Cc: |
Description (last modified by )
the -lv LOG_ZEROCROSSINGS flag produces output of dubious usefulness, it should probably be removed.
Furthermore, LOG_EVENTS should output the following information
- time of the event occurrence
- type of event (time or state)
- the condition triggering the event
LOG_EVENTS_V should also report this additional information
- for zero-crossing triggered events, the value of the crossing function residual, and, if possible, the number of iterations of the zero-crossing root finder
- any discrete variable that changes its value
- the beginning of a new event iteration
Change History (12)
comment:1 by , 12 years ago
| Description: | modified (diff) |
|---|
comment:2 by , 12 years ago
| Status: | new → accepted |
|---|
comment:3 by , 12 years ago
comment:5 by , 11 years ago
| Milestone: | 1.9.1 → 1.9.2 |
|---|
This ticket was not closed for 1.9.1, which has now been released. It was batch modified for milestone 1.9.2 (but maybe an empty milestone was more appropriate; feel free to change it).
comment:6 by , 11 years ago
| Milestone: | 1.9.2 → 1.9.3 |
|---|
Milestone changed to 1.9.3 since 1.9.2 was released.
comment:11 by , 9 years ago
| Milestone: | 1.11.0 → 1.12.0 |
|---|
Milestone moved to 1.12.0 due to 1.11.0 already being released.
comment:12 by , 8 years ago
| Resolution: | → fixed |
|---|---|
| Status: | accepted → closed |
The output of event logging is now just fine, and has been so since comment:3

I have removed the strange LOG_ZEROCROSSINGS messages. Now they occur only in the developer dumps. Maybe I will remove them completely, later.
Also I have changed the LOG_EVENTS dump as you proposed.
The following model produces time and state event:
model Test1 discrete Real next_t; discrete Real next_t2; equation when time >= pre(next_t) then next_t = pre(next_t)+1; end when; when sample(0.5, 1.0) then next_t2 = pre(next_t2)+1; end when; initial equation next_t = 1; annotation (experiment(StopTime=10)); end Test1;The new dump is the following:
Further improvements will follow soon.