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:

  1. the check and translation times are surprisingly slow (the check can be accelerated when using algorithm instead of equation)
  2. 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)

AlgorithmicModel.mo (1.3 KB ) - added by Rüdiger Franke 11 years ago.

Download all attachments as: .zip

Change History (7)

by Rüdiger Franke, 11 years ago

Attachment: AlgorithmicModel.mo added

comment:1 by Adrian Pop, 11 years ago

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.

comment:2 by Adrian Pop, 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 Adrian Pop, 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* directories,
and re-install the latest nightly build:
https://build.openmodelica.org/omc/builds/windows/nightly-builds/

Last edited 11 years ago by Adrian Pop (previous) (diff)

comment:4 by Rüdiger Franke, 11 years ago

See solution to #2627. Without the +a flag I can simulate the models.

comment:5 by Martin Sjölund, 10 years ago

Milestone: 1.9.11.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 Rüdiger Franke, 10 years ago

Resolution: fixed
Status: newclosed

It's running with OpenModelica 1.9.2+dev (r24785) -- about 4 minutes translation time per model.

Note: See TracTickets for help on using tickets.