Opened 4 years ago
Closed 4 years ago
#5980 closed defect (fixed)
OMC Spins forever if components are mutally recursive
Reported by: | johti17 | Owned by: | johti17 |
---|---|---|---|
Priority: | critical | Milestone: | 1.16.0 |
Component: | MetaModelica | Version: | v1.16.0-dev |
Keywords: | package, components, recursion | Cc: |
Description
Code like:
package UT constant Real CONST1 = CONST2 * 3; constant Real CONST2 = CONST1 + 3; function f output Real ro; algorithm ro := CONST1 + CONST2; end f; end UT;
Results in the omc spinning forever if it is used with the -g=MetaModelica flag
Change History (4)
comment:1 Changed 4 years ago by phannebohm
comment:2 follow-up: ↓ 3 Changed 4 years ago by casella
See the Modelica Specification, Sect. 4.4.3
comment:3 in reply to: ↑ 2 Changed 4 years ago by phannebohm
comment:4 Changed 4 years ago by johti17
- Milestone changed from Future to 1.16.0
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
Should omc detect a circular dependency and fail, or actually try to solve the linear system?Never mind, I just saw ticket #5979 so I guess it should fail with error message.