Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.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.Examples.GridDCLoad,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad") translateModel(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad") [/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.394e-05/2.395e-05, allocations: 2.5 kB / 0.5922 GB, free: 18.47 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.004314/0.004346, allocations: 3.054 MB / 0.5952 GB, free: 15.94 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002732/0.007093, allocations: 2.005 MB / 0.5972 GB, free: 13.93 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001725/0.00728, allocations: 11.94 kB / 0.5972 GB, free: 13.92 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008813/0.008169, allocations: 282.9 kB / 0.5975 GB, free: 13.64 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004244/0.008602, allocations: 199 kB / 0.5977 GB, free: 13.45 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006459/0.009324, allocations: 258.1 kB / 0.5979 GB, free: 13.2 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003549/0.009686, allocations: 350.9 kB / 0.5982 GB, free: 12.85 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003264/0.01002, allocations: 140 kB / 0.5984 GB, free: 12.72 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001601/0.01019, allocations: 131.5 kB / 0.5985 GB, free: 12.59 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002262/0.01042, allocations: 127.4 kB / 0.5986 GB, free: 12.46 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.516e-05/0.01045, allocations: 16 kB / 0.5986 GB, free: 12.45 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003792/0.01084, allocations: 343.3 kB / 0.599 GB, free: 12.11 MB / 446.1 MB Notification: Performance of combineBinaries: time 0.0001938/0.01104, allocations: 340.5 kB / 0.5993 GB, free: 11.78 MB / 446.1 MB Notification: Performance of replaceArrayConstructors: time 8.663e-05/0.01114, allocations: 232.9 kB / 0.5995 GB, free: 11.55 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 3.776e-05/0.01118, allocations: 39.88 kB / 0.5995 GB, free: 11.51 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.023e-05/0.01122, allocations: 4 kB / 0.5996 GB, free: 11.5 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: 55 (41) * Number of variables: 55 (39) Notification: Performance of Bindings: time 0.0007423/0.01196, allocations: 1.029 MB / 0.6006 GB, free: 10.37 MB / 446.1 MB Notification: Performance of FunctionAlias: time 8.682e-05/0.01206, allocations: 63.83 kB / 0.6006 GB, free: 10.3 MB / 446.1 MB Notification: Performance of Early Inline: time 0.0005883/0.01265, allocations: 0.7881 MB / 0.6014 GB, free: 9.488 MB / 446.1 MB Notification: Performance of simplify1: time 4.559e-05/0.01271, allocations: 59.92 kB / 0.6014 GB, free: 9.43 MB / 446.1 MB Notification: Performance of Alias: time 0.0006104/0.01332, allocations: 0.6967 MB / 0.6021 GB, free: 8.609 MB / 446.1 MB Notification: Performance of simplify2: time 4.561e-05/0.01338, allocations: 55.94 kB / 0.6022 GB, free: 8.555 MB / 446.1 MB Notification: Performance of Events: time 9.836e-05/0.01348, allocations: 74.12 kB / 0.6022 GB, free: 8.484 MB / 446.1 MB Notification: Performance of Detect States: time 0.0001384/0.01363, allocations: 181 kB / 0.6024 GB, free: 8.293 MB / 446.1 MB Notification: Performance of Partitioning: time 0.0002021/0.01384, allocations: 253 kB / 0.6027 GB, free: 8.012 MB / 446.1 MB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency idealACDCConverter1.PLoss could not be divided by the body size 2 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [ARRY] (2) idealACDCConverter1.P_n + idealACDCConverter1.P_p = {idealACDCConverter1.PLoss, 0.0} ($RES_SIM_18) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (29/45) ************************** (1) [ALGB] (2) flow Real[2] idealACDCConverter1.terminal_p.i (start = {0.0 for $i1 in 1:2}, StateSelect = prefer) (2) [ALGB] (2) Real[2] grid.sou.terminal.v (3) [ALGB] (2) protected Real[2] idealACDCConverter1.P_p = Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.idealACDCConverter1.PhaseSystem_p.phasePowers_vi(idealACDCConverter1.terminal_p.v, idealACDCConverter1.terminal_p.i) (4) [ALGB] (1) Real idealACDCConverter1.v_p (5) [ALGB] (2) flow Real[2] idealACDCConverter1.terminal_n.i (start = {0.0 for $i1 in 1:2}, StateSelect = prefer) (6) [ALGB] (2) protected Real[2] idealACDCConverter1.P_n = Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.idealACDCConverter1.PhaseSystem_n.phasePowers_vi(idealACDCConverter1.terminal_n.v, idealACDCConverter1.terminal_n.i) (7) [ALGB] (1) Real idealACDCConverter1.v_n (8) [ALGB] (1) Real idealACDCConverter1.PLoss (9) [ALGB] (2) Real[2] resistor.v = resistor.terminal.v (start = {6.0, -6.0}) (10) [ALGB] (1) Real idealACDCConverter1.i_p (11) [ALGB] (2) Real[2] resistor.terminal.v (12) [ALGB] (1) Real idealACDCConverter1.i_n (13) [ALGB] (1) Real grid.P.apparent (14) [ALGB] (2) Real[2] resistor.S = Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.resistor.PhaseSystem.phasePowers_vi(resistor.v, -resistor.i) (15) [ALGB] (2) flow Real[2] grid.terminal.i (16) [ALGB] (2) flow Real[2] grid.sou.terminal.i (17) [ALGB] (2) Real[2] idealACDCConverter1.terminal_p.v (18) [ALGB] (2) Real[2] grid.sou.S = Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.grid.sou.PhaseSystem.phasePowers_vi(grid.sou.terminal.v, grid.sou.terminal.i) (19) [ALGB] (1) protected Real idealACDCConverter1.i_dc (20) [ALGB] (1) Real $FUN_2 (21) [ALGB] (1) Real grid.P.real (22) [ALGB] (2) Real[2] resistor.i = resistor.terminal.i (start = {0.0, 0.0}) (23) [ALGB] (2) Real[2] idealACDCConverter1.terminal_n.v (24) [ALGB] (1) Real grid.P.cosPhi (25) [ALGB] (2) flow Real[2] resistor.terminal.i (26) [ALGB] (1) Real resistor.LossPower (27) [ALGB] (1) Real resistor.R_actual (28) [ALGB] (2) Real[2] grid.terminal.v (29) [ALGB] (1) Real grid.P.phi System Equations (31/45) ************************** (1) [SCAL] (1) idealACDCConverter1.v_n = idealACDCConverter1.terminal_n.v / ((idealACDCConverter1.terminal_n.v * idealACDCConverter1.terminal_n.v * (idealACDCConverter1.terminal_n.v * idealACDCConverter1.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25 * idealACDCConverter1.terminal_n.v) ($RES_SIM_11) (2) [SCAL] (1) idealACDCConverter1.v_p = idealACDCConverter1.terminal_p.v[1] - idealACDCConverter1.terminal_p.v[2] ($RES_SIM_12) (3) [SCAL] (1) idealACDCConverter1.i_n = idealACDCConverter1.terminal_n.i / ((idealACDCConverter1.terminal_n.i * idealACDCConverter1.terminal_n.i * (idealACDCConverter1.terminal_n.i * idealACDCConverter1.terminal_n.i) + 1.0000000000000002e-10) ^ 0.25 * idealACDCConverter1.terminal_n.i) ($RES_SIM_13) (4) [SCAL] (1) idealACDCConverter1.i_p = 0.5 * (idealACDCConverter1.terminal_p.i[1] - idealACDCConverter1.terminal_p.i[2]) ($RES_SIM_14) (5) [ARRY] (2) idealACDCConverter1.terminal_p.v = resistor.terminal.v ($RES_SIM_30) (6) [FOR-] (2) ($RES_SIM_31) (6) [----] for $i1 in 1:2 loop (6) [----] [SCAL] (1) grid.terminal.i[$i1] + idealACDCConverter1.terminal_n.i[$i1] = 0.0 ($RES_SIM_32) (6) [----] end for; (7) [SCAL] (1) 0.0 = idealACDCConverter1.terminal_p.v[2] ($RES_SIM_16) (8) [ARRY] (2) grid.terminal.v = idealACDCConverter1.terminal_n.v ($RES_SIM_33) (9) [ARRY] (2) idealACDCConverter1.P_n + idealACDCConverter1.P_p = {idealACDCConverter1.PLoss, 0.0} ($RES_SIM_18) (10) [SCAL] (1) grid.P.phi = atan2(grid.sou.terminal.v[2], grid.sou.terminal.v[1]) - atan2((-grid.sou.terminal.i)[2], (-grid.sou.terminal.i)[1]) ($RES_BND_40) (11) [SCAL] (1) idealACDCConverter1.PLoss = (1.0 - idealACDCConverter1.eta) * $FUN_2 ($RES_SIM_19) (12) [ARRY] (2) idealACDCConverter1.P_p = idealACDCConverter1.terminal_p.v * idealACDCConverter1.terminal_p.i ($RES_BND_41) (13) [FOR-] (2) ($RES_SIM_35) (13) [----] for $i1 in 1:2 loop (13) [----] [SCAL] (1) grid.sou.terminal.i[$i1] - grid.terminal.i[$i1] = 0.0 ($RES_SIM_36) (13) [----] end for; (14) [ARRY] (2) idealACDCConverter1.P_n = {idealACDCConverter1.terminal_n.v[1] * idealACDCConverter1.terminal_n.i[1] + idealACDCConverter1.terminal_n.v[2] * idealACDCConverter1.terminal_n.i[2], idealACDCConverter1.terminal_n.v[2] * idealACDCConverter1.terminal_n.i[1] - idealACDCConverter1.terminal_n.v[1] * idealACDCConverter1.terminal_n.i[2]} ($RES_BND_42) (15) [ARRY] (2) resistor.v = resistor.terminal.v ($RES_BND_43) (16) [ARRY] (2) grid.sou.terminal.v = grid.terminal.v ($RES_SIM_37) (17) [ARRY] (2) resistor.i = resistor.terminal.i ($RES_BND_44) (18) [ARRY] (2) resistor.S = -resistor.v * resistor.i ($RES_BND_45) (19) [SCAL] (1) 0.0 = sum(resistor.i) ($RES_$AUX_46) (20) [SCAL] (1) -idealACDCConverter1.i_dc = sum(idealACDCConverter1.terminal_p.i) ($RES_$AUX_47) (21) [SCAL] (1) idealACDCConverter1.v_p = idealACDCConverter1.v_n * idealACDCConverter1.conversionFactor ($RES_SIM_20) (22) [SCAL] (1) $FUN_2 = Buildings.Utilities.Math.Functions.spliceFunction(idealACDCConverter1.P_p[1], idealACDCConverter1.P_n[1], idealACDCConverter1.i_p, 0.1) ($RES_$AUX_48) (23) [SCAL] (1) grid.P.cosPhi = cos(grid.P.phi) ($RES_$AUX_49) (24) [SCAL] (1) grid.P.apparent = (grid.sou.S[1] ^ 2.0 + grid.sou.S[2] ^ 2.0) / ((grid.sou.S[2] ^ 2.0 + grid.sou.S[1] ^ 2.0) * (grid.sou.S[2] ^ 2.0 + grid.sou.S[1] ^ 2.0) + 1e-4) ^ 0.25 ($RES_SIM_23) (25) [SCAL] (1) grid.P.real = -grid.sou.S[1] ($RES_SIM_24) (26) [ARRY] (2) grid.sou.terminal.v = {grid.sou.V * cos(grid.sou.phiSou), grid.sou.V * sin(grid.sou.phiSou)} ($RES_SIM_25) (27) [FOR-] (2) ($RES_SIM_28) (27) [----] for $i1 in 1:2 loop (27) [----] [SCAL] (1) idealACDCConverter1.terminal_p.i[$i1] + resistor.terminal.i[$i1] = 0.0 ($RES_SIM_29) (27) [----] end for; (28) [ARRY] (2) grid.sou.S = {grid.sou.terminal.v[1] * grid.sou.terminal.i[1] + grid.sou.terminal.v[2] * grid.sou.terminal.i[2], grid.sou.terminal.v[2] * grid.sou.terminal.i[1] - grid.sou.terminal.v[1] * grid.sou.terminal.i[2]} ($RES_BND_39) (29) [SCAL] (1) resistor.R_actual = resistor.R * (1.0 + resistor.alpha * (resistor.T - resistor.T_ref)) ($RES_SIM_9) (30) [SCAL] (1) resistor.v[1] - resistor.v[2] = resistor.R_actual * (0.5 * (resistor.i[1] - resistor.i[2])) ($RES_SIM_8) (31) [SCAL] (1) resistor.LossPower = resistor.v * resistor.i ($RES_SIM_7)