Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.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.Loads.Examples.ParallelResistors,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors")
translateModel(Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors")
[/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.048e-05/2.049e-05, allocations: 6.219 kB / 0.5923 GB, free: 18.43 MB / 446.1 MB
Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors): time 0.003198/0.003226, allocations: 2.633 MB / 0.5948 GB, free: 16.27 MB / 446.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001647/0.004885, allocations: 1.443 MB / 0.5962 GB, free: 14.82 MB / 446.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 9.4e-05/0.00499, allocations: 4 kB / 0.5962 GB, free: 14.82 MB / 446.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0006205/0.005617, allocations: 179.2 kB / 0.5964 GB, free: 14.64 MB / 446.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0002993/0.005925, allocations: 195.2 kB / 0.5966 GB, free: 14.45 MB / 446.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0002672/0.00621, allocations: 166.8 kB / 0.5968 GB, free: 14.29 MB / 446.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0002814/0.006498, allocations: 283.2 kB / 0.597 GB, free: 14.01 MB / 446.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002707/0.006776, allocations: 153.4 kB / 0.5972 GB, free: 13.86 MB / 446.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001252/0.00691, allocations: 103.6 kB / 0.5973 GB, free: 13.76 MB / 446.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001973/0.007115, allocations: 127.5 kB / 0.5974 GB, free: 13.63 MB / 446.1 MB
Notification: Performance of NFPackage.collectConstants: time 2.312e-05/0.007147, allocations: 16 kB / 0.5974 GB, free: 13.62 MB / 446.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001531/0.007305, allocations: 123.7 kB / 0.5975 GB, free: 13.5 MB / 446.1 MB
Notification: Performance of combineBinaries: time 0.0001512/0.007463, allocations: 273 kB / 0.5978 GB, free: 13.23 MB / 446.1 MB
Notification: Performance of replaceArrayConstructors: time 7.687e-05/0.007546, allocations: 177.7 kB / 0.598 GB, free: 13.05 MB / 446.1 MB
Notification: Performance of NFVerifyModel.verify: time 2.978e-05/0.007581, allocations: 23.88 kB / 0.598 GB, free: 13.03 MB / 446.1 MB
Notification: Performance of FrontEnd: time 1.49e-05/0.0076, allocations: 4 kB / 0.598 GB, free: 13.02 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: 41 (33)
* Number of variables: 41 (28)
Notification: Performance of Bindings: time 0.0006057/0.00821, allocations: 0.8291 MB / 0.5988 GB, free: 12.09 MB / 446.1 MB
Notification: Performance of FunctionAlias: time 3.817e-05/0.008254, allocations: 31.92 kB / 0.5988 GB, free: 12.06 MB / 446.1 MB
Notification: Performance of Early Inline: time 0.0004341/0.008693, allocations: 0.6008 MB / 0.5994 GB, free: 11.43 MB / 446.1 MB
Notification: Performance of simplify1: time 4.731e-05/0.008747, allocations: 51.94 kB / 0.5995 GB, free: 11.38 MB / 446.1 MB
Notification: Performance of Alias: time 0.0004861/0.009239, allocations: 0.5595 MB / 0.6 GB, free: 10.72 MB / 446.1 MB
Notification: Performance of simplify2: time 3.915e-05/0.009288, allocations: 43.94 kB / 0.6001 GB, free: 10.68 MB / 446.1 MB
Notification: Performance of Events: time 0.0001176/0.00941, allocations: 95.8 kB / 0.6001 GB, free: 10.59 MB / 446.1 MB
Notification: Performance of Detect States: time 0.0001178/0.009535, allocations: 132.1 kB / 0.6003 GB, free: 10.44 MB / 446.1 MB
Notification: Performance of Partitioning: time 0.0001575/0.0097, allocations: 212.5 kB / 0.6005 GB, free: 10.2 MB / 446.1 MB
Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency R.v[2] could not be divided by the body size 2 without rest.
Error: Internal error NBAdjacency.Matrix.createPseudo failed for:
[ARRY] (2) R.S = {R.v[1] * (-R.i)[1] + R.v[2] * (-R.i)[2], R.v[2] * (-R.i)[1] - R.v[1] * (-R.i)[2]} ($RES_BND_32)
Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system:
System Variables (17/30)
**************************
(1) [ALGB] (2) Real[2] R.v = R.terminal.v (start = {120.0, 0.0})
(2) [ALGB] (2) flow Real[2] source.terminal.i
(3) [ALGB] (2) flow Real[2] R1.terminal.i
(4) [ALGB] (2) Real[2] R.S = Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.R.PhaseSystem.phasePowers_vi(R.v, -R.i)
(5) [ALGB] (2) Real[2] source.S = Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.source.PhaseSystem.phasePowers_vi(source.terminal.v, source.terminal.i)
(6) [ALGB] (2) flow Real[2] R.terminal.i
(7) [ALGB] (2) Real[2] R1.v = R1.terminal.v (start = {120.0, 0.0})
(8) [ALGB] (1) Real R.P
(9) [ALGB] (1) Real source.phi = Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.source.PhaseSystem.phase(source.terminal.v) - Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.source.PhaseSystem.phase(-source.terminal.i)
(10) [ALGB] (2) Real[2] R.i = R.terminal.i (start = {0.0, 0.0})
(11) [ALGB] (2) Real[2] R1.S = Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.R1.PhaseSystem.phasePowers_vi(R1.v, -R1.i)
(12) [ALGB] (2) Real[2] R.terminal.v
(13) [ALGB] (2) Real[2] source.terminal.v
(14) [ALGB] (2) Real[2] R1.terminal.v
(15) [ALGB] (2) Real[2] R1.i = R1.terminal.i (start = {0.0, 0.0})
(16) [DISC] (1) Boolean $TEV_1
(17) [DISC] (1) Boolean $TEV_0
System Equations (22/30)
**************************
(1) [SCAL] (1) R1.i[1] = -homotopy((R1.P_nominal * R1.v[1]) / (R1.v[1] ^ 2.0 + R1.v[2] ^ 2.0), 0.0) ($RES_SIM_7)
(2) [SCAL] (1) R1.i[2] = -homotopy((R1.P_nominal * R1.v[2]) / (R1.v[1] ^ 2.0 + R1.v[2] ^ 2.0), 0.0) ($RES_SIM_6)
(3) [SCAL] (1) R.i[2] = -homotopy((R.P * R.v[2]) / (R.v[1] ^ 2.0 + R.v[2] ^ 2.0), 0.0) ($RES_SIM_12)
(4) [SCAL] (1) R.i[1] = -homotopy((R.P * R.v[1]) / (R.v[1] ^ 2.0 + R.v[2] ^ 2.0), 0.0) ($RES_SIM_13)
(5) [SCAL] (1) R1.terminal.i[1] + source.terminal.i[1] + R.terminal.i[1] = 0.0 ($RES_SIM_20)
(6) [SCAL] (1) R.P = load.offset + (if $TEV_0 then 0.0 else if $TEV_1 then (load.height * (time - load.startTime)) / load.duration else load.height) ($RES_SIM_14)
(7) [SCAL] (1) source.terminal.v[2] = R.terminal.v[2] ($RES_SIM_21)
(8) [ARRY] (2) source.terminal.v = {source.V * cos(source.phiSou), source.V * sin(source.phiSou)} ($RES_SIM_15)
(9) [SCAL] (1) source.terminal.v[2] = R1.terminal.v[2] ($RES_SIM_22)
(10) [SCAL] (1) source.terminal.v[1] = R.terminal.v[1] ($RES_SIM_23)
(11) [SCAL] (1) source.terminal.v[1] = R1.terminal.v[1] ($RES_SIM_24)
(12) [ARRY] (2) R.v = R.terminal.v ($RES_BND_30)
(13) [SCAL] (1) R1.terminal.i[2] + source.terminal.i[2] + R.terminal.i[2] = 0.0 ($RES_SIM_19)
(14) [ARRY] (2) R.i = R.terminal.i ($RES_BND_31)
(15) [ARRY] (2) R.S = {R.v[1] * (-R.i)[1] + R.v[2] * (-R.i)[2], R.v[2] * (-R.i)[1] - R.v[1] * (-R.i)[2]} ($RES_BND_32)
(16) [SCAL] (1) $TEV_0 = time < load.startTime ($RES_EVT_36)
(17) [ARRY] (2) R1.v = R1.terminal.v ($RES_BND_33)
(18) [SCAL] (1) $TEV_1 = time < (load.startTime + load.duration) ($RES_EVT_37)
(19) [ARRY] (2) R1.i = R1.terminal.i ($RES_BND_34)
(20) [ARRY] (2) source.S = {source.terminal.v[1] * source.terminal.i[1] + source.terminal.v[2] * source.terminal.i[2], source.terminal.v[2] * source.terminal.i[1] - source.terminal.v[1] * source.terminal.i[2]} ($RES_BND_28)
(21) [ARRY] (2) R1.S = {R1.v[1] * (-R1.i)[1] + R1.v[2] * (-R1.i)[2], R1.v[2] * (-R1.i)[1] - R1.v[1] * (-R1.i)[2]} ($RES_BND_35)
(22) [SCAL] (1) source.phi = atan2(source.terminal.v[2], source.terminal.v[1]) - atan2((-source.terminal.i)[2], (-source.terminal.i)[1]) ($RES_BND_29)