You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue reports problems found when trying to postprocess BOPTEST multizone_office_simple_air model using modelica-json to extrapolate semantic model from Modelica annotations. Three issues were found:
When thermal zone model is duplicated from buildings and used in local package modelica-json throws an error
When no bldg prefixes are added to the extrapolated model annotation part of the header is missing
Only some of the annotations are correctly extrapolated in the .ttl file
To reproduce all errors go BOPTEST folder in terminal project1-boptest/testcases/multizone_office_simple_air/models and run node `$node $MODELICAJSONPATH/app.js -f MultiZoneOfficeSimpleAir/TestCases/TestCase.mo -o semantic -m modelica -d m2j_output. BOPTEST reference branch issue591
For error 1. This error was tested by removing all the annotations apart from the boiler plate one TestCase.mo and using an old version of the package that had the thermal zone depende as in the screenshot below:
in The resulting error is reported in the screenshot below:
For error 2. Before running use previous package version (or error 1 will be triggered) with only boiler plate annotation in TestCase.mo as shown below:
@prefix : <#>.
@prefix bldg: <https://BESTESTAir.urn#>.
@prefix brick: <https://brickschema.org/schema/Brick#>.
@prefix boptestrules: <https://boptest-rules.urn#>.
bldg:con a brick:Thermostat; boptestrules:sameAs bldg:con_Thermostat_T.
bldg:fcu
a brick:FCU; boptestrules:sameAs bldg:fcu_FanCoilUnit_T; brick:feeds bldg:zon.
bldg:zon a brick:Zone; brick:isLocationOf bldg:con.
Error 3. is quite similar to error 2. in issue #251, where if all annotations are present, then only some are extracted. However, in this case not even all the annotation at 1 level deep are extracted, so it is unclear what the reason could be. To replicate all the annotations present in the current BOPTEST origin semantic branch issue591 need to be added to a previous version of 'multizone_office_simple_air', i.e. master, to avoid Error 1.
The text was updated successfully, but these errors were encountered:
This issue reports problems found when trying to postprocess BOPTEST
multizone_office_simple_air
model using modelica-json to extrapolate semantic model from Modelica annotations. Three issues were found:To reproduce all errors go BOPTEST folder in terminal
project1-boptest/testcases/multizone_office_simple_air/models
and run node `$node $MODELICAJSONPATH/app.js -f MultiZoneOfficeSimpleAir/TestCases/TestCase.mo -o semantic -m modelica -d m2j_output. BOPTEST reference branch issue591For error 1. This error was tested by removing all the annotations apart from the boiler plate one
TestCase.mo
and using an old version of the package that had the thermal zone depende as in the screenshot below:in The resulting error is reported in the screenshot below:
For error 2. Before running use previous package version (or error 1 will be triggered) with only boiler plate annotation in
TestCase.mo
as shown below:The resulting TestCase.ttl file will be:
@prefix : <#>.
If some
bldg
elements are added to the annotation as below:Then TestCase.ttl becomes:
Error 3. is quite similar to error 2. in issue #251, where if all annotations are present, then only some are extracted. However, in this case not even all the annotation at 1 level deep are extracted, so it is unclear what the reason could be. To replicate all the annotations present in the current BOPTEST origin semantic branch issue591 need to be added to a previous version of 'multizone_office_simple_air', i.e. master, to avoid Error 1.
The text was updated successfully, but these errors were encountered: