modelica / ModelicaStandardLibrary

Free (standard conforming) library to model mechanical (1D/3D), electrical (analog, digital, machines), magnetic, thermal, fluid, control systems and hierarchical state machines. Also numerical functions and functions for strings, files and streams are included.
https://doc.modelica.org
BSD 3-Clause "New" or "Revised" License
452 stars 165 forks source link

MSL v4.1.0-beta.1 feedback: Immoderate size of simulation result data for LightningSegmentedTransmissionLine #4306

Closed beutlich closed 4 months ago

beutlich commented 4 months ago

Modelica.Electrical.Analog.Examples.Lines.LightningSegmentedTransmissionLine generates GB of result data and makes this example model hardly usuable. Also the Dymola commands readTrajectory/readTrajectorySize for saving as CSV file are likely to fail (due to limited RAM) or take an immoderate long time.

Name                                    Size            Date                    Attr
LightningSegmentedTransmissionLine.mat  8.889.530.094   10.02.2024 11:55    -a--
$ matdump LightningSegmentedTransmissionLine.mat -f whos
Name                       Size           Bytes          Class

Aclass                     4x11                 88  mxCHAR_CLASS
name                      50x8955           895500  mxCHAR_CLASS
description               95x8955          1701450  mxCHAR_CLASS
dataInfo                   4x8955           286560  mxDOUBLE_CLASS
data_1                  3286x2               52576  mxDOUBLE_CLASS
data_2                  2222x500002     8888035552  mxDOUBLE_CLASS

It really would be helpful to spend some HideResult annotations on the line1 and line2 variables.

See also #3349.

casella commented 4 months ago

@AHaumer will look into that

AHaumer commented 4 months ago

@Harisankar-Allimangalath @arunkumar-narasimhan as soon as #4315 has been merged into master, please back-port to 4.1.0