submit a Bug report when using SCS solver

bug report when using SCS solver

Please submit a bug report with steps to reproduce this fault, and any error messages that follow (i

n their entirety). Thanks.

Exception: EXCEPTION_ACCESS_VIOLATION at 0x6669d61c – validateLinSys at /home/Tony/github/scs\linsy

s\common.c:47

while loading C:\Users\re876928\Desktop\Positive definite Matrix\New folder\sample_case5_modifyPposi

tive_v5.jl, in expression starting on line 34

validateLinSys at /home/Tony/github/scs\linsys\common.c:41

validate at /home/Tony/github/scs\src\scs.c:615 [inlined]

scs_init at /home/Tony/github/scs\src\scs.c:843

SCS_init at C:\Users\re876928\AppData\Local\JuliaPro-0.6.4.1\pkgs-0.6.4.1\v0.6\SCS\src\low_level_wra

pper.jl:13 [inlined]

SCS_solve at C:\Users\re876928\AppData\Local\JuliaPro-0.6.4.1\pkgs-0.6.4.1\v0.6\SCS\src\low_level_wr

apper.jl:44

#SCS_solve#8 at C:\Users\re876928\AppData\Local\JuliaPro-0.6.4.1\pkgs-0.6.4.1\v0.6\SCS\src\high_leve

l_wrapper.jl:140

unknown function (ip: 000000002B9CC406)

jl_call_fptr_internal at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administra

tor/buildbot/worker/package_win64/build/src\julia_internal.h:339 [inlined]

jl_call_method_internal at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administ

rator/buildbot/worker/package_win64/build/src\julia_internal.h:358 [inlined]

jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/b

uildbot/worker/package_win64/build/src\gf.c:1903 [inlined]

jl_apply at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/

worker/package_win64/build/src\julia.h:1424 [inlined]

jl_invoke at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot

/worker/package_win64/build/src\gf.c:51

SCS_solve at C:\Users\re876928\AppData\Local\JuliaPro-0.6.4.1\pkgs-0.6.4.1\v0.6\SCS\src\high_level_w

rapper.jl:127

unknown function (ip: 000000002B9CBDC8)

jl_call_fptr_internal at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administra

tor/buildbot/worker/package_win64/build/src\julia_internal.h:339 [inlined]

jl_call_method_internal at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administ

rator/buildbot/worker/package_win64/build/src\julia_internal.h:358 [inlined]

jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/b

uildbot/worker/package_win64/build/src\gf.c:1903 [inlined]

jl_apply at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/

worker/package_win64/build/src\julia.h:1424 [inlined]

jl_invoke at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot

/worker/package_win64/build/src\gf.c:51

#SCS_solve#9 at C:\Users\re876928\AppData\Local\JuliaPro-0.6.4.1\pkgs-0.6.4.1\v0.6\SCS\src\high_leve

l_wrapper.jl:154

unknown function (ip: 000000002B9CBAF5)

jl_call_fptr_internal at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administra

tor/buildbot/worker/package_win64/build/src\julia_internal.h:339 [inlined]

jl_call_method_internal at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administ

rator/buildbot/worker/package_win64/build/src\julia_internal.h:358 [inlined]

jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/b

uildbot/worker/package_win64/build/src\gf.c:1903 [inlined]

jl_apply at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/

worker/package_win64/build/src\julia.h:1424 [inlined]

jl_invoke at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot

/worker/package_win64/build/src\gf.c:51

SCS_solve at C:\Users\re876928\AppData\Local\JuliaPro-0.6.4.1\pkgs-0.6.4.1\v0.6\SCS\src\high_level_w

rapper.jl:154

optimize! at C:\Users\re876928\AppData\Local\JuliaPro-0.6.4.1\pkgs-0.6.4.1\v0.6\SCS\src\SCSSolverInt

erface.jl:92

unknown function (ip: 000000002B9CB16E)

jl_call_fptr_internal at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administra

tor/buildbot/worker/package_win64/build/src\julia_internal.h:339 [inlined]

jl_call_method_internal at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administ

rator/buildbot/worker/package_win64/build/src\julia_internal.h:358 [inlined]

jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/b

uildbot/worker/package_win64/build/src\gf.c:1903

