Version_0_20_1 class

Requirements.UsersGuide.ReleaseNotes.Version_0_20_1  ยท source

Icon of Version_0_20_1

Version 0.20.1 (Dec. 2, 2026)

Extends Modelica.Icons.ReleaseNotes

The CSV reader can stop the solver at every row. PartialSignalsFromFile interpolates a Real column linearly between rows. It makes the solver stop only where a Boolean or Integer column changes, or inside a same-time group. A model that reads a file and has few or slow states can therefore take one step across a short excursion of a Real column. A check reading that column never sees the limit crossed, although the value at an output point inside the excursion is above it. In Modelon Impact the requirement v ≤ 10 on a co-simulation trace stayed Satisfied over an excursion to 10.04 lasting a few milliseconds, while its margin at the output point was −0.079 (2026-12-02).

  • New parameter rowEvents (default false): with true every row's time is an event of the file. A Real column has its extremes on rows, and between two rows it crosses a fixed limit at most once, as does the difference of two columns. So a solver that stops at every row sees every crossing of a fixed limit, in every tool. The cost is one event per row. The default stays false so that a long file (a year of hourly rows) is not slowed down where no check needs it.
  • Examples.Elementary.Sources.ShortExcursionFromFile asserts that a 3 ms excursion is Violated with rowEvents=true. With false OpenModelica 1.27.1 misses it, and its assertion fails. Like LinearAnalysis.ModeTable, it is checked by its assertion and is not a regression case.
  • The C reader's tests (Resources/C-Sources/test) check the event list with and without row events.

Internal: Internal.CSV.File's constructor has a new input, rowEvents, and so does RequirementsCsv_open. A model that calls the constructor directly, rather than through PartialSignalsFromFile, must pass it. No model of the library and none of Chaperone's generated readers does. With the default, every result is unchanged. No model conversion is needed: conversion(noneFromVersion="0.20.0").