Version_0_13_1 class
Requirements.UsersGuide.ReleaseNotes.Version_0_13_1
ยท source
Version 0.13.1 (Oct. 21, 2026)
Extends Modelica.Icons.ReleaseNotes
Bug fix: the CSV reader stopped at an event due a few ulps after another.
Sources.PartialSignalsFromFile woke at the file's
events with when {time >= pre(nextTimeEvent), initial()}, a time event. When that time event was due a few
ulps after another event of the model, OCT treated it as already past, did not schedule it, and never evaluated the
condition again: the reader stopped, and every Boolean and Integer column held its value for the rest of the run, without
an error or a warning. Real columns were unaffected. In a year of the TIER plant it happened twice:
- at 28248 s, between two rows of the file 3.1e-10 s apart (two events of the plant in one instant, written with times that differ in the last digits);
- at 1322822 s, between a timer of the check model (10 min after an event of the file) and the file's row of the plant's own timer for the same instant, 2.3e-8 s later: the two timers started from times that differ in the last digits. No change to the file can prevent this one.
Three changes:
- The reader wakes on
fileEvent = clock >= pre(nextTimeEvent), withclocka state equal totime: a state event, which the integrator locates whatever other events are due. A block extendingPartialSignalsFromFilereads its Boolean and Integer columns inwhen {fileEvent, initial()}(the documented pattern; Chaperone generates it). The old condition still compiles but has the old weakness. - A state event is located only to the integrator's tolerance, possibly a hair before the row: a query time within a
relative 1e-10 of a row's time (the tolerance of
Modelica.Blocks.Tables) is that row's time. - Rows within a relative 1e-10 of the first row of their group are one event group at that row's time. The file itself is not changed.
A file without such rows reads as before, and events, values on either side of an event and slopes follow from the groups as before.
Where it showed
- The TIER plant study (Chaperone, two-run workflow): over a year, every requirement condition read from a Boolean column froze, first after 28248 s and, with only the grouping fixed, after 1322822 s. The week's file has no such instant.
Resources/C-Sources/test/test_requirements_csv.pychecks the C reader against its Python twin (Chaperone'smahscsv.py, which has the same rules): a corpus file with rows a few ulps apart, probes just before and after every event, the TIER case, and a query a hair before an event. It found the twin through ModCheck, where it no longer is; it now looks in Chaperone ($CHAPERONE_DIRor the sibling checkout).
No model conversion is needed: conversion(noneFromVersion="0.13.0").