Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Introductory.ReferenceSynchron,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron") translateModel(PowerSystems.Examples.Introductory.ReferenceSynchron,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001318/0.001317, allocations: 106.8 kB / 17.69 MB, free: 5.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001432/0.001432, allocations: 192 kB / 18.63 MB, free: 4.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.538/1.538, allocations: 205.1 MB / 224.5 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1745/0.1745, allocations: 38 MB / 309.8 MB, free: 5.984 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.279e-05/3.305e-05, allocations: 2.281 kB / 376.7 MB, free: 3 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.212/0.2121, allocations: 4.419 MB / 381.1 MB, free: 59.75 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002461/0.2146, allocations: 1.472 MB / 382.6 MB, free: 59.41 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002728/0.2149, allocations: 18.12 kB / 382.6 MB, free: 59.41 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001067/0.2159, allocations: 366.9 kB / 383 MB, free: 59.32 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000673/0.2167, allocations: 255.3 kB / 383.2 MB, free: 59.28 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007387/0.2174, allocations: 243.8 kB / 383.5 MB, free: 59.25 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007625/0.2182, allocations: 0.6182 MB / 384.1 MB, free: 59.2 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003786/0.2186, allocations: 191.7 kB / 384.3 MB, free: 59.2 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000345/0.2189, allocations: 250.5 kB / 384.5 MB, free: 59.15 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003587/0.2193, allocations: 208.6 kB / 384.7 MB, free: 59.11 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.304e-05/0.2194, allocations: 21.59 kB / 384.7 MB, free: 59.11 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005355/0.2199, allocations: 193.1 kB / 384.9 MB, free: 59.09 MB / 318.1 MB Notification: Performance of combineBinaries: time 0.0004941/0.2204, allocations: 0.5375 MB / 385.5 MB, free: 58.82 MB / 318.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002938/0.2207, allocations: 370 kB / 385.8 MB, free: 58.61 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001004/0.2208, allocations: 53.5 kB / 385.9 MB, free: 58.59 MB / 318.1 MB Notification: Performance of FrontEnd: time 6.398e-05/0.2209, allocations: 6.312 kB / 385.9 MB, free: 58.59 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 118 (56) * Number of variables: 118 (56) Notification: Performance of Bindings: time 0.001554/0.2224, allocations: 1.465 MB / 387.4 MB, free: 57.92 MB / 318.1 MB Notification: Performance of FunctionAlias: time 0.0002073/0.2227, allocations: 134.2 kB / 387.5 MB, free: 57.89 MB / 318.1 MB Notification: Performance of Early Inline: time 0.0008963/0.2236, allocations: 0.8293 MB / 388.3 MB, free: 57.77 MB / 318.1 MB Notification: Performance of simplify1: time 9.987e-05/0.2237, allocations: 67.7 kB / 388.4 MB, free: 57.76 MB / 318.1 MB Notification: Performance of Alias: time 0.001204/0.2249, allocations: 0.9005 MB / 389.3 MB, free: 57.31 MB / 318.1 MB Notification: Performance of simplify2: time 8.056e-05/0.225, allocations: 56.61 kB / 389.3 MB, free: 57.29 MB / 318.1 MB Notification: Performance of Events: time 7.447e-05/0.2251, allocations: 55.92 kB / 389.4 MB, free: 57.25 MB / 318.1 MB Notification: Performance of Detect States: time 0.0005416/0.2256, allocations: 217.7 kB / 389.6 MB, free: 57.11 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0003954/0.226, allocations: 284.2 kB / 389.9 MB, free: 56.95 MB / 318.1 MB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency meter_dq0.v[1] could not be devided by the body size 3 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [ARRY] (3) meter_dq0.p = {meter_dq0.v[1:2] * meter_dq0.i[1:2], -{-meter_dq0.v[2], meter_dq0.v[1]} * meter_dq0.i[1:2], meter_dq0.v[3] * meter_dq0.i[3]} ($RES_SIM_19) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (46/117) *************************** (1) [ALGB] (2) protected Real[2] voltage_dq0.vPhasor_internal (2) [ALGB] (1) Real $FUN_2 (3) [ALGB] (1) Real meter_dq0.i_norm (StateSelect = never) (4) [ALGB] (3) flow Real[3] meter_dq0.term_p.i (nominal = {1.0 for $i1 in 1:3}) (5) [ALGB] (3) flow Real[3] load_dq0.term_p.i (nominal = {1.0 for $i1 in 1:3}) (6) [ALGB] (1) Real $FUN_1 (7) [ALGB] (3) Real[3] voltage_dq0.term.v (nominal = {1000.0 for $i1 in 1:3}) (8) [ALGB] (1) Real system.thetaRel = system.thetaRef - system.thetaRef (9) [ALGB] (4) protected Real[2, 2] meter_dq0.Rot_dq (10) [DER-] (2) Real[2] $DER.load_dq0.term_p.theta (11) [ALGB] (3) Real[3] meter_dq0.i (StateSelect = never) (12) [ALGB] (3) flow Real[3] grd_dq0.term.i (nominal = {1.0 for $i1 in 1:3}) (13) [ALGB] (1) protected Real voltage_dq0.V (nominal = 1000.0) (14) [ALGB] (3) Real[3] meter_dq0.p (StateSelect = never) (15) [ALGB] (1) protected Real voltage_dq0.alpha (16) [DER-] (3) Real[3] $DER.load_dq0.i (17) [ALGB] (3) flow Real[3] voltage_dq0.term.i (nominal = {1.0 for $i1 in 1:3}) (18) [ALGB] (3) Real[3] meter_dq0.vpp_abc = PowerSystems.Examples.Introductory.ReferenceSynchron.meter_dq0.v2vpp_abc(transpose(meter_dq0.Park) * meter_dq0.v) (StateSelect = never) (19) [ALGB] (3) Real[3] meter_dq0.v_abc = transpose(meter_dq0.Park) * meter_dq0.v (StateSelect = never) (20) [ALGB] (3) Real[3] meter_dq0.v (StateSelect = never) (21) [ALGB] (9) protected Real[3, 3] meter_dq0.Park (22) [ALGB] (3) Real[3] load_dq0.v (start = load_dq0.v_start, nominal = {1000.0 for $i1 in 1:3}) (23) [ALGB] (2) Real[2] grd_dq0.term.theta (24) [ALGB] (2) Real[2] voltage_dq0.term.theta (25) [ALGB] (3) Real[3] meter_dq0.term_n.v (nominal = {1000.0 for $i1 in 1:3}) (26) [ALGB] (3) Real[3] load_dq0.term_n.v (nominal = {1000.0 for $i1 in 1:3}) (27) [ALGB] (2) Real[2] meter_dq0.term_p.theta (28) [ALGB] (3) Real[3] meter_dq0.i_abc = transpose(meter_dq0.Park) * meter_dq0.i (StateSelect = never) (29) [ALGB] (1) flow Real voltage_dq0.neutral.i (30) [ALGB] (2) Real[2] meter_dq0.term_n.theta (31) [ALGB] (1) Real meter_dq0.v_norm (StateSelect = never) (32) [ALGB] (2) Real[2] meter_dq0.vpp (StateSelect = never) (33) [ALGB] (2) Real[2] load_dq0.term_n.theta (34) [ALGB] (3) flow Real[3] meter_dq0.term_n.i (nominal = {1.0 for $i1 in 1:3}) (35) [ALGB] (3) flow Real[3] load_dq0.term_n.i (nominal = {1.0 for $i1 in 1:3}) (36) [ALGB] (1) Real meter_dq0.alpha_v (StateSelect = never) (37) [ALGB] (2) protected Real[2] load_dq0.omega (38) [ALGB] (3) Real[3] meter_dq0.term_p.v (nominal = {1000.0 for $i1 in 1:3}) (39) [ALGB] (3) Real[3] load_dq0.term_p.v (nominal = {1000.0 for $i1 in 1:3}) (40) [ALGB] (4) Real[2, 2] $FUN_9 (41) [ALGB] (9) Real[3, 3] $FUN_8 (42) [ALGB] (1) protected Real voltage_dq0.phi (43) [ALGB] (3) Real[3] grd_dq0.term.v (nominal = {1000.0 for $i1 in 1:3}) (44) [ALGB] (1) Real meter_dq0.cos_phi (StateSelect = never) (45) [ALGB] (1) Real meter_dq0.alpha_i (StateSelect = never) (46) [ALGB] (1) Real system.thetaRef = system.thetaRef System Equations (46/117) *************************** (1) [ARRY] (3) meter_dq0.term_p.v = meter_dq0.term_n.v ($RES_SIM_10) (2) [ARRY] (4) meter_dq0.Rot_dq = $FUN_9 ($RES_SIM_11) (3) [ARRY] (9) meter_dq0.Park = $FUN_8 ($RES_SIM_12) (4) [SCAL] (1) voltage_dq0.alpha = voltage_dq0.vPhasor_internal[2] ($RES_SIM_30) (5) [SCAL] (1) voltage_dq0.V = voltage_dq0.vPhasor_internal[1] * voltage_dq0.V_base ($RES_SIM_31) (6) [ARRY] (2) voltage_dq0.vPhasor_internal = {voltage_dq0.v0, voltage_dq0.alpha0} ($RES_SIM_32) (7) [ARRY] (3) meter_dq0.p = {meter_dq0.v[1:2] * meter_dq0.i[1:2], -{-meter_dq0.v[2], meter_dq0.v[1]} * meter_dq0.i[1:2], meter_dq0.v[3] * meter_dq0.i[3]} ($RES_SIM_19) (8) [SCAL] (1) system.thetaRef = 314.1592653589793 * time ($RES_SIM_35) (9) [ARRY] (2) meter_dq0.term_n.theta = load_dq0.term_p.theta ($RES_SIM_50) (10) [FOR-] (3) ($RES_SIM_51) (10) [----] for $i1 in 1:3 loop (10) [----] [SCAL] (1) voltage_dq0.term.i[$i1] + meter_dq0.term_p.i[$i1] = 0.0 ($RES_SIM_52) (10) [----] end for; (11) [ARRY] (3) voltage_dq0.term.v = meter_dq0.term_p.v ($RES_SIM_53) (12) [ARRY] (2) voltage_dq0.term.theta = meter_dq0.term_p.theta ($RES_SIM_54) (13) [ARRY] (4) $FUN_9 = PowerSystems.Examples.Introductory.ReferenceSynchron.meter_dq0.rot_dq(meter_dq0.term_p.theta[1]) ($RES_$AUX_60) (14) [ARRY] (9) $FUN_8 = PowerSystems.Examples.Introductory.ReferenceSynchron.meter_dq0.park(meter_dq0.term_p.theta[2]) ($RES_$AUX_61) (15) [ARRY] (3) meter_dq0.i = meter_dq0.term_p.i / meter_dq0.I_base ($RES_SIM_20) (16) [SCAL] (1) meter_dq0.cos_phi = cos(meter_dq0.alpha_v - meter_dq0.alpha_i) ($RES_$AUX_62) (17) [ARRY] (2) meter_dq0.vpp = 1.7320508075688772 * {meter_dq0.v[2], -meter_dq0.v[1]} ($RES_SIM_21) (18) [SCAL] (1) meter_dq0.alpha_i = atan2(meter_dq0.Rot_dq[:, 2] * meter_dq0.i[1:2], meter_dq0.Rot_dq[:, 1] * meter_dq0.i[1:2]) ($RES_$AUX_63) (19) [ARRY] (3) meter_dq0.v = meter_dq0.term_p.v / meter_dq0.V_base ($RES_SIM_22) (20) [SCAL] (1) meter_dq0.i_norm = sqrt(meter_dq0.i * meter_dq0.i) ($RES_$AUX_64) (21) [SCAL] (1) meter_dq0.alpha_v = atan2(meter_dq0.Rot_dq[:, 2] * meter_dq0.v[1:2], meter_dq0.Rot_dq[:, 1] * meter_dq0.v[1:2]) ($RES_$AUX_65) (22) [SCAL] (1) 1.7320508075688772 * voltage_dq0.term.i[3] + voltage_dq0.neutral.i = 0.0 ($RES_SIM_24) (23) [SCAL] (1) meter_dq0.v_norm = sqrt(meter_dq0.v * meter_dq0.v) ($RES_$AUX_66) (24) [ARRY] (2) voltage_dq0.term.theta = {system.thetaRel, system.thetaRef} ($RES_SIM_25) (25) [SCAL] (1) $FUN_2 = sin(voltage_dq0.phi) ($RES_$AUX_67) (26) [SCAL] (1) $FUN_1 = cos(voltage_dq0.phi) ($RES_$AUX_68) (27) [ARRY] (3) voltage_dq0.term.v = {$FUN_1 * voltage_dq0.V, $FUN_2 * voltage_dq0.V, 0.0} ($RES_SIM_28) (28) [FOR-] (3) ($RES_SIM_43) (28) [----] for $i1 in 1:3 loop (28) [----] [SCAL] (1) load_dq0.term_n.i[$i1] + grd_dq0.term.i[$i1] = 0.0 ($RES_SIM_44) (28) [----] end for; (29) [SCAL] (1) voltage_dq0.phi = voltage_dq0.term.theta[1] + voltage_dq0.alpha ($RES_SIM_29) (30) [ARRY] (3) load_dq0.term_n.v = grd_dq0.term.v ($RES_SIM_45) (31) [ARRY] (2) load_dq0.term_n.theta = grd_dq0.term.theta ($RES_SIM_46) (32) [FOR-] (3) ($RES_SIM_47) (32) [----] for $i1 in 1:3 loop (32) [----] [SCAL] (1) meter_dq0.term_n.i[$i1] + load_dq0.term_p.i[$i1] = 0.0 ($RES_SIM_48) (32) [----] end for; (33) [ARRY] (3) meter_dq0.term_p.i + meter_dq0.term_n.i = {0.0 for $i1 in 1:3} ($RES_SIM_9) (34) [ARRY] (3) meter_dq0.term_n.v = load_dq0.term_p.v ($RES_SIM_49) (35) [SCAL] (1) system.thetaRel = system.thetaRef - system.thetaRef ($RES_BND_55) (36) [ARRY] (2) meter_dq0.term_n.theta = meter_dq0.term_p.theta ($RES_SIM_8) (37) [ARRY] (3) load_dq0.omega[2] * load_dq0.L * {-load_dq0.i[2], load_dq0.i[1], 0.0} + {load_dq0.L, load_dq0.L, load_dq0.L0} * $DER.load_dq0.i + load_dq0.R * load_dq0.i = load_dq0.v ($RES_SIM_7) (38) [ARRY] (3) meter_dq0.v_abc = transpose(meter_dq0.Park) * meter_dq0.v ($RES_BND_57) (39) [ARRY] (2) load_dq0.omega = $DER.load_dq0.term_p.theta ($RES_SIM_6) (40) [ARRY] (3) meter_dq0.vpp_abc = {(transpose(meter_dq0.Park) * meter_dq0.v)[2] - (transpose(meter_dq0.Park) * meter_dq0.v)[3], (transpose(meter_dq0.Park) * meter_dq0.v)[3] - (transpose(meter_dq0.Park) * meter_dq0.v)[1], (transpose(meter_dq0.Park) * meter_dq0.v)[1] - (transpose(meter_dq0.Park) * meter_dq0.v)[2]} ($RES_BND_58) (41) [ARRY] (3) load_dq0.v = load_dq0.term_p.v - load_dq0.term_n.v ($RES_SIM_5) (42) [ARRY] (3) meter_dq0.i_abc = transpose(meter_dq0.Park) * meter_dq0.i ($RES_BND_59) (43) [ARRY] (3) load_dq0.i = load_dq0.term_p.i ($RES_SIM_4) (44) [ARRY] (3) load_dq0.term_p.i + load_dq0.term_n.i = {0.0 for $i1 in 1:3} ($RES_SIM_3) (45) [ARRY] (2) load_dq0.term_n.theta = load_dq0.term_p.theta ($RES_SIM_2) (46) [ARRY] (3) grd_dq0.term.v = {0.0 for $i1 in 1:3} ($RES_SIM_1)