Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACDCConverter.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.OnePhase.Conversion.Examples.ACDCConverter,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACDCConverter") translateModel(Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACDCConverter,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACDCConverter") [/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.341e-05/2.342e-05, allocations: 2.281 kB / 0.5923 GB, free: 18.58 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACDCConverter): time 0.004073/0.004105, allocations: 3.333 MB / 0.5955 GB, free: 15.71 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.00257/0.006688, allocations: 2.316 MB / 0.5978 GB, free: 13.38 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001149/0.006814, allocations: 4 kB / 0.5978 GB, free: 13.38 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007799/0.007601, allocations: 298.8 kB / 0.5981 GB, free: 13.09 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000412/0.008022, allocations: 246.8 kB / 0.5983 GB, free: 12.84 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005364/0.008589, allocations: 299.2 kB / 0.5986 GB, free: 12.55 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003538/0.008951, allocations: 422.7 kB / 0.599 GB, free: 12.14 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003188/0.009278, allocations: 188.4 kB / 0.5992 GB, free: 11.96 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001525/0.009439, allocations: 151.4 kB / 0.5993 GB, free: 11.81 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002513/0.009697, allocations: 167.3 kB / 0.5995 GB, free: 11.64 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.98e-05/0.009737, allocations: 16 kB / 0.5995 GB, free: 11.63 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003871/0.01013, allocations: 367.2 kB / 0.5998 GB, free: 11.27 MB / 446.1 MB Notification: Performance of combineBinaries: time 0.0002403/0.01038, allocations: 407.7 kB / 0.6002 GB, free: 10.87 MB / 446.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001056/0.01049, allocations: 268.5 kB / 0.6005 GB, free: 10.6 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 4.334e-05/0.01054, allocations: 39.88 kB / 0.6005 GB, free: 10.56 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.633e-05/0.01057, allocations: 11.94 kB / 0.6005 GB, free: 10.55 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: 63 (50) * Number of variables: 63 (44) Notification: Performance of Bindings: time 0.0008848/0.01146, allocations: 1.154 MB / 0.6017 GB, free: 9.289 MB / 446.1 MB Notification: Performance of FunctionAlias: time 0.0001091/0.01158, allocations: 87.05 kB / 0.6017 GB, free: 9.207 MB / 446.1 MB Notification: Performance of Early Inline: time 0.0006486/0.01224, allocations: 0.8466 MB / 0.6026 GB, free: 8.332 MB / 446.1 MB Notification: Performance of simplify1: time 5.494e-05/0.0123, allocations: 63.92 kB / 0.6026 GB, free: 8.27 MB / 446.1 MB Notification: Performance of Alias: time 0.0007244/0.01303, allocations: 0.8182 MB / 0.6034 GB, free: 7.301 MB / 446.1 MB Notification: Performance of simplify2: time 4.864e-05/0.01309, allocations: 63.92 kB / 0.6035 GB, free: 7.238 MB / 446.1 MB Notification: Performance of Events: time 0.0001346/0.01323, allocations: 111.7 kB / 0.6036 GB, free: 7.129 MB / 446.1 MB Notification: Performance of Detect States: time 0.0001535/0.01339, allocations: 194.2 kB / 0.6038 GB, free: 6.926 MB / 446.1 MB Notification: Performance of Partitioning: time 0.0002629/0.01366, allocations: 300 kB / 0.6041 GB, free: 6.586 MB / 446.1 MB 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, 0.0}) (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 (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 (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) (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 (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 (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, 0.0}) (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)