Skip to content

Error loading tables in .csv files #4745

@davidetom99

Description

@davidetom99

I have experienced the following error using the ModelicaStandardLibrary 4.1.0 while loading a table stored in a csv file using the component combiTimeTable (Modelica.Blocks.Sources.CombiTimeTable). This combiTimeTable is placed inside a component of the library Buildings 10.0.0.

Log-file of program ./dymosim
(generated: Fri Feb 20 08:00:03 2026)

dymosim started
... "Test" simulating
... "dsin.txt" loading (dymosim input file)
... loading "Values" from "C:/.../data/tcDat.csv"
Warning: The following error was detected at time: 0
Error in line 1 when reading numeric data of matrix "Values(8766,1)" from file "C:/.../data/tcDat.csv"

The stack of functions is:
Modelica.Blocks.Types.ExternalCombiTimeTable
Modelica.Blocks.Types.ExternalCombiTimeTable((if radHea.loa.tableOnFile then (if radHea.loa.isCsvExt then "Values" else radHea.loa.tableName) else "NoName"), (if radHea.loa.tableOnFile and radHea.loa.fileName <> "NoName" and  not Modelica.Utilities.Strings.isEmpty(radHea.loa.fileName) then radHea.loa.fileName else "NoName"), radHea.loa.table, radHea.loa.startTime/radHea.loa.timeScale, radHea.lo...

Error: Integrator failed to start model.

... Error message from dymosim

ERROR: The simulation of Test FAILED

The table is loaded correctly using the library 4.0.0 and no error is raised.
The structure of the csv is the same. Here it is:

#1
double tcDat(8760, 2)
#starts on 01/01/2022 00:00 - steps of 1h
#Peak space heating load = 83400.0 Watts
#time [s], thermal load [W]
#TC, y[1]
0,38900
3600,38900
7200,38900
....

what has changed in the combiTimeTable between MSL4.0.0 and 4.1.0?

Metadata

Metadata

Assignees

No one assigned

    Labels

    L: BlocksIssue addresses Modelica.BlocksV: 4.1.0Issue originates in MSL v4.1.0 (and is not present in earlier releases)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions