Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.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.Generic.Test.ImpedanceTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|load.i.1.|load.i.2.|load.p.1.|load.p.2.|load.v.1.|load.v.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest") translateModel(PowerSystems.Examples.Generic.Test.ImpedanceTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|load.i.1.|load.i.2.|load.p.1.|load.p.2.|load.v.1.|load.v.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001019/0.001019, allocations: 109.4 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.0009768/0.0009768, allocations: 188.3 kB / 18.69 MB, free: 4.402 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.341/1.341, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1739/0.1739, allocations: 38.04 MB / 330.6 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.239e-05/2.242e-05, allocations: 6.219 kB / 458.8 MB, free: 6.906 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.ImpedanceTest): time 0.00423/0.004263, allocations: 3.429 MB / 462.2 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001812/0.00609, allocations: 1.446 MB / 463.7 MB, free: 2.004 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001017/0.006204, allocations: 4 kB / 463.7 MB, free: 2 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007172/0.006928, allocations: 262.9 kB / 463.9 MB, free: 1.742 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004898/0.007444, allocations: 279 kB / 464.2 MB, free: 1.469 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002422/0.007697, allocations: 107.7 kB / 464.3 MB, free: 1.363 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004029/0.00811, allocations: 367 kB / 464.6 MB, free: 1.004 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002674/0.008386, allocations: 97.42 kB / 464.7 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001962/0.008591, allocations: 143.3 kB / 464.9 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001679/0.008768, allocations: 111.5 kB / 465 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.647e-05/0.008802, allocations: 12 kB / 465 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003544/0.009164, allocations: 251.4 kB / 465.3 MB, free: 412 kB / 334.1 MB Notification: Performance of combineBinaries: time 0.0002566/0.00943, allocations: 305 kB / 465.5 MB, free: 104 kB / 334.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001519/0.009589, allocations: 201.6 kB / 465.7 MB, free: 15.9 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.043e-05/0.009635, allocations: 27.94 kB / 465.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.28e-05/0.009663, allocations: 4 kB / 465.8 MB, free: 15.87 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 (33) * Number of variables: 49 (32) Notification: Performance of Bindings: time 0.0009669/0.01064, allocations: 0.8902 MB / 466.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of FunctionAlias: time 4.427e-05/0.01069, allocations: 35.84 kB / 466.7 MB, free: 14.84 MB / 350.1 MB Notification: Performance of Early Inline: time 0.0005216/0.01121, allocations: 0.5255 MB / 467.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of simplify1: time 4.037e-05/0.01126, allocations: 31.94 kB / 467.3 MB, free: 14.26 MB / 350.1 MB Notification: Performance of Alias: time 0.0005691/0.01184, allocations: 483.4 kB / 467.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of simplify2: time 3.257e-05/0.01188, allocations: 31.89 kB / 467.8 MB, free: 13.67 MB / 350.1 MB Notification: Performance of Events: time 4.211e-05/0.01193, allocations: 39.95 kB / 467.8 MB, free: 13.63 MB / 350.1 MB Notification: Performance of Detect States: time 0.0001948/0.01213, allocations: 124.1 kB / 467.9 MB, free: 13.49 MB / 350.1 MB Notification: Performance of Partitioning: time 0.0002019/0.01234, allocations: 169 kB / 468.1 MB, free: 13.31 MB / 350.1 MB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency load.omegaRef could not be divided by the body size 2 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [ARRY] (2) load.v = load.R * load.i + load.omegaRef * load.L * {-load.i[2], load.i[1]} ($RES_SIM_11) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (24/41) ************************** (1) [ALGB] (2) Real[2] load.v (start = load.v_start, nominal = {1000.0 for $i1 in 1:2}) (2) [ALGB] (2) flow Real[2] source.terminal.i (nominal = {1.0 for $i1 in 1:2}) (3) [ALGB] (1) Real load.V = PowerSystems.Examples.Generic.Test.ImpedanceTest.load.PhaseSystem.systemVoltage(load.v) (nominal = 1000.0) (4) [ALGB] (2) flow Real[2] load.terminal_n.i (nominal = {1.0 for $i1 in 1:2}) (5) [ALGB] (2) Real[2] source.p = PowerSystems.Examples.Generic.Test.ImpedanceTest.source.PhaseSystem.phasePowers_vi(source.terminal.v, source.terminal.i) (6) [ALGB] (2) Real[2] load.p = PowerSystems.Examples.Generic.Test.ImpedanceTest.load.PhaseSystem.phasePowers_vi(load.v, load.i) (7) [ALGB] (2) flow Real[2] load.terminal_p.i (nominal = {1.0 for $i1 in 1:2}) (8) [ALGB] (1) Real source.phi = PowerSystems.Examples.Generic.Test.ImpedanceTest.source.PhaseSystem.phase(source.terminal.v) - PowerSystems.Examples.Generic.Test.ImpedanceTest.source.PhaseSystem.phase(-source.terminal.i) (9) [ALGB] (1) Real load.omegaRef (10) [ALGB] (2) Real[2] load.terminal_n.theta (11) [ALGB] (2) Real[2] load.i (start = load.i_start, nominal = {1.0 for $i1 in 1:2}) (12) [ALGB] (2) flow Real[2] ground.terminal.i (nominal = {1.0 for $i1 in 1:2}) (13) [ALGB] (1) Real system.thetaRef = system.thetaRef (14) [ALGB] (2) Real[2] source.terminal.theta (15) [ALGB] (1) Real load.I = PowerSystems.Examples.Generic.Test.ImpedanceTest.load.PhaseSystem.systemCurrent(load.i) (nominal = 1.0) (16) [ALGB] (2) Real[2] load.terminal_n.v (nominal = {1000.0 for $i1 in 1:2}) (17) [ALGB] (2) Real[2] source.terminal.v (nominal = {1000.0 for $i1 in 1:2}) (18) [ALGB] (2) Real[2] load.terminal_p.v (nominal = {1000.0 for $i1 in 1:2}) (19) [ALGB] (1) Real system.thetaRel = system.thetaRef - system.thetaRef (20) [ALGB] (2) Real[2] ground.p = PowerSystems.Examples.Generic.Test.ImpedanceTest.ground.PhaseSystem.phasePowers_vi(ground.terminal.v, ground.terminal.i) (21) [DER-] (2) Real[2] $DER.load.terminal_p.theta (22) [ALGB] (2) Real[2] ground.terminal.theta (23) [ALGB] (1) Real load.phi = PowerSystems.Examples.Generic.Test.ImpedanceTest.load.PhaseSystem.phase(load.v) - PowerSystems.Examples.Generic.Test.ImpedanceTest.load.PhaseSystem.phase(load.i) (24) [ALGB] (2) Real[2] ground.terminal.v (start = ground.v_start, nominal = {1000.0 for $i1 in 1:2}) System Equations (25/41) ************************** (1) [ARRY] (2) load.terminal_p.theta = load.terminal_n.theta ($RES_SIM_9) (2) [ARRY] (2) load.v = load.terminal_p.v - load.terminal_n.v ($RES_SIM_8) (3) [ARRY] (2) load.i = load.terminal_p.i ($RES_SIM_7) (4) [ARRY] (2) ground.terminal.v = {0.0 for $i1 in 1:2} ($RES_SIM_6) (5) [ARRY] (2) {0.0 for $i1 in 1:2} = load.terminal_p.i + load.terminal_n.i ($RES_SIM_10) (6) [ARRY] (2) load.v = load.R * load.i + load.omegaRef * load.L * {-load.i[2], load.i[1]} ($RES_SIM_11) (7) [SCAL] (1) load.omegaRef = $DER.load.terminal_p.theta[2] ($RES_SIM_12) (8) [SCAL] (1) source.terminal.theta[1] = system.thetaRel ($RES_SIM_13) (9) [SCAL] (1) system.thetaRef = 314.1592653589793 * time ($RES_SIM_2) (10) [ARRY] (2) load.terminal_n.v = ground.terminal.v ($RES_SIM_20) (11) [SCAL] (1) source.terminal.theta[2] = system.thetaRef ($RES_SIM_14) (12) [ARRY] (2) load.terminal_n.theta = ground.terminal.theta ($RES_SIM_21) (13) [ARRY] (2) source.terminal.v = {source.V * cos(source.terminal.theta[1]), source.V * sin(source.terminal.theta[1])} ($RES_SIM_15) (14) [FOR-] (2) ($RES_SIM_22) (14) [----] for $i1 in 1:2 loop (14) [----] [SCAL] (1) source.terminal.i[$i1] + load.terminal_p.i[$i1] = 0.0 ($RES_SIM_23) (14) [----] end for; (15) [ARRY] (2) source.terminal.v = load.terminal_p.v ($RES_SIM_24) (16) [FOR-] (2) ($RES_SIM_18) (16) [----] for $i1 in 1:2 loop (16) [----] [SCAL] (1) load.terminal_n.i[$i1] + ground.terminal.i[$i1] = 0.0 ($RES_SIM_19) (16) [----] end for; (17) [SCAL] (1) load.I = sqrt(load.i * load.i) ($RES_BND_30) (18) [ARRY] (2) source.terminal.theta = load.terminal_p.theta ($RES_SIM_25) (19) [SCAL] (1) load.phi = atan2(load.v[2], load.v[1]) - atan2(load.i[2], load.i[1]) ($RES_BND_31) (20) [ARRY] (2) ground.p = {ground.terminal.v * ground.terminal.i, -{-ground.terminal.v[2], ground.terminal.v[1]} * ground.terminal.i} ($RES_BND_32) (21) [ARRY] (2) source.p = {source.terminal.v * source.terminal.i, -{-source.terminal.v[2], source.terminal.v[1]} * source.terminal.i} ($RES_BND_26) (22) [SCAL] (1) system.thetaRel = system.thetaRef - system.thetaRef ($RES_BND_33) (23) [SCAL] (1) source.phi = atan2(source.terminal.v[2], source.terminal.v[1]) - atan2((-source.terminal.i)[2], (-source.terminal.i)[1]) ($RES_BND_27) (24) [ARRY] (2) load.p = {load.v * load.i, -{-load.v[2], load.v[1]} * load.i} ($RES_BND_28) (25) [SCAL] (1) load.V = sqrt(load.v * load.v) ($RES_BND_29)