Menu

Error message

Beginners
2019-10-17
2019-10-18
  • William Tiago

    William Tiago - 2019-10-17

    After I did the system, appeared this alert :
    Error Encountered in Solve: Access violation at address 00000000007FDA42 in module 'OpenDSS.exe'. Read of address 0000000000000000

    I Don't understand why this appeared here.

    This, probably, is related to coordinates of the bus or something else??

     
    • Davis Montenegro

      Hello,

      It sounds like an old bug we had when integrated the UCF modules. What OpenDSS version are you working with?

      Best regards

      Davis

       
      • William Tiago

        William Tiago - 2019-10-18

        Clear

        //....O CIRCUITO EM QUESTÃO HAVERÁ 10 BARRAS, 11 CONSUMIDORES E 7 GERADORES SOLARES....//

        ! objeto = tipo.nome

        New object=circuit.TCC_OPENDSS

        ~ basekv=13.8 Bus1=Barra_Slack pu=1.00 R1=0 X1=0.0001 R0=0 X0=0.0001 angle=0

        //... line used...//

        ! Cabo 150mm2
        New LineCode.ISL1/0CABT r1=0.6719 x1=0.1278 r0=0.9003 x0=0.2172 C1=0 C0=0 Units=km

        ! Cabo 150mm2
        New LineCode.2X16+16BT r1=2.449 x1=0.1707 r0=3.2810 x0=0.2903 C1=0 C0=0 Units=km

        ! Cabo 150mm2
        New LineCode.3X120+70BT r1=0.3414 x1=0.1539 r0=0.4574 x0=0.2617 C1=0 C0=0 Units=km

        //...............................................................................................................................
        //................Other types of bus .......................................................
        //...............................................................................................................................
        ! Cabo 50mm2
        New LineCode.50 R1=0.7440 X1=0.1092 R0=0.7440 X0=0.1092 C1=0 C0=0 Units=km

        ! Cabo 1/0 AWG - 53,43mm2
        New LineCode.1awg R1=0.3766 X1=0.4513 R0=0.3766 X0=0.4513 C1=0 C0=0 Units=km

        ! Cabo 2 AWG - 53,43mm2
        New LineCode.2awg R1=0.5561 X1=0.3467 R0=0.5561 X0=0.3467 C1=0 C0=0 Units=km

        ! Cabo 4 AWG - 21,15mm2
        New LineCode.4awg R1=0.9341 X1=0.4904 R0=0.9341 X0=0.4904 C1=0 C0=0 Units=km

        ! Cabo 6 AWG - 13,33mm2
        New LineCode.6awg R1=1.4854 X1=0.5078 R0=1.4854 X0=0.5078 C1=0 C0=0 Units=km
        //..................................................................................................................................

        //.........Transformer.................//

        new transformer.TF_4611_3_75 phases=3 windings=2 buses=[1 1r] conns=[wye wye] kvs=[4.16 4.16] kvas=[5000 5000] XHL=.001 %LoadLoss=0.00001 ppm=0.0

        new regcontrol.creg1a transformer=TF_4611_3_75 winding=2 vreg=120 band=2 ptratio=20 ctprim=700 R=3 X=7.5

        //... A SEGUIR AS ESPECIFÍCAÇÕES DAS BARRAS A SEREM CONECTADAS E QUAIS LINHAS ESTARÃO PRESENTES.....//

        New Line.Lslack Phases=3 Bus1=Barra_Slack.1.2.3 Bus2=Barra1.1.2.3 LineCode=ISL1/0CABT Length=0.04205 Units=km

        New Line.L1 Phases=3 Bus1=Barra1.1.2.3 Bus2=Barra2.1.2.3 LineCode=ISL1/0CABT Length=0.03712 Units=km

        New Line.L2 Phases=3 Bus1=Barra2.1.2.3 Bus2=Barra3.1.2.3 LineCode=3X120+70BT Length=0.00943 Units=km

        New Line.L3 Phases=3 Bus1=Barra3.1.2.3 Bus2=Barra4.1.2.3 LineCode=3X120+70BT Length=0.02505 Units=km

        New Line.L4 Phases=3 Bus1=Barra4.1.2.3 Bus2=Barra5.1.2.3 LineCode=3X120+70BT Length=0.03264 Units=km

        New Line.L5 Phases=3 Bus1=Barra5.1.2.3 Bus2=Barra6.1.2.3 LineCode=3X120+70BT Length=0.03220 Units=km

        New Line.L6 Phases=3 Bus1=Barra3.1.2.3 Bus2=Barra7.1.2.3 LineCode=3X120+70BT Length=0.00538 Units=km

        New Line.L7 Phases=3 Bus1=Barra7.1.2.3 Bus2=Barra8.1.2.3 LineCode=3X120+70BT Length=0.03361 Units=km

        New Line.L8 Phases=3 Bus1=Barra8.1.2.3 Bus2=Barra9.1.2.3 LineCode=3X120+70BT Length=0.03130 Units=km

        New Line.L9 Phases=3 Bus1=Barra9.1.2.3 Bus2=Barra10.1.2.3 LineCode=3X120+70BT Length=0.03130 Units=km

        //.........................................................................................................................
        //............Generator Bus slack...........................................................
        //.........................................................................................................................

        New Generator.Gslack Bus1=Barra_SLACK Phases=3 model=1 Kv=13.8 kW=100 pf=1 status=Fixed

        //.........................................................................................................................
        //............Genarator Solar...................................................................................
        //.........................................................................................................................

        New Generator.G1 Bus1=Barra1 Phases=3 model=7 kV=13.8 kW=100 pf=1 status=variable

        New Generator.G3 Bus1=Barra2 Phases=3 model=7 kV=13.8 kW=100 pf=1 status=variable

        New Generator.G4 Bus1=Barra4 Phases=3 model=7 kV=13.8 kW=100 pf=1 status=variable

        New Generator.G7 Bus1=8arra6 Phases=3 model=7 kV=13.8 kW=100 pf=1 status=variable

        New Generator.G8 Bus1=Barra7 Phases=3 model=7 kV=13.8 kW=100 pf=1 status=variable

        New Generator.G9 Bus1=8arra10 Phases=3 model=7 kV=13.8 kW=100 pf=1 status=variable

        New Generator.G10 Bus1=Barra3 Phases=3 model=7 kV=13.8 kW=100 pf=1 status=variable

        //................................................................................................................................................................................
        //.............(Loads in Circuit)...............................................................................................................
        //...........................................................................,....................................................................................................

        ! Fase A = 1; B=2; C=3

        ! Tipos de cargas

        new loadshape.Tipo1 npts=24 interval=1.0
        new loadshape.Tipo2 npts=24 interval=1.0
        new loadshape.Tipo3 npts=24 interval=1.0
        new loadshape.Tipo4 npts=24 interval=1.0
        new loadshape.Tipo5 npts=24 interval=1.0
        new loadshape.Tipo6 npts=24 interval=1.0
        new loadshape.Tipo7 npts=24 interval=1.0
        new loadshape.Tipo8 npts=24 interval=1.0
        new loadshape.Tipo9 npts=24 interval=1.0
        new loadshape.Tipo10 npts=24 interval=1.0
        new loadshape.Tipo11 npts=24 interval=1.0
        new loadshape.Tipo12 npts=24 interval=1.0
        new loadshape.Tipo13 npts=24 interval=1.0
        new loadshape.Tipo14 npts=24 interval=1.0
        new loadshape.Tipo15 npts=24 interval=1.0
        new loadshape.Tipo16 npts=24 interval=1.0
        new loadshape.Tipo17 npts=24 interval=1.0

        New Load.T1 Bus1=Barra1.1.2 Phases=2 Conn=LN Model=1 kV=13.8 kW=36 kvar=2.17 daily=Tipo10 status=variable

        New Load.T1_2 Bus1=Barra1.1.2 Phases=2 Conn=LN Model=1 kV=13.8 kW=60 kvar=0.90 daily=Tipo8 status=variable

        New Load.T2 Bus1=Barra2.1.2 Phases=2 Conn=LN Model=1 kV=13.8 kW=60 kvar=0.90 daily=Tipo8 status=variable

        New Load.T3 Bus1=Barra3.1.2.3 Phases=3 Conn=LN Model=1 kV=13.8 kW=36 kvar=1.92 daily=Tipo3 status=variable

        New Load.T4 Bus1=Barra4.1.2.3 Phases=3 Conn=LN Model=1 kV=13.8 kW=24 kvar=1.32 daily=Tipo14 status=variable

        New Load.T5 Bus1=Barra5.1.2.3 Phases=3 Conn=LN Model=1 kV=13.8 kW=24 kvar=21.10 daily=Tipo6 status=variable

        New Load.T6 Bus1=Barra6.1.2.3 Phases=3 Conn=LN Model=1 kV=13.8 kW=36 kvar=1.56 daily=Tipo15 status=variable

        New Load.T7 Bus1=Barra7.1.2 Phases=2 Conn=LN Model=1 kV=13.8 kW=60 kvar=1.23 daily=Tipo6 status=variable

        New Load.T8 Bus1=Barra8.1.2 Phases=2 Conn=LN Model=1 kV=13.8 kW=60 kvar=1.22 daily=Tipo13 status=variable

        New Load.T9 Bus1=Barra9.1.2.3 Phases=3 Conn=LN Model=1 kV=13.8 kW=60 kvar=1.27 daily=Tipo10 status=variable

        New Load.T10 Bus1=Barra10.1.2 Phases=2 Conn=LN Model=1 kV=13.8 kW=36 kvar=0.70 daily=Tipo11 status=variable

        New monitor.M1_PQ element=Line.L1 2 mode=1 ppolar=no
        New monitor.M2_PQ element=Line.L2 2 mode=1 ppolar=no
        New monitor.M3_PQ element=Line.L3 2 mode=1 ppolar=no
        New monitor.M4_PQ element=Line.L4 2 mode=1 ppolar=no
        New monitor.M5_PQ element=Line.L5 2 mode=1 ppolar=no
        New monitor.M6_PQ element=Line.L6 2 mode=1 ppolar=no
        New monitor.M7_PQ element=Line.L7 2 mode=1 ppolar=no
        New monitor.M8_PQ element=Line.L8 2 mode=1 ppolar=no
        New monitor.M9_PQ element=Line.L9 2 mode=1 ppolar=no

        New monitor.M1_VI element=Line.L1 2 mode=0
        New monitor.M2_VI element=Line.L2 2 mode=0
        New monitor.M3_VI element=Line.L3 2 mode=0
        New monitor.M4_VI element=Line.L4 2 mode=0
        New monitor.M5_VI element=Line.L5 2 mode=0
        New monitor.M6_VI element=Line.L6 2 mode=0
        New monitor.M7_VI element=Line.L7 2 mode=0
        New monitor.M8_VI element=Line.L8 2 mode=0
        New monitor.M9_VI element=Line.L9 2 mode=0

        set controlmode=static
        set mode=daily
        Set Voltagebases=[13.8]

        Solve

        this the circuit

         
  • William Tiago

    William Tiago - 2019-10-17

    Hi Davis,

    the version is 8.6.1.1 ( 64-bit build)

     
    • Davis Montenegro

      Hello,

      Unfortunately, your script is badly written. Among the errors it has, I would like to mention a few:

      1. The model is inconsistent, several elements are disconneted like transformer.TF_4611_3_75.
      2. In the model, lines are conected to one bus and geenrators connected to other, for example, Line.L5 is connected to buses "Barra5" and "Barra6", however, generator.G7 is connected to bus "8arra6". "8arra6" and "Barra6" are different buses, I think is a typo so be careful, that's the source of the floating point error.
      3. Update your OpenDSS version, current version is 8.6.5.4.
      4. The loadshapes need to be defined correctly. Please check the example provided as well as the user's manual page 132.
      5. ...

      Check the example attached, I've modified your model to make it work, but I guess you may have to modify it again to match your study case.

      Best regards

      Davis

       

Log in to post a comment.

MongoDB Logo MongoDB