The call to zeros(n_q - 1) here:
|
(zr_q, zx_q) := z_matrix(n_q, x_q, xsig_s, r_s, zeros(n_q-1), xsig_rq, r_rq); |
seems to come down to
zeros(-1), if we resolve
n_q:
|
final parameter Integer n_q=size(xsig_rq,1); |
|
parameter SIpu.Reactance[:] xsig_rq=fill(0,0) |
giving the expression zeros(size(fill(0, 0), 1) - 1) ==> zeros(-1), which is illegal (all arguments to zeros need to be >=0), or am I missing something?
The call to
zeros(n_q - 1)here:PowerSystems/PowerSystems/Examples/AC3ph/Precalculation.mo
Line 1142 in 69fd1e7
seems to come down to
zeros(-1), if we resolven_q:PowerSystems/PowerSystems/Examples/AC3ph/Precalculation.mo
Line 1137 in 69fd1e7
PowerSystems/PowerSystems/Examples/AC3ph/Precalculation.mo
Line 1116 in 69fd1e7
giving the expression
zeros(size(fill(0, 0), 1) - 1)==>zeros(-1), which is illegal (all arguments tozerosneed to be>=0), or am I missing something?