Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.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.OnePhase.Conversion.Examples.ACDCConverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACDCConverter") translateModel(Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACDCConverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACDCConverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001084/0.001084, allocations: 105.8 kB / 16.42 MB, free: 6.461 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.0009436/0.0009435, allocations: 189.9 kB / 17.36 MB, free: 5.73 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.289/1.289, 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.278/1.278, allocations: 251.7 MB / 0.51 GB, free: 412 kB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.309e-05/2.31e-05, allocations: 2.281 kB / 0.7264 GB, free: 4.727 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACDCConverter): time 0.004375/0.004408, allocations: 3.35 MB / 0.7296 GB, free: 1.355 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.003165/0.00759, allocations: 2.191 MB / 0.7318 GB, free: 15.15 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001665/0.007771, allocations: 7.938 kB / 0.7318 GB, free: 15.14 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.000899/0.008679, allocations: 290.8 kB / 0.7321 GB, free: 14.86 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0005526/0.009242, allocations: 234.9 kB / 0.7323 GB, free: 14.63 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007958/0.01005, allocations: 291.2 kB / 0.7326 GB, free: 14.34 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0004888/0.01055, allocations: 430.6 kB / 0.733 GB, free: 13.92 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003567/0.01091, allocations: 196.3 kB / 0.7332 GB, free: 13.73 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001942/0.01111, allocations: 155.4 kB / 0.7333 GB, free: 13.58 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002541/0.01138, allocations: 139.4 kB / 0.7334 GB, free: 13.44 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.923e-05/0.01143, allocations: 23.94 kB / 0.7335 GB, free: 13.42 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005462/0.01199, allocations: 367.2 kB / 0.7338 GB, free: 13.06 MB / 0.5762 GB Notification: Performance of combineBinaries: time 0.0003249/0.01232, allocations: 439.5 kB / 0.7342 GB, free: 12.62 MB / 0.5762 GB Notification: Performance of replaceArrayConstructors: time 0.0001592/0.01249, allocations: 264.5 kB / 0.7345 GB, free: 12.36 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 5.261e-05/0.01255, allocations: 43.81 kB / 0.7345 GB, free: 12.32 MB / 0.5762 GB Notification: Performance of FrontEnd: time 3.699e-05/0.01259, allocations: 8 kB / 0.7345 GB, free: 12.31 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.001117/0.01371, allocations: 1.17 MB / 0.7357 GB, free: 11.04 MB / 0.5762 GB Notification: Performance of FunctionAlias: time 0.000121/0.01384, allocations: 86.78 kB / 0.7358 GB, free: 10.95 MB / 0.5762 GB Notification: Performance of Early Inline: time 0.0008455/0.0147, allocations: 0.8467 MB / 0.7366 GB, free: 10.08 MB / 0.5762 GB Notification: Performance of simplify1: time 7.747e-05/0.01478, allocations: 63.91 kB / 0.7367 GB, free: 10.02 MB / 0.5762 GB Notification: Performance of Alias: time 0.0009277/0.01572, allocations: 0.826 MB / 0.7375 GB, free: 9.043 MB / 0.5762 GB Notification: Performance of simplify2: time 6.261e-05/0.01579, allocations: 63.91 kB / 0.7375 GB, free: 8.98 MB / 0.5762 GB Notification: Performance of Events: time 0.0001613/0.01596, allocations: 107.8 kB / 0.7376 GB, free: 8.875 MB / 0.5762 GB Notification: Performance of Detect States: time 0.0001902/0.01616, allocations: 198.3 kB / 0.7378 GB, free: 8.668 MB / 0.5762 GB Notification: Performance of Partitioning: time 0.0002964/0.01646, allocations: 295.9 kB / 0.7381 GB, free: 8.332 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.OnePhase.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.OnePhase.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.OnePhase.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.OnePhase.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.OnePhase.Conversion.Examples.ACDCConverter.sou.PhaseSystem.phase(sou.terminal.v) - Buildings.Electrical.AC.OnePhase.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.OnePhase.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 = {30.0, -30.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 = {30.0, -30.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)