Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACTransformerFull.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.Conversion.Examples.ACACTransformerFull,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACTransformerFull") translateModel(Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACTransformerFull,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACTransformerFull") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001196/0.001196, allocations: 104.2 kB / 16.38 MB, free: 6.48 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.001181/0.001181, allocations: 193.3 kB / 17.32 MB, free: 5.797 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.394/1.394, allocations: 205.1 MB / 223.2 MB, free: 12.26 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.67/1.67, allocations: 292.3 MB / 0.5496 GB, free: 17.42 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.644e-05/2.646e-05, allocations: 6.219 kB / 0.6729 GB, free: 5.941 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACTransformerFull): time 0.006895/0.006938, allocations: 5.372 MB / 0.6781 GB, free: 0.5352 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.006087/0.01304, allocations: 4.131 MB / 0.6821 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003188/0.01338, allocations: 19.88 kB / 0.6822 GB, free: 12.37 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001451/0.01483, allocations: 0.5756 MB / 0.6827 GB, free: 11.79 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001296/0.01614, allocations: 0.6649 MB / 0.6834 GB, free: 11.12 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001256/0.01745, allocations: 0.5448 MB / 0.6839 GB, free: 10.58 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001204/0.01866, allocations: 1.267 MB / 0.6851 GB, free: 9.309 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005496/0.01922, allocations: 368.8 kB / 0.6855 GB, free: 8.945 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004459/0.01968, allocations: 458.3 kB / 0.6859 GB, free: 8.496 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005135/0.0202, allocations: 462.1 kB / 0.6864 GB, free: 8.043 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 8.969e-05/0.0203, allocations: 56 kB / 0.6864 GB, free: 7.988 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001062/0.02137, allocations: 0.7055 MB / 0.6871 GB, free: 7.281 MB / 0.5606 GB Notification: Performance of combineBinaries: time 0.0009218/0.0223, allocations: 1.296 MB / 0.6884 GB, free: 5.973 MB / 0.5606 GB Notification: Performance of replaceArrayConstructors: time 0.0005165/0.02283, allocations: 0.8064 MB / 0.6892 GB, free: 5.164 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001391/0.02297, allocations: 107.6 kB / 0.6893 GB, free: 5.059 MB / 0.5606 GB Notification: Performance of FrontEnd: time 8.294e-05/0.02306, allocations: 15.94 kB / 0.6893 GB, free: 5.043 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: 184 (131) * Number of variables: 184 (124) Notification: Performance of Bindings: time 0.003136/0.02621, allocations: 3.306 MB / 0.6925 GB, free: 1.598 MB / 0.5606 GB Notification: Performance of FunctionAlias: time 0.0001856/0.0264, allocations: 155.7 kB / 0.6927 GB, free: 1.445 MB / 0.5606 GB Notification: Performance of Early Inline: time 0.005477/0.03189, allocations: 5.41 MB / 0.6979 GB, free: 11.99 MB / 0.5762 GB Notification: Performance of simplify1: time 0.0005358/0.03244, allocations: 0.5305 MB / 0.6985 GB, free: 11.46 MB / 0.5762 GB Notification: Performance of Alias: time 0.00289/0.03533, allocations: 2.806 MB / 0.7012 GB, free: 8.488 MB / 0.5762 GB Notification: Performance of simplify2: time 0.0005265/0.03587, allocations: 0.5266 MB / 0.7017 GB, free: 7.961 MB / 0.5762 GB Notification: Performance of Events: time 0.001255/0.03714, allocations: 1.037 MB / 0.7027 GB, free: 7.008 MB / 0.5762 GB Notification: Performance of Detect States: time 0.001261/0.03841, allocations: 1.114 MB / 0.7038 GB, free: 5.879 MB / 0.5762 GB Notification: Performance of Partitioning: time 0.001327/0.03974, allocations: 1.222 MB / 0.705 GB, free: 4.594 MB / 0.5762 GB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency tra_load.terminal_p.v[1] could not be devided by the body size 2 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [ARRY] (2) tra_load.P_p = {tra_load.terminal_p.v[1] * tra_load.terminal_p.i[1] + tra_load.terminal_p.v[2] * tra_load.terminal_p.i[2], tra_load.terminal_p.v[2] * tra_load.terminal_p.i[1] - tra_load.terminal_p.v[1] * tra_load.terminal_p.i[2]} ($RES_BND_110) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (47/69) ************************** (1) [ALGB] (1) Real[1] tra_load.terminal_n.theta (2) [ALGB] (2) flow Real[2] tra_load.terminal_n.i (start = {0.0 for $i1 in 1:2}, StateSelect = prefer) (3) [ALGB] (1) Real $FUN_2 (4) [ALGB] (1) Real $FUN_1 (5) [ALGB] (2) Real[2] sou.S = Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACTransformerFull.sou.PhaseSystem.phasePowers_vi(sou.terminal.v, sou.terminal.i) (6) [ALGB] (2) Real[2] tra_load.terminal_p.v (7) [ALGB] (2) protected Real[2] tra_load.P_n = Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACTransformerFull.tra_load.PhaseSystem_n.phasePowers_vi(tra_load.terminal_n.v, tra_load.terminal_n.i) (8) [ALGB] (2) protected Real[2] tra_load.Z1 = {tra_load.R1 * tra_load.RBaseHigh, (tra_load.L1 * tra_load.omega * tra_load.RBaseHigh) / tra_load.omega_n} (9) [ALGB] (2) protected Real[2] tra_load.Z2 = {tra_load.R2 * tra_load.RBaseLow, (tra_load.L2 * tra_load.omega * tra_load.RBaseLow) / tra_load.omega_n} (10) [ALGB] (2) protected Real[2] tra_load.P_p = Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACTransformerFull.tra_load.PhaseSystem_p.phasePowers_vi(tra_load.terminal_p.v, tra_load.terminal_p.i) (11) [ALGB] (1) Real tra_load.eta (min = 0.0) (12) [ALGB] (2) flow Real[2] load.terminal.i (start = {0.0 for $i1 in 1:2}) (13) [ALGB] (2) Real[2] load.S = Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACTransformerFull.load.PhaseSystem.phasePowers_vi(load.v, -load.i) (14) [ALGB] (1) protected Real load.Q = load.P * tan(acos(load.pf)) (15) [ALGB] (1) Real load.P (start = 0.0) (16) [ALGB] (2) flow Real[2] tra_load.terminal_p.i (start = {0.0 for $i1 in 1:2}, StateSelect = prefer) (17) [ALGB] (1) Real sou.phi = Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACTransformerFull.sou.PhaseSystem.phase(sou.terminal.v) - Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACTransformerFull.sou.PhaseSystem.phase(-sou.terminal.i) (18) [ALGB] (1) Real[1] load.terminal.theta (19) [ALGB] (1) Real[1] sou.terminal.theta (20) [ALGB] (1) Real tra_load.i_n (21) [ALGB] (1) Real tra_load.i_p (22) [ALGB] (1) Real tra_load.v_n (23) [ALGB] (1) Real tra_load.v_p (24) [ALGB] (2) flow Real[2] sou.terminal.i (start = {0.0 for $i1 in 1:2}) (25) [DER-] (1) Real $DER.tra_load.theRef (26) [ALGB] (2) Real[2] load.v = load.terminal.v (start = {60.0, 0.0}) (27) [ALGB] (2) protected Real[2] tra_load.Zlm = {0.0, (10.0 * tra_load.omega * tra_load.RBaseHigh) / tra_load.omega_n} (28) [ALGB] (2) Real[2] tra_load.PLoss (29) [ALGB] (1) protected Real tra_load.S_n = Modelica.Fluid.Utilities.regRoot(tra_load.P_n[2] ^ 2.0 + tra_load.P_n[1] ^ 2.0, 0.1) (30) [ALGB] (1) protected Real tra_load.S_p = Modelica.Fluid.Utilities.regRoot(tra_load.P_p[2] ^ 2.0 + tra_load.P_p[1] ^ 2.0, 0.1) (31) [DISC] (1) Boolean $TEV_1 (32) [DISC] (1) Boolean $TEV_0 (33) [ALGB] (2) Real[2] tra_load.terminal_n.v (34) [ALGB] (1) protected Real load.omega (35) [ALGB] (1) protected Real tra_load.omega (36) [ALGB] (2) Real[2] sou.terminal.v (37) [ALGB] (2) Real[2] load.i = load.terminal.i (start = {0.0 for $i1 in 1:2}) (38) [DISC] (1) Boolean $SEV_11 (39) [ALGB] (2) protected Real[2] tra_load.Zrm = {10.0 * tra_load.RBaseHigh, 0.0} (40) [DISC] (1) Boolean $SEV_10 (41) [ALGB] (1) Real[1] tra_load.terminal_p.theta (42) [ALGB] (2) protected Real[2] tra_load.Im (43) [DISC] (1) Boolean $SEV_9 (44) [DER-] (1) Real $DER.load.theRef (45) [ALGB] (2) Real[2] tra_load.V1 (start = Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACTransformerFull.tra_load.PhaseSystem_n.phaseVoltages(tra_load.VHigh, 0.0)) (46) [ALGB] (2) Real[2] load.terminal.v (47) [ALGB] (2) Real[2] tra_load.V2 (start = Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACTransformerFull.tra_load.PhaseSystem_n.phaseVoltages(tra_load.VLow, 0.0)) System Equations (49/69) ************************** (1) [ARRY] (2) tra_load.P_p = {tra_load.terminal_p.v[1] * tra_load.terminal_p.i[1] + tra_load.terminal_p.v[2] * tra_load.terminal_p.i[2], tra_load.terminal_p.v[2] * tra_load.terminal_p.i[1] - tra_load.terminal_p.v[1] * tra_load.terminal_p.i[2]} ($RES_BND_110) (2) [ARRY] (2) tra_load.P_n = {tra_load.terminal_n.v[1] * tra_load.terminal_n.i[1] + tra_load.terminal_n.v[2] * tra_load.terminal_n.i[2], tra_load.terminal_n.v[2] * tra_load.terminal_n.i[1] - tra_load.terminal_n.v[1] * tra_load.terminal_n.i[2]} ($RES_BND_111) (3) [SCAL] (1) tra_load.S_p = (tra_load.P_p[1] ^ 2.0 + tra_load.P_p[2] ^ 2.0) / ((tra_load.P_p[2] ^ 2.0 + tra_load.P_p[1] ^ 2.0) * (tra_load.P_p[2] ^ 2.0 + tra_load.P_p[1] ^ 2.0) + 0.010000000000000002) ^ 0.25 ($RES_BND_112) (4) [SCAL] (1) tra_load.S_n = (tra_load.P_n[1] ^ 2.0 + tra_load.P_n[2] ^ 2.0) / ((tra_load.P_n[2] ^ 2.0 + tra_load.P_n[1] ^ 2.0) * (tra_load.P_n[2] ^ 2.0 + tra_load.P_n[1] ^ 2.0) + 0.010000000000000002) ^ 0.25 ($RES_BND_113) (5) [ARRY] (2) sou.S = {sou.terminal.v[1] * sou.terminal.i[1] + sou.terminal.v[2] * sou.terminal.i[2], sou.terminal.v[2] * sou.terminal.i[1] - sou.terminal.v[1] * sou.terminal.i[2]} ($RES_BND_114) (6) [SCAL] (1) $FUN_1 = acos(load.pf) ($RES_$AUX_142) (7) [SCAL] (1) sou.phi = atan2(sou.terminal.v[2], sou.terminal.v[1]) - atan2((-sou.terminal.i)[2], (-sou.terminal.i)[1]) ($RES_BND_115) (8) [SCAL] (1) $FUN_2 = tan($FUN_1) ($RES_$AUX_141) (9) [ARRY] (2) load.v = load.terminal.v ($RES_BND_116) (10) [SCAL] (1) load.P = ramp.offset + (if $TEV_0 then 0.0 else if $TEV_1 then (ramp.height * (time - ramp.startTime)) / ramp.duration else ramp.height) ($RES_SIM_51) (11) [ARRY] (2) load.i = load.terminal.i ($RES_BND_117) (12) [ARRY] (2) load.S = {load.v[1] * (-load.i)[1] + load.v[2] * (-load.i)[2], load.v[2] * (-load.i)[1] - load.v[1] * (-load.i)[2]} ($RES_BND_118) (13) [SCAL] (1) load.Q = load.P * $FUN_2 ($RES_BND_119) (14) [ARRY] (1) tra_load.terminal_p.theta = load.terminal.theta ($RES_SIM_100) (15) [FOR-] (2) ($RES_SIM_101) (15) [----] for $i1 in 1:2 loop (15) [----] [SCAL] (1) sou.terminal.i[$i1] + tra_load.terminal_n.i[$i1] = 0.0 ($RES_SIM_102) (15) [----] end for; (16) [ARRY] (1) tra_load.terminal_p.theta = tra_load.terminal_n.theta ($RES_SIM_70) (17) [SCAL] (1) $SEV_9 = ((tra_load.P_n[2] ^ 2.0 + tra_load.P_n[1] ^ 2.0) * ((1e-6 + tra_load.P_p[2] ^ 2.0 + tra_load.P_p[1] ^ 2.0) * (1e-6 + tra_load.P_p[2] ^ 2.0 + tra_load.P_p[1] ^ 2.0) + 1e-4) ^ 0.25) / (((tra_load.P_n[1] ^ 2.0 + tra_load.P_n[2] ^ 2.0) * (tra_load.P_n[1] ^ 2.0 + tra_load.P_n[2] ^ 2.0) + 1e-4) ^ 0.25 * (1e-6 + tra_load.P_p[1] ^ 2.0 + tra_load.P_p[2] ^ 2.0)) - ((tra_load.P_p[2] ^ 2.0 + tra_load.P_p[1] ^ 2.0) * ((1e-6 + tra_load.P_n[2] ^ 2.0 + tra_load.P_n[1] ^ 2.0) * (1e-6 + tra_load.P_n[2] ^ 2.0 + tra_load.P_n[1] ^ 2.0) + 1e-4) ^ 0.25) / (((tra_load.P_p[1] ^ 2.0 + tra_load.P_p[2] ^ 2.0) * (tra_load.P_p[1] ^ 2.0 + tra_load.P_p[2] ^ 2.0) + 1e-4) ^ 0.25 * (1e-6 + tra_load.P_n[1] ^ 2.0 + tra_load.P_n[2] ^ 2.0)) > 0.01 ($RES_EVT_154) (18) [ARRY] (2) tra_load.PLoss = tra_load.P_p + tra_load.P_n ($RES_SIM_71) (19) [ARRY] (2) sou.terminal.v = tra_load.terminal_n.v ($RES_SIM_103) (20) [SCAL] (1) $SEV_10 = ((tra_load.P_n[2] ^ 2.0 + tra_load.P_n[1] ^ 2.0) * ((1e-6 + tra_load.P_p[2] ^ 2.0 + tra_load.P_p[1] ^ 2.0) * (1e-6 + tra_load.P_p[2] ^ 2.0 + tra_load.P_p[1] ^ 2.0) + 1e-4) ^ 0.25) / (((tra_load.P_n[1] ^ 2.0 + tra_load.P_n[2] ^ 2.0) * (tra_load.P_n[1] ^ 2.0 + tra_load.P_n[2] ^ 2.0) + 1e-4) ^ 0.25 * (1e-6 + tra_load.P_p[1] ^ 2.0 + tra_load.P_p[2] ^ 2.0)) - ((tra_load.P_p[2] ^ 2.0 + tra_load.P_p[1] ^ 2.0) * ((1e-6 + tra_load.P_n[2] ^ 2.0 + tra_load.P_n[1] ^ 2.0) * (1e-6 + tra_load.P_n[2] ^ 2.0 + tra_load.P_n[1] ^ 2.0) + 1e-4) ^ 0.25) / (((tra_load.P_p[1] ^ 2.0 + tra_load.P_p[2] ^ 2.0) * (tra_load.P_p[1] ^ 2.0 + tra_load.P_p[2] ^ 2.0) + 1e-4) ^ 0.25 * (1e-6 + tra_load.P_n[1] ^ 2.0 + tra_load.P_n[2] ^ 2.0)) < (-0.01) ($RES_EVT_155) (21) [ARRY] (2) tra_load.terminal_p.v = tra_load.V2 + {tra_load.terminal_p.i[1] * tra_load.Z2[1] - tra_load.terminal_p.i[2] * tra_load.Z2[2], tra_load.terminal_p.i[1] * tra_load.Z2[2] + tra_load.terminal_p.i[2] * tra_load.Z2[1]} ($RES_SIM_72) (22) [ARRY] (1) sou.terminal.theta = tra_load.terminal_n.theta ($RES_SIM_104) (23) [SCAL] (1) $SEV_11 = sqrt(tra_load.P_p[1] ^ 2.0 + tra_load.P_p[2] ^ 2.0) <= 1.01 * tra_load.VABase ($RES_EVT_156) (24) [ARRY] (2) tra_load.terminal_n.v = tra_load.V1 + {tra_load.terminal_n.i[1] * tra_load.Z1[1] - tra_load.terminal_n.i[2] * tra_load.Z1[2], tra_load.terminal_n.i[1] * tra_load.Z1[2] + tra_load.terminal_n.i[2] * tra_load.Z1[1]} ($RES_SIM_73) (25) [ARRY] (2) tra_load.Im = {tra_load.V1[1] * tra_load.Zrm[1] + tra_load.V1[2] * tra_load.Zrm[2], tra_load.V1[2] * tra_load.Zrm[1] - tra_load.V1[1] * tra_load.Zrm[2]} / (tra_load.Zrm[1] ^ 2.0 + tra_load.Zrm[2] ^ 2.0) + {tra_load.V1[1] * tra_load.Zlm[1] + tra_load.V1[2] * tra_load.Zlm[2], tra_load.V1[2] * tra_load.Zlm[1] - tra_load.V1[1] * tra_load.Zlm[2]} / (tra_load.Zlm[1] ^ 2.0 + tra_load.Zlm[2] ^ 2.0) ($RES_SIM_74) (26) [SCAL] (1) load.i[2] = -homotopy((load.v[2] * load.P - load.v[1] * load.Q) / (load.v[1] ^ 2.0 + load.v[2] ^ 2.0), 0.0) ($RES_SIM_59) (27) [SCAL] (1) tra_load.terminal_p.i[2] + (tra_load.terminal_n.i[2] - tra_load.Im[2]) * tra_load.N = 0.0 ($RES_SIM_75) (28) [SCAL] (1) tra_load.terminal_p.i[1] + (tra_load.terminal_n.i[1] - tra_load.Im[1]) * tra_load.N = 0.0 ($RES_SIM_76) (29) [ARRY] (2) tra_load.V2 = tra_load.V1 / tra_load.N ($RES_SIM_77) (30) [SCAL] (1) tra_load.eta = smooth(1, if $SEV_9 then ((tra_load.P_p[2] ^ 2.0 + tra_load.P_p[1] ^ 2.0) * ((1e-6 + tra_load.P_n[2] ^ 2.0 + tra_load.P_n[1] ^ 2.0) * (1e-6 + tra_load.P_n[2] ^ 2.0 + tra_load.P_n[1] ^ 2.0) + 1e-4) ^ 0.25) / (((tra_load.P_p[1] ^ 2.0 + tra_load.P_p[2] ^ 2.0) * (tra_load.P_p[1] ^ 2.0 + tra_load.P_p[2] ^ 2.0) + 1e-4) ^ 0.25 * (1e-6 + tra_load.P_n[1] ^ 2.0 + tra_load.P_n[2] ^ 2.0)) else if $SEV_10 then ((tra_load.P_n[2] ^ 2.0 + tra_load.P_n[1] ^ 2.0) * ((1e-6 + tra_load.P_p[2] ^ 2.0 + tra_load.P_p[1] ^ 2.0) * (1e-6 + tra_load.P_p[2] ^ 2.0 + tra_load.P_p[1] ^ 2.0) + 1e-4) ^ 0.25) / (((tra_load.P_n[1] ^ 2.0 + tra_load.P_n[2] ^ 2.0) * (tra_load.P_n[1] ^ 2.0 + tra_load.P_n[2] ^ 2.0) + 1e-4) ^ 0.25 * (1e-6 + tra_load.P_p[1] ^ 2.0 + tra_load.P_p[2] ^ 2.0)) else 0.25 * (((tra_load.P_n[2] ^ 2.0 + tra_load.P_n[1] ^ 2.0) * ((1e-6 + tra_load.P_p[2] ^ 2.0 + tra_load.P_p[1] ^ 2.0) * (1e-6 + tra_load.P_p[2] ^ 2.0 + tra_load.P_p[1] ^ 2.0) + 1e-4) ^ 0.25) / (((tra_load.P_n[1] ^ 2.0 + tra_load.P_n[2] ^ 2.0) * (tra_load.P_n[1] ^ 2.0 + tra_load.P_n[2] ^ 2.0) + 1e-4) ^ 0.25 * (1e-6 + tra_load.P_p[1] ^ 2.0 + tra_load.P_p[2] ^ 2.0)) - ((tra_load.P_p[2] ^ 2.0 + tra_load.P_p[1] ^ 2.0) * ((1e-6 + tra_load.P_n[2] ^ 2.0 + tra_load.P_n[1] ^ 2.0) * (1e-6 + tra_load.P_n[2] ^ 2.0 + tra_load.P_n[1] ^ 2.0) + 1e-4) ^ 0.25) / (((tra_load.P_p[1] ^ 2.0 + tra_load.P_p[2] ^ 2.0) * (tra_load.P_p[1] ^ 2.0 + tra_load.P_p[2] ^ 2.0) + 1e-4) ^ 0.25 * (1e-6 + tra_load.P_n[1] ^ 2.0 + tra_load.P_n[2] ^ 2.0))) * ((-3.0) + (((((1e-6 + tra_load.P_p[2] ^ 2.0 + tra_load.P_p[1] ^ 2.0) * (1e-6 + tra_load.P_p[2] ^ 2.0 + tra_load.P_p[1] ^ 2.0) + 1e-4) ^ 0.25 * (tra_load.P_n[1] ^ 2.0 + tra_load.P_n[2] ^ 2.0)) / ((1e-6 + tra_load.P_p[2] ^ 2.0 + tra_load.P_p[1] ^ 2.0) * ((tra_load.P_n[1] ^ 2.0 + tra_load.P_n[2] ^ 2.0) * (tra_load.P_n[1] ^ 2.0 + tra_load.P_n[2] ^ 2.0) + 1e-4) ^ 0.25) - (((1e-6 + tra_load.P_n[2] ^ 2.0 + tra_load.P_n[1] ^ 2.0) * (1e-6 + tra_load.P_n[2] ^ 2.0 + tra_load.P_n[1] ^ 2.0) + 1e-4) ^ 0.25 * (tra_load.P_p[1] ^ 2.0 + tra_load.P_p[2] ^ 2.0)) / ((1e-6 + tra_load.P_n[2] ^ 2.0 + tra_load.P_n[1] ^ 2.0) * ((tra_load.P_p[1] ^ 2.0 + tra_load.P_p[2] ^ 2.0) * (tra_load.P_p[1] ^ 2.0 + tra_load.P_p[2] ^ 2.0) + 1e-4) ^ 0.25)) / 0.01) ^ 2.0) * (100.0 * (((tra_load.P_n[2] ^ 2.0 + tra_load.P_n[1] ^ 2.0) * ((1e-6 + tra_load.P_p[2] ^ 2.0 + tra_load.P_p[1] ^ 2.0) * (1e-6 + tra_load.P_p[2] ^ 2.0 + tra_load.P_p[1] ^ 2.0) + 1e-4) ^ 0.25) / (((tra_load.P_n[1] ^ 2.0 + tra_load.P_n[2] ^ 2.0) * (tra_load.P_n[1] ^ 2.0 + tra_load.P_n[2] ^ 2.0) + 1e-4) ^ 0.25 * (1e-6 + tra_load.P_p[1] ^ 2.0 + tra_load.P_p[2] ^ 2.0)) - ((tra_load.P_p[2] ^ 2.0 + tra_load.P_p[1] ^ 2.0) * ((1e-6 + tra_load.P_n[2] ^ 2.0 + tra_load.P_n[1] ^ 2.0) * (1e-6 + tra_load.P_n[2] ^ 2.0 + tra_load.P_n[1] ^ 2.0) + 1e-4) ^ 0.25) / (((tra_load.P_p[1] ^ 2.0 + tra_load.P_p[2] ^ 2.0) * (tra_load.P_p[1] ^ 2.0 + tra_load.P_p[2] ^ 2.0) + 1e-4) ^ 0.25 * (1e-6 + tra_load.P_n[1] ^ 2.0 + tra_load.P_n[2] ^ 2.0)))) + 0.5 * (((tra_load.P_p[2] ^ 2.0 + tra_load.P_p[1] ^ 2.0) * ((1e-6 + tra_load.P_n[2] ^ 2.0 + tra_load.P_n[1] ^ 2.0) * (1e-6 + tra_load.P_n[2] ^ 2.0 + tra_load.P_n[1] ^ 2.0) + 1e-4) ^ 0.25) / (((tra_load.P_p[1] ^ 2.0 + tra_load.P_p[2] ^ 2.0) * (tra_load.P_p[1] ^ 2.0 + tra_load.P_p[2] ^ 2.0) + 1e-4) ^ 0.25 * (1e-6 + tra_load.P_n[1] ^ 2.0 + tra_load.P_n[2] ^ 2.0)) + ((tra_load.P_n[2] ^ 2.0 + tra_load.P_n[1] ^ 2.0) * ((1e-6 + tra_load.P_p[2] ^ 2.0 + tra_load.P_p[1] ^ 2.0) * (1e-6 + tra_load.P_p[2] ^ 2.0 + tra_load.P_p[1] ^ 2.0) + 1e-4) ^ 0.25) / (((tra_load.P_n[1] ^ 2.0 + tra_load.P_n[2] ^ 2.0) * (tra_load.P_n[1] ^ 2.0 + tra_load.P_n[2] ^ 2.0) + 1e-4) ^ 0.25 * (1e-6 + tra_load.P_p[1] ^ 2.0 + tra_load.P_p[2] ^ 2.0)))) ($RES_SIM_78) (31) [SCAL] (1) tra_load.omega = $DER.tra_load.theRef ($RES_SIM_79) (32) [FOR-] (2) ($RES_SIM_97) (32) [----] for $i1 in 1:2 loop (32) [----] [SCAL] (1) tra_load.terminal_p.i[$i1] + load.terminal.i[$i1] = 0.0 ($RES_SIM_98) (32) [----] end for; (33) [ARRY] (2) tra_load.terminal_p.v = load.terminal.v ($RES_SIM_99) (34) [ARRY] (2) tra_load.Z1 = {tra_load.R1 * tra_load.RBaseHigh, (tra_load.L1 * tra_load.omega * tra_load.RBaseHigh) / tra_load.omega_n} ($RES_BND_106) (35) [ARRY] (2) tra_load.Z2 = {tra_load.R2 * tra_load.RBaseLow, (tra_load.L2 * tra_load.omega * tra_load.RBaseLow) / tra_load.omega_n} ($RES_BND_107) (36) [ARRY] (2) tra_load.Zrm = {10.0 * tra_load.RBaseHigh, 0.0} ($RES_BND_108) (37) [ARRY] (2) tra_load.Zlm = {0.0, (10.0 * tra_load.omega * tra_load.RBaseHigh) / tra_load.omega_n} ($RES_BND_109) (38) [SCAL] (1) $TEV_0 = time < ramp.startTime ($RES_EVT_143) (39) [SCAL] (1) load.i[1] = -homotopy((load.v[2] * load.Q + load.v[1] * load.P) / (load.v[1] ^ 2.0 + load.v[2] ^ 2.0), 0.0) ($RES_SIM_60) (40) [SCAL] (1) $TEV_1 = time < (ramp.startTime + ramp.duration) ($RES_EVT_144) (41) [SCAL] (1) load.omega = $DER.load.theRef ($RES_SIM_61) (42) [SCAL] (1) load.theRef = load.terminal.theta[1] ($RES_SIM_62) (43) [ARRY] (2) sou.terminal.v = {sou.V * cos(sou.phiSou), sou.V * sin(sou.phiSou)} ($RES_SIM_63) (44) [SCAL] (1) tra_load.theRef = tra_load.terminal_p.theta[1] ($RES_SIM_80) (45) [SCAL] (1) sou.terminal.theta[1] = 6.283185307179586 * sou.f * time ($RES_SIM_65) (46) [SCAL] (1) tra_load.v_n = tra_load.terminal_n.v / ((tra_load.terminal_n.v * tra_load.terminal_n.v * (tra_load.terminal_n.v * tra_load.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25 * tra_load.terminal_n.v) ($RES_SIM_66) (47) [SCAL] (1) tra_load.v_p = tra_load.terminal_p.v / ((tra_load.terminal_p.v * tra_load.terminal_p.v * (tra_load.terminal_p.v * tra_load.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25 * tra_load.terminal_p.v) ($RES_SIM_67) (48) [SCAL] (1) tra_load.i_n = tra_load.terminal_n.i / ((tra_load.terminal_n.i * tra_load.terminal_n.i * (tra_load.terminal_n.i * tra_load.terminal_n.i) + 1.0000000000000002e-10) ^ 0.25 * tra_load.terminal_n.i) ($RES_SIM_68) (49) [SCAL] (1) tra_load.i_p = tra_load.terminal_p.i / ((tra_load.terminal_p.i * tra_load.terminal_p.i * (tra_load.terminal_p.i * tra_load.terminal_p.i) + 1.0000000000000002e-10) ^ 0.25 * tra_load.terminal_p.i) ($RES_SIM_69)