Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ObjectStab_ObjectStab.Examples.KundurHJW.Linefault.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObjectStab 2.0.0-master/package.mo", uses=false) Using package ObjectStab with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObjectStab 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(ObjectStab.Examples.KundurHJW.Linefault,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ObjectStab_ObjectStab.Examples.KundurHJW.Linefault") translateModel(ObjectStab.Examples.KundurHJW.Linefault,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ObjectStab_ObjectStab.Examples.KundurHJW.Linefault") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001105/0.001105, allocations: 109.8 kB / 16.42 MB, free: 6.457 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.001098/0.001098, allocations: 190 kB / 17.36 MB, free: 5.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.189/1.189, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObjectStab 2.0.0-master/package.mo): time 0.02702/0.02702, allocations: 6.947 MB / 298.2 MB, free: 7.98 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.947e-05/1.948e-05, allocations: 2.281 kB / 413.5 MB, free: 22.8 MB / 302.1 MB Notification: Performance of NFInst.instantiate(ObjectStab.Examples.KundurHJW.Linefault): time 0.009259/0.009287, allocations: 13.78 MB / 427.3 MB, free: 8.949 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007831/0.01716, allocations: 4.83 MB / 432.1 MB, free: 4.105 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002432/0.01962, allocations: 51.81 kB / 432.2 MB, free: 4.055 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObjectStab 2.0.0-master/Base/wRefContainer.mo:4:3-4:80:writable] Warning: Connector wr is not balanced: The number of potential variables (0) is not equal to the number of flow variables (2). Notification: Performance of NFTyping.typeComponents: time 0.001386/0.02102, allocations: 0.6707 MB / 432.9 MB, free: 3.379 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00255/0.02358, allocations: 1.37 MB / 434.2 MB, free: 2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004259/0.02785, allocations: 3.381 MB / 437.6 MB, free: 14.62 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009431/0.03729, allocations: 8.118 MB / 445.7 MB, free: 6.488 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002386/0.0397, allocations: 1.731 MB / 447.5 MB, free: 4.688 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005438/0.04514, allocations: 3.054 MB / 450.5 MB, free: 1.625 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005336/0.05049, allocations: 3.325 MB / 453.8 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001809/0.05232, allocations: 0.6602 MB / 454.5 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002058/0.05439, allocations: 0.6641 MB / 455.2 MB, free: 12.96 MB / 334.1 MB Notification: Performance of combineBinaries: time 0.006287/0.06069, allocations: 7.721 MB / 462.9 MB, free: 5.164 MB / 334.1 MB Notification: Performance of replaceArrayConstructors: time 0.003134/0.06384, allocations: 4.147 MB / 467 MB, free: 0.957 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001347/0.0652, allocations: 0.6813 MB / 467.7 MB, free: 280 kB / 334.1 MB Notification: Performance of FrontEnd: time 0.000707/0.06592, allocations: 123.4 kB / 467.8 MB, free: 156 kB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 720 (662) * Number of variables: 720 (718) Notification: Performance of Bindings: time 0.01898/0.0849, allocations: 22.09 MB / 489.9 MB, free: 9.613 MB / 366.1 MB Notification: Performance of FunctionAlias: time 0.002421/0.08735, allocations: 2.352 MB / 492.3 MB, free: 7.25 MB / 366.1 MB Notification: Performance of Early Inline: time 0.0121/0.09946, allocations: 12.48 MB / 0.4929 GB, free: 10.68 MB / 382.1 MB Notification: Performance of simplify1: time 0.001331/0.1008, allocations: 1.049 MB / 0.4939 GB, free: 9.629 MB / 382.1 MB Notification: Performance of Alias: time 0.1996/0.3004, allocations: 18.15 MB / 0.5117 GB, free: 52.5 MB / 382.1 MB Notification: Performance of simplify2: time 0.001571/0.302, allocations: 0.8363 MB / 0.5125 GB, free: 52.47 MB / 382.1 MB Notification: Performance of Events: time 0.001856/0.3039, allocations: 2.066 MB / 0.5145 GB, free: 52.22 MB / 382.1 MB Notification: Performance of Detect States: time 0.002763/0.3066, allocations: 3.061 MB / 0.5175 GB, free: 52.01 MB / 382.1 MB Notification: Performance of Partitioning: time 0.004049/0.3107, allocations: 3.379 MB / 0.5208 GB, free: 51.53 MB / 382.1 MB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency L910.T2.ib could not be divided by the body size 2 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [ARRY] (2) {{L910.T2.ia}, {L910.T2.ib}} = {{L910.G, -L910.B}, {L910.B, L910.G}} / 2.0 * {{1.0 + L1011.T1.va}, {L1011.T1.vb}} - {{L910.R, L910.X}, {-L910.X, L910.R}} / (L910.R ^ 2.0 + L910.X ^ 2.0) * {{sensorP9.T2.va - L1011.T1.va}, {sensorP9.T2.vb - L1011.T1.vb}} ($RES_SIM_344) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (419/421) **************************** (1) [ALGB] (1) protected flow Real G3.wrl.wr.Hsum (start = 1.0) (2) [ALGB] (1) Real bus9.thetadeg = (180.0 * (0.017453292519943295 * bus9.thetadeg)) / 3.141592653589793 (3) [ALGB] (1) output Real V = V (4) [ALGB] (1) Real[1] G3.Exc.AVR.x (start = G3.Exc.AVR.x_start) (5) [ALGB] (1) flow Real L78_1.L2.Imp.T1.ia (6) [ALGB] (1) Real G2.V = sqrt(G2.T.vb * G2.T.vb + (G2.T.va + 1.0) * (G2.T.va + 1.0)) (7) [ALGB] (1) flow Real L78_1.L2.Imp.T1.ib (8) [ALGB] (1) Real bus10.V = sqrt(L1011.T1.vb * L1011.T1.vb + (L1011.T1.va + 1.0) * (L1011.T1.va + 1.0)) (9) [ALGB] (1) inner Real G1.Efd (start = 2.0) (10) [DER-] (1) Real[1] $DER.G2.Exc.Phase_Compensation2.x_scaled (11) [DER-] (1) inner Real $DER.G4.delta (12) [ALGB] (1) Real G2.Exc.Verror.y (13) [ALGB] (1) Real G4.Exc.PSSLimiter.y (14) [ALGB] (1) protected flow Real G1.wrl.wr.Hsum (start = 1.0) (15) [ALGB] (1) Real G3.Exc.Phase_Compensation2.u (16) [ALGB] (1) protected Real G2.Gov.Limiter.simplifiedExpr (17) [ALGB] (1) Real[1] G3.Exc.Phase_Compensation2.x (start = G3.Exc.Phase_Compensation2.x_start) (18) [ALGB] (1) Real T15.Imp.T2.vb (19) [ALGB] (1) Real T15.Imp.T2.va (20) [DER-] (1) Real $DER.G1.lam1d (21) [ALGB] (1) Real G4.T.vb (22) [ALGB] (1) Real G4.T.va (23) [ALGB] (2) Real[2] sensorP9.PQ (24) [DER-] (1) Real $DER.G1.lam1q (25) [ALGB] (1) flow Real L78_1.L1.T1Adm.T2.ia (26) [ALGB] (1) Real G1.V = sqrt(G1.T.vb * G1.T.vb + (G1.T.va + 1.0) * (G1.T.va + 1.0)) (27) [ALGB] (1) flow Real L78_1.L1.T1Adm.T2.ib (28) [DER-] (1) Real $DER.G1.Gov.TF.y (29) [ALGB] (1) Real G1.Exc.Phase_Compensation1.u (30) [ALGB] (1) protected flow Real wrcon.wr.Hwsum (start = 1.0) (31) [ALGB] (1) Real[1] G1.Exc.Phase_Compensation1.x (start = G1.Exc.Phase_Compensation1.x_start) (32) [ALGB] (1) flow Real L78_1.L1.T1Adm.T1.ia (33) [ALGB] (1) flow Real L78_1.L1.T1Adm.T1.ib (34) [ALGB] (1) Real G1.efd = (G1.Rfd * G1.Efd) / G1.Ladu (35) [ALGB] (2) Real[2] sensorP7.PQ (36) [ALGB] (1) flow Real sensorP9.T1.ia (37) [ALGB] (1) protected flow Real G1.wrl.wr.Hwsum (start = 1.0) (38) [ALGB] (1) flow Real sensorP9.T1.ib (39) [ALGB] (1) flow Real L89_2.T2.ia (40) [ALGB] (1) flow Real L89_2.T2.ib (41) [DER-] (1) Real $DER.G1.lam2q (42) [ALGB] (1) flow Real L78_1.L1.T1.ib (43) [ALGB] (1) flow Real L78_1.L1.T1.ia (44) [ALGB] (1) Real G2.lamaq (45) [DER-] (1) Real $DER.G4.Gov.TF.y (46) [ALGB] (1) flow Real T15.T1.ib (47) [ALGB] (1) Real G2.Exc.u (48) [ALGB] (1) flow Real T15.T1.ia (49) [ALGB] (1) flow Real L89_2.T1.ia (50) [ALGB] (1) flow Real T311.T1.ib (51) [ALGB] (1) flow Real L89_2.T1.ib (52) [ALGB] (1) flow Real T311.T1.ia (53) [ALGB] (1) flow Real L78_1.L1.T2.ib (54) [ALGB] (1) Real bus9.V = sqrt(sensorP9.T2.vb * sensorP9.T2.vb + (sensorP9.T2.va + 1.0) * (sensorP9.T2.va + 1.0)) (55) [ALGB] (1) Real G3.Gov.werror.y (56) [ALGB] (1) Real G3.Ifd (start = 1.0) (57) [ALGB] (1) Real[1] G2.Exc.Phase_Compensation2.x (start = G2.Exc.Phase_Compensation2.x_start) (58) [ALGB] (1) flow Real L78_1.L1.T2.ia (59) [ALGB] (1) Real G2.lamad (60) [ALGB] (1) protected flow Real wrcon.wr.Hsum (start = 1.0) (61) [ALGB] (1) Real G2.Exc.Phase_Compensation2.u (62) [ALGB] (1) Real G1.iq (63) [ALGB] (1) Real G4.Exc.Phase_Compensation1.u (64) [ALGB] (1) flow Real T15.T2.ib (65) [ALGB] (1) flow Real T15.T2.ia (66) [ALGB] (1) Real[1] G4.Exc.Phase_Compensation1.x (start = G4.Exc.Phase_Compensation1.x_start) (67) [ALGB] (1) flow Real T311.T2.ib (68) [ALGB] (1) flow Real T311.T2.ia (69) [ALGB] (1) flow Real L78_1.T2.ia (70) [ALGB] (1) flow Real L78_1.T2.ib (71) [ALGB] (1) protected flow Real G2.wrl.wr.Hsum (start = 1.0) (72) [DER-] (1) inner Real $DER.G1.delta (73) [ALGB] (1) Real G4.Exc.PSSGain.y (74) [ALGB] (1) inner Real G1.Iarm = sqrt(G1.iq ^ 2.0 + G1.id ^ 2.0) (75) [ALGB] (1) Real G2.iq (76) [ALGB] (1) Real G1.Exc.Phase_Compensation2.u (77) [ALGB] (1) Real G1.id (78) [DER-] (1) Real $DER.G2.Exc.PSSGain.u (79) [ALGB] (1) Real[1] G1.Exc.Phase_Compensation2.x (start = G1.Exc.Phase_Compensation2.x_start) (80) [ALGB] (1) Real bus2.thetadeg = (180.0 * (0.017453292519943295 * bus2.thetadeg)) / 3.141592653589793 (81) [ALGB] (1) flow Real L78_1.T1.ia (82) [ALGB] (1) Real T15.Tr.T2.va (83) [ALGB] (1) flow Real L78_1.T1.ib (84) [ALGB] (1) Real T15.Tr.T2.vb (85) [ALGB] (1) Real G1.theta = atan2(G1.T.vb, G1.T.va + 1.0) (min = -3.141592653589793, max = 3.141592653589793) (86) [ALGB] (1) Real G3.iq (87) [ALGB] (1) Real[1] G1.Exc.WashOut.x (start = G1.Exc.WashOut.x_start) (88) [ALGB] (1) Real G2.id (89) [ALGB] (1) flow Real C7.T.ib (90) [DER-] (1) Real $DER.G4.lamfd (91) [ALGB] (1) flow Real C7.T.ia (92) [DER-] (1) Real[1] $DER.G4.Exc.Phase_Compensation2.x_scaled (93) [ALGB] (1) Real G4.iq (94) [ALGB] (1) Real G1.Exc.Verror.y (95) [ALGB] (1) Real G3.id (96) [DISC] (1) Boolean $TEV_8 (97) [DISC] (1) Boolean $TEV_7 (98) [DISC] (1) Boolean $TEV_6 (99) [ALGB] (1) Real L78_1.B2.T1.vb (100) [DISC] (1) Boolean $TEV_5 (101) [ALGB] (1) Real L78_1.L1.Imp.T2.va (102) [ALGB] (1) Real L78_1.B2.T1.va (103) [DISC] (1) Boolean $TEV_4 (104) [ALGB] (1) Real bus5.thetadeg = (180.0 * (0.017453292519943295 * bus5.thetadeg)) / 3.141592653589793 (105) [ALGB] (1) Real L78_1.L1.Imp.T2.vb (106) [DISC] (1) Boolean $TEV_3 (107) [ALGB] (1) Real[1] G2.Exc.Phase_Compensation1.x (start = G2.Exc.Phase_Compensation1.x_start) (108) [DISC] (1) Boolean $TEV_2 (109) [DISC] (1) Boolean $TEV_1 (110) [DISC] (1) Boolean $TEV_0 (111) [ALGB] (1) Real G2.Exc.Phase_Compensation1.u (112) [ALGB] (1) Real G4.Exc.Phase_Compensation2.u (113) [ALGB] (1) Real G4.id (114) [ALGB] (1) Real[1] G4.Exc.Phase_Compensation2.x (start = G4.Exc.Phase_Compensation2.x_start) (115) [ALGB] (1) inner Real G2.Iarm = sqrt(G2.iq ^ 2.0 + G2.id ^ 2.0) (116) [ALGB] (1) Real L78_1.B2.T2.vb (117) [ALGB] (1) Real L78_1.B2.T2.va (118) [DER-] (1) Real[1] $DER.G3.Exc.WashOut.x_scaled (119) [DER-] (1) Real[1] $DER.G3.Exc.Phase_Compensation2.x_scaled (120) [ALGB] (1) inner Real G4.Efd (start = 2.0) (121) [DER-] (1) Real[1] $DER.G1.Gov.TF.x_scaled (122) [DER-] (1) Real $DER.G3.Exc.AVR.y (123) [ALGB] (1) Real[1] G1.Gov.TF.x (start = {0.0}) (124) [ALGB] (1) Real bus8.thetadeg = (180.0 * (0.017453292519943295 * bus8.thetadeg)) / 3.141592653589793 (125) [ALGB] (1) protected Real G1.Gov.Limiter.simplifiedExpr (126) [ALGB] (1) flow Real L56.T1.ib (127) [ALGB] (1) flow Real L56.T1.ia (128) [ALGB] (1) protected Real G2.Exc.Limiter.simplifiedExpr (129) [DER-] (1) Real $DER.G2.lam1d (130) [ALGB] (1) protected Real G2.Exc.PSSLimiter.simplifiedExpr (131) [ALGB] (1) flow Real L56.T2.ib (132) [ALGB] (1) flow Real L56.T2.ia (133) [ALGB] (1) Real bus7.V = sqrt(sensorP7.T2.vb * sensorP7.T2.vb + (sensorP7.T2.va + 1.0) * (sensorP7.T2.va + 1.0)) (134) [ALGB] (1) Real[1] G4.Gov.TF.x (start = {0.0}) (135) [ALGB] (1) Real G1.vq (136) [DER-] (1) Real $DER.G2.lam1q (137) [ALGB] (1) Real G2.Exc.PSSGain.y (138) [ALGB] (1) inner Real G3.Iarm = sqrt(G3.iq ^ 2.0 + G3.id ^ 2.0) (139) [ALGB] (1) Real G2.Exc.PSSLimiter.y (140) [ALGB] (1) protected flow Real G4.wrl.wr.Hwsum (start = 1.0) (141) [DER-] (1) Real[1] $DER.G3.Gov.TF.x_scaled (142) [ALGB] (1) Real G2.vq (143) [ALGB] (1) Real G1.vd (144) [ALGB] (1) Real sensorP7.T2.va (145) [ALGB] (1) Real sensorP7.T2.vb (146) [DER-] (1) Real[1] $DER.G4.Gov.TF.x_scaled (147) [ALGB] (1) Real T26.Imp.T2.vb (148) [ALGB] (1) Real G4.theta = atan2(G4.T.vb, G4.T.va + 1.0) (min = -3.141592653589793, max = 3.141592653589793) (149) [ALGB] (1) Real T26.Imp.T2.va (150) [DER-] (1) Real[1] $DER.G1.Exc.WashOut.x_scaled (151) [ALGB] (1) Real[1] G3.Exc.WashOut.x (start = G3.Exc.WashOut.x_start) (152) [ALGB] (1) protected Real G3.Gov.Limiter.simplifiedExpr (153) [ALGB] (1) Real G2.Gov.werror.y (154) [DER-] (1) Real $DER.G1.Exc.AVR.y (155) [ALGB] (1) Real L9.theta = atan2(sensorP9.T2.vb, sensorP9.T2.va + 1.0) (min = -3.141592653589793, max = 3.141592653589793) (156) [ALGB] (1) Real G3.vq (157) [ALGB] (1) protected Real G4.Exc.Limiter.simplifiedExpr (158) [ALGB] (1) Real G2.vd (159) [ALGB] (1) Real G4.efd = (G4.Rfd * G4.Efd) / G4.Ladu (160) [ALGB] (1) flow Real C9.T.ib (161) [ALGB] (1) flow Real C9.T.ia (162) [ALGB] (1) Real G2.Ifd (start = 1.0) (163) [ALGB] (1) flow Real T15.Tr.T1.ia (164) [DER-] (1) Real $DER.G1.lamfd (165) [ALGB] (1) flow Real T15.Tr.T1.ib (166) [DER-] (1) Real $DER.G2.lam2q (167) [ALGB] (1) Real G4.vq (168) [DISC] (1) Boolean L78_1.B3.closed (start = false) (169) [ALGB] (1) Real G3.vd (170) [ALGB] (1) Real G1.lamaq (171) [ALGB] (1) Real T410.Imp.T2.va (172) [ALGB] (1) Real T410.Imp.T2.vb (173) [ALGB] (1) Real G3.Exc.Verror.y (174) [ALGB] (1) flow Real L78_1.L1.Imp.T2.ia (175) [ALGB] (1) flow Real L78_1.L1.Imp.T2.ib (176) [ALGB] (1) Real G1.Exc.u (177) [ALGB] (1) Real bus6.V = sqrt(L56.T2.vb * L56.T2.vb + (L56.T2.va + 1.0) * (L56.T2.va + 1.0)) (178) [ALGB] (1) inner Real G4.Iarm = sqrt(G4.iq ^ 2.0 + G4.id ^ 2.0) (179) [DISC] (1) inner Boolean G4.online = time < G4.TripTime (180) [ALGB] (1) Real G4.vd (181) [ALGB] (1) Real L1011.T1.va (182) [ALGB] (1) flow Real T410.T1.ib (183) [ALGB] (1) Real[1] G2.Exc.AVR.x (start = G2.Exc.AVR.x_start) (184) [ALGB] (1) Real L1011.T1.vb (185) [ALGB] (1) Real G1.lamad (186) [ALGB] (1) flow Real T410.T1.ia (187) [ALGB] (1) flow Real L78_1.L1.Imp.T1.ia (188) [ALGB] (1) flow Real L78_1.L1.Imp.T1.ib (189) [DER-] (1) Real[1] $DER.G2.Exc.WashOut.x_scaled (190) [ALGB] (1) flow Real L78_2.T2.ia (191) [ALGB] (1) flow Real L78_2.T2.ib (192) [DER-] (1) inner Real $DER.G2.delta (193) [DER-] (1) Real $DER.G3.Gov.TF.y (194) [ALGB] (1) flow Real T410.T2.ib (195) [ALGB] (1) flow Real T410.T2.ia (196) [ALGB] (1) flow Real L78_2.T1.ia (197) [DISC] (1) Boolean $SEV_9 (198) [ALGB] (1) flow Real L78_2.T1.ib (199) [ALGB] (1) Real L9.V = sqrt(sensorP9.T2.vb * sensorP9.T2.vb + (sensorP9.T2.va + 1.0) * (sensorP9.T2.va + 1.0)) (200) [DISC] (1) Boolean $SEV_7 (201) [DISC] (1) Boolean $SEV_6 (202) [DISC] (1) Boolean $SEV_4 (203) [DISC] (1) Boolean $SEV_3 (204) [ALGB] (1) Real[1] G4.Exc.WashOut.x (start = G4.Exc.WashOut.x_start) (205) [DISC] (1) Boolean $SEV_1 (206) [DISC] (1) Boolean $SEV_0 (207) [DER-] (1) Real[1] $DER.G2.Gov.TF.x_scaled (208) [ALGB] (1) protected Real G4.Exc.PSSLimiter.simplifiedExpr (209) [ALGB] (1) Real L56.T2.vb (210) [ALGB] (1) Real L56.T2.va (211) [ALGB] (1) Real bus1.thetadeg = (180.0 * (0.017453292519943295 * bus1.thetadeg)) / 3.141592653589793 (212) [DER-] (1) Real[1] $DER.G2.Exc.AVR.x_scaled (213) [ALGB] (1) Real bus5.V = sqrt(T15.Tr.T2.vb * T15.Tr.T2.vb + (T15.Tr.T2.va + 1.0) * (T15.Tr.T2.va + 1.0)) (214) [ALGB] (1) inner Real G3.Efd (start = 2.0) (215) [ALGB] (1) Real G1.Exc.PSSGain.y (216) [DISC] (1) Boolean L78_1.B2.closed (start = true) (217) [ALGB] (1) protected flow Real G2.wrl.wr.Hwsum (start = 1.0) (218) [ALGB] (1) flow Real T410.Tr.T1.ib (219) [ALGB] (1) Real[1] G4.Exc.AVR.x (start = G4.Exc.AVR.x_start) (220) [ALGB] (1) flow Real T410.Tr.T1.ia (221) [ALGB] (1) Real L78_1.B1.T2.vb (222) [ALGB] (1) Real L78_1.B1.T2.va (223) [DER-] (1) Real[1] $DER.G4.Exc.Phase_Compensation1.x_scaled (224) [DISC] (1) inner Boolean G3.online = time < G3.TripTime (225) [DER-] (1) Real[1] $DER.G4.Exc.WashOut.x_scaled (226) [ALGB] (1) Real bus4.thetadeg = (180.0 * (0.017453292519943295 * bus4.thetadeg)) / 3.141592653589793 (227) [ALGB] (1) flow Real L78_1.L2.T2Adm.T2.ia (228) [ALGB] (1) flow Real sensorP7.T1.ia (229) [ALGB] (1) Real G4.Gov.werror.y (230) [ALGB] (1) flow Real L78_1.L2.T2Adm.T2.ib (231) [ALGB] (1) flow Real sensorP7.T1.ib (232) [ALGB] (1) Real G4.lamaq (233) [ALGB] (1) flow Real L1011.T2.ia (234) [ALGB] (1) flow Real L78_1.L2.T2Adm.T1.ia (235) [DER-] (1) Real[1] $DER.G3.Exc.Phase_Compensation1.x_scaled (236) [ALGB] (1) flow Real L1011.T2.ib (237) [ALGB] (1) flow Real L78_1.L2.T2Adm.T1.ib (238) [DER-] (1) Real $DER.G4.Exc.PSSGain.u (239) [ALGB] (1) Real G4.Exc.u (240) [DER-] (1) Real $DER.G3.lam1d (241) [ALGB] (1) protected Real G1.Exc.Limiter.simplifiedExpr (242) [ALGB] (1) Real bus4.V = sqrt(G4.T.vb * G4.T.vb + (G4.T.va + 1.0) * (G4.T.va + 1.0)) (243) [ALGB] (1) Real G4.lamad (244) [ALGB] (1) Real bus7.thetadeg = (180.0 * (0.017453292519943295 * bus7.thetadeg)) / 3.141592653589793 (245) [ALGB] (1) flow Real L1011.T1.ia (246) [ALGB] (1) flow Real L1011.T1.ib (247) [DER-] (1) Real $DER.G3.lam1q (248) [ALGB] (1) flow Real G1.T.ib (249) [ALGB] (1) flow Real G1.T.ia (250) [ALGB] (1) flow Real T26.Tr.T1.ia (251) [ALGB] (1) Real G3.efd = (G3.Rfd * G3.Efd) / G3.Ladu (252) [ALGB] (1) Real L7.Ql (253) [ALGB] (1) flow Real T26.Tr.T1.ib (254) [ALGB] (1) Real G1.Ifd (start = 1.0) (255) [ALGB] (1) Real bus11.thetadeg = (180.0 * (0.017453292519943295 * bus11.thetadeg)) / 3.141592653589793 (256) [DER-] (1) Real[1] $DER.G1.Exc.Phase_Compensation1.x_scaled (257) [DER-] (1) Real[1] $DER.G3.Exc.AVR.x_scaled (258) [ALGB] (1) Real G3.theta = atan2(G3.T.vb, G3.T.va + 1.0) (min = -3.141592653589793, max = 3.141592653589793) (259) [DISC] (1) Boolean L78_1.B1.closed (start = true) (260) [ALGB] (1) Real[1] G2.Exc.WashOut.x (start = G2.Exc.WashOut.x_start) (261) [ALGB] (1) Real[1] G3.Gov.TF.x (start = {0.0}) (262) [ALGB] (1) Real L7.V = sqrt(sensorP7.T2.vb * sensorP7.T2.vb + (sensorP7.T2.va + 1.0) * (sensorP7.T2.va + 1.0)) (263) [ALGB] (1) protected Real G3.Exc.Limiter.simplifiedExpr (264) [DER-] (1) Real $DER.G3.Exc.PSSGain.u (265) [DISC] (1) inner Boolean G2.online = time < G2.TripTime (266) [DER-] (1) Real $DER.G2.lamfd (267) [ALGB] (1) Real L9.Ql (268) [ALGB] (1) Real $FUN_9 (269) [DER-] (1) Real[1] $DER.G2.Exc.Phase_Compensation1.x_scaled (270) [DER-] (1) Real $DER.G3.lam2q (271) [ALGB] (1) Real $FUN_8 (272) [ALGB] (1) Real G3.Exc.PSSGain.y (273) [ALGB] (1) Real $FUN_6 (274) [ALGB] (1) Real $FUN_5 (275) [ALGB] (1) Real $FUN_3 (276) [ALGB] (1) Real L7.Pl (277) [ALGB] (1) Real $FUN_2 (278) [ALGB] (1) Real bus3.V = sqrt(G3.T.vb * G3.T.vb + (G3.T.va + 1.0) * (G3.T.va + 1.0)) (279) [ALGB] (1) Real G1.Qg = -(G1.T.vb * G1.T.ia - (G1.T.va + 1.0) * G1.T.ib) (280) [ALGB] (1) flow Real G2.T.ib (281) [ALGB] (1) flow Real G2.T.ia (282) [DER-] (1) Real[1] $DER.G1.Exc.AVR.x_scaled (283) [ALGB] (1) flow Real L78_1.FaultImp.T1.ib (284) [ALGB] (1) flow Real L78_1.FaultImp.T1.ia (285) [DISC] (1) Boolean $SEV_34 (286) [DISC] (1) Boolean $SEV_33 (287) [ALGB] (1) Real G2.Qg = -(G2.T.vb * G2.T.ia - (G2.T.va + 1.0) * G2.T.ib) (288) [DISC] (1) Boolean $SEV_31 (289) [ALGB] (1) protected Real G1.Exc.PSSLimiter.simplifiedExpr (290) [DISC] (1) Boolean $SEV_30 (291) [DER-] (1) inner Real $DER.G3.delta (292) [DER-] (1) Real $DER.G4.Exc.AVR.y (293) [ALGB] (1) Real L9.Pl (294) [ALGB] (1) flow Real L78_1.FaultImp.T2.ib (295) [ALGB] (1) flow Real L78_1.FaultImp.T2.ia (296) [ALGB] (1) flow Real T26.T1.ib (297) [ALGB] (1) Real G3.Qg = -(G3.T.vb * G3.T.ia - (G3.T.va + 1.0) * G3.T.ib) (298) [ALGB] (1) flow Real T26.T1.ia (299) [ALGB] (1) inner Real G1.Pm (start = 1.0) (300) [ALGB] (1) inner Real G2.Efd (start = 2.0) (301) [ALGB] (1) Real $FUN_12 (302) [ALGB] (1) Real $FUN_11 (303) [ALGB] (1) flow Real L78_1.L1.T2Adm.T2.ia (304) [ALGB] (1) Real G1.Pg = -(G1.T.vb * G1.T.ib + (G1.T.va + 1.0) * G1.T.ia) (305) [ALGB] (1) flow Real L78_1.L1.T2Adm.T2.ib (306) [ALGB] (1) flow Real T26.T2.ib (307) [ALGB] (1) inner Real G1.Pe (start = 1.0) (308) [DER-] (1) Real $DER.G2.Gov.TF.y (309) [ALGB] (1) Real G4.Qg = -(G4.T.vb * G4.T.ia - (G4.T.va + 1.0) * G4.T.ib) (310) [ALGB] (1) flow Real T26.T2.ia (311) [ALGB] (1) inner Real G2.Pm (start = 1.0) (312) [ALGB] (1) protected flow Real G4.wrl.wr.Hsum (start = 1.0) (313) [DISC] (1) Boolean $SEV_28 (314) [DISC] (1) Boolean $SEV_27 (315) [DISC] (1) Boolean $SEV_25 (316) [DISC] (1) Boolean $SEV_24 (317) [ALGB] (1) Real bus2.V = sqrt(G2.T.vb * G2.T.vb + (G2.T.va + 1.0) * (G2.T.va + 1.0)) (318) [ALGB] (1) flow Real L78_1.L1.T2Adm.T1.ia (319) [ALGB] (1) Real G2.Pg = -(G2.T.vb * G2.T.ib + (G2.T.va + 1.0) * G2.T.ia) (320) [ALGB] (1) flow Real L78_1.L1.T2Adm.T1.ib (321) [DISC] (1) Boolean $SEV_22 (322) [ALGB] (1) flow Real G3.T.ib (323) [DISC] (1) Boolean $SEV_21 (324) [ALGB] (1) flow Real G3.T.ia (325) [ALGB] (1) inner Real G2.Pe (start = 1.0) (326) [DISC] (1) inner Boolean G1.online = time < G1.TripTime (327) [ALGB] (1) inner Real G3.Pm (start = 1.0) (328) [ALGB] (1) Real C7.Qg (329) [ALGB] (1) Real T311.Imp.T2.va (330) [ALGB] (1) Real G3.Exc.PSSLimiter.y (331) [ALGB] (1) Real G1.T.vb (332) [ALGB] (1) Real T311.Imp.T2.vb (333) [ALGB] (1) Real G1.T.va (334) [ALGB] (1) inner Real wref (start = 1.0) (335) [ALGB] (1) flow Real L78_1.B3.T2.ib (336) [ALGB] (1) Real G4.V = sqrt(G4.T.vb * G4.T.vb + (G4.T.va + 1.0) * (G4.T.va + 1.0)) (337) [ALGB] (1) Real G3.Pg = -(G3.T.vb * G3.T.ib + (G3.T.va + 1.0) * G3.T.ia) (338) [ALGB] (1) flow Real L78_1.B3.T2.ia (339) [ALGB] (1) inner Real G3.Pe (start = 1.0) (340) [ALGB] (1) inner Real G4.Pm (start = 1.0) (341) [ALGB] (1) Real T311.Imp.T1.va (342) [ALGB] (1) Real T311.Imp.T1.vb (343) [ALGB] (1) Real G4.Exc.Verror.y (344) [DER-] (1) Real $DER.G2.Exc.AVR.y (345) [ALGB] (1) Real G4.Pg = -(G4.T.vb * G4.T.ib + (G4.T.va + 1.0) * G4.T.ia) (346) [DER-] (1) Real $DER.G1.Exc.PSSGain.u (347) [ALGB] (1) inner Real G4.Pe (start = 1.0) (348) [DISC] (1) Boolean $SEV_19 (349) [DISC] (1) Boolean $SEV_18 (350) [DISC] (1) Boolean $SEV_16 (351) [ALGB] (1) flow Real L89_1.T2.ia (352) [ALGB] (1) Real C9.Qg (353) [DISC] (1) Boolean $SEV_15 (354) [DER-] (1) Real[1] $DER.G4.Exc.AVR.x_scaled (355) [ALGB] (1) flow Real L89_1.T2.ib (356) [DISC] (1) Boolean $SEV_13 (357) [ALGB] (1) protected Real G4.Gov.Limiter.simplifiedExpr (358) [DISC] (1) Boolean $SEV_12 (359) [ALGB] (1) flow Real L78_1.L2.T1.ib (360) [ALGB] (1) flow Real L78_1.L2.T1.ia (361) [DISC] (1) Boolean $SEV_10 (362) [ALGB] (1) Real G3.lamaq (363) [ALGB] (1) Real C7.Pg (364) [ALGB] (1) flow Real L89_1.T1.ia (365) [ALGB] (1) Real G3.Exc.u (366) [ALGB] (1) Real G2.efd = (G2.Rfd * G2.Efd) / G2.Ladu (367) [DER-] (1) Real $DER.G4.lam1d (368) [ALGB] (1) flow Real L89_1.T1.ib (369) [ALGB] (1) flow Real G4.T.ib (370) [ALGB] (1) flow Real G4.T.ia (371) [ALGB] (1) Real bus1.V = sqrt(G1.T.vb * G1.T.vb + (G1.T.va + 1.0) * (G1.T.va + 1.0)) (372) [ALGB] (1) Real bus3.thetadeg = (180.0 * (0.017453292519943295 * bus3.thetadeg)) / 3.141592653589793 (373) [ALGB] (1) flow Real L78_1.L2.T2.ib (374) [ALGB] (1) flow Real L78_1.L2.T2.ia (375) [ALGB] (1) flow Real L78_1.L2.T1Adm.T2.ia (376) [ALGB] (1) Real G3.lamad (377) [ALGB] (1) flow Real L78_1.L2.T1Adm.T2.ib (378) [ALGB] (1) Real G2.T.vb (379) [ALGB] (1) Real[1] G1.Exc.AVR.x (start = G1.Exc.AVR.x_start) (380) [ALGB] (1) Real G2.T.va (381) [DER-] (1) Real $DER.G4.lam1q (382) [ALGB] (1) Real G3.V = sqrt(G3.T.vb * G3.T.vb + (G3.T.va + 1.0) * (G3.T.va + 1.0)) (383) [ALGB] (1) Real bus11.V = sqrt(T311.Imp.T1.vb * T311.Imp.T1.vb + (T311.Imp.T1.va + 1.0) * (T311.Imp.T1.va + 1.0)) (384) [ALGB] (1) flow Real L78_1.L2.T1Adm.T1.ia (385) [ALGB] (1) flow Real L78_1.L2.T1Adm.T1.ib (386) [ALGB] (1) Real C9.Pg (387) [ALGB] (1) flow Real L67.T1.ib (388) [ALGB] (1) protected Real G3.Exc.PSSLimiter.simplifiedExpr (389) [ALGB] (1) flow Real L67.T1.ia (390) [ALGB] (1) Real G4.Ifd (start = 1.0) (391) [ALGB] (1) Real G1.Exc.PSSLimiter.y (392) [ALGB] (1) Real sensorP9.T2.va (393) [ALGB] (1) Real L78_1.FaultImp.T2.vb (394) [ALGB] (1) Real sensorP9.T2.vb (395) [ALGB] (1) Real L78_1.FaultImp.T2.va (396) [ALGB] (1) Real G2.theta = atan2(G2.T.vb, G2.T.va + 1.0) (min = -3.141592653589793, max = 3.141592653589793) (397) [ALGB] (1) Real bus6.thetadeg = (180.0 * (0.017453292519943295 * bus6.thetadeg)) / 3.141592653589793 (398) [ALGB] (1) Real G3.Exc.Phase_Compensation1.u (399) [ALGB] (1) flow Real L67.T2.ib (400) [ALGB] (1) flow Real L67.T2.ia (401) [ALGB] (1) Real[1] G3.Exc.Phase_Compensation1.x (start = G3.Exc.Phase_Compensation1.x_start) (402) [ALGB] (1) Real L7.theta = atan2(sensorP7.T2.vb, sensorP7.T2.va + 1.0) (min = -3.141592653589793, max = 3.141592653589793) (403) [ALGB] (1) protected flow Real G3.wrl.wr.Hwsum (start = 1.0) (404) [ALGB] (1) flow Real L910.T1.ib (405) [ALGB] (1) flow Real L910.T1.ia (406) [DER-] (1) Real $DER.G3.lamfd (407) [ALGB] (1) Real bus10.thetadeg = (180.0 * (0.017453292519943295 * bus10.thetadeg)) / 3.141592653589793 (408) [DER-] (1) Real[1] $DER.G1.Exc.Phase_Compensation2.x_scaled (409) [DER-] (1) Real $DER.G4.lam2q (410) [ALGB] (1) flow Real T311.Tr.T1.ib (411) [ALGB] (1) flow Real T311.Tr.T1.ia (412) [ALGB] (1) Real G3.T.vb (413) [ALGB] (1) flow Real L78_1.L2.Imp.T2.ia (414) [ALGB] (1) Real G3.T.va (415) [ALGB] (1) flow Real L78_1.L2.Imp.T2.ib (416) [ALGB] (1) Real G1.Gov.werror.y (417) [ALGB] (1) flow Real L910.T2.ib (418) [ALGB] (1) Real[1] G2.Gov.TF.x (start = {0.0}) (419) [ALGB] (1) flow Real L910.T2.ia System Equations (363/421) **************************** (1) [SCAL] (1) G1.online = $TEV_8 ($RES_BND_729) (2) [SCAL] (1) G2.Gov.Limiter.simplifiedExpr = G2.Gov.PmAdd.k1 * G2.Gov.TF.y + G2.Gov.PmAdd.k2 * G2.Gov.Pm0 ($RES_SIM_258) (3) [ARRY] (1) G2.Gov.TF.x = G2.Gov.TF.x_scaled / G2.Gov.TF.a_end ($RES_SIM_259) (4) [ARRY] (2) {{L910.T2.ia}, {L910.T2.ib}} = {{L910.G, -L910.B}, {L910.B, L910.G}} / 2.0 * {{1.0 + L1011.T1.va}, {L1011.T1.vb}} - {{L910.R, L910.X}, {-L910.X, L910.R}} / (L910.R ^ 2.0 + L910.X ^ 2.0) * {{sensorP9.T2.va - L1011.T1.va}, {sensorP9.T2.vb - L1011.T1.vb}} ($RES_SIM_344) (5) [ARRY] (2) {{L910.T1.ia}, {L910.T1.ib}} = {{L910.G, -L910.B}, {L910.B, L910.G}} / 2.0 * {{1.0 + sensorP9.T2.va}, {sensorP9.T2.vb}} + {{L910.R, L910.X}, {-L910.X, L910.R}} / (L910.R ^ 2.0 + L910.X ^ 2.0) * {{sensorP9.T2.va - L1011.T1.va}, {sensorP9.T2.vb - L1011.T1.vb}} ($RES_SIM_345) (6) [SCAL] (1) G3.lamaq = G3.Laqspp * ((G3.lam1q / G3.L1q + G3.lam2q / G3.L2q) - G3.id) ($RES_SIM_171) (7) [SCAL] (1) G3.lamad = G3.Ladspp * ((G3.lamfd / G3.Lfd + G3.lam1d / G3.L1d) - G3.iq) ($RES_SIM_172) (8) [ARRY] (2) {{L1011.T2.ia}, {L1011.T2.ib}} = {{L1011.G, -L1011.B}, {L1011.B, L1011.G}} / 2.0 * {{1.0 + T311.Imp.T1.va}, {T311.Imp.T1.vb}} - {{L1011.R, L1011.X}, {-L1011.X, L1011.R}} / (L1011.R ^ 2.0 + L1011.X ^ 2.0) * {{L1011.T1.va - T311.Imp.T1.va}, {L1011.T1.vb - T311.Imp.T1.vb}} ($RES_SIM_348) (9) [SCAL] (1) $DER.G3.lam2q = ((314.1592653589793 * (G3.lamaq - G3.lam2q)) / G3.L2q) * G3.R2q ($RES_SIM_173) (10) [ARRY] (2) {{L1011.T1.ia}, {L1011.T1.ib}} = {{L1011.G, -L1011.B}, {L1011.B, L1011.G}} / 2.0 * {{1.0 + L1011.T1.va}, {L1011.T1.vb}} + {{L1011.R, L1011.X}, {-L1011.X, L1011.R}} / (L1011.R ^ 2.0 + L1011.X ^ 2.0) * {{L1011.T1.va - T311.Imp.T1.va}, {L1011.T1.vb - T311.Imp.T1.vb}} ($RES_SIM_349) (11) [SCAL] (1) $DER.G3.lam1q = ((314.1592653589793 * (G3.lamaq - G3.lam1q)) / G3.L1q) * G3.R1q ($RES_SIM_174) (12) [SCAL] (1) $DER.G3.lam1d = ((314.1592653589793 * (G3.lamad - G3.lam1d)) / G3.L1d) * G3.R1d ($RES_SIM_175) (13) [SCAL] (1) $DER.G3.lamfd = 314.1592653589793 * ((G3.Rfd * G3.Efd) / G3.Ladu + (G3.Rfd * (G3.lamad - G3.lamfd)) / G3.Lfd) ($RES_SIM_176) (14) [SCAL] (1) (L78_1.L2.Imp.T2.ib + L78_1.L2.T2Adm.T2.ib) - L78_1.L2.T2.ib = 0.0 ($RES_SIM_430) (15) [ARRY] (1) G3.Exc.Phase_Compensation2.x = G3.Exc.Phase_Compensation2.x_scaled / G3.Exc.Phase_Compensation2.a_end ($RES_SIM_179) (16) [SCAL] (1) (L78_1.L2.Imp.T2.ia + L78_1.L2.T2Adm.T2.ia) - L78_1.L2.T2.ia = 0.0 ($RES_SIM_431) (17) [SCAL] (1) G1.efd = (G1.Rfd * G1.Efd) / G1.Ladu ($RES_BND_731) (18) [SCAL] (1) (L78_1.L2.Imp.T1.ib + L78_1.L2.T1Adm.T2.ib) - L78_1.L2.T1.ib = 0.0 ($RES_SIM_432) (19) [SCAL] (1) (L78_1.L2.Imp.T1.ia + L78_1.L2.T1Adm.T2.ia) - L78_1.L2.T1.ia = 0.0 ($RES_SIM_433) (20) [SCAL] (1) G2.Pg = -(G2.T.vb * G2.T.ib + (1.0 + G2.T.va) * G2.T.ia) ($RES_BND_734) (21) [SCAL] (1) G2.Gov.TF.y = (G2.Gov.TF.bb[2:2] - G2.Gov.TF.d * G2.Gov.TF.a[2:2]) / (G2.Gov.TF.a_end * G2.Gov.TF.x_scaled) + G2.Gov.TF.d * G2.Gov.werror.y ($RES_SIM_260) (22) [SCAL] (1) G2.Qg = -(G2.T.vb * G2.T.ia - (1.0 + G2.T.va) * G2.T.ib) ($RES_BND_735) (23) [SCAL] (1) $DER.G2.Gov.TF.x_scaled[1] = (G2.Gov.TF.a_end * G2.Gov.werror.y - G2.Gov.TF.a[2:2] * G2.Gov.TF.x_scaled) / G2.Gov.TF.a[1] ($RES_SIM_261) (24) [SCAL] (1) G2.online = $TEV_7 ($RES_BND_736) (25) [SCAL] (1) G2.Gov.werror.y = G2.Gov.werror.k1 * G2.Exc.PSSGain.u + G2.Gov.werror.k2 * G2.Gov.wref ($RES_SIM_262) (26) [SCAL] (1) (L78_1.L1.Imp.T2.ib + L78_1.L1.T2Adm.T2.ib) - L78_1.L1.T2.ib = 0.0 ($RES_SIM_438) (27) [SCAL] (1) G2.Pm = homotopy(smooth(0, if $SEV_24 then G2.Gov.Limiter.uMax else if $SEV_25 then G2.Gov.Limiter.uMin else G2.Gov.Limiter.simplifiedExpr), G2.Gov.Limiter.simplifiedExpr) ($RES_SIM_263) (28) [SCAL] (1) G2.efd = (G2.Rfd * G2.Efd) / G2.Ladu ($RES_BND_738) (29) [SCAL] (1) (L78_1.L1.Imp.T2.ia + L78_1.L1.T2Adm.T2.ia) - L78_1.L1.T2.ia = 0.0 ($RES_SIM_439) (30) [SCAL] (1) G1.wrl.wr.Hsum = if G1.online then G1.H * (0.01 * G1.Sbase) else 0.0 ($RES_SIM_266) (31) [SCAL] (1) G1.wrl.wr.Hwsum = if G1.online then G1.Exc.PSSGain.u * G1.H * (0.01 * G1.Sbase) else 0.0 ($RES_SIM_267) (32) [ARRY] (2) {{1.0 + G1.T.va}, {G1.T.vb}} = {{-$FUN_2, $FUN_3}, {$FUN_3, $FUN_2}} * ({{G1.vd}, {G1.vq}} + {{G1.rt, -G1.xt}, {G1.xt, G1.rt}} * {{G1.id}, {G1.iq}}) ($RES_SIM_268) (33) [ARRY] (2) {{G1.T.ia}, {G1.T.ib}} = -0.01 .* G1.Sbase .* ({{-$FUN_2, $FUN_3}, {$FUN_3, $FUN_2}} * {{G1.id}, {G1.iq}}) ($RES_SIM_269) (34) [ARRY] (2) {{T410.T1.ia - T410.Tr.T1.ia}, {T410.T1.ib - T410.Tr.T1.ib}} = {{0.0}, {0.0}} ($RES_SIM_353) (35) [ARRY] (2) {{G4.T.va - T410.Imp.T2.va}, {G4.T.vb - T410.Imp.T2.vb}} = {{T410.Imp.R, -T410.Imp.X}, {T410.Imp.X, T410.Imp.R}} * {{T410.T1.ia}, {T410.T1.ib}} ($RES_SIM_354) (36) [SCAL] (1) G3.Exc.PSSLimiter.simplifiedExpr = (G3.Exc.Phase_Compensation2.bb[2:2] - G3.Exc.Phase_Compensation2.d * G3.Exc.Phase_Compensation2.a[2:2]) / (G3.Exc.Phase_Compensation2.a_end * G3.Exc.Phase_Compensation2.x_scaled) + G3.Exc.Phase_Compensation2.d * G3.Exc.Phase_Compensation2.u ($RES_SIM_180) (37) [SCAL] (1) $TEV_0 = time > 2.0 ($RES_EVT_826) (38) [SCAL] (1) T410.Tr.T1.ib = -T410.T2.ib * T410.n ($RES_SIM_356) (39) [SCAL] (1) $DER.G3.Exc.Phase_Compensation2.x_scaled[1] = (G3.Exc.Phase_Compensation2.a_end * G3.Exc.Phase_Compensation2.u - G3.Exc.Phase_Compensation2.a[2:2] * G3.Exc.Phase_Compensation2.x_scaled) / G3.Exc.Phase_Compensation2.a[1] ($RES_SIM_181) (40) [SCAL] (1) $TEV_1 = time < 2.07 ($RES_EVT_827) (41) [SCAL] (1) T410.Tr.T1.ia = -T410.T2.ia * T410.n ($RES_SIM_357) (42) [SCAL] (1) G3.Exc.PSSLimiter.y = homotopy(smooth(0, if $SEV_9 then G3.Exc.PSSLimiter.uMax else if $SEV_10 then G3.Exc.PSSLimiter.uMin else G3.Exc.PSSLimiter.simplifiedExpr), G3.Exc.PSSLimiter.simplifiedExpr) ($RES_SIM_182) (43) [SCAL] (1) $TEV_2 = $TEV_0 and $TEV_1 ($RES_EVT_828) (44) [SCAL] (1) T410.Imp.T2.vb * T410.n = L1011.T1.vb ($RES_SIM_358) (45) [SCAL] (1) $TEV_3 = time > 3.5 ($RES_EVT_829) (46) [SCAL] (1) (1.0 + T410.Imp.T2.va) * T410.n = 1.0 + L1011.T1.va ($RES_SIM_359) (47) [ARRY] (1) G3.Exc.Phase_Compensation1.x = G3.Exc.Phase_Compensation1.x_scaled / G3.Exc.Phase_Compensation1.a_end ($RES_SIM_185) (48) [SCAL] (1) G3.Exc.Phase_Compensation2.u = (G3.Exc.Phase_Compensation1.bb[2:2] - G3.Exc.Phase_Compensation1.d * G3.Exc.Phase_Compensation1.a[2:2]) / (G3.Exc.Phase_Compensation1.a_end * G3.Exc.Phase_Compensation1.x_scaled) + G3.Exc.Phase_Compensation1.d * G3.Exc.Phase_Compensation1.u ($RES_SIM_186) (49) [SCAL] (1) $DER.G3.Exc.Phase_Compensation1.x_scaled[1] = (G3.Exc.Phase_Compensation1.a_end * G3.Exc.Phase_Compensation1.u - G3.Exc.Phase_Compensation1.a[2:2] * G3.Exc.Phase_Compensation1.x_scaled) / G3.Exc.Phase_Compensation1.a[1] ($RES_SIM_187) (50) [ARRY] (1) G3.Exc.WashOut.x = G3.Exc.WashOut.x_scaled / G3.Exc.WashOut.a_end ($RES_SIM_188) (51) [SCAL] (1) (L78_1.L1.Imp.T1.ib + L78_1.L1.T1Adm.T2.ib) - L78_1.L1.T1.ib = 0.0 ($RES_SIM_440) (52) [SCAL] (1) G3.Exc.Phase_Compensation1.u = (G3.Exc.WashOut.bb[2:2] - G3.Exc.WashOut.d * G3.Exc.WashOut.a[2:2]) / (G3.Exc.WashOut.a_end * G3.Exc.WashOut.x_scaled) + G3.Exc.WashOut.d * G3.Exc.PSSGain.y ($RES_SIM_189) (53) [SCAL] (1) (L78_1.L1.Imp.T1.ia + L78_1.L1.T1Adm.T2.ia) - L78_1.L1.T1.ia = 0.0 ($RES_SIM_441) (54) [SCAL] (1) G3.Pg = -(G3.T.vb * G3.T.ib + (1.0 + G3.T.va) * G3.T.ia) ($RES_BND_741) (55) [SCAL] (1) L78_1.L2.T1.ib + L78_1.B3.T2.ib + L78_1.L1.T2.ib = 0.0 ($RES_SIM_442) (56) [SCAL] (1) G3.Qg = -(G3.T.vb * G3.T.ia - (1.0 + G3.T.va) * G3.T.ib) ($RES_BND_742) (57) [SCAL] (1) L78_1.L2.T1.ia + L78_1.B3.T2.ia + L78_1.L1.T2.ia = 0.0 ($RES_SIM_443) (58) [SCAL] (1) G3.online = $TEV_6 ($RES_BND_743) (59) [SCAL] (1) L78_2.T2.ib + L89_2.T1.ib + L89_1.T1.ib + L78_1.T2.ib = 0.0 ($RES_SIM_444) (60) [SCAL] (1) L78_2.T2.ia + L89_2.T1.ia + L89_1.T1.ia + L78_1.T2.ia = 0.0 ($RES_SIM_445) (61) [SCAL] (1) $DER.G1.delta = 314.1592653589793 * (G1.Exc.PSSGain.u - wref) ($RES_SIM_270) (62) [SCAL] (1) G3.efd = (G3.Rfd * G3.Efd) / G3.Ladu ($RES_BND_745) (63) [SCAL] (1) T410.T1.ib + G4.T.ib = 0.0 ($RES_SIM_446) (64) [SCAL] (1) $DER.G1.Exc.PSSGain.u = (0.5 / G1.H) * (G1.Pm - (G1.D * (G1.Exc.PSSGain.u - wref) + G1.Pe)) ($RES_SIM_271) (65) [SCAL] (1) T410.T1.ia + G4.T.ia = 0.0 ($RES_SIM_447) (66) [SCAL] (1) T311.T2.ib + G3.T.ib = 0.0 ($RES_SIM_448) (67) [SCAL] (1) G4.Pg = -(G4.T.vb * G4.T.ib + (1.0 + G4.T.va) * G4.T.ia) ($RES_BND_748) (68) [SCAL] (1) T311.T2.ia + G3.T.ia = 0.0 ($RES_SIM_449) (69) [SCAL] (1) G4.Qg = -(G4.T.vb * G4.T.ia - (1.0 + G4.T.va) * G4.T.ib) ($RES_BND_749) (70) [SCAL] (1) G1.Ifd = ((G1.lamfd - G1.lamad) * G1.Ladu) / G1.Lfd ($RES_SIM_276) (71) [SCAL] (1) G1.Pe = G1.Exc.PSSGain.u * (G1.lamad * G1.id - G1.lamaq * G1.iq) ($RES_SIM_277) (72) [-IF-] (2)if G1.online then (72) [----] [SCAL] (1) G1.id = ((((((G1.L2q * G1.L1q * G1.L1d * G1.lamfd * G1.Ladspp * G1.Exc.PSSGain.u * G1.ra + G1.Lfd * G1.L1q * G1.lam2q * G1.Laqspp * G1.Ldpp * G1.Exc.PSSGain.u ^ 2.0 * G1.L1d + G1.Lfd * G1.L2q * G1.lam1q * G1.Laqspp * G1.Ldpp * G1.Exc.PSSGain.u ^ 2.0 * G1.L1d + G1.Lfd * G1.L2q * G1.L1q * G1.vq * G1.Ldpp * G1.Exc.PSSGain.u * G1.L1d + G1.L2q * G1.L1q * G1.Lfd * G1.lam1d * G1.Ladspp * G1.Exc.PSSGain.u * G1.ra) - G1.L2q * G1.L1q * G1.L1d * G1.Lfd * G1.vd * G1.ra) / G1.L1q) / G1.L2q) / (G1.Lqpp * G1.Exc.PSSGain.u ^ 2.0 * G1.Ldpp + G1.ra ^ 2.0)) / G1.Lfd) / G1.L1d ($RES_SIM_279) (72) [----] [SCAL] (1) G1.iq = -((((((G1.Lfd * G1.ra * G1.L2q * G1.lam1q * G1.Laqspp * G1.Exc.PSSGain.u * G1.L1d + G1.Lfd * G1.ra * G1.L2q * G1.L1q * G1.vq * G1.L1d + G1.Lfd * G1.vd * G1.L2q * G1.L1q * G1.Lqpp * G1.Exc.PSSGain.u * G1.L1d + G1.Lfd * G1.ra * G1.L1q * G1.lam2q * G1.Laqspp * G1.Exc.PSSGain.u * G1.L1d) - (G1.lam1d * G1.Ladspp * G1.L2q * G1.L1q * G1.Lqpp * G1.Exc.PSSGain.u ^ 2.0 * G1.Lfd + G1.lamfd * G1.Ladspp * G1.L2q * G1.L1q * G1.Lqpp * G1.Exc.PSSGain.u ^ 2.0 * G1.L1d)) / G1.L1q) / G1.L2q) / G1.Lfd) / G1.L1d) / (G1.Lqpp * G1.Exc.PSSGain.u ^ 2.0 * G1.Ldpp + G1.ra ^ 2.0) ($RES_SIM_280) (72) [----] else (72) [----] [SCAL] (1) G1.id = 0.0 ($RES_SIM_281) (72) [----] [SCAL] (1) G1.iq = 0.0 ($RES_SIM_282) (72) [----] end if; (73) [SCAL] (1) $TEV_4 = $TEV_1 or $TEV_3 ($RES_EVT_830) (74) [SCAL] (1) $TEV_5 = time < G4.TripTime ($RES_EVT_831) (75) [SCAL] (1) $TEV_6 = time < G3.TripTime ($RES_EVT_832) (76) [SCAL] (1) $TEV_7 = time < G2.TripTime ($RES_EVT_833) (77) [ARRY] (2) {{T311.T1.ia - T311.Tr.T1.ia}, {T311.T1.ib - T311.Tr.T1.ib}} = {{0.0}, {0.0}} ($RES_SIM_363) (78) [SCAL] (1) $TEV_8 = time < G1.TripTime ($RES_EVT_834) (79) [ARRY] (2) {{T311.Imp.T1.va - T311.Imp.T2.va}, {T311.Imp.T1.vb - T311.Imp.T2.vb}} = {{T311.Imp.R, -T311.Imp.X}, {T311.Imp.X, T311.Imp.R}} * {{T311.T1.ia}, {T311.T1.ib}} ($RES_SIM_364) (80) [SCAL] (1) $SEV_0 = G4.Exc.PSSLimiter.simplifiedExpr > G4.Exc.PSSLimiter.uMax ($RES_EVT_835) (81) [SCAL] (1) $DER.G3.Exc.WashOut.x_scaled[1] = (G3.Exc.WashOut.a_end * G3.Exc.PSSGain.y - G3.Exc.WashOut.a[2:2] * G3.Exc.WashOut.x_scaled) / G3.Exc.WashOut.a[1] ($RES_SIM_190) (82) [SCAL] (1) $SEV_1 = G4.Exc.PSSLimiter.simplifiedExpr < G4.Exc.PSSLimiter.uMin ($RES_EVT_836) (83) [SCAL] (1) G3.Exc.PSSGain.y = G3.Exc.PSSGain.k * G3.Exc.PSSGain.u ($RES_SIM_191) (84) [SCAL] (1) T311.Tr.T1.ib = -T311.T2.ib * T311.n ($RES_SIM_366) (85) [SCAL] (1) G3.Exc.Limiter.simplifiedExpr = G3.Exc.Sum.k1 * G3.Exc.AVR.y + G3.Exc.Sum.k2 * G3.Exc.PSSLimiter.y ($RES_SIM_192) (86) [SCAL] (1) T311.Tr.T1.ia = -T311.T2.ia * T311.n ($RES_SIM_367) (87) [SCAL] (1) $SEV_3 = G4.Exc.Limiter.simplifiedExpr > G4.Exc.Limiter.uMax ($RES_EVT_838) (88) [ARRY] (1) G3.Exc.AVR.x = G3.Exc.AVR.x_scaled / G3.Exc.AVR.a_end ($RES_SIM_193) (89) [SCAL] (1) T311.Imp.T2.vb * T311.n = G3.T.vb ($RES_SIM_368) (90) [SCAL] (1) $SEV_4 = G4.Exc.Limiter.simplifiedExpr < G4.Exc.Limiter.uMin ($RES_EVT_839) (91) [SCAL] (1) G3.Exc.AVR.y = (G3.Exc.AVR.bb[2:2] - G3.Exc.AVR.d * G3.Exc.AVR.a[2:2]) / (G3.Exc.AVR.a_end * G3.Exc.AVR.x_scaled) + G3.Exc.AVR.d * G3.Exc.Verror.y ($RES_SIM_194) (92) [SCAL] (1) (1.0 + T311.Imp.T2.va) * T311.n = 1.0 + G3.T.va ($RES_SIM_369) (93) [SCAL] (1) $DER.G3.Exc.AVR.x_scaled[1] = (G3.Exc.AVR.a_end * G3.Exc.Verror.y - G3.Exc.AVR.a[2:2] * G3.Exc.AVR.x_scaled) / G3.Exc.AVR.a[1] ($RES_SIM_195) (94) [SCAL] (1) G3.Exc.Verror.y = G3.Exc.Verror.k1 * G3.Exc.u + G3.Exc.Verror.k2 * G3.Exc.Vref ($RES_SIM_196) (95) [SCAL] (1) G3.Efd = homotopy(smooth(0, if $SEV_12 then G3.Exc.Limiter.uMax else if $SEV_13 then G3.Exc.Limiter.uMin else G3.Exc.Limiter.simplifiedExpr), G3.Exc.Limiter.simplifiedExpr) ($RES_SIM_197) (96) [SCAL] (1) T26.T1.ib + G2.T.ib = 0.0 ($RES_SIM_450) (97) [SCAL] (1) G4.online = $TEV_5 ($RES_BND_750) (98) [SCAL] (1) T26.T1.ia + G2.T.ia = 0.0 ($RES_SIM_451) (99) [SCAL] (1) G1.wrl.wr.Hsum + G2.wrl.wr.Hsum + G3.wrl.wr.Hsum + G4.wrl.wr.Hsum + wrcon.wr.Hsum = 0.0 ($RES_SIM_452) (100) [SCAL] (1) G4.efd = (G4.Rfd * G4.Efd) / G4.Ladu ($RES_BND_752) (101) [SCAL] (1) G1.wrl.wr.Hwsum + G2.wrl.wr.Hwsum + G3.wrl.wr.Hwsum + G4.wrl.wr.Hwsum + wrcon.wr.Hwsum = 0.0 ($RES_SIM_453) (102) [SCAL] (1) T15.T1.ib + G1.T.ib = 0.0 ($RES_SIM_454) (103) [SCAL] (1) T15.T1.ia + G1.T.ia = 0.0 ($RES_SIM_455) (104) [SCAL] (1) sensorP9.T1.ib + C9.T.ib + L89_2.T2.ib + L89_1.T2.ib + L910.T1.ib = 0.0 ($RES_SIM_458) (105) [SCAL] (1) G1.lamaq = G1.Laqspp * ((G1.lam1q / G1.L1q + G1.lam2q / G1.L2q) - G1.id) ($RES_SIM_283) (106) [SCAL] (1) sensorP9.T1.ia + C9.T.ia + L89_2.T2.ia + L89_1.T2.ia + L910.T1.ia = 0.0 ($RES_SIM_459) (107) [SCAL] (1) G1.lamad = G1.Ladspp * ((G1.lamfd / G1.Lfd + G1.lam1d / G1.L1d) - G1.iq) ($RES_SIM_284) (108) [SCAL] (1) $DER.G1.lam2q = ((314.1592653589793 * (G1.lamaq - G1.lam2q)) / G1.L2q) * G1.R2q ($RES_SIM_285) (109) [SCAL] (1) $DER.G1.lam1q = ((314.1592653589793 * (G1.lamaq - G1.lam1q)) / G1.L1q) * G1.R1q ($RES_SIM_286) (110) [SCAL] (1) $DER.G1.lam1d = ((314.1592653589793 * (G1.lamad - G1.lam1d)) / G1.L1d) * G1.R1d ($RES_SIM_287) (111) [SCAL] (1) $DER.G1.lamfd = 314.1592653589793 * ((G1.Rfd * G1.Efd) / G1.Ladu + (G1.Rfd * (G1.lamad - G1.lamfd)) / G1.Lfd) ($RES_SIM_288) (112) [SCAL] (1) $SEV_6 = G4.Gov.Limiter.simplifiedExpr > G4.Gov.Limiter.uMax ($RES_EVT_841) (113) [SCAL] (1) $SEV_7 = G4.Gov.Limiter.simplifiedExpr < G4.Gov.Limiter.uMin ($RES_EVT_842) (114) [SCAL] (1) C7.Qg = -(sensorP7.T2.vb * C7.T.ia - (1.0 + sensorP7.T2.va) * C7.T.ib) ($RES_SIM_372) (115) [SCAL] (1) C7.Pg = -((1.0 + sensorP7.T2.va) * C7.T.ia + sensorP7.T2.vb * C7.T.ib) ($RES_SIM_373) (116) [SCAL] (1) $SEV_9 = G3.Exc.PSSLimiter.simplifiedExpr > G3.Exc.PSSLimiter.uMax ($RES_EVT_844) (117) [ARRY] (2) {{C7.T.ia}, {C7.T.ib}} = {{C7.G, -C7.B}, {C7.B, C7.G}} * {{1.0 + sensorP7.T2.va}, {sensorP7.T2.vb}} ($RES_SIM_374) (118) [SCAL] (1) $SEV_10 = G3.Exc.PSSLimiter.simplifiedExpr < G3.Exc.PSSLimiter.uMin ($RES_EVT_845) (119) [SCAL] (1) sensorP7.T1.ib = (L7.Pl * sensorP7.T2.vb - L7.Ql * (1.0 + sensorP7.T2.va)) / ((1.0 + sensorP7.T2.va) * (1.0 + sensorP7.T2.va) + sensorP7.T2.vb * sensorP7.T2.vb) ($RES_SIM_375) (120) [SCAL] (1) sensorP7.T1.ia = (L7.Pl * (1.0 + sensorP7.T2.va) + L7.Ql * sensorP7.T2.vb) / ((1.0 + sensorP7.T2.va) * (1.0 + sensorP7.T2.va) + sensorP7.T2.vb * sensorP7.T2.vb) ($RES_SIM_376) (121) [SCAL] (1) $SEV_12 = G3.Exc.Limiter.simplifiedExpr > G3.Exc.Limiter.uMax ($RES_EVT_847) (122) [SCAL] (1) L7.Ql = L7.Q0 * (L7.qI * (L7.V / L7.V0) + L7.qZ * (L7.V / L7.V0) ^ 2.0 + L7.qP) ($RES_SIM_377) (123) [SCAL] (1) $SEV_13 = G3.Exc.Limiter.simplifiedExpr < G3.Exc.Limiter.uMin ($RES_EVT_848) (124) [SCAL] (1) L7.Pl = L7.P0 * (L7.pI * (L7.V / L7.V0) + L7.pZ * (L7.V / L7.V0) ^ 2.0 + L7.pP) ($RES_SIM_378) (125) [ARRY] (2) sensorP7.PQ = {(1.0 + sensorP7.T2.va) * sensorP7.T1.ia + sensorP7.T2.vb * sensorP7.T1.ib, sensorP7.T2.vb * sensorP7.T1.ia - (1.0 + sensorP7.T2.va) * sensorP7.T1.ib} ($RES_SIM_379) (126) [SCAL] (1) L1011.T1.ib + L910.T2.ib + T410.T2.ib = 0.0 ($RES_SIM_460) (127) [SCAL] (1) L1011.T1.ia + L910.T2.ia + T410.T2.ia = 0.0 ($RES_SIM_461) (128) [ARRY] (1) G1.Exc.Phase_Compensation2.x = G1.Exc.Phase_Compensation2.x_scaled / G1.Exc.Phase_Compensation2.a_end ($RES_SIM_291) (129) [SCAL] (1) G1.Exc.PSSLimiter.simplifiedExpr = (G1.Exc.Phase_Compensation2.bb[2:2] - G1.Exc.Phase_Compensation2.d * G1.Exc.Phase_Compensation2.a[2:2]) / (G1.Exc.Phase_Compensation2.a_end * G1.Exc.Phase_Compensation2.x_scaled) + G1.Exc.Phase_Compensation2.d * G1.Exc.Phase_Compensation2.u ($RES_SIM_292) (130) [SCAL] (1) $DER.G1.Exc.Phase_Compensation2.x_scaled[1] = (G1.Exc.Phase_Compensation2.a_end * G1.Exc.Phase_Compensation2.u - G1.Exc.Phase_Compensation2.a[2:2] * G1.Exc.Phase_Compensation2.x_scaled) / G1.Exc.Phase_Compensation2.a[1] ($RES_SIM_293) (131) [SCAL] (1) G1.Exc.PSSLimiter.y = homotopy(smooth(0, if $SEV_27 then G1.Exc.PSSLimiter.uMax else if $SEV_28 then G1.Exc.PSSLimiter.uMin else G1.Exc.PSSLimiter.simplifiedExpr), G1.Exc.PSSLimiter.simplifiedExpr) ($RES_SIM_294) (132) [ARRY] (1) G1.Exc.Phase_Compensation1.x = G1.Exc.Phase_Compensation1.x_scaled / G1.Exc.Phase_Compensation1.a_end ($RES_SIM_297) (133) [SCAL] (1) G1.Exc.Phase_Compensation2.u = (G1.Exc.Phase_Compensation1.bb[2:2] - G1.Exc.Phase_Compensation1.d * G1.Exc.Phase_Compensation1.a[2:2]) / (G1.Exc.Phase_Compensation1.a_end * G1.Exc.Phase_Compensation1.x_scaled) + G1.Exc.Phase_Compensation1.d * G1.Exc.Phase_Compensation1.u ($RES_SIM_298) (134) [SCAL] (1) $DER.G1.Exc.Phase_Compensation1.x_scaled[1] = (G1.Exc.Phase_Compensation1.a_end * G1.Exc.Phase_Compensation1.u - G1.Exc.Phase_Compensation1.a[2:2] * G1.Exc.Phase_Compensation1.x_scaled) / G1.Exc.Phase_Compensation1.a[1] ($RES_SIM_299) (135) [SCAL] (1) $SEV_15 = G3.Gov.Limiter.simplifiedExpr > G3.Gov.Limiter.uMax ($RES_EVT_850) (136) [SCAL] (1) $SEV_16 = G3.Gov.Limiter.simplifiedExpr < G3.Gov.Limiter.uMin ($RES_EVT_851) (137) [SCAL] (1) $SEV_18 = G2.Exc.PSSLimiter.simplifiedExpr > G2.Exc.PSSLimiter.uMax ($RES_EVT_853) (138) [SCAL] (1) $SEV_19 = G2.Exc.PSSLimiter.simplifiedExpr < G2.Exc.PSSLimiter.uMin ($RES_EVT_854) (139) [SCAL] (1) $SEV_21 = G2.Exc.Limiter.simplifiedExpr > G2.Exc.Limiter.uMax ($RES_EVT_856) (140) [ARRY] (2) {{L67.T2.ia}, {L67.T2.ib}} = {{L67.G, -L67.B}, {L67.B, L67.G}} / 2.0 * {{1.0 + sensorP7.T2.va}, {sensorP7.T2.vb}} - {{L67.R, L67.X}, {-L67.X, L67.R}} / (L67.R ^ 2.0 + L67.X ^ 2.0) * {{L56.T2.va - sensorP7.T2.va}, {L56.T2.vb - sensorP7.T2.vb}} ($RES_SIM_386) (141) [SCAL] (1) $SEV_22 = G2.Exc.Limiter.simplifiedExpr < G2.Exc.Limiter.uMin ($RES_EVT_857) (142) [ARRY] (2) {{L67.T1.ia}, {L67.T1.ib}} = {{L67.G, -L67.B}, {L67.B, L67.G}} / 2.0 * {{1.0 + L56.T2.va}, {L56.T2.vb}} + {{L67.R, L67.X}, {-L67.X, L67.R}} / (L67.R ^ 2.0 + L67.X ^ 2.0) * {{L56.T2.va - sensorP7.T2.va}, {L56.T2.vb - sensorP7.T2.vb}} ($RES_SIM_387) (143) [SCAL] (1) $SEV_24 = G2.Gov.Limiter.simplifiedExpr > G2.Gov.Limiter.uMax ($RES_EVT_859) (144) [SCAL] (1) L1011.T2.ib + T311.T1.ib = 0.0 ($RES_SIM_474) (145) [SCAL] (1) L1011.T2.ia + T311.T1.ia = 0.0 ($RES_SIM_475) (146) [SCAL] (1) sensorP7.T1.ib + C7.T.ib + L78_2.T1.ib + L78_1.T1.ib + L67.T2.ib = 0.0 ($RES_SIM_478) (147) [SCAL] (1) sensorP7.T1.ia + C7.T.ia + L78_2.T1.ia + L78_1.T1.ia + L67.T2.ia = 0.0 ($RES_SIM_479) (148) [SCAL] (1) $FUN_5 = sin(G2.delta) ($RES_$AUX_799) (149) [SCAL] (1) $SEV_25 = G2.Gov.Limiter.simplifiedExpr < G2.Gov.Limiter.uMin ($RES_EVT_860) (150) [ARRY] (2) {{L56.T2.ia}, {L56.T2.ib}} = {{L56.G, -L56.B}, {L56.B, L56.G}} / 2.0 * {{1.0 + L56.T2.va}, {L56.T2.vb}} - {{L56.R, L56.X}, {-L56.X, L56.R}} / (L56.R ^ 2.0 + L56.X ^ 2.0) * {{T15.Tr.T2.va - L56.T2.va}, {T15.Tr.T2.vb - L56.T2.vb}} ($RES_SIM_390) (151) [SCAL] (1) $FUN_6 = cos(G2.delta) ($RES_$AUX_798) (152) [ARRY] (2) {{L56.T1.ia}, {L56.T1.ib}} = {{L56.G, -L56.B}, {L56.B, L56.G}} / 2.0 * {{1.0 + T15.Tr.T2.va}, {T15.Tr.T2.vb}} + {{L56.R, L56.X}, {-L56.X, L56.R}} / (L56.R ^ 2.0 + L56.X ^ 2.0) * {{T15.Tr.T2.va - L56.T2.va}, {T15.Tr.T2.vb - L56.T2.vb}} ($RES_SIM_391) (153) [SCAL] (1) G3.Exc.u = sqrt(G3.vd ^ 2.0 + G3.vq ^ 2.0) ($RES_$AUX_797) (154) [SCAL] (1) $SEV_27 = G1.Exc.PSSLimiter.simplifiedExpr > G1.Exc.PSSLimiter.uMax ($RES_EVT_862) (155) [SCAL] (1) $FUN_8 = sin(G3.delta) ($RES_$AUX_796) (156) [SCAL] (1) $SEV_28 = G1.Exc.PSSLimiter.simplifiedExpr < G1.Exc.PSSLimiter.uMin ($RES_EVT_863) (157) [SCAL] (1) $FUN_9 = cos(G3.delta) ($RES_$AUX_795) (158) [SCAL] (1) G4.Exc.u = sqrt(G4.vd ^ 2.0 + G4.vq ^ 2.0) ($RES_$AUX_794) (159) [SCAL] (1) $SEV_30 = G1.Exc.Limiter.simplifiedExpr > G1.Exc.Limiter.uMax ($RES_EVT_865) (160) [ARRY] (2) {{T26.T1.ia - T26.Tr.T1.ia}, {T26.T1.ib - T26.Tr.T1.ib}} = {{0.0}, {0.0}} ($RES_SIM_395) (161) [SCAL] (1) $FUN_11 = sin(G4.delta) ($RES_$AUX_793) (162) [SCAL] (1) $SEV_31 = G1.Exc.Limiter.simplifiedExpr < G1.Exc.Limiter.uMin ($RES_EVT_866) (163) [ARRY] (2) {{G2.T.va - T26.Imp.T2.va}, {G2.T.vb - T26.Imp.T2.vb}} = {{T26.Imp.R, -T26.Imp.X}, {T26.Imp.X, T26.Imp.R}} * {{T26.T1.ia}, {T26.T1.ib}} ($RES_SIM_396) (164) [SCAL] (1) $FUN_12 = cos(G4.delta) ($RES_$AUX_792) (165) [SCAL] (1) G4.Iarm = sqrt(G4.iq ^ 2.0 + G4.id ^ 2.0) ($RES_$AUX_791) (166) [SCAL] (1) $SEV_33 = G1.Gov.Limiter.simplifiedExpr > G1.Gov.Limiter.uMax ($RES_EVT_868) (167) [SCAL] (1) T26.Tr.T1.ib = -T26.T2.ib * T26.n ($RES_SIM_398) (168) [SCAL] (1) G4.theta = atan2(G4.T.vb, 1.0 + G4.T.va) ($RES_$AUX_790) (169) [SCAL] (1) $SEV_34 = G1.Gov.Limiter.simplifiedExpr < G1.Gov.Limiter.uMin ($RES_EVT_869) (170) [SCAL] (1) T26.Tr.T1.ia = -T26.T2.ia * T26.n ($RES_SIM_399) (171) [SCAL] (1) L56.T2.ib + L67.T1.ib + T26.T2.ib = 0.0 ($RES_SIM_480) (172) [SCAL] (1) L56.T2.ia + L67.T1.ia + T26.T2.ia = 0.0 ($RES_SIM_481) (173) [SCAL] (1) G4.V = sqrt(G4.T.vb * G4.T.vb + (1.0 + G4.T.va) * (1.0 + G4.T.va)) ($RES_$AUX_789) (174) [SCAL] (1) G3.Iarm = sqrt(G3.iq ^ 2.0 + G3.id ^ 2.0) ($RES_$AUX_788) (175) [SCAL] (1) G3.theta = atan2(G3.T.vb, 1.0 + G3.T.va) ($RES_$AUX_787) (176) [SCAL] (1) G3.V = sqrt(G3.T.vb * G3.T.vb + (1.0 + G3.T.va) * (1.0 + G3.T.va)) ($RES_$AUX_786) (177) [SCAL] (1) G2.Iarm = sqrt(G2.iq ^ 2.0 + G2.id ^ 2.0) ($RES_$AUX_785) (178) [SCAL] (1) G2.theta = atan2(G2.T.vb, 1.0 + G2.T.va) ($RES_$AUX_784) (179) [SCAL] (1) G2.V = sqrt(G2.T.vb * G2.T.vb + (1.0 + G2.T.va) * (1.0 + G2.T.va)) ($RES_$AUX_783) (180) [SCAL] (1) G1.Iarm = sqrt(G1.iq ^ 2.0 + G1.id ^ 2.0) ($RES_$AUX_782) (181) [SCAL] (1) G1.theta = atan2(G1.T.vb, 1.0 + G1.T.va) ($RES_$AUX_781) (182) [SCAL] (1) G1.V = sqrt(G1.T.vb * G1.T.vb + (1.0 + G1.T.va) * (1.0 + G1.T.va)) ($RES_$AUX_780) (183) [SCAL] (1) L56.T1.ib + T15.T2.ib = 0.0 ($RES_SIM_494) (184) [SCAL] (1) L56.T1.ia + T15.T2.ia = 0.0 ($RES_SIM_495) (185) [SCAL] (1) 0.017453292519943295 * bus8.thetadeg = atan2(L78_1.B2.T2.vb, 1.0 + L78_1.B2.T2.va) ($RES_$AUX_779) (186) [SCAL] (1) V = sqrt(L78_1.B2.T2.vb * L78_1.B2.T2.vb + (1.0 + L78_1.B2.T2.va) * (1.0 + L78_1.B2.T2.va)) ($RES_$AUX_778) (187) [SCAL] (1) L9.theta = atan2(sensorP9.T2.vb, 1.0 + sensorP9.T2.va) ($RES_$AUX_777) (188) [SCAL] (1) L9.V = sqrt(sensorP9.T2.vb * sensorP9.T2.vb + (1.0 + sensorP9.T2.va) * (1.0 + sensorP9.T2.va)) ($RES_$AUX_776) (189) [SCAL] (1) 0.017453292519943295 * bus9.thetadeg = atan2(sensorP9.T2.vb, 1.0 + sensorP9.T2.va) ($RES_$AUX_775) (190) [SCAL] (1) bus9.V = sqrt(sensorP9.T2.vb * sensorP9.T2.vb + (1.0 + sensorP9.T2.va) * (1.0 + sensorP9.T2.va)) ($RES_$AUX_774) (191) [SCAL] (1) 0.017453292519943295 * bus10.thetadeg = atan2(L1011.T1.vb, 1.0 + L1011.T1.va) ($RES_$AUX_773) (192) [SCAL] (1) bus10.V = sqrt(L1011.T1.vb * L1011.T1.vb + (1.0 + L1011.T1.va) * (1.0 + L1011.T1.va)) ($RES_$AUX_772) (193) [SCAL] (1) 0.017453292519943295 * bus11.thetadeg = atan2(T311.Imp.T1.vb, 1.0 + T311.Imp.T1.va) ($RES_$AUX_771) (194) [SCAL] (1) bus11.V = sqrt(T311.Imp.T1.vb * T311.Imp.T1.vb + (1.0 + T311.Imp.T1.va) * (1.0 + T311.Imp.T1.va)) ($RES_$AUX_770) (195) [SCAL] (1) 0.017453292519943295 * bus4.thetadeg = atan2(G4.T.vb, 1.0 + G4.T.va) ($RES_$AUX_769) (196) [SCAL] (1) bus4.V = sqrt(G4.T.vb * G4.T.vb + (1.0 + G4.T.va) * (1.0 + G4.T.va)) ($RES_$AUX_768) (197) [SCAL] (1) 0.017453292519943295 * bus3.thetadeg = atan2(G3.T.vb, 1.0 + G3.T.va) ($RES_$AUX_767) (198) [SCAL] (1) bus3.V = sqrt(G3.T.vb * G3.T.vb + (1.0 + G3.T.va) * (1.0 + G3.T.va)) ($RES_$AUX_766) (199) [SCAL] (1) L7.theta = atan2(sensorP7.T2.vb, 1.0 + sensorP7.T2.va) ($RES_$AUX_765) (200) [SCAL] (1) L7.V = sqrt(sensorP7.T2.vb * sensorP7.T2.vb + (1.0 + sensorP7.T2.va) * (1.0 + sensorP7.T2.va)) ($RES_$AUX_764) (201) [SCAL] (1) 0.017453292519943295 * bus7.thetadeg = atan2(sensorP7.T2.vb, 1.0 + sensorP7.T2.va) ($RES_$AUX_763) (202) [SCAL] (1) bus7.V = sqrt(sensorP7.T2.vb * sensorP7.T2.vb + (1.0 + sensorP7.T2.va) * (1.0 + sensorP7.T2.va)) ($RES_$AUX_762) (203) [SCAL] (1) 0.017453292519943295 * bus6.thetadeg = atan2(L56.T2.vb, 1.0 + L56.T2.va) ($RES_$AUX_761) (204) [SCAL] (1) bus6.V = sqrt(L56.T2.vb * L56.T2.vb + (1.0 + L56.T2.va) * (1.0 + L56.T2.va)) ($RES_$AUX_760) (205) [SCAL] (1) wref = wrcon.wr.Hwsum / wrcon.wr.Hsum ($RES_SIM_58) (206) [ARRY] (2) {{1.0 + G4.T.va}, {G4.T.vb}} = {{-$FUN_11, $FUN_12}, {$FUN_12, $FUN_11}} * ({{G4.vd}, {G4.vq}} + {{G4.rt, -G4.xt}, {G4.xt, G4.rt}} * {{G4.id}, {G4.iq}}) ($RES_SIM_100) (207) [ARRY] (2) {{G4.T.ia}, {G4.T.ib}} = -0.01 .* G4.Sbase .* ({{-$FUN_11, $FUN_12}, {$FUN_12, $FUN_11}} * {{G4.id}, {G4.iq}}) ($RES_SIM_101) (208) [SCAL] (1) 0.017453292519943295 * bus5.thetadeg = atan2(T15.Tr.T2.vb, 1.0 + T15.Tr.T2.va) ($RES_$AUX_759) (209) [SCAL] (1) $DER.G4.delta = 314.1592653589793 * (G4.Exc.PSSGain.u - wref) ($RES_SIM_102) (210) [SCAL] (1) bus5.V = sqrt(T15.Tr.T2.vb * T15.Tr.T2.vb + (1.0 + T15.Tr.T2.va) * (1.0 + T15.Tr.T2.va)) ($RES_$AUX_758) (211) [SCAL] (1) $DER.G4.Exc.PSSGain.u = (0.5 / G4.H) * (G4.Pm - (G4.D * (G4.Exc.PSSGain.u - wref) + G4.Pe)) ($RES_SIM_103) (212) [SCAL] (1) 0.017453292519943295 * bus2.thetadeg = atan2(G2.T.vb, 1.0 + G2.T.va) ($RES_$AUX_757) (213) [SCAL] (1) bus2.V = sqrt(G2.T.vb * G2.T.vb + (1.0 + G2.T.va) * (1.0 + G2.T.va)) ($RES_$AUX_756) (214) [SCAL] (1) 0.017453292519943295 * bus1.thetadeg = atan2(G1.T.vb, 1.0 + G1.T.va) ($RES_$AUX_755) (215) [SCAL] (1) bus1.V = sqrt(G1.T.vb * G1.T.vb + (1.0 + G1.T.va) * (1.0 + G1.T.va)) ($RES_$AUX_754) (216) [SCAL] (1) G4.Ifd = ((G4.lamfd - G4.lamad) * G4.Ladu) / G4.Lfd ($RES_SIM_108) (217) [SCAL] (1) G4.Pe = G4.Exc.PSSGain.u * (G4.lamad * G4.id - G4.lamaq * G4.iq) ($RES_SIM_109) (218) [ARRY] (2) {{-L78_1.FaultImp.T2.ia}, {-L78_1.FaultImp.T2.ib}} = -{{L78_1.B3.T2.ia}, {L78_1.B3.T2.ib}} ($RES_SIM_61) (219) [-IF-] (2)if L78_1.B3.closed then (219) [----] [ARRY] (2) {{L78_1.FaultImp.T2.va - L78_1.L1.Imp.T2.va}, {L78_1.FaultImp.T2.vb - L78_1.L1.Imp.T2.vb}} = L78_1.B3.small * {{1.0, -1.0}, {1.0, 1.0}} * {{-L78_1.FaultImp.T2.ia}, {-L78_1.FaultImp.T2.ib}} ($RES_SIM_63) (219) [----] else (219) [----] [ARRY] (2) {{-L78_1.FaultImp.T2.ia}, {-L78_1.FaultImp.T2.ib}} = L78_1.B3.small * {{1.0, -1.0}, {1.0, 1.0}} * {{L78_1.FaultImp.T2.va - L78_1.L1.Imp.T2.va}, {L78_1.FaultImp.T2.vb - L78_1.L1.Imp.T2.vb}} ($RES_SIM_64) (219) [----] end if; (220) [SCAL] (1) L78_1.B3.closed = $TEV_2 ($RES_SIM_65) (221) [ARRY] (2) {{L78_1.FaultImp.T1.ia + L78_1.FaultImp.T2.ia}, {L78_1.FaultImp.T1.ib + L78_1.FaultImp.T2.ib}} = {{0.0}, {0.0}} ($RES_SIM_66) (222) [ARRY] (2) {{(-1.0) - L78_1.FaultImp.T2.va}, {-L78_1.FaultImp.T2.vb}} = {{L78_1.FaultImp.R, -L78_1.FaultImp.X}, {L78_1.FaultImp.X, L78_1.FaultImp.R}} * {{L78_1.FaultImp.T1.ia}, {L78_1.FaultImp.T1.ib}} ($RES_SIM_67) (223) [ARRY] (2) {{-L78_1.L2.T2.ia}, {-L78_1.L2.T2.ib}} = -{{L78_1.T2.ia}, {L78_1.T2.ib}} ($RES_SIM_68) (224) [-IF-] (2)if L78_1.B2.closed then (224) [----] [ARRY] (2) {{L78_1.B2.T1.va - L78_1.B2.T2.va}, {L78_1.B2.T1.vb - L78_1.B2.T2.vb}} = L78_1.B2.small * {{1.0, -1.0}, {1.0, 1.0}} * {{-L78_1.L2.T2.ia}, {-L78_1.L2.T2.ib}} ($RES_SIM_70) (224) [----] else (224) [----] [ARRY] (2) {{-L78_1.L2.T2.ia}, {-L78_1.L2.T2.ib}} = L78_1.B2.small * {{1.0, -1.0}, {1.0, 1.0}} * {{L78_1.B2.T1.va - L78_1.B2.T2.va}, {L78_1.B2.T1.vb - L78_1.B2.T2.vb}} ($RES_SIM_71) (224) [----] end if; (225) [-IF-] (2)if G4.online then (225) [----] [SCAL] (1) G4.id = ((((((G4.L2q * G4.L1q * G4.L1d * G4.lamfd * G4.Ladspp * G4.Exc.PSSGain.u * G4.ra + G4.Lfd * G4.L1q * G4.lam2q * G4.Laqspp * G4.Ldpp * G4.Exc.PSSGain.u ^ 2.0 * G4.L1d + G4.Lfd * G4.L2q * G4.lam1q * G4.Laqspp * G4.Ldpp * G4.Exc.PSSGain.u ^ 2.0 * G4.L1d + G4.Lfd * G4.L2q * G4.L1q * G4.vq * G4.Ldpp * G4.Exc.PSSGain.u * G4.L1d + G4.L2q * G4.L1q * G4.Lfd * G4.lam1d * G4.Ladspp * G4.Exc.PSSGain.u * G4.ra) - G4.L2q * G4.L1q * G4.L1d * G4.Lfd * G4.vd * G4.ra) / G4.L1q) / G4.L2q) / (G4.Lqpp * G4.Exc.PSSGain.u ^ 2.0 * G4.Ldpp + G4.ra ^ 2.0)) / G4.Lfd) / G4.L1d ($RES_SIM_111) (225) [----] [SCAL] (1) G4.iq = -((((((G4.Lfd * G4.ra * G4.L2q * G4.lam1q * G4.Laqspp * G4.Exc.PSSGain.u * G4.L1d + G4.Lfd * G4.ra * G4.L2q * G4.L1q * G4.vq * G4.L1d + G4.Lfd * G4.vd * G4.L2q * G4.L1q * G4.Lqpp * G4.Exc.PSSGain.u * G4.L1d + G4.Lfd * G4.ra * G4.L1q * G4.lam2q * G4.Laqspp * G4.Exc.PSSGain.u * G4.L1d) - (G4.lam1d * G4.Ladspp * G4.L2q * G4.L1q * G4.Lqpp * G4.Exc.PSSGain.u ^ 2.0 * G4.Lfd + G4.lamfd * G4.Ladspp * G4.L2q * G4.L1q * G4.Lqpp * G4.Exc.PSSGain.u ^ 2.0 * G4.L1d)) / G4.L1q) / G4.L2q) / G4.Lfd) / G4.L1d) / (G4.Lqpp * G4.Exc.PSSGain.u ^ 2.0 * G4.Ldpp + G4.ra ^ 2.0) ($RES_SIM_112) (225) [----] else (225) [----] [SCAL] (1) G4.id = 0.0 ($RES_SIM_113) (225) [----] [SCAL] (1) G4.iq = 0.0 ($RES_SIM_114) (225) [----] end if; (226) [SCAL] (1) G4.lamaq = G4.Laqspp * ((G4.lam1q / G4.L1q + G4.lam2q / G4.L2q) - G4.id) ($RES_SIM_115) (227) [SCAL] (1) G4.lamad = G4.Ladspp * ((G4.lamfd / G4.Lfd + G4.lam1d / G4.L1d) - G4.iq) ($RES_SIM_116) (228) [SCAL] (1) $DER.G4.lam2q = ((314.1592653589793 * (G4.lamaq - G4.lam2q)) / G4.L2q) * G4.R2q ($RES_SIM_117) (229) [SCAL] (1) $DER.G4.lam1q = ((314.1592653589793 * (G4.lamaq - G4.lam1q)) / G4.L1q) * G4.R1q ($RES_SIM_118) (230) [SCAL] (1) $DER.G4.lam1d = ((314.1592653589793 * (G4.lamad - G4.lam1d)) / G4.L1d) * G4.R1d ($RES_SIM_119) (231) [SCAL] (1) L78_1.B2.closed = $TEV_4 ($RES_SIM_72) (232) [ARRY] (2) {{L78_1.T1.ia}, {L78_1.T1.ib}} = -{{-L78_1.L1.T1.ia}, {-L78_1.L1.T1.ib}} ($RES_SIM_73) (233) [SCAL] (1) G3.Gov.Limiter.simplifiedExpr = G3.Gov.PmAdd.k1 * G3.Gov.TF.y + G3.Gov.PmAdd.k2 * G3.Gov.Pm0 ($RES_SIM_202) (234) [-IF-] (2)if L78_1.B1.closed then (234) [----] [ARRY] (2) {{sensorP7.T2.va - L78_1.B1.T2.va}, {sensorP7.T2.vb - L78_1.B1.T2.vb}} = L78_1.B1.small * {{1.0, -1.0}, {1.0, 1.0}} * {{L78_1.T1.ia}, {L78_1.T1.ib}} ($RES_SIM_75) (234) [----] else (234) [----] [ARRY] (2) {{L78_1.T1.ia}, {L78_1.T1.ib}} = L78_1.B1.small * {{1.0, -1.0}, {1.0, 1.0}} * {{sensorP7.T2.va - L78_1.B1.T2.va}, {sensorP7.T2.vb - L78_1.B1.T2.vb}} ($RES_SIM_76) (234) [----] end if; (235) [ARRY] (1) G3.Gov.TF.x = G3.Gov.TF.x_scaled / G3.Gov.TF.a_end ($RES_SIM_203) (236) [SCAL] (1) G3.Gov.TF.y = (G3.Gov.TF.bb[2:2] - G3.Gov.TF.d * G3.Gov.TF.a[2:2]) / (G3.Gov.TF.a_end * G3.Gov.TF.x_scaled) + G3.Gov.TF.d * G3.Gov.werror.y ($RES_SIM_204) (237) [SCAL] (1) L78_1.B1.closed = $TEV_4 ($RES_SIM_77) (238) [SCAL] (1) $DER.G3.Gov.TF.x_scaled[1] = (G3.Gov.TF.a_end * G3.Gov.werror.y - G3.Gov.TF.a[2:2] * G3.Gov.TF.x_scaled) / G3.Gov.TF.a[1] ($RES_SIM_205) (239) [SCAL] (1) G3.Gov.werror.y = G3.Gov.werror.k1 * G3.Exc.PSSGain.u + G3.Gov.werror.k2 * G3.Gov.wref ($RES_SIM_206) (240) [SCAL] (1) G3.Pm = homotopy(smooth(0, if $SEV_15 then G3.Gov.Limiter.uMax else if $SEV_16 then G3.Gov.Limiter.uMin else G3.Gov.Limiter.simplifiedExpr), G3.Gov.Limiter.simplifiedExpr) ($RES_SIM_207) (241) [SCAL] (1) $DER.G4.lamfd = 314.1592653589793 * ((G4.Rfd * G4.Efd) / G4.Ladu + (G4.Rfd * (G4.lamad - G4.lamfd)) / G4.Lfd) ($RES_SIM_120) (242) [ARRY] (1) G4.Exc.Phase_Compensation2.x = G4.Exc.Phase_Compensation2.x_scaled / G4.Exc.Phase_Compensation2.a_end ($RES_SIM_123) (243) [SCAL] (1) G4.Exc.PSSLimiter.simplifiedExpr = (G4.Exc.Phase_Compensation2.bb[2:2] - G4.Exc.Phase_Compensation2.d * G4.Exc.Phase_Compensation2.a[2:2]) / (G4.Exc.Phase_Compensation2.a_end * G4.Exc.Phase_Compensation2.x_scaled) + G4.Exc.Phase_Compensation2.d * G4.Exc.Phase_Compensation2.u ($RES_SIM_124) (244) [SCAL] (1) $DER.G4.Exc.Phase_Compensation2.x_scaled[1] = (G4.Exc.Phase_Compensation2.a_end * G4.Exc.Phase_Compensation2.u - G4.Exc.Phase_Compensation2.a[2:2] * G4.Exc.Phase_Compensation2.x_scaled) / G4.Exc.Phase_Compensation2.a[1] ($RES_SIM_125) (245) [SCAL] (1) G4.Exc.PSSLimiter.y = homotopy(smooth(0, if $SEV_0 then G4.Exc.PSSLimiter.uMax else if $SEV_1 then G4.Exc.PSSLimiter.uMin else G4.Exc.PSSLimiter.simplifiedExpr), G4.Exc.PSSLimiter.simplifiedExpr) ($RES_SIM_126) (246) [ARRY] (1) G4.Exc.Phase_Compensation1.x = G4.Exc.Phase_Compensation1.x_scaled / G4.Exc.Phase_Compensation1.a_end ($RES_SIM_129) (247) [SCAL] (1) G2.wrl.wr.Hsum = if G2.online then G2.H * (0.01 * G2.Sbase) else 0.0 ($RES_SIM_210) (248) [ARRY] (2) {{L78_1.L2.T1Adm.T1.ia + L78_1.L2.T1Adm.T2.ia}, {L78_1.L2.T1Adm.T1.ib + L78_1.L2.T1Adm.T2.ib}} = {{0.0}, {0.0}} ($RES_SIM_82) (249) [SCAL] (1) G2.wrl.wr.Hwsum = if G2.online then G2.Exc.PSSGain.u * G2.H * (0.01 * G2.Sbase) else 0.0 ($RES_SIM_211) (250) [ARRY] (2) {{L78_1.L2.T1Adm.T1.ia}, {L78_1.L2.T1Adm.T1.ib}} = {{L78_1.L2.T1Adm.G, -L78_1.L2.T1Adm.B}, {L78_1.L2.T1Adm.B, L78_1.L2.T1Adm.G}} * {{-(1.0 + L78_1.L1.Imp.T2.va)}, {-L78_1.L1.Imp.T2.vb}} ($RES_SIM_83) (251) [ARRY] (2) {{1.0 + G2.T.va}, {G2.T.vb}} = {{-$FUN_5, $FUN_6}, {$FUN_6, $FUN_5}} * ({{G2.vd}, {G2.vq}} + {{G2.rt, -G2.xt}, {G2.xt, G2.rt}} * {{G2.id}, {G2.iq}}) ($RES_SIM_212) (252) [ARRY] (2) {{L78_1.L2.T2Adm.T1.ia + L78_1.L2.T2Adm.T2.ia}, {L78_1.L2.T2Adm.T1.ib + L78_1.L2.T2Adm.T2.ib}} = {{0.0}, {0.0}} ($RES_SIM_84) (253) [ARRY] (2) {{G2.T.ia}, {G2.T.ib}} = -0.01 .* G2.Sbase .* ({{-$FUN_5, $FUN_6}, {$FUN_6, $FUN_5}} * {{G2.id}, {G2.iq}}) ($RES_SIM_213) (254) [ARRY] (2) {{L78_1.L2.T2Adm.T1.ia}, {L78_1.L2.T2Adm.T1.ib}} = {{L78_1.L2.T2Adm.G, -L78_1.L2.T2Adm.B}, {L78_1.L2.T2Adm.B, L78_1.L2.T2Adm.G}} * {{-(1.0 + L78_1.B2.T1.va)}, {-L78_1.B2.T1.vb}} ($RES_SIM_85) (255) [SCAL] (1) $DER.G2.delta = 314.1592653589793 * (G2.Exc.PSSGain.u - wref) ($RES_SIM_214) (256) [ARRY] (2) {{L78_1.L2.Imp.T1.ia + L78_1.L2.Imp.T2.ia}, {L78_1.L2.Imp.T1.ib + L78_1.L2.Imp.T2.ib}} = {{0.0}, {0.0}} ($RES_SIM_86) (257) [SCAL] (1) $DER.G2.Exc.PSSGain.u = (0.5 / G2.H) * (G2.Pm - (G2.D * (G2.Exc.PSSGain.u - wref) + G2.Pe)) ($RES_SIM_215) (258) [ARRY] (2) {{L78_1.L1.Imp.T2.va - L78_1.B2.T1.va}, {L78_1.L1.Imp.T2.vb - L78_1.B2.T1.vb}} = {{L78_1.L2.Imp.R, -L78_1.L2.Imp.X}, {L78_1.L2.Imp.X, L78_1.L2.Imp.R}} * {{L78_1.L2.Imp.T1.ia}, {L78_1.L2.Imp.T1.ib}} ($RES_SIM_87) (259) [ARRY] (1) G1.Exc.WashOut.x = G1.Exc.WashOut.x_scaled / G1.Exc.WashOut.a_end ($RES_SIM_300) (260) [SCAL] (1) G1.Exc.Phase_Compensation1.u = (G1.Exc.WashOut.bb[2:2] - G1.Exc.WashOut.d * G1.Exc.WashOut.a[2:2]) / (G1.Exc.WashOut.a_end * G1.Exc.WashOut.x_scaled) + G1.Exc.WashOut.d * G1.Exc.PSSGain.y ($RES_SIM_301) (261) [SCAL] (1) $DER.G1.Exc.WashOut.x_scaled[1] = (G1.Exc.WashOut.a_end * G1.Exc.PSSGain.y - G1.Exc.WashOut.a[2:2] * G1.Exc.WashOut.x_scaled) / G1.Exc.WashOut.a[1] ($RES_SIM_302) (262) [SCAL] (1) G1.Exc.PSSGain.y = G1.Exc.PSSGain.k * G1.Exc.PSSGain.u ($RES_SIM_303) (263) [SCAL] (1) G1.Exc.Limiter.simplifiedExpr = G1.Exc.Sum.k1 * G1.Exc.AVR.y + G1.Exc.Sum.k2 * G1.Exc.PSSLimiter.y ($RES_SIM_304) (264) [ARRY] (1) G1.Exc.AVR.x = G1.Exc.AVR.x_scaled / G1.Exc.AVR.a_end ($RES_SIM_305) (265) [SCAL] (1) G4.Exc.Phase_Compensation2.u = (G4.Exc.Phase_Compensation1.bb[2:2] - G4.Exc.Phase_Compensation1.d * G4.Exc.Phase_Compensation1.a[2:2]) / (G4.Exc.Phase_Compensation1.a_end * G4.Exc.Phase_Compensation1.x_scaled) + G4.Exc.Phase_Compensation1.d * G4.Exc.Phase_Compensation1.u ($RES_SIM_130) (266) [SCAL] (1) G1.Exc.AVR.y = (G1.Exc.AVR.bb[2:2] - G1.Exc.AVR.d * G1.Exc.AVR.a[2:2]) / (G1.Exc.AVR.a_end * G1.Exc.AVR.x_scaled) + G1.Exc.AVR.d * G1.Exc.Verror.y ($RES_SIM_306) (267) [SCAL] (1) $DER.G4.Exc.Phase_Compensation1.x_scaled[1] = (G4.Exc.Phase_Compensation1.a_end * G4.Exc.Phase_Compensation1.u - G4.Exc.Phase_Compensation1.a[2:2] * G4.Exc.Phase_Compensation1.x_scaled) / G4.Exc.Phase_Compensation1.a[1] ($RES_SIM_131) (268) [SCAL] (1) $DER.G1.Exc.AVR.x_scaled[1] = (G1.Exc.AVR.a_end * G1.Exc.Verror.y - G1.Exc.AVR.a[2:2] * G1.Exc.AVR.x_scaled) / G1.Exc.AVR.a[1] ($RES_SIM_307) (269) [ARRY] (1) G4.Exc.WashOut.x = G4.Exc.WashOut.x_scaled / G4.Exc.WashOut.a_end ($RES_SIM_132) (270) [SCAL] (1) G1.Exc.Verror.y = G1.Exc.Verror.k1 * G1.Exc.u + G1.Exc.Verror.k2 * G1.Exc.Vref ($RES_SIM_308) (271) [SCAL] (1) G4.Exc.Phase_Compensation1.u = (G4.Exc.WashOut.bb[2:2] - G4.Exc.WashOut.d * G4.Exc.WashOut.a[2:2]) / (G4.Exc.WashOut.a_end * G4.Exc.WashOut.x_scaled) + G4.Exc.WashOut.d * G4.Exc.PSSGain.y ($RES_SIM_133) (272) [SCAL] (1) G1.Efd = homotopy(smooth(0, if $SEV_30 then G1.Exc.Limiter.uMax else if $SEV_31 then G1.Exc.Limiter.uMin else G1.Exc.Limiter.simplifiedExpr), G1.Exc.Limiter.simplifiedExpr) ($RES_SIM_309) (273) [SCAL] (1) $DER.G4.Exc.WashOut.x_scaled[1] = (G4.Exc.WashOut.a_end * G4.Exc.PSSGain.y - G4.Exc.WashOut.a[2:2] * G4.Exc.WashOut.x_scaled) / G4.Exc.WashOut.a[1] ($RES_SIM_134) (274) [SCAL] (1) G4.Exc.PSSGain.y = G4.Exc.PSSGain.k * G4.Exc.PSSGain.u ($RES_SIM_135) (275) [SCAL] (1) G4.Exc.Limiter.simplifiedExpr = G4.Exc.Sum.k1 * G4.Exc.AVR.y + G4.Exc.Sum.k2 * G4.Exc.PSSLimiter.y ($RES_SIM_136) (276) [ARRY] (1) G4.Exc.AVR.x = G4.Exc.AVR.x_scaled / G4.Exc.AVR.a_end ($RES_SIM_137) (277) [SCAL] (1) G4.Exc.AVR.y = (G4.Exc.AVR.bb[2:2] - G4.Exc.AVR.d * G4.Exc.AVR.a[2:2]) / (G4.Exc.AVR.a_end * G4.Exc.AVR.x_scaled) + G4.Exc.AVR.d * G4.Exc.Verror.y ($RES_SIM_138) (278) [SCAL] (1) $DER.G4.Exc.AVR.x_scaled[1] = (G4.Exc.AVR.a_end * G4.Exc.Verror.y - G4.Exc.AVR.a[2:2] * G4.Exc.AVR.x_scaled) / G4.Exc.AVR.a[1] ($RES_SIM_139) (279) [SCAL] (1) G2.Ifd = ((G2.lamfd - G2.lamad) * G2.Ladu) / G2.Lfd ($RES_SIM_220) (280) [ARRY] (2) {{L78_1.L1.T1Adm.T1.ia + L78_1.L1.T1Adm.T2.ia}, {L78_1.L1.T1Adm.T1.ib + L78_1.L1.T1Adm.T2.ib}} = {{0.0}, {0.0}} ($RES_SIM_92) (281) [SCAL] (1) G2.Pe = G2.Exc.PSSGain.u * (G2.lamad * G2.id - G2.lamaq * G2.iq) ($RES_SIM_221) (282) [ARRY] (2) {{L78_1.L1.T1Adm.T1.ia}, {L78_1.L1.T1Adm.T1.ib}} = {{L78_1.L1.T1Adm.G, -L78_1.L1.T1Adm.B}, {L78_1.L1.T1Adm.B, L78_1.L1.T1Adm.G}} * {{-(1.0 + L78_1.B1.T2.va)}, {-L78_1.B1.T2.vb}} ($RES_SIM_93) (283) [-IF-] (2)if G2.online then (283) [----] [SCAL] (1) G2.id = ((((((G2.L2q * G2.L1q * G2.L1d * G2.lamfd * G2.Ladspp * G2.Exc.PSSGain.u * G2.ra + G2.Lfd * G2.L1q * G2.lam2q * G2.Laqspp * G2.Ldpp * G2.Exc.PSSGain.u ^ 2.0 * G2.L1d + G2.Lfd * G2.L2q * G2.lam1q * G2.Laqspp * G2.Ldpp * G2.Exc.PSSGain.u ^ 2.0 * G2.L1d + G2.Lfd * G2.L2q * G2.L1q * G2.vq * G2.Ldpp * G2.Exc.PSSGain.u * G2.L1d + G2.L2q * G2.L1q * G2.Lfd * G2.lam1d * G2.Ladspp * G2.Exc.PSSGain.u * G2.ra) - G2.L2q * G2.L1q * G2.L1d * G2.Lfd * G2.vd * G2.ra) / G2.L1q) / G2.L2q) / (G2.Lqpp * G2.Exc.PSSGain.u ^ 2.0 * G2.Ldpp + G2.ra ^ 2.0)) / G2.Lfd) / G2.L1d ($RES_SIM_223) (283) [----] [SCAL] (1) G2.iq = -((((((G2.Lfd * G2.ra * G2.L2q * G2.lam1q * G2.Laqspp * G2.Exc.PSSGain.u * G2.L1d + G2.Lfd * G2.ra * G2.L2q * G2.L1q * G2.vq * G2.L1d + G2.Lfd * G2.vd * G2.L2q * G2.L1q * G2.Lqpp * G2.Exc.PSSGain.u * G2.L1d + G2.Lfd * G2.ra * G2.L1q * G2.lam2q * G2.Laqspp * G2.Exc.PSSGain.u * G2.L1d) - (G2.lam1d * G2.Ladspp * G2.L2q * G2.L1q * G2.Lqpp * G2.Exc.PSSGain.u ^ 2.0 * G2.Lfd + G2.lamfd * G2.Ladspp * G2.L2q * G2.L1q * G2.Lqpp * G2.Exc.PSSGain.u ^ 2.0 * G2.L1d)) / G2.L1q) / G2.L2q) / G2.Lfd) / G2.L1d) / (G2.Lqpp * G2.Exc.PSSGain.u ^ 2.0 * G2.Ldpp + G2.ra ^ 2.0) ($RES_SIM_224) (283) [----] else (283) [----] [SCAL] (1) G2.id = 0.0 ($RES_SIM_225) (283) [----] [SCAL] (1) G2.iq = 0.0 ($RES_SIM_226) (283) [----] end if; (284) [ARRY] (2) {{L78_1.L1.T2Adm.T1.ia + L78_1.L1.T2Adm.T2.ia}, {L78_1.L1.T2Adm.T1.ib + L78_1.L1.T2Adm.T2.ib}} = {{0.0}, {0.0}} ($RES_SIM_94) (285) [ARRY] (2) {{L78_1.L1.T2Adm.T1.ia}, {L78_1.L1.T2Adm.T1.ib}} = {{L78_1.L1.T2Adm.G, -L78_1.L1.T2Adm.B}, {L78_1.L1.T2Adm.B, L78_1.L1.T2Adm.G}} * {{-(1.0 + L78_1.L1.Imp.T2.va)}, {-L78_1.L1.Imp.T2.vb}} ($RES_SIM_95) (286) [ARRY] (2) {{L78_1.L1.Imp.T1.ia + L78_1.L1.Imp.T2.ia}, {L78_1.L1.Imp.T1.ib + L78_1.L1.Imp.T2.ib}} = {{0.0}, {0.0}} ($RES_SIM_96) (287) [ARRY] (2) {{L78_1.B1.T2.va - L78_1.L1.Imp.T2.va}, {L78_1.B1.T2.vb - L78_1.L1.Imp.T2.vb}} = {{L78_1.L1.Imp.R, -L78_1.L1.Imp.X}, {L78_1.L1.Imp.X, L78_1.L1.Imp.R}} * {{L78_1.L1.Imp.T1.ia}, {L78_1.L1.Imp.T1.ib}} ($RES_SIM_97) (288) [SCAL] (1) G4.wrl.wr.Hsum = if G4.online then G4.H * (0.01 * G4.Sbase) else 0.0 ($RES_SIM_98) (289) [SCAL] (1) G2.lamaq = G2.Laqspp * ((G2.lam1q / G2.L1q + G2.lam2q / G2.L2q) - G2.id) ($RES_SIM_227) (290) [SCAL] (1) G4.wrl.wr.Hwsum = if G4.online then G4.Exc.PSSGain.u * G4.H * (0.01 * G4.Sbase) else 0.0 ($RES_SIM_99) (291) [SCAL] (1) G2.lamad = G2.Ladspp * ((G2.lamfd / G2.Lfd + G2.lam1d / G2.L1d) - G2.iq) ($RES_SIM_228) (292) [SCAL] (1) $DER.G2.lam2q = ((314.1592653589793 * (G2.lamaq - G2.lam2q)) / G2.L2q) * G2.R2q ($RES_SIM_229) (293) [SCAL] (1) G1.Exc.u = sqrt(G1.vd ^ 2.0 + G1.vq ^ 2.0) ($RES_$AUX_803) (294) [SCAL] (1) $FUN_2 = sin(G1.delta) ($RES_$AUX_802) (295) [SCAL] (1) $FUN_3 = cos(G1.delta) ($RES_$AUX_801) (296) [SCAL] (1) G2.Exc.u = sqrt(G2.vd ^ 2.0 + G2.vq ^ 2.0) ($RES_$AUX_800) (297) [SCAL] (1) G1.Gov.Limiter.simplifiedExpr = G1.Gov.PmAdd.k1 * G1.Gov.TF.y + G1.Gov.PmAdd.k2 * G1.Gov.Pm0 ($RES_SIM_314) (298) [ARRY] (1) G1.Gov.TF.x = G1.Gov.TF.x_scaled / G1.Gov.TF.a_end ($RES_SIM_315) (299) [SCAL] (1) G4.Exc.Verror.y = G4.Exc.Verror.k1 * G4.Exc.u + G4.Exc.Verror.k2 * G4.Exc.Vref ($RES_SIM_140) (300) [SCAL] (1) G1.Gov.TF.y = (G1.Gov.TF.bb[2:2] - G1.Gov.TF.d * G1.Gov.TF.a[2:2]) / (G1.Gov.TF.a_end * G1.Gov.TF.x_scaled) + G1.Gov.TF.d * G1.Gov.werror.y ($RES_SIM_316) (301) [SCAL] (1) G4.Efd = homotopy(smooth(0, if $SEV_3 then G4.Exc.Limiter.uMax else if $SEV_4 then G4.Exc.Limiter.uMin else G4.Exc.Limiter.simplifiedExpr), G4.Exc.Limiter.simplifiedExpr) ($RES_SIM_141) (302) [SCAL] (1) $DER.G1.Gov.TF.x_scaled[1] = (G1.Gov.TF.a_end * G1.Gov.werror.y - G1.Gov.TF.a[2:2] * G1.Gov.TF.x_scaled) / G1.Gov.TF.a[1] ($RES_SIM_317) (303) [SCAL] (1) G1.Gov.werror.y = G1.Gov.werror.k1 * G1.Exc.PSSGain.u + G1.Gov.werror.k2 * G1.Gov.wref ($RES_SIM_318) (304) [SCAL] (1) G1.Pm = homotopy(smooth(0, if $SEV_33 then G1.Gov.Limiter.uMax else if $SEV_34 then G1.Gov.Limiter.uMin else G1.Gov.Limiter.simplifiedExpr), G1.Gov.Limiter.simplifiedExpr) ($RES_SIM_319) (305) [SCAL] (1) G4.Gov.Limiter.simplifiedExpr = G4.Gov.PmAdd.k1 * G4.Gov.TF.y + G4.Gov.PmAdd.k2 * G4.Gov.Pm0 ($RES_SIM_146) (306) [ARRY] (1) G4.Gov.TF.x = G4.Gov.TF.x_scaled / G4.Gov.TF.a_end ($RES_SIM_147) (307) [SCAL] (1) G4.Gov.TF.y = (G4.Gov.TF.bb[2:2] - G4.Gov.TF.d * G4.Gov.TF.a[2:2]) / (G4.Gov.TF.a_end * G4.Gov.TF.x_scaled) + G4.Gov.TF.d * G4.Gov.werror.y ($RES_SIM_148) (308) [SCAL] (1) T26.Imp.T2.vb * T26.n = L56.T2.vb ($RES_SIM_400) (309) [SCAL] (1) $DER.G4.Gov.TF.x_scaled[1] = (G4.Gov.TF.a_end * G4.Gov.werror.y - G4.Gov.TF.a[2:2] * G4.Gov.TF.x_scaled) / G4.Gov.TF.a[1] ($RES_SIM_149) (310) [SCAL] (1) (1.0 + T26.Imp.T2.va) * T26.n = 1.0 + L56.T2.va ($RES_SIM_401) (311) [ARRY] (2) {{T15.T1.ia - T15.Tr.T1.ia}, {T15.T1.ib - T15.Tr.T1.ib}} = {{0.0}, {0.0}} ($RES_SIM_405) (312) [SCAL] (1) $DER.G2.lam1q = ((314.1592653589793 * (G2.lamaq - G2.lam1q)) / G2.L1q) * G2.R1q ($RES_SIM_230) (313) [ARRY] (2) {{G1.T.va - T15.Imp.T2.va}, {G1.T.vb - T15.Imp.T2.vb}} = {{T15.Imp.R, -T15.Imp.X}, {T15.Imp.X, T15.Imp.R}} * {{T15.T1.ia}, {T15.T1.ib}} ($RES_SIM_406) (314) [SCAL] (1) $DER.G2.lam1d = ((314.1592653589793 * (G2.lamad - G2.lam1d)) / G2.L1d) * G2.R1d ($RES_SIM_231) (315) [SCAL] (1) $DER.G2.lamfd = 314.1592653589793 * ((G2.Rfd * G2.Efd) / G2.Ladu + (G2.Rfd * (G2.lamad - G2.lamfd)) / G2.Lfd) ($RES_SIM_232) (316) [SCAL] (1) T15.Tr.T1.ib = -T15.T2.ib * T15.n ($RES_SIM_408) (317) [SCAL] (1) T15.Tr.T1.ia = -T15.T2.ia * T15.n ($RES_SIM_409) (318) [ARRY] (1) G2.Exc.Phase_Compensation2.x = G2.Exc.Phase_Compensation2.x_scaled / G2.Exc.Phase_Compensation2.a_end ($RES_SIM_235) (319) [SCAL] (1) G2.Exc.PSSLimiter.simplifiedExpr = (G2.Exc.Phase_Compensation2.bb[2:2] - G2.Exc.Phase_Compensation2.d * G2.Exc.Phase_Compensation2.a[2:2]) / (G2.Exc.Phase_Compensation2.a_end * G2.Exc.Phase_Compensation2.x_scaled) + G2.Exc.Phase_Compensation2.d * G2.Exc.Phase_Compensation2.u ($RES_SIM_236) (320) [SCAL] (1) $DER.G2.Exc.Phase_Compensation2.x_scaled[1] = (G2.Exc.Phase_Compensation2.a_end * G2.Exc.Phase_Compensation2.u - G2.Exc.Phase_Compensation2.a[2:2] * G2.Exc.Phase_Compensation2.x_scaled) / G2.Exc.Phase_Compensation2.a[1] ($RES_SIM_237) (321) [SCAL] (1) G2.Exc.PSSLimiter.y = homotopy(smooth(0, if $SEV_18 then G2.Exc.PSSLimiter.uMax else if $SEV_19 then G2.Exc.PSSLimiter.uMin else G2.Exc.PSSLimiter.simplifiedExpr), G2.Exc.PSSLimiter.simplifiedExpr) ($RES_SIM_238) (322) [ARRY] (2) {{L89_1.T2.ia}, {L89_1.T2.ib}} = {{L89_1.G, -L89_1.B}, {L89_1.B, L89_1.G}} / 2.0 * {{1.0 + sensorP9.T2.va}, {sensorP9.T2.vb}} - {{L89_1.R, L89_1.X}, {-L89_1.X, L89_1.R}} / (L89_1.R ^ 2.0 + L89_1.X ^ 2.0) * {{L78_1.B2.T2.va - sensorP9.T2.va}, {L78_1.B2.T2.vb - sensorP9.T2.vb}} ($RES_SIM_322) (323) [ARRY] (2) {{L89_1.T1.ia}, {L89_1.T1.ib}} = {{L89_1.G, -L89_1.B}, {L89_1.B, L89_1.G}} / 2.0 * {{1.0 + L78_1.B2.T2.va}, {L78_1.B2.T2.vb}} + {{L89_1.R, L89_1.X}, {-L89_1.X, L89_1.R}} / (L89_1.R ^ 2.0 + L89_1.X ^ 2.0) * {{L78_1.B2.T2.va - sensorP9.T2.va}, {L78_1.B2.T2.vb - sensorP9.T2.vb}} ($RES_SIM_323) (324) [ARRY] (2) {{L89_2.T2.ia}, {L89_2.T2.ib}} = {{L89_2.G, -L89_2.B}, {L89_2.B, L89_2.G}} / 2.0 * {{1.0 + sensorP9.T2.va}, {sensorP9.T2.vb}} - {{L89_2.R, L89_2.X}, {-L89_2.X, L89_2.R}} / (L89_2.R ^ 2.0 + L89_2.X ^ 2.0) * {{L78_1.B2.T2.va - sensorP9.T2.va}, {L78_1.B2.T2.vb - sensorP9.T2.vb}} ($RES_SIM_324) (325) [ARRY] (2) {{L89_2.T1.ia}, {L89_2.T1.ib}} = {{L89_2.G, -L89_2.B}, {L89_2.B, L89_2.G}} / 2.0 * {{1.0 + L78_1.B2.T2.va}, {L78_1.B2.T2.vb}} + {{L89_2.R, L89_2.X}, {-L89_2.X, L89_2.R}} / (L89_2.R ^ 2.0 + L89_2.X ^ 2.0) * {{L78_1.B2.T2.va - sensorP9.T2.va}, {L78_1.B2.T2.vb - sensorP9.T2.vb}} ($RES_SIM_325) (326) [SCAL] (1) G4.Gov.werror.y = G4.Gov.werror.k1 * G4.Exc.PSSGain.u + G4.Gov.werror.k2 * G4.Gov.wref ($RES_SIM_150) (327) [ARRY] (2) {{L78_2.T2.ia}, {L78_2.T2.ib}} = {{L78_2.G, -L78_2.B}, {L78_2.B, L78_2.G}} / 2.0 * {{1.0 + L78_1.B2.T2.va}, {L78_1.B2.T2.vb}} - {{L78_2.R, L78_2.X}, {-L78_2.X, L78_2.R}} / (L78_2.R ^ 2.0 + L78_2.X ^ 2.0) * {{sensorP7.T2.va - L78_1.B2.T2.va}, {sensorP7.T2.vb - L78_1.B2.T2.vb}} ($RES_SIM_326) (328) [SCAL] (1) G4.Pm = homotopy(smooth(0, if $SEV_6 then G4.Gov.Limiter.uMax else if $SEV_7 then G4.Gov.Limiter.uMin else G4.Gov.Limiter.simplifiedExpr), G4.Gov.Limiter.simplifiedExpr) ($RES_SIM_151) (329) [ARRY] (2) {{L78_2.T1.ia}, {L78_2.T1.ib}} = {{L78_2.G, -L78_2.B}, {L78_2.B, L78_2.G}} / 2.0 * {{1.0 + sensorP7.T2.va}, {sensorP7.T2.vb}} + {{L78_2.R, L78_2.X}, {-L78_2.X, L78_2.R}} / (L78_2.R ^ 2.0 + L78_2.X ^ 2.0) * {{sensorP7.T2.va - L78_1.B2.T2.va}, {sensorP7.T2.vb - L78_1.B2.T2.vb}} ($RES_SIM_327) (330) [SCAL] (1) G3.wrl.wr.Hsum = if G3.online then G3.H * (0.01 * G3.Sbase) else 0.0 ($RES_SIM_154) (331) [SCAL] (1) G3.wrl.wr.Hwsum = if G3.online then G3.Exc.PSSGain.u * G3.H * (0.01 * G3.Sbase) else 0.0 ($RES_SIM_155) (332) [ARRY] (2) {{1.0 + G3.T.va}, {G3.T.vb}} = {{-$FUN_8, $FUN_9}, {$FUN_9, $FUN_8}} * ({{G3.vd}, {G3.vq}} + {{G3.rt, -G3.xt}, {G3.xt, G3.rt}} * {{G3.id}, {G3.iq}}) ($RES_SIM_156) (333) [ARRY] (2) {{G3.T.ia}, {G3.T.ib}} = -0.01 .* G3.Sbase .* ({{-$FUN_8, $FUN_9}, {$FUN_9, $FUN_8}} * {{G3.id}, {G3.iq}}) ($RES_SIM_157) (334) [SCAL] (1) $DER.G3.delta = 314.1592653589793 * (G3.Exc.PSSGain.u - wref) ($RES_SIM_158) (335) [SCAL] (1) T15.Imp.T2.vb * T15.n = T15.Tr.T2.vb ($RES_SIM_410) (336) [SCAL] (1) $DER.G3.Exc.PSSGain.u = (0.5 / G3.H) * (G3.Pm - (G3.D * (G3.Exc.PSSGain.u - wref) + G3.Pe)) ($RES_SIM_159) (337) [SCAL] (1) (1.0 + T15.Imp.T2.va) * T15.n = 1.0 + T15.Tr.T2.va ($RES_SIM_411) (338) [ARRY] (1) G2.Exc.Phase_Compensation1.x = G2.Exc.Phase_Compensation1.x_scaled / G2.Exc.Phase_Compensation1.a_end ($RES_SIM_241) (339) [SCAL] (1) G2.Exc.Phase_Compensation2.u = (G2.Exc.Phase_Compensation1.bb[2:2] - G2.Exc.Phase_Compensation1.d * G2.Exc.Phase_Compensation1.a[2:2]) / (G2.Exc.Phase_Compensation1.a_end * G2.Exc.Phase_Compensation1.x_scaled) + G2.Exc.Phase_Compensation1.d * G2.Exc.Phase_Compensation1.u ($RES_SIM_242) (340) [SCAL] (1) $DER.G2.Exc.Phase_Compensation1.x_scaled[1] = (G2.Exc.Phase_Compensation1.a_end * G2.Exc.Phase_Compensation1.u - G2.Exc.Phase_Compensation1.a[2:2] * G2.Exc.Phase_Compensation1.x_scaled) / G2.Exc.Phase_Compensation1.a[1] ($RES_SIM_243) (341) [ARRY] (1) G2.Exc.WashOut.x = G2.Exc.WashOut.x_scaled / G2.Exc.WashOut.a_end ($RES_SIM_244) (342) [SCAL] (1) G2.Exc.Phase_Compensation1.u = (G2.Exc.WashOut.bb[2:2] - G2.Exc.WashOut.d * G2.Exc.WashOut.a[2:2]) / (G2.Exc.WashOut.a_end * G2.Exc.WashOut.x_scaled) + G2.Exc.WashOut.d * G2.Exc.PSSGain.y ($RES_SIM_245) (343) [SCAL] (1) $DER.G2.Exc.WashOut.x_scaled[1] = (G2.Exc.WashOut.a_end * G2.Exc.PSSGain.y - G2.Exc.WashOut.a[2:2] * G2.Exc.WashOut.x_scaled) / G2.Exc.WashOut.a[1] ($RES_SIM_246) (344) [SCAL] (1) G2.Exc.PSSGain.y = G2.Exc.PSSGain.k * G2.Exc.PSSGain.u ($RES_SIM_247) (345) [SCAL] (1) G2.Exc.Limiter.simplifiedExpr = G2.Exc.Sum.k1 * G2.Exc.AVR.y + G2.Exc.Sum.k2 * G2.Exc.PSSLimiter.y ($RES_SIM_248) (346) [ARRY] (1) G2.Exc.AVR.x = G2.Exc.AVR.x_scaled / G2.Exc.AVR.a_end ($RES_SIM_249) (347) [SCAL] (1) C9.Qg = -(sensorP9.T2.vb * C9.T.ia - (1.0 + sensorP9.T2.va) * C9.T.ib) ($RES_SIM_330) (348) [SCAL] (1) C9.Pg = -((1.0 + sensorP9.T2.va) * C9.T.ia + sensorP9.T2.vb * C9.T.ib) ($RES_SIM_331) (349) [ARRY] (2) {{C9.T.ia}, {C9.T.ib}} = {{C9.G, -C9.B}, {C9.B, C9.G}} * {{1.0 + sensorP9.T2.va}, {sensorP9.T2.vb}} ($RES_SIM_332) (350) [SCAL] (1) sensorP9.T1.ib = (L9.Pl * sensorP9.T2.vb - L9.Ql * (1.0 + sensorP9.T2.va)) / ((1.0 + sensorP9.T2.va) * (1.0 + sensorP9.T2.va) + sensorP9.T2.vb * sensorP9.T2.vb) ($RES_SIM_333) (351) [SCAL] (1) sensorP9.T1.ia = (L9.Pl * (1.0 + sensorP9.T2.va) + L9.Ql * sensorP9.T2.vb) / ((1.0 + sensorP9.T2.va) * (1.0 + sensorP9.T2.va) + sensorP9.T2.vb * sensorP9.T2.vb) ($RES_SIM_334) (352) [SCAL] (1) L9.Ql = L9.Q0 * (L9.qI * (L9.V / L9.V0) + L9.qZ * (L9.V / L9.V0) ^ 2.0 + L9.qP) ($RES_SIM_335) (353) [SCAL] (1) L9.Pl = L9.P0 * (L9.pI * (L9.V / L9.V0) + L9.pZ * (L9.V / L9.V0) ^ 2.0 + L9.pP) ($RES_SIM_336) (354) [ARRY] (2) sensorP9.PQ = {(1.0 + sensorP9.T2.va) * sensorP9.T1.ia + sensorP9.T2.vb * sensorP9.T1.ib, sensorP9.T2.vb * sensorP9.T1.ia - (1.0 + sensorP9.T2.va) * sensorP9.T1.ib} ($RES_SIM_337) (355) [SCAL] (1) G3.Ifd = ((G3.lamfd - G3.lamad) * G3.Ladu) / G3.Lfd ($RES_SIM_164) (356) [SCAL] (1) G3.Pe = G3.Exc.PSSGain.u * (G3.lamad * G3.id - G3.lamaq * G3.iq) ($RES_SIM_165) (357) [-IF-] (2)if G3.online then (357) [----] [SCAL] (1) G3.id = ((((((G3.L2q * G3.L1q * G3.L1d * G3.lamfd * G3.Ladspp * G3.Exc.PSSGain.u * G3.ra + G3.Lfd * G3.L1q * G3.lam2q * G3.Laqspp * G3.Ldpp * G3.Exc.PSSGain.u ^ 2.0 * G3.L1d + G3.Lfd * G3.L2q * G3.lam1q * G3.Laqspp * G3.Ldpp * G3.Exc.PSSGain.u ^ 2.0 * G3.L1d + G3.Lfd * G3.L2q * G3.L1q * G3.vq * G3.Ldpp * G3.Exc.PSSGain.u * G3.L1d + G3.L2q * G3.L1q * G3.Lfd * G3.lam1d * G3.Ladspp * G3.Exc.PSSGain.u * G3.ra) - G3.L2q * G3.L1q * G3.L1d * G3.Lfd * G3.vd * G3.ra) / G3.L1q) / G3.L2q) / (G3.Lqpp * G3.Exc.PSSGain.u ^ 2.0 * G3.Ldpp + G3.ra ^ 2.0)) / G3.Lfd) / G3.L1d ($RES_SIM_167) (357) [----] [SCAL] (1) G3.iq = -((((((G3.Lfd * G3.ra * G3.L2q * G3.lam1q * G3.Laqspp * G3.Exc.PSSGain.u * G3.L1d + G3.Lfd * G3.ra * G3.L2q * G3.L1q * G3.vq * G3.L1d + G3.Lfd * G3.vd * G3.L2q * G3.L1q * G3.Lqpp * G3.Exc.PSSGain.u * G3.L1d + G3.Lfd * G3.ra * G3.L1q * G3.lam2q * G3.Laqspp * G3.Exc.PSSGain.u * G3.L1d) - (G3.lam1d * G3.Ladspp * G3.L2q * G3.L1q * G3.Lqpp * G3.Exc.PSSGain.u ^ 2.0 * G3.Lfd + G3.lamfd * G3.Ladspp * G3.L2q * G3.L1q * G3.Lqpp * G3.Exc.PSSGain.u ^ 2.0 * G3.L1d)) / G3.L1q) / G3.L2q) / G3.Lfd) / G3.L1d) / (G3.Lqpp * G3.Exc.PSSGain.u ^ 2.0 * G3.Ldpp + G3.ra ^ 2.0) ($RES_SIM_168) (357) [----] else (357) [----] [SCAL] (1) G3.id = 0.0 ($RES_SIM_169) (357) [----] [SCAL] (1) G3.iq = 0.0 ($RES_SIM_170) (357) [----] end if; (358) [SCAL] (1) G2.Exc.AVR.y = (G2.Exc.AVR.bb[2:2] - G2.Exc.AVR.d * G2.Exc.AVR.a[2:2]) / (G2.Exc.AVR.a_end * G2.Exc.AVR.x_scaled) + G2.Exc.AVR.d * G2.Exc.Verror.y ($RES_SIM_250) (359) [SCAL] (1) $DER.G2.Exc.AVR.x_scaled[1] = (G2.Exc.AVR.a_end * G2.Exc.Verror.y - G2.Exc.AVR.a[2:2] * G2.Exc.AVR.x_scaled) / G2.Exc.AVR.a[1] ($RES_SIM_251) (360) [SCAL] (1) G2.Exc.Verror.y = G2.Exc.Verror.k1 * G2.Exc.u + G2.Exc.Verror.k2 * G2.Exc.Vref ($RES_SIM_252) (361) [SCAL] (1) G1.Pg = -(G1.T.vb * G1.T.ib + (1.0 + G1.T.va) * G1.T.ia) ($RES_BND_727) (362) [SCAL] (1) G2.Efd = homotopy(smooth(0, if $SEV_21 then G2.Exc.Limiter.uMax else if $SEV_22 then G2.Exc.Limiter.uMin else G2.Exc.Limiter.simplifiedExpr), G2.Exc.Limiter.simplifiedExpr) ($RES_SIM_253) (363) [SCAL] (1) G1.Qg = -(G1.T.vb * G1.T.ia - (1.0 + G1.T.va) * G1.T.ib) ($RES_BND_728)