Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo", uses=false) 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 3.0.0/package.mo", uses=false) Using package Buildings with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/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) Using package Modelica_StateGraph2 with version 2.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:257:38-257:110:writable] Warning: The file was not encoded in UTF-8: "

An important practical aspect of state machines is the abilit...". Defaulting to 7-bit ASCII with unknown characters replaced by '?'. To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY"). To change it in a package: add a file package.encoding at the top-level. Note: The Modelica Language Specification only allows files encoded in UTF-8. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:761:36-761:108:writable] Warning: The file was not encoded in UTF-8: "

The Modelica_StateGraph2 library is described in detail in (O...". Defaulting to 7-bit ASCII with unknown characters replaced by '?'. To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY"). To change it in a package: add a file package.encoding at the top-level. Note: The Modelica Language Specification only allows files encoded in UTF-8. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:1435:36-1435:108:writable] Warning: The file was not encoded in UTF-8: "

Main Authors:
SCode: time 2.216e-05/2.218e-05, allocations: 2.5 kB / 0.5923 GB, free: 18.41 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances): time 0.0065/0.006531, allocations: 4.831 MB / 0.597 GB, free: 14.05 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.003953/0.01051, allocations: 2.758 MB / 0.5997 GB, free: 11.29 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006346/0.01116, allocations: 23.81 kB / 0.5997 GB, free: 11.27 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001256/0.01242, allocations: 409.9 kB / 0.6001 GB, free: 10.87 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001453/0.01389, allocations: 0.4975 MB / 0.6006 GB, free: 10.37 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001016/0.01491, allocations: 398.2 kB / 0.6009 GB, free: 9.98 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001224/0.01615, allocations: 0.9915 MB / 0.6019 GB, free: 8.984 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004933/0.01665, allocations: 351.6 kB / 0.6023 GB, free: 8.641 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003572/0.01701, allocations: 338.6 kB / 0.6026 GB, free: 8.309 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003781/0.0174, allocations: 314.5 kB / 0.6029 GB, free: 8 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.252e-05/0.01745, allocations: 32 kB / 0.6029 GB, free: 7.969 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00055/0.01801, allocations: 359.1 kB / 0.6032 GB, free: 7.617 MB / 446.1 MB Notification: Performance of combineBinaries: time 0.0004641/0.01848, allocations: 0.9576 MB / 0.6042 GB, free: 6.648 MB / 446.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002467/0.01874, allocations: 0.6541 MB / 0.6048 GB, free: 5.988 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 8.07e-05/0.01882, allocations: 103.6 kB / 0.6049 GB, free: 5.887 MB / 446.1 MB Notification: Performance of FrontEnd: time 6.439e-05/0.01889, allocations: 23.88 kB / 0.6049 GB, free: 5.863 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 124 (102) * Number of variables: 124 (96) Notification: Performance of Bindings: time 0.00145/0.02035, allocations: 2.404 MB / 0.6073 GB, free: 3.336 MB / 446.1 MB Notification: Performance of FunctionAlias: time 5.841e-05/0.02042, allocations: 83.8 kB / 0.6074 GB, free: 3.254 MB / 446.1 MB Notification: Performance of Early Inline: time 0.000934/0.02136, allocations: 1.257 MB / 0.6086 GB, free: 1.969 MB / 446.1 MB Notification: Performance of simplify1: time 7.38e-05/0.02144, allocations: 107.8 kB / 0.6087 GB, free: 1.863 MB / 446.1 MB Notification: Performance of Alias: time 0.001495/0.02294, allocations: 1.969 MB / 0.6106 GB, free: 15.46 MB / 462.1 MB Notification: Performance of simplify2: time 8.277e-05/0.02304, allocations: 87.88 kB / 0.6107 GB, free: 15.38 MB / 462.1 MB Notification: Performance of Events: time 0.0001702/0.02321, allocations: 123.8 kB / 0.6108 GB, free: 15.25 MB / 462.1 MB Notification: Performance of Detect States: time 0.0003231/0.02354, allocations: 296.6 kB / 0.6111 GB, free: 14.95 MB / 462.1 MB Notification: Performance of Partitioning: time 0.000389/0.02394, allocations: 378 kB / 0.6115 GB, free: 14.53 MB / 462.1 MB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency Z5.X could not be divided by the body size 2 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [ARRY] (2) Z5.terminal.v = {{Z5.R, -Z5.X} * Z5.terminal.i, {Z5.X, Z5.R} * Z5.terminal.i} ($RES_SIM_11) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (45/73) ************************** (1) [ALGB] (2) flow Real[2] Z4.terminal.i (2) [ALGB] (2) Real[2] Z2.S = Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.Z2.PhaseSystem.phasePowers_vi(Z2.v, -Z2.i) (3) [ALGB] (2) flow Real[2] Z2.terminal.i (4) [ALGB] (2) Real[2] sou.S = Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.sou.PhaseSystem.phasePowers_vi(sou.terminal.v, sou.terminal.i) (5) [ALGB] (1) protected Real Z3.X (start = 1.0) (6) [ALGB] (2) Real[2] Z5.i = Z5.terminal.i (start = {0.0, 0.0}) (7) [ALGB] (2) Real[2] Z3.S = Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.Z3.PhaseSystem.phasePowers_vi(Z3.v, -Z3.i) (8) [ALGB] (2) Real[2] Z4.terminal.v (9) [DER-] (1) Real[1] $DER.Z1.terminal.theta (10) [ALGB] (1) protected Real Z4.X (start = 1.0) (11) [ALGB] (1) protected Real Z5.omega (12) [ALGB] (2) Real[2] Z2.terminal.v (13) [ALGB] (1) protected Real Z4.omega (14) [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)) (15) [ALGB] (2) Real[2] Z4.S = Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.Z4.PhaseSystem.phasePowers_vi(Z4.v, -Z4.i) (16) [ALGB] (1) protected Real Z3.omega (17) [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) (18) [DER-] (1) Real[1] $DER.Z3.terminal.theta (19) [ALGB] (1) Real[1] sou.terminal.theta (20) [ALGB] (1) protected Real Z2.omega (21) [ALGB] (1) protected Real Z5.X (start = 1.0) (22) [DER-] (1) Real[1] $DER.Z5.terminal.theta (23) [ALGB] (1) protected Real Z1.omega (24) [ALGB] (2) flow Real[2] Z5.terminal.i (25) [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)) (26) [ALGB] (2) Real[2] Z5.S = Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.Z5.PhaseSystem.phasePowers_vi(Z5.v, -Z5.i) (27) [ALGB] (2) flow Real[2] Z3.terminal.i (28) [ALGB] (2) Real[2] Z1.i = Z1.terminal.i (start = {0.0, 0.0}) (29) [DER-] (1) Real[1] $DER.Z4.terminal.theta (30) [DER-] (1) Real[1] $DER.Z2.terminal.theta (31) [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)) (32) [ALGB] (2) flow Real[2] Z1.terminal.i (33) [ALGB] (2) flow Real[2] sou.terminal.i (34) [ALGB] (2) Real[2] Z5.terminal.v (35) [ALGB] (2) Real[2] Z2.i = Z2.terminal.i (start = {0.0, 0.0}) (36) [ALGB] (2) Real[2] Z3.terminal.v (37) [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)) (38) [ALGB] (1) protected Real Z1.X (start = 1.0) (39) [ALGB] (2) Real[2] Z1.terminal.v (40) [ALGB] (2) Real[2] sou.terminal.v (41) [ALGB] (2) Real[2] Z3.i = Z3.terminal.i (start = {0.0, 0.0}) (42) [ALGB] (2) Real[2] Z1.S = Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.Z1.PhaseSystem.phasePowers_vi(Z1.v, -Z1.i) (43) [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)) (44) [ALGB] (1) protected Real Z2.X (start = 1.0) (45) [ALGB] (2) Real[2] Z4.i = Z4.terminal.i (start = {0.0, 0.0}) System Equations (51/73) ************************** (1) [ARRY] (2) Z3.i = Z3.terminal.i ($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.terminal.theta[1] ($RES_SIM_13) (5) [ARRY] (2) Z2.terminal.v = {{Z2.R, -Z2.X} * Z2.terminal.i, {Z2.X, Z2.R} * Z2.terminal.i} ($RES_SIM_53) (6) [SCAL] (1) Z2.X = Z2.omega * Z2.L ($RES_SIM_54) (7) [ARRY] (2) Z3.terminal.v = {{Z3.R, -Z3.X} * Z3.terminal.i, {Z3.X, Z3.R} * Z3.terminal.i} ($RES_SIM_39) (8) [ARRY] (2) sou.terminal.v = {sou.V * cos(sou.phiSou), sou.V * sin(sou.phiSou)} ($RES_SIM_70) (9) [SCAL] (1) Z2.omega = $DER.Z2.terminal.theta[1] ($RES_SIM_55) (10) [SCAL] (1) sou.terminal.theta[1] = 6.283185307179586 * sou.f * time ($RES_SIM_72) (11) [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_73) (12) [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_74) (13) [SCAL] (1) sou.terminal.v[2] = Z1.terminal.v[2] ($RES_SIM_75) (14) [SCAL] (1) sou.terminal.v[2] = Z2.terminal.v[2] ($RES_SIM_76) (15) [SCAL] (1) sou.terminal.v[2] = Z3.terminal.v[2] ($RES_SIM_77) (16) [SCAL] (1) sou.terminal.v[2] = Z4.terminal.v[2] ($RES_SIM_78) (17) [SCAL] (1) sou.terminal.v[2] = Z5.terminal.v[2] ($RES_SIM_79) (18) [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_100) (19) [ARRY] (2) Z4.v = Z4.terminal.v ($RES_BND_101) (20) [ARRY] (2) Z4.i = Z4.terminal.i ($RES_BND_102) (21) [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_103) (22) [ARRY] (2) Z5.v = Z5.terminal.v ($RES_BND_104) (23) [ARRY] (2) Z5.i = Z5.terminal.i ($RES_BND_105) (24) [SCAL] (1) Z3.X = -1/(Z3.C * Z3.omega) ($RES_SIM_40) (25) [ARRY] (2) Z4.terminal.v = {{Z4.R, -Z4.X} * Z4.terminal.i, {Z4.X, Z4.R} * Z4.terminal.i} ($RES_SIM_25) (26) [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_106) (27) [SCAL] (1) Z3.omega = $DER.Z3.terminal.theta[1] ($RES_SIM_41) (28) [SCAL] (1) Z4.X = -1/(Z4.C * Z4.omega) ($RES_SIM_26) (29) [SCAL] (1) Z4.omega = $DER.Z4.terminal.theta[1] ($RES_SIM_27) (30) [SCAL] (1) sou.terminal.v[1] = Z1.terminal.v[1] ($RES_SIM_80) (31) [SCAL] (1) sou.terminal.v[1] = Z2.terminal.v[1] ($RES_SIM_81) (32) [SCAL] (1) sou.terminal.v[1] = Z3.terminal.v[1] ($RES_SIM_82) (33) [ARRY] (2) Z1.terminal.v = {{Z1.R, -Z1.X} * Z1.terminal.i, {Z1.X, Z1.R} * Z1.terminal.i} ($RES_SIM_67) (34) [SCAL] (1) sou.terminal.v[1] = Z4.terminal.v[1] ($RES_SIM_83) (35) [SCAL] (1) Z1.X = Z1.omega * Z1.L ($RES_SIM_68) (36) [SCAL] (1) sou.terminal.v[1] = Z5.terminal.v[1] ($RES_SIM_84) (37) [SCAL] (1) Z1.omega = $DER.Z1.terminal.theta[1] ($RES_SIM_69) (38) [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_90) (39) [SCAL] (1) sou.terminal.theta[1] = Z1.terminal.theta[1] ($RES_SIM_85) (40) [SCAL] (1) sou.phi = atan2(sou.terminal.v[2], sou.terminal.v[1]) - atan2((-sou.terminal.i)[2], (-sou.terminal.i)[1]) ($RES_BND_91) (41) [SCAL] (1) sou.terminal.theta[1] = Z2.terminal.theta[1] ($RES_SIM_86) (42) [ARRY] (2) Z1.v = Z1.terminal.v ($RES_BND_92) (43) [SCAL] (1) sou.terminal.theta[1] = Z3.terminal.theta[1] ($RES_SIM_87) (44) [ARRY] (2) Z1.i = Z1.terminal.i ($RES_BND_93) (45) [SCAL] (1) sou.terminal.theta[1] = Z4.terminal.theta[1] ($RES_SIM_88) (46) [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_94) (47) [SCAL] (1) sou.terminal.theta[1] = Z5.terminal.theta[1] ($RES_SIM_89) (48) [ARRY] (2) Z2.v = Z2.terminal.v ($RES_BND_95) (49) [ARRY] (2) Z2.i = Z2.terminal.i ($RES_BND_96) (50) [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_97) (51) [ARRY] (2) Z3.v = Z3.terminal.v ($RES_BND_98)