Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Conversion.Examples.ACDCConverter.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.Conversion.Examples.ACDCConverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Conversion.Examples.ACDCConverter") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Conversion.Examples.ACDCConverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Conversion.Examples.ACDCConverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001222/0.001222, allocations: 103.9 kB / 16.38 MB, free: 6.477 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.001203/0.001204, allocations: 192.7 kB / 17.31 MB, free: 5.801 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.27 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.678/1.678, allocations: 292.3 MB / 0.5496 GB, free: 17.51 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.716e-05/3.719e-05, allocations: 6.078 kB / 0.6729 GB, free: 5.922 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Conversion.Examples.ACDCConverter): time 0.005818/0.005874, allocations: 3.388 MB / 0.6762 GB, free: 2.512 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.003385/0.009276, allocations: 2.202 MB / 0.6783 GB, free: 304 kB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001421/0.009432, allocations: 7.938 kB / 0.6783 GB, free: 296 kB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0008957/0.01034, allocations: 290.8 kB / 0.6786 GB, free: 4 kB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0004978/0.01084, allocations: 234.9 kB / 0.6788 GB, free: 15.77 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006776/0.01156, allocations: 291.2 kB / 0.6791 GB, free: 15.49 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0004562/0.01202, allocations: 434.7 kB / 0.6795 GB, free: 15.06 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003504/0.01238, allocations: 180.4 kB / 0.6797 GB, free: 14.89 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001865/0.01258, allocations: 151.4 kB / 0.6798 GB, free: 14.74 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002447/0.01283, allocations: 151.4 kB / 0.68 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 3.584e-05/0.01288, allocations: 23.88 kB / 0.68 GB, free: 14.57 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004392/0.01332, allocations: 367.3 kB / 0.6804 GB, free: 14.21 MB / 0.5606 GB Notification: Performance of combineBinaries: time 0.0003077/0.01364, allocations: 427.5 kB / 0.6808 GB, free: 13.79 MB / 0.5606 GB Notification: Performance of replaceArrayConstructors: time 0.0001498/0.0138, allocations: 268.6 kB / 0.681 GB, free: 13.52 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 4.409e-05/0.01385, allocations: 35.88 kB / 0.6811 GB, free: 13.49 MB / 0.5606 GB Notification: Performance of FrontEnd: time 3.047e-05/0.01388, allocations: 7.938 kB / 0.6811 GB, free: 13.48 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: 63 (50) * Number of variables: 63 (44) Notification: Performance of Bindings: time 0.001057/0.01494, allocations: 1.17 MB / 0.6822 GB, free: 12.2 MB / 0.5606 GB Notification: Performance of FunctionAlias: time 0.0001153/0.01507, allocations: 86.88 kB / 0.6823 GB, free: 12.12 MB / 0.5606 GB Notification: Performance of Early Inline: time 0.0007828/0.01586, allocations: 0.8389 MB / 0.6831 GB, free: 11.25 MB / 0.5606 GB Notification: Performance of simplify1: time 6.749e-05/0.01593, allocations: 71.91 kB / 0.6832 GB, free: 11.18 MB / 0.5606 GB Notification: Performance of Alias: time 0.001082/0.01702, allocations: 0.8221 MB / 0.684 GB, free: 10.21 MB / 0.5606 GB Notification: Performance of simplify2: time 6.988e-05/0.0171, allocations: 63.91 kB / 0.684 GB, free: 10.15 MB / 0.5606 GB Notification: Performance of Events: time 0.0001843/0.01729, allocations: 123.7 kB / 0.6842 GB, free: 10.03 MB / 0.5606 GB Notification: Performance of Detect States: time 0.0002031/0.01751, allocations: 188.5 kB / 0.6843 GB, free: 9.836 MB / 0.5606 GB Notification: Performance of Partitioning: time 0.0003064/0.01782, allocations: 307.7 kB / 0.6846 GB, free: 9.488 MB / 0.5606 GB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency conversion.PLoss could not be devided by the body size 2 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [ARRY] (2) conversion.P_n + conversion.P_p = {conversion.PLoss, 0.0} ($RES_SIM_19) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (33/52) ************************** (1) [ALGB] (1) Real conversion.i_n (2) [ALGB] (1) protected Real load.absDV (3) [ALGB] (1) Real $FUN_2 (4) [ALGB] (2) Real[2] res.i = res.terminal.i (start = {0.0 for $i1 in 1:2}) (5) [ALGB] (2) Real[2] sou.S = Buildings.Electrical.AC.ThreePhasesBalanced.Conversion.Examples.ACDCConverter.sou.PhaseSystem.phasePowers_vi(sou.terminal.v, sou.terminal.i) (6) [ALGB] (1) protected Real conversion.i_dc (7) [ALGB] (1) Real res.LossPower (8) [ALGB] (2) flow Real[2] load.terminal.i (start = {0.0 for $i1 in 1:2}) (9) [ALGB] (2) Real[2] load.S = Buildings.Electrical.AC.ThreePhasesBalanced.Conversion.Examples.ACDCConverter.load.PhaseSystem.phasePowers_vi(load.v, -load.i) (10) [ALGB] (1) Real load.P (start = 0.0) (11) [ALGB] (2) protected Real[2] conversion.P_p = Buildings.Electrical.AC.ThreePhasesBalanced.Conversion.Examples.ACDCConverter.conversion.PhaseSystem_p.phasePowers_vi(conversion.terminal_p.v, conversion.terminal_p.i) (12) [ALGB] (2) protected Real[2] conversion.P_n = Buildings.Electrical.AC.ThreePhasesBalanced.Conversion.Examples.ACDCConverter.conversion.PhaseSystem_n.phasePowers_vi(conversion.terminal_n.v, conversion.terminal_n.i) (start = {0.0 for $i1 in 1:2}) (13) [ALGB] (1) Real conversion.PLoss (14) [ALGB] (1) Real sou.phi = Buildings.Electrical.AC.ThreePhasesBalanced.Conversion.Examples.ACDCConverter.sou.PhaseSystem.phase(sou.terminal.v) - Buildings.Electrical.AC.ThreePhasesBalanced.Conversion.Examples.ACDCConverter.sou.PhaseSystem.phase(-sou.terminal.i) (15) [ALGB] (2) flow Real[2] res.terminal.i (start = {0.0 for $i1 in 1:2}) (16) [ALGB] (2) Real[2] res.S = Buildings.Electrical.AC.ThreePhasesBalanced.Conversion.Examples.ACDCConverter.res.PhaseSystem.phasePowers_vi(res.v, -res.i) (17) [ALGB] (2) Real[2] conversion.terminal_n.v (18) [ALGB] (2) Real[2] res.terminal.v (19) [ALGB] (2) flow Real[2] sou.terminal.i (start = {0.0 for $i1 in 1:2}) (20) [ALGB] (1) Real res.R_actual (21) [ALGB] (2) Real[2] load.v = load.terminal.v (start = {60.0, -60.0}) (22) [ALGB] (2) flow Real[2] conversion.terminal_n.i (start = {0.0 for $i1 in 1:2}, StateSelect = prefer) (23) [DISC] (1) Boolean $TEV_1 (24) [DISC] (1) Boolean $TEV_0 (25) [ALGB] (2) Real[2] conversion.terminal_p.v (26) [ALGB] (2) Real[2] sou.terminal.v (27) [ALGB] (2) Real[2] res.v = res.terminal.v (start = {60.0, -60.0}) (28) [ALGB] (2) Real[2] load.i = load.terminal.i (start = {0.0 for $i1 in 1:2}) (29) [ALGB] (1) Real conversion.v_p (30) [ALGB] (1) Real conversion.v_n (31) [ALGB] (2) Real[2] load.terminal.v (32) [ALGB] (1) Real conversion.i_p (33) [ALGB] (2) flow Real[2] conversion.terminal_p.i (start = {0.0 for $i1 in 1:2}, StateSelect = prefer) System Equations (39/52) ************************** (1) [SCAL] (1) conversion.v_n = conversion.terminal_n.v / ((conversion.terminal_n.v * conversion.terminal_n.v * (conversion.terminal_n.v * conversion.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25 * conversion.terminal_n.v) ($RES_SIM_12) (2) [SCAL] (1) conversion.v_p = conversion.terminal_p.v[1] - conversion.terminal_p.v[2] ($RES_SIM_13) (3) [SCAL] (1) 0.0 = sum(load.i) ($RES_$AUX_55) (4) [SCAL] (1) conversion.i_n = conversion.terminal_n.i / ((conversion.terminal_n.i * conversion.terminal_n.i * (conversion.terminal_n.i * conversion.terminal_n.i) + 1.0000000000000002e-10) ^ 0.25 * conversion.terminal_n.i) ($RES_SIM_14) (5) [SCAL] (1) load.absDV = abs(load.terminal.v[1] - load.terminal.v[2]) ($RES_$AUX_56) (6) [SCAL] (1) res.v[1] - res.v[2] = res.R_actual * (0.5 * (res.i[1] - res.i[2])) ($RES_SIM_30) (7) [SCAL] (1) conversion.i_p = 0.5 * (conversion.terminal_p.i[1] - conversion.terminal_p.i[2]) ($RES_SIM_15) (8) [SCAL] (1) -conversion.i_dc = sum(conversion.terminal_p.i) ($RES_$AUX_57) (9) [SCAL] (1) res.R_actual = res.R * (1.0 + res.alpha * (res.T - res.T_ref)) ($RES_SIM_31) (10) [SCAL] (1) $FUN_2 = Buildings.Utilities.Math.Functions.spliceFunction(conversion.P_p[1], conversion.P_n[1], conversion.i_p, 0.1) ($RES_$AUX_58) (11) [SCAL] (1) 0.0 = conversion.terminal_p.v[2] ($RES_SIM_17) (12) [SCAL] (1) 0.0 = sum(res.i) ($RES_$AUX_59) (13) [SCAL] (1) load.terminal.i[2] + conversion.terminal_p.i[2] + res.terminal.i[2] = 0.0 ($RES_SIM_34) (14) [ARRY] (2) conversion.P_n + conversion.P_p = {conversion.PLoss, 0.0} ($RES_SIM_19) (15) [SCAL] (1) load.terminal.i[1] + conversion.terminal_p.i[1] + res.terminal.i[1] = 0.0 ($RES_SIM_35) (16) [SCAL] (1) conversion.terminal_p.v[2] = res.terminal.v[2] ($RES_SIM_36) (17) [SCAL] (1) conversion.terminal_p.v[2] = load.terminal.v[2] ($RES_SIM_37) (18) [SCAL] (1) conversion.terminal_p.v[1] = res.terminal.v[1] ($RES_SIM_38) (19) [SCAL] (1) conversion.terminal_p.v[1] = load.terminal.v[1] ($RES_SIM_39) (20) [ARRY] (2) res.v = res.terminal.v ($RES_BND_45) (21) [ARRY] (2) res.i = res.terminal.i ($RES_BND_46) (22) [ARRY] (2) res.S = -res.v * res.i ($RES_BND_47) (23) [ARRY] (2) conversion.P_p = conversion.terminal_p.v * conversion.terminal_p.i ($RES_BND_48) (24) [ARRY] (2) conversion.P_n = {conversion.terminal_n.v[1] * conversion.terminal_n.i[1] + conversion.terminal_n.v[2] * conversion.terminal_n.i[2], conversion.terminal_n.v[2] * conversion.terminal_n.i[1] - conversion.terminal_n.v[1] * conversion.terminal_n.i[2]} ($RES_BND_49) (25) [SCAL] (1) $TEV_0 = time < pow.startTime ($RES_EVT_60) (26) [SCAL] (1) $TEV_1 = time < (pow.startTime + pow.duration) ($RES_EVT_61) (27) [SCAL] (1) conversion.PLoss = (1.0 - conversion.eta) * $FUN_2 ($RES_SIM_20) (28) [SCAL] (1) conversion.v_p = conversion.v_n * conversion.conversionFactor ($RES_SIM_21) (29) [FOR-] (2) ($RES_SIM_40) (29) [----] for $i1 in 1:2 loop (29) [----] [SCAL] (1) sou.terminal.i[$i1] + conversion.terminal_n.i[$i1] = 0.0 ($RES_SIM_41) (29) [----] end for; (30) [ARRY] (2) sou.terminal.v = conversion.terminal_n.v ($RES_SIM_42) (31) [SCAL] (1) res.LossPower = res.v * res.i ($RES_SIM_29) (32) [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_50) (33) [SCAL] (1) sou.phi = atan2(sou.terminal.v[2], sou.terminal.v[1]) - atan2((-sou.terminal.i)[2], (-sou.terminal.i)[1]) ($RES_BND_51) (34) [ARRY] (2) load.v = load.terminal.v ($RES_BND_52) (35) [ARRY] (2) load.i = load.terminal.i ($RES_BND_53) (36) [ARRY] (2) load.S = -load.v * load.i ($RES_BND_54) (37) [ARRY] (2) sou.terminal.v = {sou.V * cos(sou.phiSou), sou.V * sin(sou.phiSou)} ($RES_SIM_9) (38) [SCAL] (1) load.i[1] = -homotopy(load.P / (load.v[1] - load.v[2]), 0.0) ($RES_SIM_7) (39) [SCAL] (1) load.P = pow.offset + (if $TEV_0 then 0.0 else if $TEV_1 then (pow.height * (time - pow.startTime)) / pow.duration else pow.height) ($RES_SIM_1)