Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.AC3ph.Elementary.Machines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|asynchron.i.1.|asynchron.i.2.|asynchron.i.3.|asynchron.v.1.|asynchron.v.2.|asynchron.v.3.|asynchron.w_el|power.p.1.|power.p.2.|power.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines") translateModel(PowerSystems.Examples.AC3ph.Elementary.Machines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|asynchron.i.1.|asynchron.i.2.|asynchron.i.3.|asynchron.v.1.|asynchron.v.2.|asynchron.v.3.|asynchron.w_el|power.p.1.|power.p.2.|power.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001309/0.001309, allocations: 108 kB / 17.7 MB, free: 5.266 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.00137/0.00137, allocations: 192.1 kB / 18.64 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.276/1.276, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1646/0.1646, allocations: 38.03 MB / 330.5 MB, free: 8.773 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.353e-05/2.363e-05, allocations: 2.281 kB / 400.2 MB, free: 33.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.005136/0.005177, allocations: 5.394 MB / 405.6 MB, free: 28.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005455/0.01068, allocations: 4.162 MB / 409.8 MB, free: 23.86 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004859/0.0112, allocations: 19.88 kB / 409.8 MB, free: 23.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006982/0.01819, allocations: 4.836 MB / 414.6 MB, free: 19.01 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008055/0.01902, allocations: 338.4 kB / 414.9 MB, free: 18.68 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005102/0.01957, allocations: 251.4 kB / 415.2 MB, free: 18.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001355/0.02094, allocations: 1.676 MB / 416.9 MB, free: 16.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003472/0.0213, allocations: 276.1 kB / 417.1 MB, free: 16.48 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002918/0.0216, allocations: 370.6 kB / 417.5 MB, free: 16.11 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000279/0.02188, allocations: 342.5 kB / 417.8 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.312e-05/0.02193, allocations: 36 kB / 417.9 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00221/0.02415, allocations: 2.121 MB / 420 MB, free: 13.62 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0004163/0.02458, allocations: 0.9159 MB / 420.9 MB, free: 12.69 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002227/0.02481, allocations: 0.6288 MB / 421.5 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.87e-05/0.02489, allocations: 79.75 kB / 421.6 MB, free: 11.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.996e-05/0.02497, allocations: 11.94 kB / 421.6 MB, free: 11.96 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 121 (79) * Number of variables: 121 (78) Notification: Performance of Bindings: time 0.001564/0.02654, allocations: 2.719 MB / 424.3 MB, free: 9.121 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0001416/0.02669, allocations: 167.6 kB / 424.5 MB, free: 8.957 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0007664/0.02746, allocations: 1.143 MB / 425.6 MB, free: 7.785 MB / 302.1 MB Notification: Performance of simplify1: time 7.099e-05/0.02754, allocations: 91.84 kB / 425.7 MB, free: 7.695 MB / 302.1 MB Notification: Performance of Alias: time 0.0009462/0.0285, allocations: 1.238 MB / 427 MB, free: 6.309 MB / 302.1 MB Notification: Performance of simplify2: time 5.968e-05/0.02857, allocations: 83.86 kB / 427.1 MB, free: 6.227 MB / 302.1 MB Notification: Performance of Events: time 5.253e-05/0.02862, allocations: 79.89 kB / 427.1 MB, free: 6.148 MB / 302.1 MB Notification: Performance of Detect States: time 0.0002536/0.02888, allocations: 348.3 kB / 427.5 MB, free: 5.797 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0002979/0.02919, allocations: 398.1 kB / 427.9 MB, free: 5.367 MB / 302.1 MB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency asynchron.omega[2] could not be devided by the body size 2 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [ARRY] (2) asynchron.omega[2] * {-asynchron.psi_s[2], asynchron.psi_s[1]} + $DER.asynchron.psi_s + asynchron.c.R_s * asynchron.i[1:2] = asynchron.v[1:2] ($RES_SIM_32) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (58/102) *************************** (1) [ALGB] (3) flow Real[3] power.term_p.i (nominal = {1.0 for $i1 in 1:3}) (2) [ALGB] (1) protected Real[1] asynchron.v_rd = {0.0 for $i1 in 1:1} (nominal = {1000.0 for $i1 in 1:1}) (3) [ALGB] (4) Real[2, 2] $FUN_4 (4) [ALGB] (1) protected Real voltage.phi (5) [ALGB] (1) Real $FUN_3 (6) [ALGB] (1) Real $FUN_2 (7) [ALGB] (1) Real rotor.a (8) [ALGB] (1) Real[1] boundary.Q_flow (9) [ALGB] (1) Real $FUN_1 (10) [ALGB] (1) Real system.thetaRel = system.thetaRef - system.thetaRef (11) [ALGB] (1) flow Real voltage.neutral.i (12) [ALGB] (2) Real[2] power.term_p.theta (13) [ALGB] (3) Real[3] power.term_p.v (nominal = {1000.0 for $i1 in 1:3}) (14) [ALGB] (3) Real[3] asynchron.term.v (nominal = {1000.0 for $i1 in 1:3}) (15) [DER-] (2) Real[2] $DER.asynchron.term.theta (16) [ALGB] (3) Real[3] power.p (17) [DER-] (1) Real[1] $DER.asynchron.psi_rd (18) [ALGB] (3) Real[3] asynchron.v (start = {400.0, 0.0, 0.0}, nominal = {1000.0 for $i1 in 1:3}) (19) [ALGB] (2) Real[2] power.term_n.theta (20) [ALGB] (3) flow Real[3] power.term_n.i (nominal = {1.0 for $i1 in 1:3}) (21) [ALGB] (3) flow Real[3] voltage.term.i (nominal = {1.0 for $i1 in 1:3}) (22) [ALGB] (3) Real[3] asynchron.top.i_term (nominal = {1.0 for $i1 in 1:3}) (23) [ALGB] (3) Real[3] asynchron.top.i_cond = asynchron.i (nominal = {1.0 for $i1 in 1:3}) (24) [ALGB] (1) Real[1] asynchron.i_n = asynchron.top.i_n (nominal = {1.0 for $i1 in 1:1}) (25) [DER-] (1) Real $DER.rotor.w (26) [ALGB] (3) flow Real[3] asynchron.term.i (nominal = {1.0 for $i1 in 1:3}) (27) [ALGB] (2) protected Real[2] asynchron.omega (28) [DER-] (1) Real[1] $DER.asynchron.psi_rq (29) [ALGB] (1) Real[1] asynchron.top.i_n (start = {0.0 for $i1 in 1:1}, nominal = {1.0 for $i1 in 1:1}) (30) [ALGB] (1) Real[1] asynchron.v_n (nominal = {1000.0 for $i1 in 1:1}) (31) [ALGB] (1) Real asynchron.tau_el (32) [ALGB] (1) protected Real[1] asynchron.i_rq (start = asynchron.i_rq_start, nominal = {1.0 for $i1 in 1:1}) (33) [DER-] (1) Real $DER.rotor.flange_b.phi (34) [ALGB] (3) Real[3] power.term_n.v (nominal = {1000.0 for $i1 in 1:3}) (35) [ALGB] (2) Real[2] voltage.term.theta (36) [ALGB] (3) Real[3] voltage.term.v (nominal = {1000.0 for $i1 in 1:3}) (37) [ALGB] (1) flow Real asynchron.airgap.tau (38) [ALGB] (1) protected Real voltage.alpha (39) [ALGB] (2) Real[2] transPh.y (40) [ALGB] (1) Real[1] asynchron.top.v_n = asynchron.v_n (start = {0.0 for $i1 in 1:1}, nominal = {1000.0 for $i1 in 1:1}) (41) [ALGB] (2) flow Real[2] boundary.heat.ports.Q_flow (42) [ALGB] (2) flow Real[2] asynchron.heat.ports.Q_flow (43) [ALGB] (3) Real[3] asynchron.top.v_term (nominal = {1000.0 for $i1 in 1:3}) (44) [ALGB] (3) Real[3] asynchron.top.v_cond = asynchron.v (nominal = {1000.0 for $i1 in 1:3}) (45) [ALGB] (1) protected Real[1] asynchron.i_rd (start = asynchron.i_rd_start, nominal = {1.0 for $i1 in 1:1}) (46) [DER-] (1) Real $DER.asynchron.phi_el (47) [ALGB] (1) Real asynchron.w_el (48) [ALGB] (1) protected Real[1] asynchron.v_rq = {0.0 for $i1 in 1:1} (nominal = {1000.0 for $i1 in 1:1}) (49) [ALGB] (2) protected Real[2] voltage.vPhasor_internal (50) [DER-] (3) Real[3] $DER.asynchron.i (51) [DER-] (2) Real[2] $DER.asynchron.psi_s (52) [ALGB] (1) protected Real voltage.V (nominal = 1000.0) (53) [ALGB] (2) Real[2] voltage.vPhasor_in (54) [ALGB] (1) Real $FUN_8 (55) [ALGB] (1) Real $FUN_6 (56) [ALGB] (1) Real system.thetaRef = system.thetaRef (57) [ALGB] (1) Real asynchron.slip (58) [ALGB] (1) Real[1, 1] $FUN_5 System Equations (59/102) *************************** (1) [ARRY] (1) ($DER.asynchron.psi_rd + $FUN_5 * asynchron.i_rd) - (asynchron.omega[2] - asynchron.w_el) * asynchron.psi_rq = asynchron.v_rd ($RES_SIM_30) (2) [SCAL] (1) rotor.a = $DER.rotor.w ($RES_SIM_15) (3) [SCAL] (1) asynchron.c.L_s[3] * $DER.asynchron.i[3] + asynchron.c.R_s * asynchron.i[3] = asynchron.v[3] ($RES_SIM_31) (4) [SCAL] (1) rotor.w = $DER.rotor.flange_b.phi ($RES_SIM_16) (5) [ARRY] (2) asynchron.omega[2] * {-asynchron.psi_s[2], asynchron.psi_s[1]} + $DER.asynchron.psi_s + asynchron.c.R_s * asynchron.i[1:2] = asynchron.v[1:2] ($RES_SIM_32) (6) [ARRY] (1) asynchron.psi_rq = asynchron.L_m .* asynchron.i[2] + asynchron.L_r * asynchron.i_rq ($RES_SIM_33) (7) [SCAL] (1) rotor.J * rotor.a = torq.tau0 - asynchron.airgap.tau ($RES_SIM_18) (8) [SCAL] (1) $FUN_6 = sum(asynchron.omega) ($RES_$AUX_90) (9) [ARRY] (1) asynchron.psi_rd = asynchron.L_m .* asynchron.i[1] + asynchron.L_r * asynchron.i_rd ($RES_SIM_34) (10) [ARRY] (3) asynchron.term.i = asynchron.top.i_term ($RES_SIM_19) (11) [ARRY] (1) $FUN_5 = diagonal(asynchron.R_r) ($RES_$AUX_91) (12) [ARRY] (2) asynchron.psi_s = $FUN_4 * asynchron.i[1:2] + {asynchron.L_m * asynchron.i_rd, asynchron.L_m * asynchron.i_rq} ($RES_SIM_35) (13) [SCAL] (1) voltage.V = voltage.vPhasor_internal[1] * voltage.V_base ($RES_SIM_50) (14) [ARRY] (4) $FUN_4 = diagonal(asynchron.c.L_s[1:2]) ($RES_$AUX_92) (15) [ARRY] (2) transPh.y = 0.5 * ({transPh.a_end + transPh.a_start, transPh.ph_end + transPh.ph_start} + {transPh.a_end - transPh.a_start, transPh.ph_end - transPh.ph_start} .* $FUN_1) ($RES_SIM_51) (16) [SCAL] (1) asynchron.top.i_n[1] = 1.7320508075688772 * asynchron.top.i_term[3] ($RES_SIM_36) (17) [SCAL] (1) $FUN_3 = sin(voltage.phi) ($RES_$AUX_93) (18) [ARRY] (3) asynchron.top.i_term = asynchron.top.i_cond ($RES_SIM_37) (19) [SCAL] (1) $FUN_2 = cos(voltage.phi) ($RES_$AUX_94) (20) [ARRY] (3) asynchron.top.v_cond = asynchron.top.v_term - {0.0, 0.0, 1.7320508075688772 * asynchron.top.v_n[1]} ($RES_SIM_38) (21) [SCAL] (1) $FUN_1 = tanh(transPh.coef * (time - transPh.t_change)) ($RES_$AUX_95) (22) [SCAL] (1) system.thetaRef = 314.1592653589793 * time ($RES_SIM_54) (23) [ARRY] (2) power.term_n.theta = power.term_p.theta ($RES_SIM_39) (24) [ARRY] (3) power.term_n.v = asynchron.term.v ($RES_SIM_71) (25) [ARRY] (2) power.term_n.theta = asynchron.term.theta ($RES_SIM_72) (26) [FOR-] (3) ($RES_SIM_73) (26) [----] for $i1 in 1:3 loop (26) [----] [SCAL] (1) voltage.term.i[$i1] + power.term_p.i[$i1] = 0.0 ($RES_SIM_74) (26) [----] end for; (27) [ARRY] (3) voltage.term.v = power.term_p.v ($RES_SIM_75) (28) [ARRY] (3) asynchron.top.v_cond = asynchron.v ($RES_BND_81) (29) [ARRY] (2) voltage.term.theta = power.term_p.theta ($RES_SIM_76) (30) [ARRY] (3) asynchron.top.i_cond = asynchron.i ($RES_BND_82) (31) [ARRY] (2) transPh.y = voltage.vPhasor_in ($RES_SIM_77) (32) [ARRY] (1) asynchron.top.v_n = asynchron.v_n ($RES_BND_83) (33) [ARRY] (2) voltage.vPhasor_in = voltage.vPhasor_internal ($RES_SIM_78) (34) [ARRY] (1) asynchron.i_n = asynchron.top.i_n ($RES_BND_85) (35) [SCAL] (1) asynchron.v_rd[1] = 0.0 ($RES_BND_86) (36) [SCAL] (1) asynchron.v_rq[1] = 0.0 ($RES_BND_87) (37) [ARRY] (3) asynchron.term.v = asynchron.top.v_term ($RES_SIM_20) (38) [SCAL] (1) asynchron.w_el = $DER.asynchron.phi_el ($RES_SIM_21) (39) [SCAL] (1) asynchron.airgap.tau = -asynchron.pp * asynchron.tau_el ($RES_SIM_22) (40) [SCAL] (1) asynchron.pp * rotor.flange_b.phi = asynchron.phi_el ($RES_SIM_23) (41) [ARRY] (2) asynchron.omega = $DER.asynchron.term.theta ($RES_SIM_24) (42) [ARRY] (3) power.term_p.i + power.term_n.i = {0.0 for $i1 in 1:3} ($RES_SIM_40) (43) [ARRY] (2) asynchron.heat.ports.Q_flow = -{asynchron.c.R_s * asynchron.i * asynchron.i, $FUN_5 * asynchron.i_rd * asynchron.i_rd + $FUN_5 * asynchron.i_rq * asynchron.i_rq} ($RES_SIM_25) (44) [ARRY] (3) power.term_p.v = power.term_n.v ($RES_SIM_41) (45) [SCAL] (1) asynchron.tau_el = asynchron.i[1:2] * {-asynchron.psi_s[2], asynchron.psi_s[1]} ($RES_SIM_26) (46) [ARRY] (3) power.p = {power.term_p.v[1:2] * power.term_p.i[1:2], -{-power.term_p.v[2], power.term_p.v[1]} * power.term_p.i[1:2], power.term_p.v[3] * power.term_p.i[3]} / power.S_base ($RES_SIM_42) (47) [SCAL] (1) asynchron.slip = (-1.0) + asynchron.w_el / $FUN_6 ($RES_SIM_27) (48) [SCAL] (1) 1.7320508075688772 * voltage.term.i[3] + voltage.neutral.i = 0.0 ($RES_SIM_43) (49) [ARRY] (1) asynchron.v_n = asynchron.c.R_n * asynchron.i_n ($RES_SIM_28) (50) [ARRY] (2) voltage.term.theta = {system.thetaRel, system.thetaRef} ($RES_SIM_44) (51) [ARRY] (1) (asynchron.omega[2] - asynchron.w_el) * asynchron.psi_rd + $DER.asynchron.psi_rq + $FUN_5 * asynchron.i_rq = asynchron.v_rq ($RES_SIM_29) (52) [SCAL] (1) $FUN_8 = sum(boundary.heat.ports.Q_flow) ($RES_$AUX_88) (53) [ARRY] (3) voltage.term.v = {$FUN_2 * voltage.V, $FUN_3 * voltage.V, 0.0} ($RES_SIM_47) (54) [FOR-] (2) ($RES_SIM_63) (54) [----] for $i1 in 1:2 loop (54) [----] [SCAL] (1) asynchron.heat.ports[$i1].Q_flow + boundary.heat.ports[$i1].Q_flow = 0.0 ($RES_SIM_64) (54) [----] end for; (55) [SCAL] (1) voltage.phi = voltage.term.theta[1] + voltage.alpha ($RES_SIM_48) (56) [SCAL] (1) voltage.alpha = voltage.vPhasor_internal[2] ($RES_SIM_49) (57) [ARRY] (1) boundary.Q_flow = {$FUN_8} ($RES_SIM_8) (58) [FOR-] (3) ($RES_SIM_69) (58) [----] for $i1 in 1:3 loop (58) [----] [SCAL] (1) power.term_n.i[$i1] + asynchron.term.i[$i1] = 0.0 ($RES_SIM_70) (58) [----] end for; (59) [SCAL] (1) system.thetaRel = system.thetaRef - system.thetaRef ($RES_BND_79)