Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_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.001118/0.001118, allocations: 106.9 kB / 16.42 MB, free: 6.418 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.001076/0.001076, allocations: 187.2 kB / 17.36 MB, free: 5.684 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.293/1.293, allocations: 205.1 MB / 223.2 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.27/1.27, allocations: 251.7 MB / 0.51 GB, free: 388 kB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.826e-05/1.826e-05, allocations: 6.219 kB / 0.7264 GB, free: 4.715 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances): time 0.005559/0.005585, allocations: 4.911 MB / 0.7312 GB, free: 15.78 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.003452/0.009048, allocations: 2.534 MB / 0.7336 GB, free: 13.23 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001963/0.009255, allocations: 27.81 kB / 0.7337 GB, free: 13.2 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001018/0.01028, allocations: 405.9 kB / 0.7341 GB, free: 12.8 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0007132/0.011, allocations: 441.6 kB / 0.7345 GB, free: 12.37 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006816/0.01171, allocations: 406.4 kB / 0.7349 GB, free: 11.98 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0009247/0.01264, allocations: 1.015 MB / 0.7359 GB, free: 10.96 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004715/0.01312, allocations: 343.6 kB / 0.7362 GB, free: 10.62 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003372/0.01346, allocations: 334.6 kB / 0.7365 GB, free: 10.29 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003023/0.01378, allocations: 302.4 kB / 0.7368 GB, free: 9.992 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.722e-05/0.01383, allocations: 32 kB / 0.7368 GB, free: 9.961 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004799/0.01432, allocations: 359.2 kB / 0.7372 GB, free: 9.609 MB / 0.5762 GB Notification: Performance of combineBinaries: time 0.0006809/0.01501, allocations: 1 MB / 0.7381 GB, free: 8.598 MB / 0.5762 GB Notification: Performance of replaceArrayConstructors: time 0.0003925/0.01541, allocations: 0.6703 MB / 0.7388 GB, free: 7.918 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 9.736e-05/0.01551, allocations: 103.6 kB / 0.7389 GB, free: 7.816 MB / 0.5762 GB Notification: Performance of FrontEnd: time 3.372e-05/0.01555, allocations: 19.88 kB / 0.7389 GB, free: 7.797 MB / 0.5762 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.002198/0.01775, allocations: 2.501 MB / 0.7414 GB, free: 5.172 MB / 0.5762 GB Notification: Performance of FunctionAlias: time 0.0001276/0.01788, allocations: 83.78 kB / 0.7414 GB, free: 5.09 MB / 0.5762 GB Notification: Performance of Early Inline: time 0.001201/0.01909, allocations: 1.303 MB / 0.7427 GB, free: 3.758 MB / 0.5762 GB Notification: Performance of simplify1: time 0.0001095/0.01921, allocations: 107.8 kB / 0.7428 GB, free: 3.652 MB / 0.5762 GB Notification: Performance of Alias: time 0.001881/0.02109, allocations: 1.992 MB / 0.7448 GB, free: 1.227 MB / 0.5762 GB Notification: Performance of simplify2: time 7.871e-05/0.02118, allocations: 87.81 kB / 0.7448 GB, free: 1.141 MB / 0.5762 GB Notification: Performance of Events: time 0.0001629/0.02135, allocations: 126.4 kB / 0.745 GB, free: 1.02 MB / 0.5762 GB Notification: Performance of Detect States: time 0.0003178/0.02168, allocations: 309.1 kB / 0.7453 GB, free: 0.7031 MB / 0.5762 GB Notification: Performance of Partitioning: time 0.0003733/0.02206, allocations: 390.3 kB / 0.7456 GB, free: 284 kB / 0.5762 GB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency Z1.v[1] could not be divided 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)