Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.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.OnePhase.Loads.Examples.TestImpedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance")
translateModel(Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance")
Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001246/0.001246, allocations: 104.6 kB / 16.38 MB, free: 6.441 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.001193/0.001193, allocations: 192.4 kB / 17.31 MB, free: 5.789 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.32/1.32, allocations: 205.1 MB / 223.2 MB, free: 12.24 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.698/1.698, allocations: 292.3 MB / 0.5496 GB, free: 17.66 MB / 462.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 2.861e-05/2.885e-05, allocations: 2.281 kB / 0.6729 GB, free: 5.934 MB / 0.545 GB
Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance): time 0.006177/0.006224, allocations: 4.864 MB / 0.6776 GB, free: 1.039 MB / 0.545 GB
Notification: Performance of NFInst.instExpressions: time 0.003837/0.01008, allocations: 2.487 MB / 0.68 GB, free: 14.54 MB / 0.5606 GB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0002542/0.01035, allocations: 23.81 kB / 0.6801 GB, free: 14.52 MB / 0.5606 GB
Notification: Performance of NFTyping.typeComponents: time 0.001092/0.01145, allocations: 397.9 kB / 0.6804 GB, free: 14.12 MB / 0.5606 GB
Notification: Performance of NFTyping.typeBindings: time 0.0008828/0.01234, allocations: 453.7 kB / 0.6809 GB, free: 13.68 MB / 0.5606 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0007687/0.01316, allocations: 375.4 kB / 0.6812 GB, free: 13.32 MB / 0.5606 GB
Notification: Performance of NFFlatten.flatten: time 0.0009244/0.01409, allocations: 0.9993 MB / 0.6822 GB, free: 12.31 MB / 0.5606 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0005285/0.01463, allocations: 360.3 kB / 0.6826 GB, free: 11.96 MB / 0.5606 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.0003542/0.015, allocations: 338.6 kB / 0.6829 GB, free: 11.63 MB / 0.5606 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.0003319/0.01534, allocations: 286.5 kB / 0.6832 GB, free: 11.35 MB / 0.5606 GB
Notification: Performance of NFPackage.collectConstants: time 5.266e-05/0.0154, allocations: 40 kB / 0.6832 GB, free: 11.31 MB / 0.5606 GB
Notification: Performance of NFFlatten.collectFunctions: time 0.0005681/0.01598, allocations: 359.1 kB / 0.6835 GB, free: 10.96 MB / 0.5606 GB
Notification: Performance of combineBinaries: time 0.0007082/0.0167, allocations: 0.9849 MB / 0.6845 GB, free: 9.961 MB / 0.5606 GB
Notification: Performance of replaceArrayConstructors: time 0.0004003/0.0171, allocations: 0.6665 MB / 0.6851 GB, free: 9.285 MB / 0.5606 GB
Notification: Performance of NFVerifyModel.verify: time 0.00014/0.01725, allocations: 107.6 kB / 0.6853 GB, free: 9.18 MB / 0.5606 GB
Notification: Performance of FrontEnd: time 7.394e-05/0.01733, allocations: 15.94 kB / 0.6853 GB, free: 9.164 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.002111/0.01945, allocations: 2.478 MB / 0.6877 GB, free: 6.562 MB / 0.5606 GB
Notification: Performance of FunctionAlias: time 8.13e-05/0.01954, allocations: 75.86 kB / 0.6878 GB, free: 6.488 MB / 0.5606 GB
Notification: Performance of Early Inline: time 0.001281/0.02083, allocations: 1.311 MB / 0.689 GB, free: 5.148 MB / 0.5606 GB
Notification: Performance of simplify1: time 9.399e-05/0.02093, allocations: 95.86 kB / 0.6891 GB, free: 5.055 MB / 0.5606 GB
Notification: Performance of Alias: time 0.002036/0.02298, allocations: 1.985 MB / 0.6911 GB, free: 2.637 MB / 0.5606 GB
Notification: Performance of simplify2: time 7.807e-05/0.02307, allocations: 91.86 kB / 0.6912 GB, free: 2.547 MB / 0.5606 GB
Notification: Performance of Events: time 0.0001867/0.02326, allocations: 138.3 kB / 0.6913 GB, free: 2.41 MB / 0.5606 GB
Notification: Performance of Detect States: time 0.0003134/0.02358, allocations: 301 kB / 0.6916 GB, free: 2.105 MB / 0.5606 GB
Notification: Performance of Partitioning: time 0.0004018/0.024, allocations: 398.2 kB / 0.692 GB, free: 1.672 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.OnePhase.Loads.Examples.TestImpedance.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] (1) protected Real Z3.X (start = 1.0)
(6)       [ALGB] (2) Real[2] Z5.i = Z5.terminal.i (start = {0.0 for $i1 in 1:2})
(7)       [DER-] (1) Real $DER.Z1.theRef
(8)       [ALGB] (2) Real[2] Z3.S = Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.Z3.PhaseSystem.phasePowers_vi(Z3.v, -Z3.i)
(9)       [ALGB] (1) Real[1] Z2.terminal.theta
(10)      [ALGB] (2) Real[2] Z4.terminal.v
(11)      [ALGB] (1) protected Real Z4.X (start = 1.0)
(12)      [ALGB] (1) protected Real Z5.omega
(13)      [DER-] (1) Real $DER.Z4.theRef
(14)      [ALGB] (2) Real[2] Z2.terminal.v
(15)      [ALGB] (1) protected Real Z4.omega
(16)      [ALGB] (2) Real[2] Z1.v = Z1.terminal.v (start = Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.Z1.PhaseSystem.phaseVoltages(Z1.V_nominal, 0.0))
(17)      [ALGB] (2) Real[2] Z4.S = Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.Z4.PhaseSystem.phasePowers_vi(Z4.v, -Z4.i)
(18)      [ALGB] (1) protected Real Z3.omega
(19)      [ALGB] (1) Real[1] Z4.terminal.theta
(20)      [ALGB] (1) protected Real Z2.omega
(21)      [ALGB] (1) protected Real Z5.X (start = 1.0)
(22)      [ALGB] (1) protected Real Z1.omega
(23)      [ALGB] (2) flow Real[2] Z5.terminal.i (start = {0.0 for $i1 in 1:2})
(24)      [ALGB] (2) Real[2] Z2.v = Z2.terminal.v (start = Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.Z2.PhaseSystem.phaseVoltages(Z2.V_nominal, 0.0))
(25)      [ALGB] (1) Real[1] V.terminal.theta
(26)      [ALGB] (2) Real[2] Z5.S = Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.Z5.PhaseSystem.phasePowers_vi(Z5.v, -Z5.i)
(27)      [ALGB] (1) Real[1] Z5.terminal.theta
(28)      [DER-] (1) Real $DER.Z2.theRef
(29)      [ALGB] (2) flow Real[2] Z3.terminal.i (start = {0.0 for $i1 in 1:2})
(30)      [ALGB] (2) Real[2] Z1.i = Z1.terminal.i (start = {0.0 for $i1 in 1:2})
(31)      [ALGB] (2) Real[2] Z3.v = Z3.terminal.v (start = Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.Z3.PhaseSystem.phaseVoltages(Z3.V_nominal, 0.0))
(32)      [ALGB] (2) flow Real[2] Z1.terminal.i (start = {0.0 for $i1 in 1:2})
(33)      [ALGB] (1) Real[1] Z3.terminal.theta
(34)      [ALGB] (1) Real V.phi = Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.V.PhaseSystem.phase(V.terminal.v) - Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.V.PhaseSystem.phase(-V.terminal.i)
(35)      [DER-] (1) Real $DER.Z5.theRef
(36)      [ALGB] (2) Real[2] Z5.terminal.v
(37)      [ALGB] (2) Real[2] Z2.i = Z2.terminal.i (start = {0.0 for $i1 in 1:2})
(38)      [ALGB] (2) flow Real[2] V.terminal.i (start = {0.0 for $i1 in 1:2})
(39)      [ALGB] (2) Real[2] V.S = Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.V.PhaseSystem.phasePowers_vi(V.terminal.v, V.terminal.i)
(40)      [ALGB] (2) Real[2] Z3.terminal.v
(41)      [ALGB] (2) Real[2] Z4.v = Z4.terminal.v (start = Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.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] Z3.i = Z3.terminal.i (start = {0.0 for $i1 in 1:2})
(45)      [ALGB] (2) Real[2] Z1.S = Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.Z1.PhaseSystem.phasePowers_vi(Z1.v, -Z1.i)
(46)      [DER-] (1) Real $DER.Z3.theRef
(47)      [ALGB] (2) Real[2] Z5.v = Z5.terminal.v (start = Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.Z5.PhaseSystem.phaseVoltages(Z5.V_nominal, 0.0))
(48)      [ALGB] (2) Real[2] V.terminal.v
(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 = -1/(Z5.C * Z5.omega) ($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 = -1/(Z2.C * Z2.omega) ($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) V.terminal.theta[1] = Z1.terminal.theta[1] ($RES_SIM_90)
(17)      [ARRY] (2) V.terminal.v = {V.V * cos(V.phiSou), V.V * sin(V.phiSou)} ($RES_SIM_75)
(18)      [SCAL] (1) V.terminal.theta[1] = Z2.terminal.theta[1] ($RES_SIM_91)
(19)      [SCAL] (1) V.terminal.theta[1] = Z3.terminal.theta[1] ($RES_SIM_92)
(20)      [SCAL] (1) V.terminal.theta[1] = 6.283185307179586 * V.f * time ($RES_SIM_77)
(21)      [SCAL] (1) V.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] + V.terminal.i[2] + Z1.terminal.i[2] = 0.0 ($RES_SIM_78)
(23)      [SCAL] (1) V.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] + V.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 = Z3.omega * Z3.L ($RES_SIM_42)
(36)      [SCAL] (1) Z4.X = Z4.omega * Z4.L ($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) V.terminal.v[2] = Z1.terminal.v[2] ($RES_SIM_80)
(44)      [SCAL] (1) V.terminal.v[2] = Z2.terminal.v[2] ($RES_SIM_81)
(45)      [SCAL] (1) V.terminal.v[2] = Z3.terminal.v[2] ($RES_SIM_82)
(46)      [SCAL] (1) V.terminal.v[2] = Z4.terminal.v[2] ($RES_SIM_83)
(47)      [SCAL] (1) V.terminal.v[2] = Z5.terminal.v[2] ($RES_SIM_84)
(48)      [SCAL] (1) V.terminal.v[1] = Z1.terminal.v[1] ($RES_SIM_85)
(49)      [SCAL] (1) V.terminal.v[1] = Z2.terminal.v[1] ($RES_SIM_86)
(50)      [SCAL] (1) V.terminal.v[1] = Z3.terminal.v[1] ($RES_SIM_87)
(51)      [SCAL] (1) V.terminal.v[1] = Z4.terminal.v[1] ($RES_SIM_88)
(52)      [SCAL] (1) V.terminal.v[1] = Z5.terminal.v[1] ($RES_SIM_89)
(53)      [ARRY] (2) V.S = {V.terminal.v[1] * V.terminal.i[1] + V.terminal.v[2] * V.terminal.i[2], V.terminal.v[2] * V.terminal.i[1] - V.terminal.v[1] * V.terminal.i[2]} ($RES_BND_95)
(54)      [SCAL] (1) V.phi = atan2(V.terminal.v[2], V.terminal.v[1]) - atan2((-V.terminal.i)[2], (-V.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)