Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.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.AC1ph_DC.Elementary.Impedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1480,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1480,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001074/0.001075, allocations: 111.8 kB / 17.75 MB, free: 5.328 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.001057/0.001057, allocations: 189.9 kB / 18.69 MB, free: 4.402 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.086/1.086, allocations: 205.1 MB / 224.6 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1492/0.1492, allocations: 37.99 MB / 309.9 MB, free: 5.953 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.007e-06/9.006e-06, allocations: 2.281 kB / 432.5 MB, free: 15.72 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance): time 0.003073/0.00309, allocations: 4.333 MB / 436.8 MB, free: 11.36 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008858/0.003987, allocations: 0.9902 MB / 437.8 MB, free: 10.37 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001019/0.004099, allocations: 11.94 kB / 437.8 MB, free: 10.36 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001299/0.004235, allocations: 51.5 kB / 437.9 MB, free: 10.3 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000362/0.004604, allocations: 246.8 kB / 438.1 MB, free: 10.06 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001446/0.004763, allocations: 99.81 kB / 438.2 MB, free: 9.965 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003258/0.005097, allocations: 0.5452 MB / 438.8 MB, free: 9.418 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001225/0.005227, allocations: 85.17 kB / 438.8 MB, free: 9.34 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001674/0.005407, allocations: 227 kB / 439.1 MB, free: 9.117 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002017/0.005617, allocations: 187.2 kB / 439.2 MB, free: 8.934 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.545e-05/0.00565, allocations: 24 kB / 439.3 MB, free: 8.91 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.236e-05/0.005699, allocations: 16 kB / 439.3 MB, free: 8.895 MB / 318.1 MB Notification: Performance of combineBinaries: time 0.0002088/0.005913, allocations: 490.7 kB / 439.8 MB, free: 8.41 MB / 318.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001011/0.006019, allocations: 331.8 kB / 440.1 MB, free: 8.082 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.692e-05/0.00606, allocations: 47.81 kB / 440.1 MB, free: 8.035 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.6e-05/0.006081, allocations: 11.94 kB / 440.1 MB, free: 8.023 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: 63 (45) * Number of variables: 63 (44) Notification: Performance of Bindings: time 0.0007226/0.006808, allocations: 1.327 MB / 441.5 MB, free: 6.586 MB / 318.1 MB Notification: Performance of FunctionAlias: time 6.674e-05/0.00688, allocations: 63.89 kB / 441.5 MB, free: 6.523 MB / 318.1 MB Notification: Performance of Early Inline: time 0.0002671/0.007153, allocations: 0.4915 MB / 442 MB, free: 6.004 MB / 318.1 MB Notification: Performance of simplify1: time 3.299e-05/0.007192, allocations: 47.94 kB / 442.1 MB, free: 5.957 MB / 318.1 MB Notification: Performance of Alias: time 0.0005008/0.007698, allocations: 0.7066 MB / 442.8 MB, free: 5.129 MB / 318.1 MB Notification: Performance of simplify2: time 2.5e-05/0.007732, allocations: 43.94 kB / 442.8 MB, free: 5.086 MB / 318.1 MB Notification: Performance of Events: time 2.7e-05/0.007764, allocations: 39.95 kB / 442.9 MB, free: 5.047 MB / 318.1 MB Notification: Performance of Detect States: time 0.000118/0.007886, allocations: 144.3 kB / 443 MB, free: 4.895 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0001413/0.008034, allocations: 203.4 kB / 443.2 MB, free: 4.68 MB / 318.1 MB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency $FUN_1 could not be divided by the body size 2 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [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_25) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (33/55) ************************** (1) [ALGB] (2) flow Real[2] grd2.term.i (nominal = {1.0 for $i1 in 1:2}) (2) [ALGB] (2) Real[2] ind.term_n.v (nominal = {1000.0 for $i1 in 1:2}) (3) [ALGB] (4) Real[2, 2] $FUN_4 (4) [ALGB] (1) protected Real voltage.phi (5) [ALGB] (1) Real $FUN_2 (6) [ALGB] (1) Real $FUN_1 (7) [ALGB] (1) Real system.thetaRel = voltage.theta - 0.0 (8) [ALGB] (2) flow Real[2] meter.term_p.i (nominal = {1.0 for $i1 in 1:2}) (9) [ALGB] (1) flow Real voltage.neutral.i (10) [ALGB] (2) Real[2] grd2.term.v (nominal = {1000.0 for $i1 in 1:2}) (11) [ALGB] (2) flow Real[2] voltage.term.i (nominal = {1.0 for $i1 in 1:2}) (12) [ALGB] (1) protected Real voltage.theta (StateSelect = prefer) (13) [ALGB] (2) Real[2] meter.term_p.v (nominal = {1000.0 for $i1 in 1:2}) (14) [ALGB] (2) Real[2] ind.v (start = ind.v_start, nominal = {1000.0 for $i1 in 1:2}) (15) [ALGB] (1) Real meter.v (StateSelect = never) (16) [ALGB] (2) flow Real[2] meter.term_n.i (nominal = {1.0 for $i1 in 1:2}) (17) [ALGB] (2) flow Real[2] ind.term_p.i (nominal = {1.0 for $i1 in 1:2}) (18) [ALGB] (2) Real[2] voltage.term.v (nominal = {1000.0 for $i1 in 1:2}) (19) [ALGB] (1) protected Real voltage.alpha (20) [ALGB] (2) Real[2] transPh.y (21) [ALGB] (1) Real meter.p (StateSelect = never) (22) [ALGB] (2) protected Real[2] meter.i_ab (23) [ALGB] (2) Real[2] meter.term_n.v (nominal = {1000.0 for $i1 in 1:2}) (24) [ALGB] (1) Real meter.i (StateSelect = never) (25) [ALGB] (2) Real[2] ind.term_p.v (nominal = {1000.0 for $i1 in 1:2}) (26) [ALGB] (2) flow Real[2] ind.term_n.i (nominal = {1.0 for $i1 in 1:2}) (27) [ALGB] (2) protected Real[2] voltage.vPhasor_internal (28) [DER-] (2) Real[2] $DER.ind.i (29) [ALGB] (2) protected Real[2] meter.v_ab (30) [ALGB] (1) protected Real voltage.V (nominal = 1000.0) (31) [ALGB] (2) Real[2] voltage.vPhasor_in (32) [ALGB] (1) Real meter.v0 (StateSelect = never) (33) [ALGB] (1) Real meter.i0 (StateSelect = never) System Equations (34/55) ************************** (1) [SCAL] (1) meter.p = meter.v_ab * meter.i_ab ($RES_SIM_10) (2) [SCAL] (1) $FUN_1 = tanh(transPh.coef * (time - transPh.t_change)) ($RES_$AUX_52) (3) [SCAL] (1) meter.i0 = meter.i_ab[1] + meter.i_ab[2] ($RES_SIM_11) (4) [SCAL] (1) meter.i = 0.5 * (meter.i_ab[1] - meter.i_ab[2]) ($RES_SIM_12) (5) [SCAL] (1) meter.v0 = 0.5 * (meter.v_ab[1] + meter.v_ab[2]) ($RES_SIM_13) (6) [SCAL] (1) meter.v = meter.v_ab[1] - meter.v_ab[2] ($RES_SIM_14) (7) [ARRY] (2) meter.i_ab = meter.term_p.i / meter.I_base ($RES_SIM_15) (8) [ARRY] (2) meter.v_ab = meter.term_p.v / meter.V_base ($RES_SIM_16) (9) [SCAL] (1) voltage.term.v[2] = 0.0 ($RES_SIM_18) (10) [FOR-] (2) ($RES_SIM_36) (10) [----] for $i1 in 1:2 loop (10) [----] [SCAL] (1) ind.term_n.i[$i1] + grd2.term.i[$i1] = 0.0 ($RES_SIM_37) (10) [----] end for; (11) [ARRY] (2) ind.term_n.v = grd2.term.v ($RES_SIM_38) (12) [FOR-] (2) ($RES_SIM_39) (12) [----] for $i1 in 1:2 loop (12) [----] [SCAL] (1) meter.term_n.i[$i1] + ind.term_p.i[$i1] = 0.0 ($RES_SIM_40) (12) [----] end for; (13) [SCAL] (1) system.thetaRel = voltage.theta ($RES_BND_47) (14) [SCAL] (1) voltage.term.v[1] - voltage.term.v[2] = voltage.V * $FUN_2 ($RES_SIM_21) (15) [SCAL] (1) voltage.phi = voltage.theta + voltage.alpha ($RES_SIM_22) (16) [ARRY] (4) $FUN_4 = diagonal(ind.R) ($RES_$AUX_49) (17) [SCAL] (1) voltage.alpha = voltage.vPhasor_internal[2] ($RES_SIM_23) (18) [SCAL] (1) voltage.V = 1.4142135623730951 * voltage.vPhasor_internal[1] * voltage.V_base ($RES_SIM_24) (19) [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_25) (20) [ARRY] (2) meter.term_n.v = ind.term_p.v ($RES_SIM_41) (21) [FOR-] (2) ($RES_SIM_42) (21) [----] for $i1 in 1:2 loop (21) [----] [SCAL] (1) voltage.term.i[$i1] + meter.term_p.i[$i1] = 0.0 ($RES_SIM_43) (21) [----] end for; (22) [SCAL] (1) voltage.theta = 314.1592653589793 * time ($RES_SIM_28) (23) [ARRY] (2) voltage.term.v = meter.term_p.v ($RES_SIM_44) (24) [ARRY] (2) transPh.y = voltage.vPhasor_in ($RES_SIM_45) (25) [ARRY] (2) voltage.vPhasor_in = voltage.vPhasor_internal ($RES_SIM_46) (26) [ARRY] (2) meter.term_p.v = meter.term_n.v ($RES_SIM_8) (27) [ARRY] (2) meter.term_p.i + meter.term_n.i = {0.0 for $i1 in 1:2} ($RES_SIM_7) (28) [ARRY] (2) ind.L * $DER.ind.i + $FUN_4 * ind.i = ind.v ($RES_SIM_6) (29) [ARRY] (2) ind.v = ind.term_p.v - ind.term_n.v ($RES_SIM_5) (30) [ARRY] (2) ind.i = ind.term_p.i ($RES_SIM_4) (31) [ARRY] (2) ind.term_p.i + ind.term_n.i = {0.0 for $i1 in 1:2} ($RES_SIM_3) (32) [ARRY] (2) grd2.term.v = {0.0 for $i1 in 1:2} ($RES_SIM_1) (33) [SCAL] (1) -voltage.neutral.i = sum(voltage.term.i) ($RES_$AUX_50) (34) [SCAL] (1) $FUN_2 = cos(voltage.phi) ($RES_$AUX_51)