#solve#116 at C:\\\\\\\\\\\\\\\\\\\\\\\\\\Users\re876928\AppData\Local\Jul

iaPro-0.6.4.1\pkgs-0.6.4.1\v0.6\JuMP\src\solvers.jl:175

unknown function (ip: 000000000D6EF560)

jl_call_fptr_internal at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administra

tor/buildbot/worker/package_win64/build/src\julia_internal.h:339 [inlined]

jl_call_method_internal at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administ

rator/buildbot/worker/package_win64/build/src\julia_internal.h:358 [inlined]

jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/b

uildbot/worker/package_win64/build/src\gf.c:1903 [inlined]

jl_apply at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/

worker/package_win64/build/src\julia.h:1424 [inlined]

jl_invoke at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot

/worker/package_win64/build/src\gf.c:51

solve at C:\\\\\\\\\\\\\\\\\\\\\\\\\\Users\re876928\AppData\Local\JuliaPro

-0.6.4.1\pkgs-0.6.4.1\v0.6\JuMP\src\solvers.jl:150

unknown function (ip: 000000000D6ED4E6)

jl_call_fptr_internal at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administra

tor/buildbot/worker/package_win64/build/src\julia_internal.h:339 [inlined]

jl_call_method_internal at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administ

rator/buildbot/worker/package_win64/build/src\julia_internal.h:358 [inlined]

jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/b

uildbot/worker/package_win64/build/src\gf.c:1903

do_call at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/w

orker/package_win64/build/src\interpreter.c:75

eval at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/work

er/package_win64/build/src\interpreter.c:242

jl_interpret_toplevel_expr at /home/Administrator/buildbot/worker/package_win64/build/src/home/Admin

istrator/buildbot/worker/package_win64/build/src\interpreter.c:34

jl_toplevel_eval_flex at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administra

tor/buildbot/worker/package_win64/build/src\toplevel.c:577

jl_parse_eval_all at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/

buildbot/worker/package_win64/build/src\ast.c:873

include_string at .\loading.jl:522

include_string at C:\\\\\\\\\\\\\\\\\\\\\\\\\\Users\re876928\AppData\Local

\JuliaPro-0.6.4.1\pkgs-0.6.4.1\v0.6\CodeTools\src\eval.jl:30

unknown function (ip: 000000000D661165)

jl_call_fptr_internal at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administra

tor/buildbot/worker/package_win64/build/src\julia_internal.h:339 [inlined]

jl_call_method_internal at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administ

rator/buildbot/worker/package_win64/build/src\julia_internal.h:358 [inlined]

jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/b

uildbot/worker/package_win64/build/src\gf.c:1903

do_call at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/w

orker/package_win64/build/src\interpreter.c:75

eval at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/work

er/package_win64/build/src\interpreter.c:242

jl_interpret_toplevel_expr at /home/Administrator/buildbot/worker/package_win64/build/src/home/Admin

istrator/buildbot/worker/package_win64/build/src\interpreter.c:34

jl_toplevel_eval_flex at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administra

tor/buildbot/worker/package_win64/build/src\toplevel.c:577

jl_toplevel_eval_in at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrato

r/buildbot/worker/package_win64/build/src\builtins.c:496

include_string at C:\\\\\\\\\\\\\\\\\\\\\\\\\\Users\re876928\AppData\Local

\JuliaPro-0.6.4.1\pkgs-0.6.4.1\v0.6\CodeTools\src\eval.jl:34

jl_call_fptr_internal at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administra

tor/buildbot/worker/package_win64/build/src\julia_internal.h:339 [inlined]

jl_call_method_internal at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administ

rator/buildbot/worker/package_win64/build/src\julia_internal.h:358 [inlined]

jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/b

uildbot/worker/package_win64/build/src\gf.c:1903

#102 at C:\Users\re876928\AppData\Local\JuliaPro-0.6.4.1\pkgs-0.6.4.1\v0.6\Atom\src\eval.jl:82

withpath at C:\\\\\\\\\\\\\\\\\\\\\\\\\\Users\re876928\AppData\Local\Julia

Pro-0.6.4.1\pkgs-0.6.4.1\v0.6\CodeTools\src\utils.jl:30

unknown function (ip: 000000000D660C6A)

jl_call_fptr_internal at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administra

