Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BOPTEST: bestest_air, white space and sematic model missing annotations #251

Open
EttoreZ opened this issue Oct 16, 2024 · 0 comments
Open

Comments

@EttoreZ
Copy link

EttoreZ commented Oct 16, 2024

This issue reports problems found when trying to postprocess BOPTEST bestest_air model using modelica-json to extrapolate semantic model from Modelica annotations. Two issues were found:

  1. When white space is removed from extrapolated model metadataLanguage line, modelica-json throws an error
  2. The extrapolated semantic model is incomplete, since not all annotations are extracted

To reproduce both errors go BOPTEST folder in terminal project1-boptest/testcases/bestest_air/models and run node $MODELICAJSONPATH/app.js -f BESTESTAir/TestCases/TestCase_Ideal.mo -o semantic -m modelica -d m2j_output. BOPTEST reference branch issue591

For error 1. Before running command remove white space in ‘BESTESTAir.TestCases.TestCase_Ideal.mo’ metadataLanguage declaration (see screenshot)
image
This is the resulting error:
image

For error 2. When .ttl file is generate two annotations are missing, one for the zone temperature BESTESTAir.BaseClasses.Case600FF.reaTRooAir and one for the zone CO2 BESTESTAir.BaseClasses.Case600FF.reaCO2RooAir. Reason unclear, only difference from other annotations is the level of nesting (Annotation is 2 levels deep instead of 1 level deep compared to starting model).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant