Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_13_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002021/0.002021, allocations: 80.88 kB / 21.56 MB, free: 2.93 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00212/0.00212, allocations: 166.3 kB / 24.97 MB, free: 9.195 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.645/1.645, allocations: 177.1 MB / 205.4 MB, free: 4.992 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo): time 3.24/3.24, allocations: 389.5 MB / 0.6361 GB, free: 12.31 MB / 0.6042 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Buildings_13_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Buildings_13_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid") [Timeout 300] "Notification: Performance of FrontEnd - Absyn->SCode: time 2.834e-05/2.834e-05, allocations: 2.312 kB / 0.776 GB, free: 5.387 MB / 0.7292 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid): time 0.01182/0.01185, allocations: 7.189 MB / 0.783 GB, free: 14.21 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.009309/0.02116, allocations: 3.949 MB / 0.7868 GB, free: 10.27 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001433/0.02259, allocations: 47.69 kB / 0.7869 GB, free: 10.22 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.001722/0.02431, allocations: 375.1 kB / 0.7872 GB, free: 9.852 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.002202/0.02651, allocations: 0.6223 MB / 0.7878 GB, free: 9.23 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.001949/0.02846, allocations: 0.6274 MB / 0.7885 GB, free: 8.605 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.005857/0.03432, allocations: 3.695 MB / 0.7921 GB, free: 4.941 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002905/0.03722, allocations: 1.276 MB / 0.7933 GB, free: 3.629 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004369/0.04159, allocations: 1.752 MB / 0.795 GB, free: 1.875 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002871/0.04447, allocations: 1.187 MB / 0.7962 GB, free: 0.6875 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 0.000741/0.04521, allocations: 152 kB / 0.7963 GB, free: 0.5391 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001745/0.04695, allocations: 367.5 kB / 0.7967 GB, free: 184 kB / 0.7448 GB Notification: Performance of combineBinaries: time 0.004497/0.05145, allocations: 2.229 MB / 0.7988 GB, free: 13.94 MB / 0.7605 GB Notification: Performance of replaceArrayConstructors: time 0.002154/0.0536, allocations: 1.27 MB / 0.8001 GB, free: 12.72 MB / 0.7605 GB Notification: Performance of NFVerifyModel.verify: time 0.0006642/0.05427, allocations: 85.66 kB / 0.8002 GB, free: 12.64 MB / 0.7605 GB Notification: Performance of FrontEnd: time 0.0002946/0.05456, allocations: 27.86 kB / 0.8002 GB, free: 12.61 MB / 0.7605 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 406 (238) * Number of variables: 406 (148) Notification: Performance of [SIM] Bindings: time 0.01382/0.06838, allocations: 7.632 MB / 0.8076 GB, free: 4.789 MB / 0.7605 GB Notification: Performance of [SIM] FunctionAlias: time 0.003132/0.07151, allocations: 1.405 MB / 0.809 GB, free: 3.332 MB / 0.7605 GB Notification: Performance of [SIM] Early Inline: time 0.014/0.08551, allocations: 7.545 MB / 0.8164 GB, free: 11.72 MB / 0.7761 GB Notification: Performance of [SIM] Simplify 1: time 0.001821/0.08733, allocations: 0.6654 MB / 0.817 GB, free: 10.98 MB / 0.7761 GB Warning: NBAlias.selectStartByConfidence: Alias set with conflicting unfixed start values of equal confidence detected. Use -d=dumprepl for more information. Notification: Performance of [SIM] Alias: time 0.01061/0.09795, allocations: 4.766 MB / 0.8217 GB, free: 5.91 MB / 0.7761 GB Notification: Performance of [SIM] Simplify 2: time 0.001768/0.09971, allocations: 0.5778 MB / 0.8223 GB, free: 5.289 MB / 0.7761 GB Notification: Performance of [SIM] Remove Stream: time 0.001205/0.1009, allocations: 432 kB / 0.8227 GB, free: 4.82 MB / 0.7761 GB Notification: Performance of [SIM] Detect States: time 0.00283/0.1037, allocations: 1.459 MB / 0.8241 GB, free: 3.277 MB / 0.7761 GB Notification: Performance of [SIM] Events: time 0.000989/0.1047, allocations: 0.5464 MB / 0.8246 GB, free: 2.73 MB / 0.7761 GB Notification: Performance of [SIM] Partitioning: time 0.004006/0.1087, allocations: 2.035 MB / 0.8266 GB, free: 0.5742 MB / 0.7761 GB Error: Internal error NBResolveSingularities.indexReduction failed because there was not enough state candidates to balance out the constraint equations. Constraint Equations (59/65) ****************************** (1) [SCAL] (1) $DER.network.lines[1].phase3.terminal_p.theta[1] = $DER.network.lines[1].terminal_p.phase[3].theta[1]; ($RES_SIM_541) (2) [SCAL] (1) network.lines[1].terminal_n.phase[3].v[2] = network.lines[1].phase3.terminal_n.v[2]; ($RES_SIM_234) (3) [SCAL] (1) load.adaWye.terminals[3].theta[1] = network.terminal[2].phase[3].theta[1]; ($RES_SIM_118) (4) [SCAL] (1) network.lines[1].terminal_n.phase[3].v[1] = network.lines[1].phase3.terminal_n.v[1]; ($RES_SIM_235) (5) [SCAL] (1) $DER.network.lines[1].terminal_p.phase[3].theta[1] = $DER.network.terminal[1].phase[3].theta[1]; ($RES_SIM_407) (6) [SCAL] (1) network.lines[1].terminal_n.phase[3].v[2] = network.terminal[2].phase[3].v[2]; ($RES_SIM_192) (7) [SCAL] (1) network.lines[1].terminal_n.phase[3].theta[1] = network.lines[1].phase3.terminal_n.theta[1]; ($RES_SIM_236) (8) [SCAL] (1) $DER.network.lines[1].phase2.terminal_p.theta[1] = $DER.network.lines[1].terminal_p.phase[2].theta[1]; ($RES_SIM_538) (9) [SCAL] (1) network.lines[1].terminal_n.phase[3].v[1] = network.terminal[2].phase[3].v[1]; ($RES_SIM_193) (10) [SCAL] (1) network.lines[1].terminal_n.phase[3].theta[1] = network.terminal[2].phase[3].theta[1]; ($RES_SIM_198) (11) [SCAL] (1) $DER.network.lines[1].phase1.terminal_p.theta[1] = $DER.network.lines[1].terminal_p.phase[1].theta[1]; ($RES_SIM_530) (12) [ARRY] (2) E.terminal.phase[3].v[:] = E.vPhase[3].terminal.v[:] - E.ground.terminal.v[:]; ($RES_SIM_21) (13) [SCAL] (1) $DER.$FUN_23 = 6.283185307179586 * E.vPhase[1].f; ($RES_SIM_456) (14) [SCAL] (1) $DER.$FUN_22 = 6.283185307179586 * E.vPhase[2].f; ($RES_SIM_455) (15) [SCAL] (1) $DER.$FUN_21 = 6.283185307179586 * E.vPhase[3].f; ($RES_SIM_454) (16) [SCAL] (1) network.lines[1].phase3.heatPort.T = network.lines[1].phase3.T_heatPort; ($RES_SIM_326) (17) [SCAL] (1) network.lines[1].phase2.omega = $DER.$FUN_6; ($RES_SIM_453) (18) [SCAL] (1) network.lines[1].phase3.terminal_p.i[2] - network.lines[1].terminal_p.phase[3].i[2] = 0.0; ($RES_SIM_217) (19) [SCAL] (1) network.lines[1].terminal_p.phase[3].i[2] - network.terminal[1].phase[3].i[2] = 0.0; ($RES_SIM_201) (20) [SCAL] (1) network.lines[1].phase3.terminal_p.i[1] - network.lines[1].terminal_p.phase[3].i[1] = 0.0; ($RES_SIM_218) (21) [SCAL] (1) network.lines[1].terminal_p.phase[3].i[1] - network.terminal[1].phase[3].i[1] = 0.0; ($RES_SIM_202) (22) [SCAL] (1) network.lines[1].terminal_p.phase[2].i[2] - network.terminal[1].phase[2].i[2] = 0.0; ($RES_SIM_203) (23) [SCAL] (1) network.lines[1].phase1.omega = $DER.$FUN_1; ($RES_SIM_445) (24) [SCAL] (1) network.lines[1].terminal_p.phase[2].i[1] - network.terminal[1].phase[2].i[1] = 0.0; ($RES_SIM_204) (25) [SCAL] (1) network.lines[1].phase3.terminal_p.v[2] = network.lines[1].terminal_p.phase[3].v[2]; ($RES_SIM_219) (26) [SCAL] (1) network.lines[1].terminal_p.phase[1].i[2] - network.terminal[1].phase[1].i[2] = 0.0; ($RES_SIM_205) (27) [SCAL] (1) network.lines[1].terminal_p.phase[1].i[1] - network.terminal[1].phase[1].i[1] = 0.0; ($RES_SIM_206) (28) [SCAL] (1) network.lines[1].terminal_p.phase[3].v[2] = network.terminal[1].phase[3].v[2]; ($RES_SIM_207) (29) [SCAL] (1) network.lines[1].terminal_p.phase[3].v[1] = network.terminal[1].phase[3].v[1]; ($RES_SIM_208) (30) [SCAL] (1) network.lines[1].cableTemp.port.T = network.lines[1].phase3.heatPort.T; ($RES_SIM_249) (31) [SCAL] (1) network.lines[1].phase3.terminal_p.v[1] = network.lines[1].terminal_p.phase[3].v[1]; ($RES_SIM_220) (32) [SCAL] (1) network.lines[1].phase2.terminal_p.i[2] - network.lines[1].terminal_p.phase[2].i[2] = 0.0; ($RES_SIM_222) (33) [SCAL] (1) E.terminal.phase[3].v[2] = network.terminal[1].phase[3].v[2]; ($RES_SIM_127) (34) [SCAL] (1) network.lines[1].phase3.R_actual = (0.034466666666666666 * (network.lines[1].phase3.M + $FUN_14)) / (network.lines[1].phase3.M + ((-273.15) + network.lines[1].phase3.T_ref)); ($RES_SIM_73) (35) [SCAL] (1) network.lines[1].phase2.terminal_p.i[1] - network.lines[1].terminal_p.phase[2].i[1] = 0.0; ($RES_SIM_223) (36) [ARRY] (1) network.lines[1].phase3.terminal_p.theta = network.lines[1].phase3.terminal_n.theta; ($RES_SIM_75) (37) [SCAL] (1) E.terminal.phase[3].v[1] = network.terminal[1].phase[3].v[1]; ($RES_SIM_128) (38) [SCAL] (1) $DER.$FUN_23 = $DER.E.vPhase[1].terminal.theta[1]; ($RES_SIM_426) (39) [SCAL] (1) $FUN_14 = (-273.15) + network.lines[1].phase3.T_heatPort; ($RES_AUX_303) (40) [ARRY] (2) 1.570328771840034e-5 * network.lines[1].phase3.omega * $FUN_12 + network.lines[1].phase3.i_p * $FUN_13 = network.lines[1].phase3.terminal_p.v - network.lines[1].phase3.terminal_n.v; ($RES_SIM_77) (41) [SCAL] (1) $DER.$FUN_22 = $DER.E.vPhase[2].terminal.theta[1]; ($RES_SIM_425) (42) [ARRY] (4) $FUN_13 = diagonal(fill(1.0, 2) .* network.lines[1].phase3.R_actual); ($RES_AUX_304) (43) [SCAL] (1) $DER.$FUN_21 = $DER.E.vPhase[3].terminal.theta[1]; ($RES_SIM_424) (44) [SCAL] (1) network.lines[1].phase1.terminal_p.i[2] - network.lines[1].terminal_p.phase[1].i[2] = 0.0; ($RES_SIM_227) (45) [SCAL] (1) $DER.network.lines[1].terminal_p.phase[2].theta[1] = $DER.network.terminal[1].phase[2].theta[1]; ($RES_SIM_556) (46) [SCAL] (1) network.lines[1].phase1.terminal_p.i[1] - network.lines[1].terminal_p.phase[1].i[1] = 0.0; ($RES_SIM_228) (47) [SCAL] (1) $DER.network.lines[1].terminal_p.phase[1].theta[1] = $DER.network.terminal[1].phase[1].theta[1]; ($RES_SIM_555) (48) [SCAL] (1) $FUN_12[1] = -network.lines[1].phase3.i_p[2]; ($RES_SIM_336) (49) [SCAL] (1) $DER.$FUN_11 = $DER.network.lines[1].phase3.terminal_p.theta[1]; ($RES_SIM_417) (50) [SCAL] (1) network.lines[1].phase3.omega = $DER.$FUN_11; ($RES_SIM_483) (51) [SCAL] (1) load.terminal.phase[3].v[2] = network.terminal[2].phase[3].v[2]; ($RES_SIM_112) (52) [ARRY] (2) load.terminal.phase[3].v[:] = load.adaWye.terminals[3].v[:] - load.wyeToWyeGround.connection3to4.ground4.v[:]; ($RES_SIM_38) (53) [SCAL] (1) $DER.E.vPhase[3].terminal.theta[1] = $DER.network.terminal[1].phase[3].theta[1]; ($RES_SIM_549) (54) [SCAL] (1) $FUN_12[2] = network.lines[1].phase3.i_p[1]; ($RES_SIM_337) (55) [SCAL] (1) $DER.E.vPhase[2].terminal.theta[1] = $DER.network.terminal[1].phase[2].theta[1]; ($RES_SIM_548) (56) [SCAL] (1) load.terminal.phase[3].v[1] = network.terminal[2].phase[3].v[1]; ($RES_SIM_113) (57) [SCAL] (1) $DER.E.vPhase[1].terminal.theta[1] = $DER.network.terminal[1].phase[1].theta[1]; ($RES_SIM_547) (58) [SCAL] (1) $DER.$FUN_6 = $DER.network.lines[1].phase2.terminal_p.theta[1]; ($RES_SIM_546) (59) [SCAL] (1) $DER.$FUN_1 = $DER.network.lines[1].phase1.terminal_p.theta[1]; ($RES_SIM_543) State Candidate Variables (23/43) *********************************** (1) [DDER] (1) Real[1, 1] $DER.network.lines.phase1.terminal_p.theta (StateSelect = avoid) (2) [DDER] (3) Real[1, 3, 1] $DER.network.lines.terminal_p.phase.theta (StateSelect = avoid) (3) [DDER] (1) Real $DER.$FUN_22 (StateSelect = avoid) (4) [ALGB] (1) Real[1] network.lines.phase3.T_heatPort (start = {288.15 for $f2 in 1:1}, min = {0.0 for $f3 in 1:1}, nominal = {300.0 for $f1 in 1:1}) (5) [ALGB] (6) flow Real[1, 3, 2] network.lines.terminal_p.phase.i (start = {0.0 for $f1 in 1:3, $f2 in 1:1}) (6) [DDER] (3) Real[3, 1] $DER.E.vPhase.terminal.theta (StateSelect = avoid) (7) [DDER] (6) Real[2, 3, 1] $DER.network.terminal.phase.theta (StateSelect = avoid) (8) [ALGB] (2) Real[1, 2] network.lines.phase3.terminal_p.v (9) [DDER] (1) Real $DER.$FUN_11 (StateSelect = avoid) (10) [DDER] (1) Real $DER.$FUN_23 (StateSelect = avoid) (11) [ALGB] (1) Real $FUN_14 (start = Modelica.Units.Conversions.to_degC(network.lines[1].phase3.T_heatPort)) (12) [ALGB] (4) Real[2, 2] $FUN_13 (13) [ALGB] (2) Real[1, 2] network.lines.phase3.terminal_n.v (14) [ALGB] (2) Real[2] $FUN_12 (start = Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.network.lines.phase1.PhaseSystem_p.j(network.lines[1].phase3.i_p)) (15) [DDER] (1) Real[1, 1] $DER.network.lines.phase2.terminal_p.theta (StateSelect = avoid) (16) [DDER] (1) Real $DER.$FUN_6 (StateSelect = avoid) (17) [ALGB] (1) Real[1, 1] network.lines.phase3.terminal_n.theta (18) [DDER] (1) Real $DER.$FUN_1 (StateSelect = avoid) (19) [ALGB] (1) Real[1] network.lines.phase3.heatPort.T = {network.lines[1].phase3.T_heatPort} (start = {288.15 for $f2 in 1:1}, min = {0.0 for $f3 in 1:1}, nominal = {300.0 for $f1 in 1:1}) (20) [ALGB] (1) protected Real[1] network.lines.phase3.omega (21) [DDER] (1) Real[1, 1] $DER.network.lines.phase3.terminal_p.theta (StateSelect = avoid) (22) [ALGB] (1) Real[1] network.lines.phase3.R_actual (23) [DDER] (1) Real $DER.$FUN_21 (StateSelect = avoid) " [Timeout remaining time 300] [Calling sys.exit(0), Time elapsed: 6.355093096382916]