tor/buildbot/worker/package_win64/build/src\julia_internal.h:339 [inlined]

jl_call_method_internal at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administ

rator/buildbot/worker/package_win64/build/src\julia_internal.h:358 [inlined]

jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/b

uildbot/worker/package_win64/build/src\gf.c:1903

withpath at C:\Users\re876928\AppData\Local\JuliaPro-0.6.4.1\pkgs-0.6.4.1\v0.6\Atom\src\eval.jl:38

unknown function (ip: 000000000D66091A)

jl_call_fptr_internal at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administra

tor/buildbot/worker/package_win64/build/src\julia_internal.h:339 [inlined]

jl_call_method_internal at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administ

rator/buildbot/worker/package_win64/build/src\julia_internal.h:358 [inlined]

jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/b

uildbot/worker/package_win64/build/src\gf.c:1903 [inlined]

jl_apply at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/

worker/package_win64/build/src\julia.h:1424 [inlined]

jl_invoke at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot

/worker/package_win64/build/src\gf.c:51

hideprompt at C:\Users\re876928\AppData\Local\JuliaPro-0.6.4.1\pkgs-0.6.4.1\v0.6\Atom\src\repl.jl:67

unknown function (ip: 000000000D660376)

jl_call_fptr_internal at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administra

tor/buildbot/worker/package_win64/build/src\julia_internal.h:339 [inlined]

jl_call_method_internal at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administ

rator/buildbot/worker/package_win64/build/src\julia_internal.h:358 [inlined]

jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/b

uildbot/worker/package_win64/build/src\gf.c:1903

macro expansion at C:\Users\re876928\AppData\Local\JuliaPro-0.6.4.1\pkgs-0.6.4.1\v0.6\Atom\src\eval.

jl:80 [inlined]

#100 at .\task.jl:80

jl_call_fptr_internal at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administra

tor/buildbot/worker/package_win64/build/src\julia_internal.h:339 [inlined]

jl_call_method_internal at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administ

rator/buildbot/worker/package_win64/build/src\julia_internal.h:358 [inlined]

jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/b

uildbot/worker/package_win64/build/src\gf.c:1903

jl_apply at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/

worker/package_win64/build/src\julia.h:1424 [inlined]

start_task at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbo

t/worker/package_win64/build/src\task.c:267

Allocations: 34085461 (Pool: 34082640; Big: 2821); GC: 111

Julia has exited. Press Enter to start a new session.

Here is my code as below:

using JuMP
using SCS
using DataFrames,ConditionalJuMP
m = Model(solver=SCSSolver())

#importing data from csv files
path1="C:\Users\re876928\Desktop\Positive definite Matrix\ef.csv"
path2="C:\Users\re876928\Desktop\Positive definite Matrix\pii.csv"
xi=readcsv(path1) #ei fi dataset, sammple_size * 2bus_num
P_all=readcsv(path2)/100 # all bus power sets,sammple_size * 2
bus_num
Pi=-1*P_all[:,2] #only bus power at bus 2
sample_size=10000 # sample size
bus_num=5 #bus number

#define variables
@variable(m,aij[i=1:2*bus_num,j=1:2*bus_num],Symmetric) # define coefficients matrix aij by 2bus_num2bus_num
@SDconstraint(m, aij >= eye(2
bus_num))
@variable(m,t[i=1:sample_size])
#define constraints
@constraint(m,[i=1:sample_size],(xi[i,:]'aijxi[i,:]-Pi[i])<=t[i])
@constraint(m,[i=1:sample_size],(xi[i,:]'aijxi[i,:]-Pi[i])>=-t[i])
@constraint(m,[i=1:sample_size],xi[i,:]'aijxi[i,:]>=0)
@objective(m, Min,sum(t[i]/sample_size for i=1:sample_size))

solve(m)
println("m = ",getobjectivevalue(m))
println("Aij = ", getvalue(aij))
Aij=getvalue(aij)
output1="C:\Users\re876928\Desktop\Positive definite Matrix\result_case5P_bus2_A_v2.csv;
writedlm(output1,Aij)

Based on the output, the appropriate place to file a bug report would probably be https://github.com/JuliaOpt/SCS.jl

It would probably help if you could create a reproducible example (i.e. code and data).

2 Likes

Thanks for your suggestion!