Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 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.Loads.Examples.ParallelResistors,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_8_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.00113/0.00113, allocations: 106 kB / 16.38 MB, free: 6.43 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.00102/0.00102, allocations: 190.6 kB / 17.31 MB, free: 5.777 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.382/1.382, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.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.717/1.717, allocations: 292.3 MB / 0.5496 GB, free: 17.61 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.553e-05/3.555e-05, allocations: 2.281 kB / 0.6729 GB, free: 5.91 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors): time 0.004377/0.004431, allocations: 2.652 MB / 0.6755 GB, free: 3.238 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.00206/0.006505, allocations: 1.353 MB / 0.6768 GB, free: 1.875 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.276e-05/0.006609, allocations: 4 kB / 0.6768 GB, free: 1.871 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0006488/0.007263, allocations: 183.1 kB / 0.677 GB, free: 1.691 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0003145/0.007585, allocations: 159.3 kB / 0.6771 GB, free: 1.535 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.000341/0.007947, allocations: 174.8 kB / 0.6773 GB, free: 1.367 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0003436/0.008297, allocations: 287 kB / 0.6775 GB, free: 1.086 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003106/0.008616, allocations: 141.4 kB / 0.6777 GB, free: 0.9492 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001499/0.008774, allocations: 103.6 kB / 0.6778 GB, free: 0.8477 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002047/0.008988, allocations: 115.5 kB / 0.6779 GB, free: 0.7344 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.509e-05/0.009021, allocations: 12 kB / 0.6779 GB, free: 0.7227 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001848/0.009214, allocations: 131.7 kB / 0.678 GB, free: 0.5938 MB / 0.545 GB Notification: Performance of combineBinaries: time 0.0002385/0.00946, allocations: 281.1 kB / 0.6783 GB, free: 324 kB / 0.545 GB Notification: Performance of replaceArrayConstructors: time 0.0001093/0.009578, allocations: 181.6 kB / 0.6785 GB, free: 140 kB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 5.039e-05/0.009634, allocations: 27.88 kB / 0.6785 GB, free: 112 kB / 0.545 GB Notification: Performance of FrontEnd: time 1.643e-05/0.009656, allocations: 4 kB / 0.6785 GB, free: 108 kB / 0.545 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.0008613/0.01052, allocations: 0.8331 MB / 0.6793 GB, free: 15.17 MB / 0.5606 GB Notification: Performance of FunctionAlias: time 4.128e-05/0.01057, allocations: 35.92 kB / 0.6793 GB, free: 15.13 MB / 0.5606 GB Notification: Performance of Early Inline: time 0.0006269/0.01121, allocations: 0.5969 MB / 0.6799 GB, free: 14.51 MB / 0.5606 GB Notification: Performance of simplify1: time 5.361e-05/0.01127, allocations: 51.95 kB / 0.68 GB, free: 14.46 MB / 0.5606 GB Notification: Performance of Alias: time 0.0006733/0.01195, allocations: 0.5672 MB / 0.6805 GB, free: 13.79 MB / 0.5606 GB Notification: Performance of simplify2: time 4.883e-05/0.01201, allocations: 51.94 kB / 0.6806 GB, free: 13.74 MB / 0.5606 GB Notification: Performance of Events: time 0.0001391/0.01215, allocations: 87.73 kB / 0.6807 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of Detect States: time 0.0001586/0.01232, allocations: 139.1 kB / 0.6808 GB, free: 13.51 MB / 0.5606 GB Notification: Performance of Partitioning: time 0.0002139/0.01254, allocations: 205.2 kB / 0.681 GB, free: 13.27 MB / 0.5606 GB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency R.v[2] could not be devided 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)