Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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(Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001359/0.00136, allocations: 104.2 kB / 16.37 MB, free: 6.363 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.001245/0.001245, allocations: 193.7 kB / 17.31 MB, free: 5.91 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.382/1.382, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.679/1.679, allocations: 292.3 MB / 0.5496 GB, free: 17.48 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.98e-05/2.982e-05, allocations: 2.281 kB / 0.6728 GB, free: 5.883 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances): time 0.006118/0.006163, allocations: 4.919 MB / 0.6777 GB, free: 0.9336 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.003661/0.009839, allocations: 2.526 MB / 0.6801 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002416/0.01009, allocations: 23.81 kB / 0.6801 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001041/0.01114, allocations: 405.9 kB / 0.6805 GB, free: 13.97 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.000842/0.01199, allocations: 441.6 kB / 0.6809 GB, free: 13.54 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007671/0.0128, allocations: 406.8 kB / 0.6813 GB, free: 13.14 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001026/0.01384, allocations: 1.011 MB / 0.6823 GB, free: 12.13 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005379/0.01438, allocations: 356.3 kB / 0.6827 GB, free: 11.78 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003483/0.01474, allocations: 342.5 kB / 0.683 GB, free: 11.45 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002947/0.01505, allocations: 286.6 kB / 0.6833 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 5.567e-05/0.01511, allocations: 32 kB / 0.6833 GB, free: 11.13 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004948/0.01561, allocations: 359.2 kB / 0.6836 GB, free: 10.78 MB / 0.5606 GB Notification: Performance of combineBinaries: time 0.0006943/0.01631, allocations: 1 MB / 0.6846 GB, free: 9.77 MB / 0.5606 GB Notification: Performance of replaceArrayConstructors: time 0.000396/0.01672, allocations: 0.682 MB / 0.6853 GB, free: 9.078 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 9.81e-05/0.01682, allocations: 107.6 kB / 0.6854 GB, free: 8.973 MB / 0.5606 GB Notification: Performance of FrontEnd: time 4.194e-05/0.01687, allocations: 12 kB / 0.6854 GB, free: 8.961 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 129 (107) * Number of variables: 129 (101) Notification: Performance of Bindings: time 0.002109/0.01898, allocations: 2.497 MB / 0.6878 GB, free: 6.34 MB / 0.5606 GB Notification: Performance of FunctionAlias: time 7.509e-05/0.01907, allocations: 83.84 kB / 0.6879 GB, free: 6.258 MB / 0.5606 GB Notification: Performance of Early Inline: time 0.001212/0.02029, allocations: 1.307 MB / 0.6892 GB, free: 4.922 MB / 0.5606 GB Notification: Performance of simplify1: time 9.717e-05/0.02039, allocations: 99.84 kB / 0.6893 GB, free: 4.824 MB / 0.5606 GB Notification: Performance of Alias: time 0.002046/0.02245, allocations: 1.992 MB / 0.6912 GB, free: 2.398 MB / 0.5606 GB Notification: Performance of simplify2: time 7.833e-05/0.02253, allocations: 87.88 kB / 0.6913 GB, free: 2.312 MB / 0.5606 GB Notification: Performance of Events: time 0.0001691/0.02271, allocations: 130.3 kB / 0.6914 GB, free: 2.184 MB / 0.5606 GB Notification: Performance of Detect States: time 0.0004885/0.02321, allocations: 308.2 kB / 0.6917 GB, free: 1.875 MB / 0.5606 GB Notification: Performance of Partitioning: time 0.0003885/0.0236, allocations: 414.2 kB / 0.6921 GB, free: 1.426 MB / 0.5606 GB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency Z1.v[1] could not be devided by the body size 2 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [ARRY] (2) Z1.S = {Z1.v[1] * (-Z1.i)[1] + Z1.v[2] * (-Z1.i)[2], Z1.v[2] * (-Z1.i)[1] - Z1.v[1] * (-Z1.i)[2]} ($RES_BND_99) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (50/78) ************************** (1) [ALGB] (2) flow Real[2] Z4.terminal.i (start = {0.0 for $i1 in 1:2}) (2) [ALGB] (1) Real[1] Z1.terminal.theta (3) [ALGB] (2) Real[2] Z2.S = Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.Z2.PhaseSystem.phasePowers_vi(Z2.v, -Z2.i) (4) [ALGB] (2) flow Real[2] Z2.terminal.i (start = {0.0 for $i1 in 1:2}) (5) [ALGB] (2) Real[2] sou.S = Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.sou.PhaseSystem.phasePowers_vi(sou.terminal.v, sou.terminal.i) (6) [ALGB] (1) protected Real Z3.X (start = 1.0) (7) [ALGB] (2) Real[2] Z5.i = Z5.terminal.i (start = {0.0 for $i1 in 1:2}) (8) [DER-] (1) Real $DER.Z1.theRef (9) [ALGB] (2) Real[2] Z3.S = Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.Z3.PhaseSystem.phasePowers_vi(Z3.v, -Z3.i) (10) [ALGB] (1) Real[1] Z2.terminal.theta (11) [ALGB] (2) Real[2] Z4.terminal.v (12) [ALGB] (1) protected Real Z4.X (start = 1.0) (13) [ALGB] (1) protected Real Z5.omega (14) [DER-] (1) Real $DER.Z4.theRef (15) [ALGB] (2) Real[2] Z2.terminal.v (16) [ALGB] (1) protected Real Z4.omega (17) [ALGB] (2) Real[2] Z1.v = Z1.terminal.v (start = Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.Z1.PhaseSystem.phaseVoltages(Z1.V_nominal, 0.0)) (18) [ALGB] (2) Real[2] Z4.S = Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.Z4.PhaseSystem.phasePowers_vi(Z4.v, -Z4.i) (19) [ALGB] (1) protected Real Z3.omega (20) [ALGB] (1) Real[1] Z4.terminal.theta (21) [ALGB] (1) Real sou.phi = Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.sou.PhaseSystem.phase(sou.terminal.v) - Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.sou.PhaseSystem.phase(-sou.terminal.i) (22) [ALGB] (1) Real[1] sou.terminal.theta (23) [ALGB] (1) protected Real Z2.omega (24) [ALGB] (1) protected Real Z5.X (start = 1.0) (25) [ALGB] (1) protected Real Z1.omega (26) [ALGB] (2) flow Real[2] Z5.terminal.i (start = {0.0 for $i1 in 1:2}) (27) [ALGB] (2) Real[2] Z2.v = Z2.terminal.v (start = Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.Z2.PhaseSystem.phaseVoltages(Z2.V_nominal, 0.0)) (28) [ALGB] (2) Real[2] Z5.S = Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.Z5.PhaseSystem.phasePowers_vi(Z5.v, -Z5.i) (29) [ALGB] (1) Real[1] Z5.terminal.theta (30) [DER-] (1) Real $DER.Z2.theRef (31) [ALGB] (2) flow Real[2] Z3.terminal.i (start = {0.0 for $i1 in 1:2}) (32) [ALGB] (2) Real[2] Z1.i = Z1.terminal.i (start = {0.0 for $i1 in 1:2}) (33) [ALGB] (2) Real[2] Z3.v = Z3.terminal.v (start = Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.Z3.PhaseSystem.phaseVoltages(Z3.V_nominal, 0.0)) (34) [ALGB] (2) flow Real[2] Z1.terminal.i (start = {0.0 for $i1 in 1:2}) (35) [ALGB] (1) Real[1] Z3.terminal.theta (36) [ALGB] (2) flow Real[2] sou.terminal.i (start = {0.0 for $i1 in 1:2}) (37) [DER-] (1) Real $DER.Z5.theRef (38) [ALGB] (2) Real[2] Z5.terminal.v (39) [ALGB] (2) Real[2] Z2.i = Z2.terminal.i (start = {0.0 for $i1 in 1:2}) (40) [ALGB] (2) Real[2] Z3.terminal.v (41) [ALGB] (2) Real[2] Z4.v = Z4.terminal.v (start = Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.Z4.PhaseSystem.phaseVoltages(Z4.V_nominal, 0.0)) (42) [ALGB] (1) protected Real Z1.X (start = 1.0) (43) [ALGB] (2) Real[2] Z1.terminal.v (44) [ALGB] (2) Real[2] sou.terminal.v (45) [ALGB] (2) Real[2] Z3.i = Z3.terminal.i (start = {0.0 for $i1 in 1:2}) (46) [ALGB] (2) Real[2] Z1.S = Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.Z1.PhaseSystem.phasePowers_vi(Z1.v, -Z1.i) (47) [DER-] (1) Real $DER.Z3.theRef (48) [ALGB] (2) Real[2] Z5.v = Z5.terminal.v (start = Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.Z5.PhaseSystem.phaseVoltages(Z5.V_nominal, 0.0)) (49) [ALGB] (1) protected Real Z2.X (start = 1.0) (50) [ALGB] (2) Real[2] Z4.i = Z4.terminal.i (start = {0.0 for $i1 in 1:2}) System Equations (56/78) ************************** (1) [ARRY] (2) Z1.S = {Z1.v[1] * (-Z1.i)[1] + Z1.v[2] * (-Z1.i)[2], Z1.v[2] * (-Z1.i)[1] - Z1.v[1] * (-Z1.i)[2]} ($RES_BND_99) (2) [ARRY] (2) Z5.terminal.v = {{Z5.R, -Z5.X} * Z5.terminal.i, {Z5.X, Z5.R} * Z5.terminal.i} ($RES_SIM_11) (3) [SCAL] (1) Z5.X = Z5.omega * Z5.L ($RES_SIM_12) (4) [SCAL] (1) Z5.omega = $DER.Z5.theRef ($RES_SIM_13) (5) [SCAL] (1) Z5.theRef = Z5.terminal.theta[1] ($RES_SIM_14) (6) [ARRY] (2) Z5.i = Z5.terminal.i ($RES_BND_110) (7) [ARRY] (2) Z5.S = {Z5.v[1] * (-Z5.i)[1] + Z5.v[2] * (-Z5.i)[2], Z5.v[2] * (-Z5.i)[1] - Z5.v[1] * (-Z5.i)[2]} ($RES_BND_111) (8) [ARRY] (2) Z1.terminal.v = {{Z1.R, -Z1.X} * Z1.terminal.i, {Z1.X, Z1.R} * Z1.terminal.i} ($RES_SIM_71) (9) [ARRY] (2) Z2.terminal.v = {{Z2.R, -Z2.X} * Z2.terminal.i, {Z2.X, Z2.R} * Z2.terminal.i} ($RES_SIM_56) (10) [SCAL] (1) Z1.X = Z1.omega * Z1.L ($RES_SIM_72) (11) [SCAL] (1) Z2.X = Z2.omega * Z2.L ($RES_SIM_57) (12) [SCAL] (1) Z1.omega = $DER.Z1.theRef ($RES_SIM_73) (13) [SCAL] (1) Z2.omega = $DER.Z2.theRef ($RES_SIM_58) (14) [SCAL] (1) Z1.theRef = Z1.terminal.theta[1] ($RES_SIM_74) (15) [SCAL] (1) Z2.theRef = Z2.terminal.theta[1] ($RES_SIM_59) (16) [SCAL] (1) sou.terminal.theta[1] = Z1.terminal.theta[1] ($RES_SIM_90) (17) [ARRY] (2) sou.terminal.v = {sou.V * cos(sou.phiSou), sou.V * sin(sou.phiSou)} ($RES_SIM_75) (18) [SCAL] (1) sou.terminal.theta[1] = Z2.terminal.theta[1] ($RES_SIM_91) (19) [SCAL] (1) sou.terminal.theta[1] = Z3.terminal.theta[1] ($RES_SIM_92) (20) [SCAL] (1) sou.terminal.theta[1] = 6.283185307179586 * sou.f * time ($RES_SIM_77) (21) [SCAL] (1) sou.terminal.theta[1] = Z4.terminal.theta[1] ($RES_SIM_93) (22) [SCAL] (1) Z2.terminal.i[2] + Z3.terminal.i[2] + Z4.terminal.i[2] + Z5.terminal.i[2] + sou.terminal.i[2] + Z1.terminal.i[2] = 0.0 ($RES_SIM_78) (23) [SCAL] (1) sou.terminal.theta[1] = Z5.terminal.theta[1] ($RES_SIM_94) (24) [SCAL] (1) Z2.terminal.i[1] + Z3.terminal.i[1] + Z4.terminal.i[1] + Z5.terminal.i[1] + sou.terminal.i[1] + Z1.terminal.i[1] = 0.0 ($RES_SIM_79) (25) [ARRY] (2) Z2.v = Z2.terminal.v ($RES_BND_100) (26) [ARRY] (2) Z2.i = Z2.terminal.i ($RES_BND_101) (27) [ARRY] (2) Z2.S = {Z2.v[1] * (-Z2.i)[1] + Z2.v[2] * (-Z2.i)[2], Z2.v[2] * (-Z2.i)[1] - Z2.v[1] * (-Z2.i)[2]} ($RES_BND_102) (28) [ARRY] (2) Z3.v = Z3.terminal.v ($RES_BND_103) (29) [ARRY] (2) Z3.i = Z3.terminal.i ($RES_BND_104) (30) [ARRY] (2) Z3.S = {Z3.v[1] * (-Z3.i)[1] + Z3.v[2] * (-Z3.i)[2], Z3.v[2] * (-Z3.i)[1] - Z3.v[1] * (-Z3.i)[2]} ($RES_BND_105) (31) [ARRY] (2) Z4.v = Z4.terminal.v ($RES_BND_106) (32) [ARRY] (2) Z3.terminal.v = {{Z3.R, -Z3.X} * Z3.terminal.i, {Z3.X, Z3.R} * Z3.terminal.i} ($RES_SIM_41) (33) [ARRY] (2) Z4.terminal.v = {{Z4.R, -Z4.X} * Z4.terminal.i, {Z4.X, Z4.R} * Z4.terminal.i} ($RES_SIM_26) (34) [ARRY] (2) Z4.i = Z4.terminal.i ($RES_BND_107) (35) [SCAL] (1) Z3.X = -1/(Z3.C * Z3.omega) ($RES_SIM_42) (36) [SCAL] (1) Z4.X = -1/(Z4.C * Z4.omega) ($RES_SIM_27) (37) [ARRY] (2) Z4.S = {Z4.v[1] * (-Z4.i)[1] + Z4.v[2] * (-Z4.i)[2], Z4.v[2] * (-Z4.i)[1] - Z4.v[1] * (-Z4.i)[2]} ($RES_BND_108) (38) [SCAL] (1) Z3.omega = $DER.Z3.theRef ($RES_SIM_43) (39) [SCAL] (1) Z4.omega = $DER.Z4.theRef ($RES_SIM_28) (40) [ARRY] (2) Z5.v = Z5.terminal.v ($RES_BND_109) (41) [SCAL] (1) Z3.theRef = Z3.terminal.theta[1] ($RES_SIM_44) (42) [SCAL] (1) Z4.theRef = Z4.terminal.theta[1] ($RES_SIM_29) (43) [SCAL] (1) sou.terminal.v[2] = Z1.terminal.v[2] ($RES_SIM_80) (44) [SCAL] (1) sou.terminal.v[2] = Z2.terminal.v[2] ($RES_SIM_81) (45) [SCAL] (1) sou.terminal.v[2] = Z3.terminal.v[2] ($RES_SIM_82) (46) [SCAL] (1) sou.terminal.v[2] = Z4.terminal.v[2] ($RES_SIM_83) (47) [SCAL] (1) sou.terminal.v[2] = Z5.terminal.v[2] ($RES_SIM_84) (48) [SCAL] (1) sou.terminal.v[1] = Z1.terminal.v[1] ($RES_SIM_85) (49) [SCAL] (1) sou.terminal.v[1] = Z2.terminal.v[1] ($RES_SIM_86) (50) [SCAL] (1) sou.terminal.v[1] = Z3.terminal.v[1] ($RES_SIM_87) (51) [SCAL] (1) sou.terminal.v[1] = Z4.terminal.v[1] ($RES_SIM_88) (52) [SCAL] (1) sou.terminal.v[1] = Z5.terminal.v[1] ($RES_SIM_89) (53) [ARRY] (2) sou.S = {sou.terminal.v[1] * sou.terminal.i[1] + sou.terminal.v[2] * sou.terminal.i[2], sou.terminal.v[2] * sou.terminal.i[1] - sou.terminal.v[1] * sou.terminal.i[2]} ($RES_BND_95) (54) [SCAL] (1) sou.phi = atan2(sou.terminal.v[2], sou.terminal.v[1]) - atan2((-sou.terminal.i)[2], (-sou.terminal.i)[1]) ($RES_BND_96) (55) [ARRY] (2) Z1.v = Z1.terminal.v ($RES_BND_97) (56) [ARRY] (2) Z1.i = Z1.terminal.i ($RES_BND_98)