Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on May 18, 2019. It is now read-only.

[BE] Fix handling of mixed determined systems#3085

Open
kabdelhak wants to merge 1 commit into
OpenModelica:master from
kabdelhak:fixMixDet
Open

[BE] Fix handling of mixed determined systems #3085
kabdelhak wants to merge 1 commit into
OpenModelica:master from
kabdelhak:fixMixDet

Conversation

@kabdelhak

@kabdelhak kabdelhak commented May 10, 2019

Copy link
Copy Markdown
Contributor
  • add all variable indices to artifical functions in adjacency matrix
  • ticket #5170

 - add all variable indices to artifical functions in adjacency matrix
 - ticket #5170

Copy link
Copy Markdown
Contributor Author

This actually fixes ticket #5170, but several other models like
../simulation/modelica/resolveLoops/ElectricalCircuit1.mos
fail with different results.

Feel free to comment the code!

casella commented May 10, 2019

Copy link
Copy Markdown

I can't see the results of the testsuite. Maybe you can run it on this PR, so we can check?

Copy link
Copy Markdown
Member

The test suite is unstable according to OpenModelica_TEST_PULL_REQUEST 2019年05月10日_16-24-49.

newEqIndices := List.intRange2(inNEqns+1, inNEqns+inNAddEqns);
outM := List.fold1(newEqIndices, squareIncidenceMatrix1, inInitVarIndices, outM);
allVarIndices := List.intRange2(1,inNEqns+inNAddEqns);
outM := List.fold1(newEqIndices, squareIncidenceMatrix1, allVarIndices, outM);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't look right to me. The introduced artificial equations should only be connected to inInitVarIndices (states, discrete states, and parameters having fixed=false).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

1 more reviewer

@lochel lochel lochel left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /