Commit 825e81b4 authored by Bichen Li's avatar Bichen Li

Modified Validationtools

parent e3432197
Pipeline #48599 canceled with stage
......@@ -6,6 +6,8 @@ from dataprocessing.Validationtools import *
from dataprocessing.readtools import *
print("Test Start")
# We need to extract all the result files from git now
assert_modelia_neplan_results("Slack_ZLoad") # Assert the result, model result path read from cmd line
for files in os.listdir(
os.path.abspath(os.path.abspath(os.path.join(os.getcwd(), "..")) + "/reference-results/Neplan/BasicGrids")):
print(files)
assert_modelia_neplan_results(os.path.splitext(files)[0]) # Assert the result, model result path read from cmd line
print("Test End")
TYPE NODENAME NODEID ELEMENTNAME ELEMENTID SWITCH U ANGLEU P Q I ANGLEI LOADING PV QV QCOMP PCOMP TAP RATIO TETA OVERLAP MARGIN BTOT XTOT USERIES ANGLEUSERIES ISHUNT ANGLEISHUNT PEXCH QEXCHSERIES QEXCHSHUNT SLIP TORQUE PFE
0 N1 174184 110,077000 -0,100000
0 N0 174317 110,000000 0,000000
1 N0 174317 Slack 174297 1 -0,507000 9,183000 0,048000 -93,200000 0,000000 0,000000 0,000000 0,000000 0,000000
1 N0 174317 piLine 174323 1 0,507000 -9,183000 0,048000 86,800000 0,000000 0,006500 -9,682900 0,000000 0,000000 0,00000
1 N1 174184 piLine 174323 1 -0,500000 -0,500000 0,004000 134,900000 0,000000 0,006500 -9,682900 0,000000 0,000000 0,00000
1 N1 174184 PQload 174254 1 0,500000 0,500000 0,004000 -45,100000 0,000000 0,000000 0,000000 0,000000 0,000000
TYPE NODENAME NODEID ELEMENTNAME ELEMENTID SWITCH U ANGLEU P Q I ANGLEI LOADING PV QV QCOMP PCOMP TAP RATIO TETA OVERLAP MARGIN BTOT XTOT USERIES ANGLEUSERIES ISHUNT ANGLEISHUNT PEXCH QEXCHSERIES QEXCHSHUNT SLIP TORQUE PFE
0 N1 174184 25,200000 2,100000
0 N0 174317 24,000000 0,000000
1 N1 174184 pVNode1 1229744436 1 -300,000000 -156,467000 7,752000 154,600000 0,000000 0,000000 0,000000 0,000000 0,000000
1 N0 174317 Slack 174297 1 290,986000 138,440000 7,752000 -25,400000 0,000000 0,000000 0,000000 0,000000 0,000000
1 N0 174317 rxLine 174323 1 -290,986000 -138,440000 7,752000 154,600000 0,000000 9,013800 18,027500 0,000000 0,000000 0,00000
1 N1 174184 rxLine 174323 1 300,000000 156,467000 7,752000 -25,400000 0,000000 9,013800 18,027500 0,000000 0,000000 0,00000
TYPE NODENAME NODEID ELEMENTNAME ELEMENTID SWITCH U ANGLEU P Q I ANGLEI LOADING PV QV QCOMP PCOMP TAP RATIO TETA OVERLAP MARGIN BTOT XTOT USERIES ANGLEUSERIES ISHUNT ANGLEISHUNT PEXCH QEXCHSERIES QEXCHSHUNT SLIP TORQUE PFE
0 N1 174184 109,970000 0,000000
0 N0 174317 110,000000 0,000000
1 N0 174317 Slack 174297 1 -0,500000 -0,500000 0,004000 135,000000 0,000000 0,000000 0,000000 0,000000 0,000000
1 N0 174317 rxLine 174323 1 0,500000 0,500000 0,004000 -45,000000 0,000000 0,000200 0,000100 0,000000 0,000000 0,00000
1 N1 174184 rxLine 174323 1 -0,500000 -0,500000 0,004000 135,000000 0,000000 0,000200 0,000100 0,000000 0,000000 0,00000
1 N1 174184 PQload 174254 1 0,500000 0,500000 0,004000 -45,000000 0,000000 0,000000 0,000000 0,000000 0,000000
TYPE NODENAME NODEID ELEMENTNAME ELEMENTID SWITCH U ANGLEU P Q I ANGLEI LOADING PV QV QCOMP PCOMP TAP RATIO TETA OVERLAP MARGIN BTOT XTOT USERIES ANGLEUSERIES ISHUNT ANGLEISHUNT PEXCH QEXCHSERIES QEXCHSHUNT SLIP TORQUE PFE
0 N1 174184 19,701000 -1,800000
0 N0 174317 110,000000 0,000000
0 N2 1229744353 19,030000 -2,100000
1 N0 174317 Slack 174297 1 -5,176000 -2,289000 0,030000 156,100000 0,000000 0,000000 0,000000 0,000000 0,000000
1 N0 174317 transformer 1229744343 1 5,176000 2,289000 0,030000 -23,900000 0,000000 0,010100 0,192600 0,000000 0,000000 0 0,00000 0,000
1 N1 174184 transformer 1229744343 1 -5,166000 -2,097000 0,163000 156,100000 0,000000 0,010100 0,192600 0,000000 0,000000 0 0,00000 0,000
1 N1 174184 piLine 1229744356 1 5,166000 2,097000 0,163000 -23,900000 0,000000 0,165800 0,096900 0,000000 0,000000 0,00000
1 N2 1229744353 piLine 1229744356 1 -5,000000 -2,000000 0,163000 156,100000 0,000000 0,165800 0,096900 0,000000 0,000000 0,00000
1 N2 1229744353 PQload 174254 1 5,000000 2,000000 0,163000 -23,900000 0,000000 0,000000 0,000000 0,000000 0,000000
TYPE NODENAME NODEID ELEMENTNAME ELEMENTID SWITCH U ANGLEU P Q I ANGLEI LOADING PV QV QCOMP PCOMP TAP RATIO TETA OVERLAP MARGIN BTOT XTOT USERIES ANGLEUSERIES ISHUNT ANGLEISHUNT PEXCH QEXCHSERIES QEXCHSHUNT SLIP TORQUE PFE
0 N0 174317 20,000000 0,000000
1 N0 174317 ZLoad 174254 1 5,000000 2,000000 0,155000 -21,800000 0,000000 0,000000 0,000000 0,000000 0,000000
1 N0 174317 Slack 174297 1 -5,000000 -2,000000 0,155000 158,200000 0,000000 0,000000 0,000000 0,000000 0,000000
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -8,9 +8,9 @@ from dataprocessing.readtools import *
def compare_modelica_neplan(Net_Name): # compare the result file from NEPLAN and Modelica
# Read in original nepaln result file
file_Neplan = os.path.abspath(Net_Name + "/" + Net_Name + ".rlf")
file_Neplan = os.path.abspath(os.path.abspath(os.path.join(os.getcwd(), ".."))+"/reference-results/Neplan/BasicGrids/" + Net_Name + ".rlf")
# Read in original Modelica result file
file_Modelica = os.path.abspath(Net_Name + "/" + Net_Name + ".mat")
file_Modelica = os.path.abspath(os.path.abspath(os.path.join(os.getcwd(), "..")) + "/reference-results/Modelica/BasicGrids/" + Net_Name + ".mat")
result_neplan = read_timeseries_NEPLAN_loadflow(file_Neplan)
result_modelica = read_timeseries_Modelica(file_Modelica)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment