Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.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.DynamicLoads,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads") translateModel(Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001261/0.001261, allocations: 107 kB / 16.37 MB, free: 6.367 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.001343/0.001343, allocations: 191.5 kB / 17.31 MB, free: 5.91 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.427/1.427, allocations: 205.1 MB / 223.2 MB, free: 12.27 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.714/1.714, allocations: 292.3 MB / 0.5496 GB, free: 17.64 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.127e-05/3.156e-05, allocations: 6.219 kB / 0.6729 GB, free: 5.898 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads): time 0.00541/0.005459, allocations: 3.271 MB / 0.676 GB, free: 2.609 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.003509/0.008992, allocations: 1.867 MB / 0.6779 GB, free: 0.7305 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002062/0.009219, allocations: 4 kB / 0.6779 GB, free: 0.7266 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001002/0.01023, allocations: 286.8 kB / 0.6781 GB, free: 456 kB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0006171/0.01086, allocations: 223 kB / 0.6784 GB, free: 232 kB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008815/0.01182, allocations: 279.3 kB / 0.6786 GB, free: 15.95 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.000572/0.0124, allocations: 458.5 kB / 0.6791 GB, free: 15.5 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004661/0.01287, allocations: 192.4 kB / 0.6792 GB, free: 15.32 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002294/0.01311, allocations: 159.4 kB / 0.6794 GB, free: 15.16 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000296/0.01342, allocations: 159.4 kB / 0.6795 GB, free: 15.01 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 3.432e-05/0.01347, allocations: 20 kB / 0.6796 GB, free: 14.99 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003484/0.01382, allocations: 211.5 kB / 0.6798 GB, free: 14.78 MB / 0.5606 GB Notification: Performance of combineBinaries: time 0.0003311/0.01416, allocations: 435.6 kB / 0.6802 GB, free: 14.35 MB / 0.5606 GB Notification: Performance of replaceArrayConstructors: time 0.0001573/0.01433, allocations: 268.6 kB / 0.6804 GB, free: 14.09 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 4.992e-05/0.01438, allocations: 35.88 kB / 0.6805 GB, free: 14.05 MB / 0.5606 GB Notification: Performance of FrontEnd: time 4.256e-05/0.01443, allocations: 15.88 kB / 0.6805 GB, free: 14.04 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 68 (52) * Number of variables: 68 (47) Notification: Performance of Bindings: time 0.001138/0.01558, allocations: 1.192 MB / 0.6817 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of FunctionAlias: time 0.0001227/0.01571, allocations: 83.8 kB / 0.6817 GB, free: 12.65 MB / 0.5606 GB Notification: Performance of Early Inline: time 0.0008958/0.01661, allocations: 0.9013 MB / 0.6826 GB, free: 11.72 MB / 0.5606 GB Notification: Performance of simplify1: time 8.04e-05/0.0167, allocations: 79.89 kB / 0.6827 GB, free: 11.64 MB / 0.5606 GB Notification: Performance of Alias: time 0.0008493/0.01756, allocations: 0.7871 MB / 0.6835 GB, free: 10.73 MB / 0.5606 GB Notification: Performance of simplify2: time 7.655e-05/0.01765, allocations: 71.91 kB / 0.6835 GB, free: 10.66 MB / 0.5606 GB Notification: Performance of Events: time 0.0001268/0.01778, allocations: 91.77 kB / 0.6836 GB, free: 10.57 MB / 0.5606 GB Notification: Performance of Detect States: time 0.0002511/0.01804, allocations: 244.6 kB / 0.6838 GB, free: 10.32 MB / 0.5606 GB Notification: Performance of Partitioning: time 0.0003062/0.01836, allocations: 316.7 kB / 0.6842 GB, free: 9.969 MB / 0.5606 GB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency source.terminal.v[2] could not be devided by the body size 2 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [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_48) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (35/59) ************************** (1) [ALGB] (1) Real line.R_actual (2) [ALGB] (2) Real[2] dynRC.v = dynRC.terminal.v (start = {120.0, 0.0}) (3) [ALGB] (2) Real[2] source.S = Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.source.PhaseSystem.phasePowers_vi(source.terminal.v, source.terminal.i) (4) [ALGB] (4) Real[2, 2] $FUN_1 (5) [ALGB] (2) flow Real[2] dynRL.terminal.i (start = {0.0 for $i1 in 1:2}) (6) [ALGB] (2) Real[2] line.terminal_n.v (7) [DISC] (1) Boolean $SEV_1 (8) [ALGB] (2) Real[2] source.terminal.v (9) [ALGB] (2) Real[2] dynRC.terminal.v (10) [ALGB] (2) Real[2] dynRC.i = dynRC.terminal.i (start = {0.0 for $i1 in 1:2}) (11) [ALGB] (1) Real[1] source.terminal.theta (12) [ALGB] (2) Real[2] dynRL.terminal.v (13) [ALGB] (2) flow Real[2] line.terminal_n.i (start = {0.0 for $i1 in 1:2}) (14) [ALGB] (2) flow Real[2] source.terminal.i (start = {0.0 for $i1 in 1:2}) (15) [ALGB] (1) Real[1] line.terminal_n.theta (16) [ALGB] (2) Real[2] line.terminal_p.v (17) [ALGB] (2) Real[2] dynRL.v = dynRL.terminal.v (start = {120.0, 0.0}) (18) [ALGB] (1) Real line.LossPower (19) [DER-] (1) Real $DER.dynRC.theRef (20) [ALGB] (1) Real[1] line.terminal_p.theta (21) [ALGB] (1) Real[1] dynRL.terminal.theta (22) [ALGB] (1) protected Real dynRC.omega (23) [ALGB] (2) protected Real[2] dynRC.Y (24) [ALGB] (2) Real[2] dynRL.i = dynRL.terminal.i (start = {0.0 for $i1 in 1:2}) (25) [ALGB] (2) flow Real[2] line.terminal_p.i (start = {0.0 for $i1 in 1:2}) (26) [ALGB] (1) Real[1] dynRC.terminal.theta (27) [ALGB] (2) Real[2] dynRC.S = Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.dynRC.PhaseSystem.phasePowers_vi(dynRC.v, -dynRC.i) (28) [DER-] (2) Real[2] $DER.dynRL.psi (29) [DER-] (1) Real $DER.dynRL.theRef (30) [ALGB] (2) protected Real[2] dynRL.Z (31) [ALGB] (2) flow Real[2] dynRC.terminal.i (start = {0.0 for $i1 in 1:2}) (32) [ALGB] (1) protected Real dynRL.omega (33) [ALGB] (2) Real[2] dynRL.S = Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.dynRL.PhaseSystem.phasePowers_vi(dynRL.v, -dynRL.i) (34) [ALGB] (1) Real source.phi = Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.source.PhaseSystem.phase(source.terminal.v) - Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.source.PhaseSystem.phase(-source.terminal.i) (35) [DER-] (2) Real[2] $DER.dynRC.q System Equations (40/59) ************************** (1) [SCAL] (1) dynRL.Z[2] = -(14400.0 * ((1.0 - dynRL.pf ^ 2.0) / ((1.0 - dynRL.pf ^ 2.0) * (1.0 - dynRL.pf ^ 2.0) + 1e-6) ^ 0.25)) / (dynRL.P_nominal / dynRL.pf) ($RES_SIM_10) (2) [SCAL] (1) dynRL.Z[1] = -(14400.0 * dynRL.pf) / (dynRL.P_nominal / dynRL.pf) ($RES_SIM_11) (3) [SCAL] (1) dynRL.omega = $DER.dynRL.theRef ($RES_SIM_12) (4) [SCAL] (1) dynRL.theRef = dynRL.terminal.theta[1] ($RES_SIM_13) (5) [SCAL] (1) dynRC.Y[1] = -6.944444444444444e-5 * dynRC.pf * (dynRC.P_nominal / dynRC.pf) ($RES_SIM_30) (6) [ARRY] (2) line.terminal_p.i = -line.terminal_n.i ($RES_SIM_15) (7) [SCAL] (1) dynRC.omega = $DER.dynRC.theRef ($RES_SIM_31) (8) [SCAL] (1) line.R_actual = ((line.M + ((-273.15) + line.T)) * line.R) / (line.M + ((-273.15) + line.T_ref)) ($RES_SIM_16) (9) [SCAL] (1) dynRC.theRef = dynRC.terminal.theta[1] ($RES_SIM_32) (10) [ARRY] (2) source.terminal.v = {source.V * cos(source.phiSou), source.V * sin(source.phiSou)} ($RES_SIM_33) (11) [ARRY] (1) line.terminal_p.theta = line.terminal_n.theta ($RES_SIM_18) (12) [SCAL] (1) line.LossPower = line.R_actual * (line.terminal_p.i[1] ^ 2.0 + line.terminal_p.i[2] ^ 2.0) ($RES_SIM_19) (13) [SCAL] (1) source.terminal.theta[1] = 6.283185307179586 * source.f * time ($RES_SIM_35) (14) [SCAL] (1) dynRL.terminal.i[2] + line.terminal_p.i[2] + dynRC.terminal.i[2] = 0.0 ($RES_SIM_36) (15) [SCAL] (1) dynRL.terminal.i[1] + line.terminal_p.i[1] + dynRC.terminal.i[1] = 0.0 ($RES_SIM_37) (16) [SCAL] (1) dynRL.terminal.v[2] = dynRC.terminal.v[2] ($RES_SIM_38) (17) [SCAL] (1) dynRL.terminal.v[2] = line.terminal_p.v[2] ($RES_SIM_39) (18) [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_48) (19) [SCAL] (1) source.phi = atan2(source.terminal.v[2], source.terminal.v[1]) - atan2((-source.terminal.i)[2], (-source.terminal.i)[1]) ($RES_BND_49) (20) [SCAL] (1) $SEV_1 = line.R_actual >= 0.0 ($RES_EVT_64) (21) [ARRY] (2) line.terminal_p.v - line.terminal_n.v = line.terminal_p.i * $FUN_1 ($RES_SIM_20) (22) [ARRY] (4) $FUN_1 = diagonal(fill(1.0, 2) .* line.R_actual) ($RES_$AUX_62) (23) [SCAL] (1) dynRL.terminal.v[1] = dynRC.terminal.v[1] ($RES_SIM_40) (24) [SCAL] (1) dynRL.terminal.v[1] = line.terminal_p.v[1] ($RES_SIM_41) (25) [ARRY] (2) dynRC.omega * {-dynRC.q[2], dynRC.q[1]} + $DER.dynRC.q + dynRC.Y[1] * dynRC.v = dynRC.i ($RES_SIM_27) (26) [SCAL] (1) dynRL.terminal.theta[1] = dynRC.terminal.theta[1] ($RES_SIM_42) (27) [ARRY] (2) dynRC.q = (dynRC.Y[2] * {dynRC.v[1], dynRC.v[2]}) / dynRC.omega ($RES_SIM_28) (28) [SCAL] (1) dynRL.terminal.theta[1] = line.terminal_p.theta[1] ($RES_SIM_43) (29) [SCAL] (1) dynRC.Y[2] = -6.944444444444444e-5 * ((1.0 - dynRC.pf ^ 2.0) / ((1.0 - dynRC.pf ^ 2.0) * (1.0 - dynRC.pf ^ 2.0) + 1e-6) ^ 0.25) * (dynRC.P_nominal / dynRC.pf) ($RES_SIM_29) (30) [FOR-] (2) ($RES_SIM_44) (30) [----] for $i1 in 1:2 loop (30) [----] [SCAL] (1) source.terminal.i[$i1] + line.terminal_n.i[$i1] = 0.0 ($RES_SIM_45) (30) [----] end for; (31) [ARRY] (2) dynRC.v = dynRC.terminal.v ($RES_BND_50) (32) [ARRY] (2) dynRC.i = dynRC.terminal.i ($RES_BND_51) (33) [ARRY] (2) source.terminal.v = line.terminal_n.v ($RES_SIM_46) (34) [ARRY] (2) dynRC.S = {dynRC.v[1] * (-dynRC.i)[1] + dynRC.v[2] * (-dynRC.i)[2], dynRC.v[2] * (-dynRC.i)[1] - dynRC.v[1] * (-dynRC.i)[2]} ($RES_BND_52) (35) [ARRY] (1) source.terminal.theta = line.terminal_n.theta ($RES_SIM_47) (36) [ARRY] (2) dynRL.v = dynRL.terminal.v ($RES_BND_54) (37) [ARRY] (2) dynRL.omega * {-dynRL.psi[2], dynRL.psi[1]} + $DER.dynRL.psi + dynRL.Z[1] * dynRL.i = dynRL.v ($RES_SIM_9) (38) [ARRY] (2) dynRL.i = dynRL.terminal.i ($RES_BND_55) (39) [ARRY] (2) dynRL.psi = (dynRL.Z[2] * {dynRL.i[1], dynRL.i[2]}) / dynRL.omega ($RES_SIM_8) (40) [ARRY] (2) dynRL.S = {dynRL.v[1] * (-dynRL.i)[1] + dynRL.v[2] * (-dynRL.i)[2], dynRL.v[2] * (-dynRL.i)[1] - dynRL.v[1] * (-dynRL.i)[2]} ($RES_BND_56)