Opened 11 years ago
Closed 10 years ago
#2629 closed defect (fixed)
Simple model fails to translate under Windows
Reported by: | Rüdiger Franke | Owned by: | probably noone |
---|---|---|---|
Priority: | high | Milestone: | 1.9.2 |
Component: | Backend | Version: | trunk |
Keywords: | Cc: |
Description
The attached model exhibits two problems:
- the check and translation times are surprisingly slow (the check can be accelerated when using algorithm instead of equation)
- under Windows 7 Pro (using 1.9.1b2 or nightly 3/18) the backend fails with:
Error: Internal error BackendDAEUtil.traverseBackendDAEExpsNoCopyWithUpdate failed Error: Internal error BackendDAEUtil.traverseBackendDAEExpsVarsWithUpdate failed
The translation works under Debian.
Attachments (1)
Change History (7)
by , 11 years ago
Attachment: | AlgorithmicModel.mo added |
---|
comment:1 by , 11 years ago
comment:2 by , 11 years ago
I guess it works in Debian but not in Windows because in Windows is a 32 bit process which runs out of memory. I have to investigate this more, but this is my first guess.
We're working on some compiler changes to not expand the arrays but it will take a while until is available.
comment:3 by , 11 years ago
I just checked with Windows nightly build (revision) r19616 and I can simulate:
AlgorithmicModel.ExtendedModelEquations2 and AlgorithmicModel.ExtendedModelEquations
without any issues (omc process is using ~200Mb) other than being a bit slow.
Which model do you have issues with from the AlgorithmicModel package?
I suggest you restart, uninstall OpenModelica, delete the C:\OpenModelica directory,
and re-install the latest nightly build:
https://build.openmodelica.org/omc/builds/windows/nightly-builds/
comment:5 by , 10 years ago
Milestone: | 1.9.1 → 1.9.2 |
---|
This ticket was not closed for 1.9.1, which has now been released. It was batch modified for milestone 1.9.2 (but maybe an empty milestone was more appropriate; feel free to change it).
comment:6 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
It's running with OpenModelica 1.9.2+dev (r24785) -- about 4 minutes translation time per model.
It is not surprising that using algorithm is faster than
using equation as for-equations are expanded and you get
quite many equations.
What also makes it slow is that arrays are also expanded to scalar.
So you have 3000 variables and equations in the base model and
1000 more in the extended ones, so 4000 variables and equations.