Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.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.FixedLoadTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|line.i.1.|line.i.2.|line.p.1.|line.p.2.|line.v.1.|line.v.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest") translateModel(PowerSystems.Examples.Generic.Test.FixedLoadTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|line.i.1.|line.i.2.|line.p.1.|line.p.2.|line.v.1.|line.v.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001174/0.001179, 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.001163/0.001164, 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.27/1.27, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1638/0.1638, allocations: 38.05 MB / 330.5 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.465e-05/2.467e-05, allocations: 4.812 kB / 400.2 MB, free: 33.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.FixedLoadTest): time 0.003528/0.00357, allocations: 3.465 MB / 403.7 MB, free: 29.93 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001507/0.005099, allocations: 1.532 MB / 405.2 MB, free: 28.4 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001066/0.00522, allocations: 8 kB / 405.2 MB, free: 28.39 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006769/0.005903, allocations: 261.8 kB / 405.5 MB, free: 28.14 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004497/0.00638, allocations: 275.8 kB / 405.7 MB, free: 27.87 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002285/0.006619, allocations: 125.5 kB / 405.9 MB, free: 27.75 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003313/0.00696, allocations: 379.6 kB / 406.2 MB, free: 27.38 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002502/0.007218, allocations: 95.28 kB / 406.3 MB, free: 27.29 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001737/0.007401, allocations: 143.9 kB / 406.5 MB, free: 27.15 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001478/0.007557, allocations: 116 kB / 406.6 MB, free: 27.04 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.044e-05/0.007585, allocations: 12.94 kB / 406.6 MB, free: 27.03 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002928/0.007883, allocations: 271.3 kB / 406.8 MB, free: 26.76 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0001981/0.00809, allocations: 309.8 kB / 407.1 MB, free: 26.46 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 9.737e-05/0.008193, allocations: 220.8 kB / 407.4 MB, free: 26.24 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.272e-05/0.008233, allocations: 24.75 kB / 407.4 MB, free: 26.22 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.553e-05/0.008263, allocations: 4 kB / 407.4 MB, free: 26.21 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: 49 (33) * Number of variables: 49 (32) Notification: Performance of Bindings: time 0.0007899/0.009059, allocations: 0.9041 MB / 408.3 MB, free: 25.21 MB / 302.1 MB Notification: Performance of FunctionAlias: time 4.423e-05/0.009111, allocations: 39.86 kB / 408.3 MB, free: 25.17 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0004345/0.009551, allocations: 0.5607 MB / 408.9 MB, free: 24.58 MB / 302.1 MB Notification: Performance of simplify1: time 3.286e-05/0.009593, allocations: 31.94 kB / 408.9 MB, free: 24.55 MB / 302.1 MB Notification: Performance of Alias: time 0.0004731/0.01007, allocations: 0.4953 MB / 409.4 MB, free: 23.97 MB / 302.1 MB Notification: Performance of simplify2: time 2.63e-05/0.01011, allocations: 31.94 kB / 409.5 MB, free: 23.94 MB / 302.1 MB Notification: Performance of Events: time 3.411e-05/0.01015, allocations: 39.95 kB / 409.5 MB, free: 23.9 MB / 302.1 MB Notification: Performance of Detect States: time 0.000167/0.01032, allocations: 125.2 kB / 409.6 MB, free: 23.76 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001428/0.01047, allocations: 172.1 kB / 409.8 MB, free: 23.58 MB / 302.1 MB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency load.terminal.v[1] could not be devided by the body size 2 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [ARRY] (2) {load.terminal.v * load.terminal.i, -{-load.terminal.v[2], load.terminal.v[1]} * load.terminal.i} = {load.P, load.P * tan(load.phi)} ($RES_SIM_6) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (24/41) ************************** (1) [ALGB] (2) Real[2] line.p = PowerSystems.Examples.Generic.Test.FixedLoadTest.line.PhaseSystem.phasePowers_vi(line.v, line.i) (2) [ALGB] (2) Real[2] line.terminal_n.v (nominal = {1000.0 for $i1 in 1:2}) (3) [ALGB] (1) Real line.omegaRef (4) [ALGB] (2) flow Real[2] source.terminal.i (nominal = {1.0 for $i1 in 1:2}) (5) [ALGB] (2) Real[2] line.i (start = line.i_start, nominal = {1.0 for $i1 in 1:2}) (6) [ALGB] (2) Real[2] source.p = PowerSystems.Examples.Generic.Test.FixedLoadTest.source.PhaseSystem.phasePowers_vi(source.terminal.v, source.terminal.i) (7) [ALGB] (2) Real[2] load.p = PowerSystems.Examples.Generic.Test.FixedLoadTest.load.PhaseSystem.phasePowers_vi(load.terminal.v, load.terminal.i) (8) [ALGB] (2) Real[2] line.terminal_n.theta (9) [ALGB] (1) Real line.I = PowerSystems.Examples.Generic.Test.FixedLoadTest.line.PhaseSystem.systemCurrent(line.i) (nominal = 1.0) (10) [ALGB] (2) flow Real[2] load.terminal.i (nominal = {1.0 for $i1 in 1:2}) (11) [ALGB] (1) Real source.phi = PowerSystems.Examples.Generic.Test.FixedLoadTest.source.PhaseSystem.phase(source.terminal.v) - PowerSystems.Examples.Generic.Test.FixedLoadTest.source.PhaseSystem.phase(-source.terminal.i) (12) [ALGB] (2) flow Real[2] line.terminal_p.i (nominal = {1.0 for $i1 in 1:2}) (13) [ALGB] (2) flow Real[2] line.terminal_n.i (nominal = {1.0 for $i1 in 1:2}) (14) [ALGB] (1) Real line.phi = PowerSystems.Examples.Generic.Test.FixedLoadTest.line.PhaseSystem.phase(line.v) - PowerSystems.Examples.Generic.Test.FixedLoadTest.line.PhaseSystem.phase(line.i) (15) [ALGB] (1) Real system.thetaRef = system.thetaRef (16) [ALGB] (2) Real[2] source.terminal.theta (17) [ALGB] (2) Real[2] source.terminal.v (nominal = {1000.0 for $i1 in 1:2}) (18) [ALGB] (1) Real system.thetaRel = system.thetaRef - system.thetaRef (19) [ALGB] (2) Real[2] line.v (start = line.v_start, nominal = {1000.0 for $i1 in 1:2}) (20) [ALGB] (1) Real line.V = PowerSystems.Examples.Generic.Test.FixedLoadTest.line.PhaseSystem.systemVoltage(line.v) (nominal = 1000.0) (21) [ALGB] (2) Real[2] load.terminal.v (start = load.v_start, nominal = {1000.0 for $i1 in 1:2}) (22) [ALGB] (2) Real[2] line.terminal_p.v (nominal = {1000.0 for $i1 in 1:2}) (23) [ALGB] (2) Real[2] load.terminal.theta (24) [DER-] (2) Real[2] $DER.line.terminal_p.theta System Equations (25/41) ************************** (1) [ARRY] (2) line.terminal_p.theta = line.terminal_n.theta ($RES_SIM_9) (2) [ARRY] (2) line.v = line.terminal_p.v - line.terminal_n.v ($RES_SIM_8) (3) [ARRY] (2) line.i = line.terminal_p.i ($RES_SIM_7) (4) [ARRY] (2) {load.terminal.v * load.terminal.i, -{-load.terminal.v[2], load.terminal.v[1]} * load.terminal.i} = {load.P, load.P * tan(load.phi)} ($RES_SIM_6) (5) [ARRY] (2) {0.0 for $i1 in 1:2} = line.terminal_p.i + line.terminal_n.i ($RES_SIM_10) (6) [ARRY] (2) line.v = line.R * line.i + line.omegaRef * line.L * {-line.i[2], line.i[1]} ($RES_SIM_11) (7) [SCAL] (1) line.omegaRef = $DER.line.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) line.terminal_n.v = load.terminal.v ($RES_SIM_20) (11) [SCAL] (1) source.terminal.theta[2] = system.thetaRef ($RES_SIM_14) (12) [ARRY] (2) line.terminal_n.theta = load.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] + line.terminal_p.i[$i1] = 0.0 ($RES_SIM_23) (14) [----] end for; (15) [ARRY] (2) source.terminal.v = line.terminal_p.v ($RES_SIM_24) (16) [FOR-] (2) ($RES_SIM_18) (16) [----] for $i1 in 1:2 loop (16) [----] [SCAL] (1) line.terminal_n.i[$i1] + load.terminal.i[$i1] = 0.0 ($RES_SIM_19) (16) [----] end for; (17) [SCAL] (1) line.I = sqrt(line.i * line.i) ($RES_BND_30) (18) [ARRY] (2) source.terminal.theta = line.terminal_p.theta ($RES_SIM_25) (19) [SCAL] (1) line.phi = atan2(line.v[2], line.v[1]) - atan2(line.i[2], line.i[1]) ($RES_BND_31) (20) [ARRY] (2) load.p = {load.terminal.v * load.terminal.i, -{-load.terminal.v[2], load.terminal.v[1]} * load.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) line.p = {line.v * line.i, -{-line.v[2], line.v[1]} * line.i} ($RES_BND_28) (25) [SCAL] (1) line.V = sqrt(line.v * line.v) ($RES_BND_29)