Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 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.OnePhase.Conversion.Examples.ACDCConverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_8_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.001201/0.001207, allocations: 106.7 kB / 16.38 MB, free: 5.984 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.001341/0.001341, allocations: 191.2 kB / 17.32 MB, free: 5.594 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.482/1.482, allocations: 205.1 MB / 223.2 MB, free: 4.266 MB / 174.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.666/1.666, allocations: 292.3 MB / 0.5496 GB, free: 12.75 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.649e-05/2.651e-05, allocations: 2.281 kB / 0.6729 GB, free: 25.68 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACDCConverter): time 0.004669/0.004711, allocations: 3.346 MB / 0.6761 GB, free: 23.43 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002903/0.007632, allocations: 2.19 MB / 0.6783 GB, free: 21.94 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001708/0.007819, allocations: 8.594 kB / 0.6783 GB, free: 21.94 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0008278/0.008654, allocations: 293.4 kB / 0.6786 GB, free: 21.76 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0004667/0.00913, allocations: 239.9 kB / 0.6788 GB, free: 21.63 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006914/0.00988, allocations: 296.1 kB / 0.6791 GB, free: 21.5 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0003862/0.01027, allocations: 431.4 kB / 0.6795 GB, free: 21.32 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003248/0.01061, allocations: 191 kB / 0.6797 GB, free: 21.23 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001678/0.01078, allocations: 147.9 kB / 0.6798 GB, free: 21.17 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000226/0.01102, allocations: 149.4 kB / 0.6799 GB, free: 21.1 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 3.003e-05/0.01105, allocations: 18.81 kB / 0.68 GB, free: 21.1 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004742/0.01153, allocations: 364.5 kB / 0.6803 GB, free: 20.98 MB / 0.5294 GB Notification: Performance of combineBinaries: time 0.0002561/0.0118, allocations: 434 kB / 0.6807 GB, free: 20.7 MB / 0.5294 GB Notification: Performance of replaceArrayConstructors: time 0.0001277/0.01194, allocations: 264.2 kB / 0.681 GB, free: 20.53 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 5.658e-05/0.012, allocations: 37.09 kB / 0.681 GB, free: 20.51 MB / 0.5294 GB Notification: Performance of FrontEnd: time 3.433e-05/0.01204, allocations: 10.72 kB / 0.681 GB, free: 20.51 MB / 0.5294 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.0009162/0.01296, allocations: 1.174 MB / 0.6822 GB, free: 19.64 MB / 0.5294 GB Notification: Performance of FunctionAlias: time 0.0001077/0.01307, allocations: 82.42 kB / 0.6823 GB, free: 19.6 MB / 0.5294 GB Notification: Performance of Early Inline: time 0.0006674/0.01375, allocations: 0.8433 MB / 0.6831 GB, free: 19.11 MB / 0.5294 GB Notification: Performance of simplify1: time 5.601e-05/0.01381, allocations: 67.67 kB / 0.6831 GB, free: 19.08 MB / 0.5294 GB Notification: Performance of Alias: time 0.0008096/0.01463, allocations: 0.8148 MB / 0.6839 GB, free: 18.49 MB / 0.5294 GB Notification: Performance of simplify2: time 5.4e-05/0.0147, allocations: 67.89 kB / 0.684 GB, free: 18.46 MB / 0.5294 GB Notification: Performance of Events: time 0.0001358/0.01484, allocations: 111.1 kB / 0.6841 GB, free: 18.4 MB / 0.5294 GB Notification: Performance of Detect States: time 0.000158/0.015, allocations: 191 kB / 0.6843 GB, free: 18.27 MB / 0.5294 GB Notification: Performance of Partitioning: time 0.0002656/0.01528, allocations: 313.5 kB / 0.6846 GB, free: 18.05 MB / 0.5294 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.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)