Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_13_Buildings.Electrical.AC.ThreePhasesBalanced.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.002545/0.002545, 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.002753/0.002753, allocations: 165.9 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.632/1.632, allocations: 177.1 MB / 205.4 MB, free: 5.016 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.318/3.318, allocations: 389.5 MB / 0.6361 GB, free: 12.32 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.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Buildings_13_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Buildings_13_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid") [Timeout 300] "Notification: Performance of FrontEnd - Absyn->SCode: time 2.244e-05/2.244e-05, allocations: 2.312 kB / 0.7759 GB, free: 5.379 MB / 0.7292 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid): time 0.008169/0.008191, allocations: 4.264 MB / 0.7801 GB, free: 1.133 MB / 0.7292 GB Notification: Performance of NFInst.instExpressions: time 0.006023/0.01421, allocations: 2.623 MB / 0.7827 GB, free: 14.51 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004656/0.01468, allocations: 19.88 kB / 0.7827 GB, free: 14.49 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.001137/0.01582, allocations: 219.8 kB / 0.7829 GB, free: 14.28 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.001296/0.01711, allocations: 394.4 kB / 0.7833 GB, free: 13.9 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007355/0.01785, allocations: 234.6 kB / 0.7835 GB, free: 13.68 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.002212/0.02006, allocations: 1.414 MB / 0.7849 GB, free: 12.27 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007171/0.02078, allocations: 303.8 kB / 0.7852 GB, free: 11.98 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001636/0.02241, allocations: 0.7184 MB / 0.7859 GB, free: 11.26 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001056/0.02347, allocations: 484.2 kB / 0.7863 GB, free: 10.79 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 0.0001523/0.02362, allocations: 40 kB / 0.7864 GB, free: 10.75 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008851/0.02451, allocations: 276.4 kB / 0.7866 GB, free: 10.48 MB / 0.7448 GB Notification: Performance of combineBinaries: time 0.001408/0.02591, allocations: 0.9099 MB / 0.7875 GB, free: 9.562 MB / 0.7448 GB Notification: Performance of replaceArrayConstructors: time 0.000753/0.02667, allocations: 0.5513 MB / 0.7881 GB, free: 9.031 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 0.000176/0.02684, allocations: 32 kB / 0.7881 GB, free: 9 MB / 0.7448 GB Notification: Performance of FrontEnd: time 9.279e-05/0.02694, allocations: 11.94 kB / 0.7881 GB, free: 8.988 MB / 0.7448 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 83 (67) * Number of variables: 83 (55) Notification: Performance of [SIM] Bindings: time 0.005558/0.03249, allocations: 3.31 MB / 0.7913 GB, free: 5.547 MB / 0.7448 GB Notification: Performance of [SIM] FunctionAlias: time 0.001114/0.03361, allocations: 0.5002 MB / 0.7918 GB, free: 5.055 MB / 0.7448 GB Notification: Performance of [SIM] Early Inline: time 0.004463/0.03807, allocations: 2.69 MB / 0.7944 GB, free: 2.359 MB / 0.7448 GB Notification: Performance of [SIM] Simplify 1: time 0.0005969/0.03867, allocations: 263.7 kB / 0.7947 GB, free: 2.078 MB / 0.7448 GB Notification: Performance of [SIM] Alias: time 0.002906/0.04157, allocations: 1.539 MB / 0.7962 GB, free: 412 kB / 0.7448 GB Notification: Performance of [SIM] Simplify 2: time 0.0005211/0.0421, allocations: 259.9 kB / 0.7964 GB, free: 132 kB / 0.7448 GB Notification: Performance of [SIM] Remove Stream: time 0.0007046/0.0428, allocations: 191.5 kB / 0.7966 GB, free: 15.91 MB / 0.7605 GB Notification: Performance of [SIM] Detect States: time 0.000943/0.04374, allocations: 0.5887 MB / 0.7972 GB, free: 15.26 MB / 0.7605 GB Notification: Performance of [SIM] Events: time 0.0003389/0.04408, allocations: 227.7 kB / 0.7974 GB, free: 15.04 MB / 0.7605 GB Notification: Performance of [SIM] Partitioning: time 0.001241/0.04532, allocations: 0.8172 MB / 0.7982 GB, free: 14.16 MB / 0.7605 GB Error: Internal error NBResolveSingularities.indexReduction failed because there was not enough state candidates to balance out the constraint equations. Constraint Equations (13/15) ****************************** (1) [SCAL] (1) $FUN_2[1] = -network.lines[1].line.terminal_p.i[2]; ($RES_SIM_104) (2) [SCAL] (1) $DER.$FUN_1 = $DER.network.lines[1].line.terminal_p.theta[1]; ($RES_SIM_176) (3) [SCAL] (1) $DER.E.terminal.theta[1] = $DER.network.terminal[1].theta[1]; ($RES_SIM_135) (4) [SCAL] (1) network.lines[1].terminal_p.i[2] - network.terminal[1].i[2] = 0.0; ($RES_SIM_48) (5) [SCAL] (1) $DER.network.lines[1].terminal_p.theta[1] = $DER.network.terminal[1].theta[1]; ($RES_SIM_161) (6) [ARRY] (2) (0.5 * network.lines[1].line.L) * network.lines[1].line.omega * $FUN_2 + network.lines[1].line.terminal_p.i * $FUN_3 = network.lines[1].line.terminal_p.v - network.lines[1].line.Vc; ($RES_SIM_25) (7) [SCAL] (1) network.lines[1].terminal_p.i[1] - network.terminal[1].i[1] = 0.0; ($RES_SIM_49) (8) [SCAL] (1) $FUN_2[2] = network.lines[1].line.terminal_p.i[1]; ($RES_SIM_105) (9) [FOR-] (2) ($RES_SIM_54) (9) [----] for $i1 in 1:2 loop (9) [----] [SCAL] (1) network.lines[1].line.terminal_p.i[$i1] - network.lines[1].terminal_p.i[$i1] = 0.0; ($RES_SIM_55) (9) [----] end for; (10) [SCAL] (1) network.lines[1].line.omega = $DER.$FUN_1; ($RES_SIM_131) (11) [SCAL] (1) $DER.$FUN_9 = $DER.E.terminal.theta[1]; ($RES_SIM_144) (12) [ARRY] (1) $DER.network.lines[1].terminal_p.theta = $DER.network.lines[1].line.terminal_p.theta; ($RES_SIM_153) (13) [SCAL] (1) $DER.$FUN_9 = 6.283185307179586 * E.f; ($RES_SIM_139) State Candidate Variables (9/13) ********************************** (1) [DDER] (1) Real $DER.$FUN_9 (StateSelect = avoid) (2) [ALGB] (2) protected flow Real[1, 2] network.lines.line.terminal_p.i (start = {0.0 for $f1 in 1:1}) (3) [DDER] (1) Real[1, 1] $DER.network.lines.line.terminal_p.theta (StateSelect = avoid) (4) [ALGB] (2) flow Real[1, 2] network.lines.terminal_p.i (start = {0.0 for $f1 in 1:1}) (5) [DDER] (2) Real[2, 1] $DER.network.terminal.theta (StateSelect = avoid) (6) [ALGB] (2) Real[2] $FUN_2 (start = Buildings.Electrical.PhaseSystems.OnePhase.j(network.lines[1].line.terminal_p.i)) (7) [DDER] (1) Real[1, 1] $DER.network.lines.terminal_p.theta (StateSelect = avoid) (8) [DDER] (1) Real $DER.$FUN_1 (StateSelect = avoid) (9) [DDER] (1) Real[1] $DER.E.terminal.theta (StateSelect = avoid) " [Timeout remaining time 300] [Calling sys.exit(0), Time elapsed: 6.380300855264068]