-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversion from CGMES: incorrect current limits #7
Comments
Hi, thanks for reporting this behaviour. Without the file, it is not easy for us to understand but maybe you can try to give us some clues: in which country is this line located? I understand that it is probably a line inside a country (CH or DE), why do you expect that the permanent limit to change to 1760 at both side? Finally we maybe expect that nothing change and stay to 1792? So please if you can give us more details. |
Hello, |
Hello, |
Thank you for your answer! |
Thank you; here's the |
(Sorry, I forgot to also ask you the associated OperationalLimitSet... thank you!) |
No worries; I'm here to have my problem solved. Here you go: |
Update: Still, I wouldn't call the issue resolved, because I need to convert all my files together to account for inter-country connections. |
Hm, I'm not seeing anything that could be misinterpreted by PowSyBl's importer... Could you please check if in your logs' warnings, you have a message that looks like this : |
In CMD, the only output message is |
Ah yes, you may need to go to the /etc/ folder of your distribution and change the logback-itools.xml file to:
|
There are indeed a number of the following warning type: |
May I ask if you're working on this issue? Otherwise, I'll have to consider alternative approaches. I have anyway to go through some other conversion steps to convert AMPL format to MATPOWER format. Thank you. |
Sorry for the delayed answer! I tried looking a bit around the code but I really can't seem to find where it could go wrong and it is a bit difficult to try and guess without files to test... @zamarrenolm do you have any idea on why the CGMES importer has this behavior? |
If you want us to help, you have to provide us a way to reproduce your issue. The issue could be in our project, but it could be also in your files. We know the code, but we don't have your files. If you don't provide this way to reproduce the behavior, we will not work on it. And yes, if you prefer, use another tool. |
I'm not allowed to share the files. That's why I haven't done it so far. I've detected some clues to the issue. I will share my findings when finalized. If still needed, I will consider how to share some data without violating the license terms. |
Thank you for these new elements. @annetill @MioRtia I think we can have access to this file asking people from the RTE R&D department. They probably already have this file or can download it from the ENTSO-E. If I understand well your sketch, it seems that Line3 and Line4 are also dangling lines, right? We have here three danglingLines connected to the same TN. This use case is not supported by powsybl (I don't remember having encountered it in the past). In powsybl, we expect exactly two "matching" boundaryLine in order to create TieLine. If there are more, you should see an error message in the logs:
@bhnm-akbari Could you confirm? My understanding is that there is probably no issue in the currentLimit conversion, except maybe the fact that when several limits are defined in the CGMES file, we keep only the lowest to be conservative. We do not want to miss overloads that could lead to security issues in our operational process. If can have access to this file quickly, we should be able to diagnose more precisely the issue you described. Without it, it's really difficult for us. Is it possible to send us the logs (debug level) of the conversion tool by email at mathieu.bague AT rte-france.com? |
Thank you for your answer. The data set is called TYNDP 2020 that can be requested from the following page: https://docstore.entsoe.eu/stum/ When converting only DE, everything goes as expected: Line1 is converted to a iidm:line element with a capacity of 1760 and Line2 is converted to a iidm:danglingLine element with a capacity of 1792. When I convert DE+CH, Line2, Line3, and Line4 do not appear in the xiidm file and the capacity of Line2 (i.e., 1792) is assigned to the capacity of Line1. So the problem is not limited to an incorrect capacity assignment, but also includes removal of some line elements. When I convert CH alone, Line3 and Line4 are merged together to form a tieLine, although they both lie in CH! So they are not converted to danglingLines. I confirm the error. The following message is given when converting CH and DE together:
Note that the current limit of one line is assigned to another line. Additionally, the assigned value is not the minimum of the two current limits. I will send the log to the mentioned email address. |
Thanks for the logs. As explained this morning, this is a totally new use case we never encountered, but with your additional information we understand better the issue. We'll try to find a way to solve the issue you are facing. |
We are also working on creating a minimal example that can be shared and reflects the explained configuration, to verify the incorrect limit assignment. As @mathbagu said, three lines lying at the same boundary node is not supported by the current version. It is not described in the allowed ENTSO-E configurations that can be found at boundaries. Is there a particular reason for modelling that point in this way ? |
Thank you. What about the case where the topological node with more than two connected ACLineSegments lies within the boundary not at the boundary? Is this case currently supported? A possible application of such a configuration would be to model Tee-off line connections |
I have been able to reproduce your issue with a minimal case built manually. I will analyze it and share it with you. About modelling tee-of connections: as soon as the boundary nodes (published in ENTSO-E boundary files) receive at most two branches, everything should be ok. |
@zamarrenolm That's great; I'll be thrilled to follow the developments in this regard. By definition at a Tee-off connection point, three line segments meet. But this is exactly what you you're addressing right now, and based on your explanation I assume this is not an issue if such a configuration exists somewhere not adjacent to the boundary. |
Yes, I understand that tee-off connection modelling requires three line segments meeting at the same node. The only issue is that this node can not be a boundary, only two "sides" are expected at a boundary in ENTSO-E definitions, with only one equipment at modelled at each side. As reference, the ENTSO-E extensions to CGMES (http://entsoe.eu/CIM/SchemaExtension/3/1#) define a naming scheme with allowing only "fromEnd" and "toEnd" equipment. The description of the "fromEndName" attribute: The attribute is used for an exchange of a human readable name with length of the string 32 characters maximum. The attribute covers two cases:
We will provide an example of how to keep the modelling the tee-off connection while preserving the restriction of having only two equipment at the boundary point. |
Thank you for the information. There are at least five instances of such connections at the boundary of TYNDP 2020 files, leading to the following warning during import: |
Please find attached two sets of files that reproduce and fix the problem in a minimal test network. In the file minimal-reproduce-error.zip the error reported is reproduced: if only DE files are loaded the limit for The topological node at the boundary, The proposal to fix the issue is to model a zero-impedance line between the boundary and the point where With the proposed fix we keep only two branches at the boundary, and the |
Thank you for the test network and the associated fixed variant. It is indeed a wise solution. Do you plan to automate the fix in a near-future release or is the user expected to manually modify the input CGMES files before importing into PowSyBl? |
Hope this helps in your analysis. |
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
When I use itools to convert CGMES files to XIIDM, the permanentLimit value of iidm:currentLimits1/2 for a line differs from the corresponding cim:CurrentLimit.value. Exporting to AMPL format also inherits the same wrong value. This wrong value is indeed the cim:CurrentLimit.value of some other line.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
I use convert-network command of itools to convert the TYNDP2020 files provided by ENTSO-E. Interestingly, including different number of input file sets affects the result. For example, including CH and DE files results in:
<iidm:line id="_56e86b7f-2db3-4001-a3d1-0d879ced8261" ...> <iidm:alias type="CGMES.Terminal1">_d07901a4-8926-49f8-89a4-78f962a3ed08</iidm:alias> <iidm:alias type="CGMES.Terminal2">_dc654cfa-452b-43b8-918e-1be9c5596578</iidm:alias> <iidm:currentLimits1 permanentLimit="1792.0"/> <iidm:currentLimits2 permanentLimit="1792.0"/> </iidm:line>
Whereas, including CH, DE, AT, FR, and IT results in:
<iidm:line id="_56e86b7f-2db3-4001-a3d1-0d879ced8261" ...> <iidm:alias type="CGMES.Terminal1">_d07901a4-8926-49f8-89a4-78f962a3ed08</iidm:alias> <iidm:alias type="CGMES.Terminal2">_dc654cfa-452b-43b8-918e-1be9c5596578</iidm:alias> <iidm:currentLimits1 permanentLimit="1792.0"/> <iidm:currentLimits2 permanentLimit="1760.0"/> </iidm:line>
What is the expected behavior?
The expected output would be:
<iidm:line id="_56e86b7f-2db3-4001-a3d1-0d879ced8261" ...> <iidm:alias type="CGMES.Terminal1">_d07901a4-8926-49f8-89a4-78f962a3ed08</iidm:alias> <iidm:alias type="CGMES.Terminal2">_dc654cfa-452b-43b8-918e-1be9c5596578</iidm:alias> <iidm:currentLimits1 permanentLimit="1760.0"/> <iidm:currentLimits2 permanentLimit="1760.0"/> </iidm:line>
Please tell us about your environment:
The text was updated successfully, but these errors were encountered: