Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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 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.AC1ph_DC.Elementary.Impedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_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.001138/0.001138, allocations: 105.6 kB / 17.69 MB, free: 5.523 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.001138/0.001138, allocations: 192.7 kB / 18.63 MB, free: 4.594 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.256/1.256, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1625/0.1625, allocations: 38.05 MB / 330.5 MB, free: 8.781 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.212e-05/2.228e-05, allocations: 2.281 kB / 400.2 MB, free: 33.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance): time 0.004253/0.004292, allocations: 4.343 MB / 404.5 MB, free: 29.08 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001149/0.005462, allocations: 0.9429 MB / 405.5 MB, free: 28.14 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001366/0.00561, allocations: 15.88 kB / 405.5 MB, free: 28.12 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001678/0.005785, allocations: 56.86 kB / 405.6 MB, free: 28.07 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004575/0.006266, allocations: 241 kB / 405.8 MB, free: 27.84 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001788/0.006455, allocations: 103.8 kB / 405.9 MB, free: 27.73 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004074/0.006872, allocations: 0.5375 MB / 406.4 MB, free: 27.2 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001662/0.007046, allocations: 92.91 kB / 406.5 MB, free: 27.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002077/0.007261, allocations: 211.1 kB / 406.7 MB, free: 26.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002541/0.007524, allocations: 195.2 kB / 406.9 MB, free: 26.71 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.811e-05/0.007562, allocations: 23.94 kB / 406.9 MB, free: 26.69 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.944e-05/0.007607, allocations: 16 kB / 407 MB, free: 26.68 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0002479/0.00786, allocations: 482.8 kB / 407.4 MB, free: 26.2 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001179/0.007985, allocations: 339.8 kB / 407.8 MB, free: 25.86 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.48e-05/0.008035, allocations: 47.81 kB / 407.8 MB, free: 25.82 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.832e-05/0.008073, allocations: 11.94 kB / 407.8 MB, free: 25.8 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: 63 (45) * Number of variables: 63 (44) Notification: Performance of Bindings: time 0.000875/0.008953, allocations: 1.325 MB / 409.1 MB, free: 24.37 MB / 302.1 MB Notification: Performance of FunctionAlias: time 8.925e-05/0.009049, allocations: 71.81 kB / 409.2 MB, free: 24.3 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0002958/0.009352, allocations: 495.4 kB / 409.7 MB, free: 23.79 MB / 302.1 MB Notification: Performance of simplify1: time 3.653e-05/0.009394, allocations: 39.94 kB / 409.7 MB, free: 23.75 MB / 302.1 MB Notification: Performance of Alias: time 0.000642/0.01004, allocations: 0.7222 MB / 410.5 MB, free: 22.91 MB / 302.1 MB Notification: Performance of simplify2: time 2.694e-05/0.01008, allocations: 35.88 kB / 410.5 MB, free: 22.87 MB / 302.1 MB Notification: Performance of Events: time 3.664e-05/0.01012, allocations: 35.95 kB / 410.5 MB, free: 22.84 MB / 302.1 MB Notification: Performance of Detect States: time 0.0001937/0.01032, allocations: 150 kB / 410.7 MB, free: 22.68 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001666/0.0105, allocations: 195.4 kB / 410.9 MB, free: 22.47 MB / 302.1 MB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency $FUN_1 could not be devided 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)