modelInfiniteLooping
Index reduction might not be possible if arrays are not expanded (might result in infinite looping during index reduction)
Extends from Modelica.Icons.Example.
Information
If this model is processed without expanding its arrays, index reduction will not terminate and an infinite loop occurs. Typically, this loop is terminated after reaching some limit. Either a tool prints an error and explains the situation or the model is again processed with arrays expanded. For details, see the discussion of Model 2 in
Martin Otter and Hilding Elmqvist (2025): Resizable Arrays in Object-Oriented Modeling. International Modelica & FMI Conference 2025.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | p | 3 | |
| Real[p] | n | {i for i in 1:p} |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real | s | ||
| Real[p] | r |
Revisions
- 2026-10-28 by Karim Abdelhak (HSBI): Changed to variable array sizes.
- 2025-05-02 by Martin Otter (DLR-FK): Initial version.
Copyright © 2025 Deutsches Zentrum für Luft- und Raumfahr e.V. - Institute of Vehicle Concepts .(DLR-FK)