Version_0_14_0 class

Requirements.UsersGuide.ReleaseNotes.Version_0_14_0  ยท source

Icon of Version_0_14_0

Version 0.14.0 (Oct. 26, 2026)

Extends Modelica.Icons.ReleaseNotes

A file chosen at run time: the CSV reader in an exported FMU. Sources.PartialSignalsFromFile has a new parameter, runTimeFileName (default ""). When it is not empty, the reader opens that file (an absolute path) instead of fileName.

  • Why. A tool resolves fileName with loadResource when it translates the model, and evaluates a String parameter. Modelon Impact (OCT) fails the translation when the file does not exist yet, and exports fileName as a constant. A check model could therefore not be compiled once and run on data produced later.
  • How. runTimeFileName carries Evaluate=false. In an FMU exported by Modelon Impact it is causality="parameter" variability="fixed" (FMI 2.0 and 3.0, Model Exchange and Co-Simulation) and is set before initialization.
  • The other way, documented in the block: a tool that exports an FMU copies the file named by fileName into the FMU's resources directory and reads it from there at run time; replacing that copy changes the data. A file with the header row only fails at initialization, so a packaged placeholder never yields a result.
  • Bug fix in an example. The hand-written reader of Examples.Elementary.Sources.SignalsFromFile still read its Boolean and Integer columns in when {time >= pre(nextTimeEvent), initial()}, the time event that 0.13.1 replaced in PartialSignalsFromFile because OCT can drop it as already past and then hold every discrete column for the rest of the run. It now uses the base block's state event, when {fileEvent, initial()}, as the reader's documentation and Chaperone's generated readers do. The example's own data has no near-coincident events, so its result does not move.

Measured on Modelon Impact (2026-10-26). The library's full suite passes 649/649 checks (91 cases, 100x rtol spread) on 0.14.0; the changed example's case passes 9/9 with zero deviation. The example SignalsFromFile, exported as an FMU by Impact (FMI 2.0 and 3.0, Model Exchange and Co-Simulation), reads another file through reader.runTimeFileName in FMPy 0.3.32 and PyFMI 2.23: on a file whose cabin temperature stays at or below 26 degC its first requirement turns satisfied, as it must. Replacing the packaged file works with FMI 2.0 FMUs. Impact's FMI 3.0 FMUs keep the importer's resource path without copying it, so an importer that frees it (FMPy) finds no packaged file; runTimeFileName does not use that path and works with both versions. OpenModelica and Dymola were not run for this release (neither is in the test container); the change adds a parameter and an if-expression in a parameter binding only.

No model conversion is needed: conversion(noneFromVersion="0.13.2").