Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#3531 closed defect (fixed)

Backend changes from October 27 significantly slow down BranchingDynamicPipes

Reported by: Rüdiger Franke Owned by: Vitalij Ruge
Priority: critical Milestone: 1.9.4
Component: Backend Version:
Keywords: Cc: Volker Waurich, Mahder Alemseged Gebremedhin, Willi Braun

Description

Today's nightly tests report for Modelica.Fluid.Examples.BranchingDynamicPipes a time in the backend of 72.29s:

https://test.openmodelica.org/libraries/history/MSL_3.2.1-2015-10-28.html

It used to be significantly less, e.g. 16.45s yesterday:

https://test.openmodelica.org/libraries/history/MSL_3.2.1-2015-10-27.html

Yesterday's commit messages don't indicate a reason for this increase. Can the backend time be improved again?

Change History (13)

comment:1 by Volker Waurich, 9 years ago

I will figure it out and hopefully fix it.

comment:2 by Volker Waurich, 9 years ago

Since the last commit of vruge lead to the increase in backend time, I would redirect the ticket to him.

comment:3 by Adrian Pop, 9 years ago

Owner: changed from somebody to Vitalij Ruge
Status: newassigned

comment:4 by Vitalij Ruge, 9 years ago

Status: assignedaccepted

comment:5 by Rüdiger Franke, 9 years ago

What is the status of this ticket?
Is it ok to revert the respective commit until the problem will be solved?

comment:6 by Lennart Ochel, 9 years ago

If I get it right, then it's this commit that causes the slowdown dd7ca6. @vitalij What is the positive impact of this commit? I think if it makes a bunch of models working, then we should not revert it, otherwise it should be fine to revert it for now.

Last edited 9 years ago by Lennart Ochel (previous) (diff)

comment:7 by Mahder Alemseged Gebremedhin, 9 years ago

Cc: Mahder Alemseged Gebremedhin added

comment:8 by Vitalij Ruge, 9 years ago

The issues is force inlining in

BackendDAECreate->lowerEqn->simplifyAndForceInlineEquationExp

with the combination #3510 we have a big number of expressions.
I will add option(default=false) for inlining function with protected array-variables, which will be ignored inside the dynamicStateSelection.

comment:9 by Rüdiger Franke, 9 years ago

Cc: Willi Braun added
Priority: highcritical

There is no improvement after your last commits. On contrary, BranchingDynamicPipes took 74.32 seconds in the backend tonight.

Where does the model force inlining?

After two weeks without solution, can you please consider reverting your changes until the changeset will be complete?

in reply to:  9 comment:10 by Vitalij Ruge, 9 years ago

Replying to rfranke:

After two weeks without solution, can you please consider reverting your changes until the changeset will be complete?

donerevert.
Note: potential issues is #3556

Where does the model force inlining?

FrondEnd->Inline->forceInlineExp
and is used for example in BackendDAECreate, IndexReduction, ExpressionSolve, ...

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

Resolution: fixed
Status: acceptedclosed

Thanks!

comment:12 by Martin Sjölund, 9 years ago

Milestone: 1.9.41.9.4-1.9.x

Milestone renamed

comment:13 by Martin Sjölund, 9 years ago

Milestone: 1.9.4-1.9.x1.9.4

Milestone renamed

Note: See TracTickets for help on using tickets.