Skip to content

(A015) [ModelicaSystem] check model executable - #425

Merged
adeas31 merged 1 commit into
OpenModelica:masterfrom
syntron:ModelicaSystem_check_model_executable
Mar 18, 2026
Merged

(A015) [ModelicaSystem] check model executable#425
adeas31 merged 1 commit into
OpenModelica:masterfrom
syntron:ModelicaSystem_check_model_executable

Conversation

@syntron

@syntron syntron commented Feb 18, 2026

Copy link
Copy Markdown
Contributor

define one fucntion to check if the model executable exists and is working

see PR #404

@syntron
syntron force-pushed the ModelicaSystem_check_model_executable branch 4 times, most recently from 8b40c54 to 08056f6 Compare February 27, 2026 18:09
@syntron
syntron force-pushed the ModelicaSystem_check_model_executable branch from 08056f6 to 6c794cb Compare March 9, 2026 19:27
@adeas31

adeas31 commented Mar 12, 2026

Copy link
Copy Markdown
Member

Rebase.

@syntron

syntron commented Mar 12, 2026

Copy link
Copy Markdown
Contributor Author

Rebase.

can but why is it needed? It is PR = one commit; should apply without problems?!

@adeas31

adeas31 commented Mar 13, 2026

Copy link
Copy Markdown
Member

Rebase.

can but why is it needed? It is PR = one commit; should apply without problems?!

It says,

This branch has conflicts that must be resolved
Use the web editor or the command line to resolve conflicts before continuing.

OMPython/ModelicaSystem.py

@syntron
syntron force-pushed the ModelicaSystem_check_model_executable branch from 6c794cb to e5c8a41 Compare March 13, 2026 17:11
@syntron

syntron commented Mar 13, 2026

Copy link
Copy Markdown
Contributor Author

Rebase.

can but why is it needed? It is PR = one commit; should apply without problems?!

It says,

This branch has conflicts that must be resolved Use the web editor or the command line to resolve conflicts before continuing.

OMPython/ModelicaSystem.py

Interesting - I did the rebase and there is no diff between the two version:

There isn’t anything to compare.
6c794cba710abd55550d8c1311b45b2b7b5327bb and e5c8a4170b685b02fa45dbb323fc9271d605d879 are identical.

@adeas31 adeas31 left a comment

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.

Would be nice to have a test for this function.

It is highly unlikely that we change model executable to not have a help command line option but just in case it would be nice to have a test for it. What do you think?

@syntron

syntron commented Mar 17, 2026

Copy link
Copy Markdown
Contributor Author

Would be nice to have a test for this function.

It is highly unlikely that we change model executable to not have a help command line option but just in case it would be nice to have a test for it. What do you think?

It is possible to create a separate unittests - however, each simulation request done in test_ModelicaSystem calls into this functions. Thus it is tested!

Regarding a separate unittest: what should be tested? (1)a separate test if the function runs without error (=> each simulation) or (2) if the option exist (=> only possible via the execution with --help => back to simulation => point(1) )

@adeas31

adeas31 commented Mar 18, 2026

Copy link
Copy Markdown
Member

Would be nice to have a test for this function.
It is highly unlikely that we change model executable to not have a help command line option but just in case it would be nice to have a test for it. What do you think?

It is possible to create a separate unittests - however, each simulation request done in test_ModelicaSystem calls into this functions. Thus it is tested!

Then it is fine.

@adeas31
adeas31 merged commit ae967b5 into OpenModelica:master Mar 18, 2026
10 checks passed
@syntron
syntron deleted the ModelicaSystem_check_model_executable branch March 18, 2026 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants