Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_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 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.Conversion.Examples.ACDCConverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_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.001202/0.001202, allocations: 105.6 kB / 16.42 MB, free: 5.98 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.001189/0.001189, allocations: 193 kB / 17.36 MB, free: 5.578 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.273/1.273, allocations: 205.1 MB / 223.2 MB, free: 12.21 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.275/1.275, allocations: 251.7 MB / 0.51 GB, free: 416 kB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.109e-05/2.11e-05, allocations: 2.281 kB / 0.7264 GB, free: 4.754 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Conversion.Examples.ACDCConverter): time 0.004424/0.004454, allocations: 3.4 MB / 0.7297 GB, free: 1.332 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.003014/0.00748, allocations: 2.206 MB / 0.7318 GB, free: 15.11 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001191/0.007611, allocations: 8 kB / 0.7319 GB, free: 15.11 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0008178/0.008435, allocations: 274.8 kB / 0.7321 GB, free: 14.84 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0004158/0.00886, allocations: 238.9 kB / 0.7323 GB, free: 14.6 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005866/0.009495, allocations: 287.2 kB / 0.7326 GB, free: 14.32 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0004173/0.009922, allocations: 430.7 kB / 0.733 GB, free: 13.9 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003231/0.01025, allocations: 192.4 kB / 0.7332 GB, free: 13.71 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001686/0.01043, allocations: 159.3 kB / 0.7334 GB, free: 13.55 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000243/0.01068, allocations: 151.4 kB / 0.7335 GB, free: 13.41 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.152e-05/0.01072, allocations: 20 kB / 0.7335 GB, free: 13.39 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004546/0.01118, allocations: 363.2 kB / 0.7339 GB, free: 13.03 MB / 0.5762 GB Notification: Performance of combineBinaries: time 0.0003/0.01149, allocations: 427.5 kB / 0.7343 GB, free: 12.61 MB / 0.5762 GB Notification: Performance of replaceArrayConstructors: time 0.000176/0.01167, allocations: 278.3 kB / 0.7345 GB, free: 12.34 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 4.748e-05/0.01173, allocations: 43.81 kB / 0.7346 GB, free: 12.3 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.524e-05/0.01176, allocations: 8 kB / 0.7346 GB, free: 12.29 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: 63 (50) * Number of variables: 63 (44) Notification: Performance of Bindings: time 0.001049/0.01281, allocations: 1.17 MB / 0.7357 GB, free: 11.01 MB / 0.5762 GB Notification: Performance of FunctionAlias: time 0.0001088/0.01293, allocations: 79.84 kB / 0.7358 GB, free: 10.93 MB / 0.5762 GB Notification: Performance of Early Inline: time 0.0007904/0.01372, allocations: 0.8505 MB / 0.7366 GB, free: 10.05 MB / 0.5762 GB Notification: Performance of simplify1: time 6.536e-05/0.0138, allocations: 63.92 kB / 0.7367 GB, free: 9.992 MB / 0.5762 GB Notification: Performance of Alias: time 0.0008621/0.01467, allocations: 0.8221 MB / 0.7375 GB, free: 9.023 MB / 0.5762 GB Notification: Performance of simplify2: time 6.751e-05/0.01475, allocations: 63.92 kB / 0.7376 GB, free: 8.961 MB / 0.5762 GB Notification: Performance of Events: time 0.0001458/0.0149, allocations: 111.8 kB / 0.7377 GB, free: 8.852 MB / 0.5762 GB Notification: Performance of Detect States: time 0.0001838/0.01509, allocations: 194.2 kB / 0.7379 GB, free: 8.648 MB / 0.5762 GB Notification: Performance of Partitioning: time 0.0002816/0.01538, allocations: 292 kB / 0.7381 GB, free: 8.316 MB / 0.5762 GB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency conversion.PLoss could not be divided 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)