Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_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 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.OnePhase.Loads.Examples.TestImpedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_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.001285/0.001285, allocations: 103.6 kB / 16.42 MB, free: 6.469 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.001318/0.001318, allocations: 192.2 kB / 17.36 MB, free: 5.734 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.28/1.28, allocations: 205.1 MB / 223.2 MB, free: 12.25 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.259/1.259, allocations: 251.7 MB / 0.51 GB, free: 424 kB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.995e-05/1.995e-05, allocations: 6.078 kB / 0.7264 GB, free: 4.758 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance): time 0.005398/0.005426, allocations: 4.86 MB / 0.7311 GB, free: 15.87 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.003424/0.008864, allocations: 2.499 MB / 0.7336 GB, free: 13.36 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002054/0.009081, allocations: 23.81 kB / 0.7336 GB, free: 13.34 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001014/0.0101, allocations: 409.9 kB / 0.734 GB, free: 12.93 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0007239/0.01083, allocations: 445.7 kB / 0.7344 GB, free: 12.5 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006706/0.01152, allocations: 378.9 kB / 0.7348 GB, free: 12.13 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0008562/0.01238, allocations: 0.9993 MB / 0.7357 GB, free: 11.12 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004673/0.01286, allocations: 355.5 kB / 0.7361 GB, free: 10.77 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003261/0.01319, allocations: 334.6 kB / 0.7364 GB, free: 10.45 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002913/0.01349, allocations: 294.5 kB / 0.7367 GB, free: 10.16 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.582e-05/0.01354, allocations: 32 kB / 0.7367 GB, free: 10.12 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004783/0.01403, allocations: 355.2 kB / 0.737 GB, free: 9.777 MB / 0.5762 GB Notification: Performance of combineBinaries: time 0.0006293/0.01467, allocations: 0.977 MB / 0.738 GB, free: 8.789 MB / 0.5762 GB Notification: Performance of replaceArrayConstructors: time 0.0003781/0.01505, allocations: 0.6666 MB / 0.7386 GB, free: 8.113 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 9.691e-05/0.01515, allocations: 107.6 kB / 0.7387 GB, free: 8.008 MB / 0.5762 GB Notification: Performance of FrontEnd: time 4.196e-05/0.0152, allocations: 19.88 kB / 0.7388 GB, free: 7.988 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.00199/0.0172, allocations: 2.485 MB / 0.7412 GB, free: 5.379 MB / 0.5762 GB Notification: Performance of FunctionAlias: time 7.7e-05/0.01728, allocations: 75.88 kB / 0.7413 GB, free: 5.305 MB / 0.5762 GB Notification: Performance of Early Inline: time 0.001188/0.01848, allocations: 1.307 MB / 0.7425 GB, free: 3.969 MB / 0.5762 GB Notification: Performance of simplify1: time 9.217e-05/0.01858, allocations: 107.9 kB / 0.7426 GB, free: 3.863 MB / 0.5762 GB Notification: Performance of Alias: time 0.001816/0.0204, allocations: 1.985 MB / 0.7446 GB, free: 1.445 MB / 0.5762 GB Notification: Performance of simplify2: time 7.711e-05/0.02048, allocations: 83.88 kB / 0.7447 GB, free: 1.363 MB / 0.5762 GB Notification: Performance of Events: time 0.0001613/0.02065, allocations: 134.4 kB / 0.7448 GB, free: 1.234 MB / 0.5762 GB Notification: Performance of Detect States: time 0.0002915/0.02095, allocations: 300.9 kB / 0.7451 GB, free: 0.9258 MB / 0.5762 GB Notification: Performance of Partitioning: time 0.0003663/0.02132, allocations: 398.2 kB / 0.7455 GB, free: 0.4922 MB / 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.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)