Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.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.Loads.Examples.ParallelResistors,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00129/0.00129, allocations: 106.4 kB / 16.42 MB, free: 6.453 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.001352/0.001352, allocations: 187.2 kB / 17.35 MB, free: 5.707 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.297/1.297, allocations: 205.1 MB / 223.2 MB, free: 12.21 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.298/1.298, allocations: 251.7 MB / 0.51 GB, free: 396 kB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.393e-05/1.394e-05, allocations: 5.938 kB / 0.7264 GB, free: 4.73 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors): time 0.003651/0.003672, allocations: 2.633 MB / 0.7289 GB, free: 2.078 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001949/0.005633, allocations: 1.376 MB / 0.7303 GB, free: 0.6914 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.548e-05/0.005729, allocations: 4 kB / 0.7303 GB, free: 0.6875 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.000623/0.006357, allocations: 179.2 kB / 0.7305 GB, free: 0.5117 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0002959/0.006661, allocations: 167.3 kB / 0.7306 GB, free: 356 kB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003071/0.006978, allocations: 162.7 kB / 0.7308 GB, free: 196 kB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0003326/0.007317, allocations: 291.1 kB / 0.7311 GB, free: 15.91 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002916/0.007617, allocations: 145.4 kB / 0.7312 GB, free: 15.76 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001389/0.007764, allocations: 99.61 kB / 0.7313 GB, free: 15.66 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001999/0.007972, allocations: 103.7 kB / 0.7314 GB, free: 15.56 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.229e-05/0.008002, allocations: 12 kB / 0.7314 GB, free: 15.55 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001901/0.008197, allocations: 135.7 kB / 0.7315 GB, free: 15.42 MB / 0.5762 GB Notification: Performance of combineBinaries: time 0.0002359/0.00844, allocations: 285.1 kB / 0.7318 GB, free: 15.14 MB / 0.5762 GB Notification: Performance of replaceArrayConstructors: time 0.0001007/0.008547, allocations: 181.5 kB / 0.732 GB, free: 14.96 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 4.555e-05/0.008598, allocations: 27.94 kB / 0.732 GB, free: 14.93 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.627e-05/0.008619, allocations: 7.938 kB / 0.732 GB, free: 14.92 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: 41 (33) * Number of variables: 41 (28) Notification: Performance of Bindings: time 0.000815/0.009438, allocations: 0.833 MB / 0.7328 GB, free: 13.98 MB / 0.5762 GB Notification: Performance of FunctionAlias: time 4.811e-05/0.009492, allocations: 35.95 kB / 0.7329 GB, free: 13.95 MB / 0.5762 GB Notification: Performance of Early Inline: time 0.0006355/0.01013, allocations: 0.597 MB / 0.7334 GB, free: 13.32 MB / 0.5762 GB Notification: Performance of simplify1: time 5.992e-05/0.0102, allocations: 51.92 kB / 0.7335 GB, free: 13.27 MB / 0.5762 GB Notification: Performance of Alias: time 0.0006634/0.01087, allocations: 0.5672 MB / 0.734 GB, free: 12.61 MB / 0.5762 GB Notification: Performance of simplify2: time 4.744e-05/0.01093, allocations: 43.94 kB / 0.7341 GB, free: 12.57 MB / 0.5762 GB Notification: Performance of Events: time 0.0001341/0.01107, allocations: 79.86 kB / 0.7342 GB, free: 12.49 MB / 0.5762 GB Notification: Performance of Detect States: time 0.0001636/0.01124, allocations: 152 kB / 0.7343 GB, free: 12.32 MB / 0.5762 GB Notification: Performance of Partitioning: time 0.0002109/0.01146, allocations: 208.7 kB / 0.7345 GB, free: 12.09 MB / 0.5762 GB 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 (start = {0.0 for $i1 in 1:2}) (3) [ALGB] (2) flow Real[2] R1.terminal.i (start = {0.0 for $i1 in 1:2}) (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 (start = {0.0 for $i1 in 1:2}) (7) [ALGB] (2) Real[2] R1.v = R1.terminal.v (start = {120.0, 0.0}) (8) [ALGB] (1) Real R.P (start = 0.0) (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 for $i1 in 1:2}) (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 for $i1 in 1:2}) (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)