Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Examples.DAEMode.SMIB_Examples.Example_1.Network1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) 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/Modelica 3.2.3+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/OpenIPSL 2.0.0/package.mo", uses=false) Using package OpenIPSL with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/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 Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Running command: translateModel(OpenIPSL.Examples.DAEMode.SMIB_Examples.Example_1.Network1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.DAEMode.SMIB_Examples.Example_1.Network1") translateModel(OpenIPSL.Examples.DAEMode.SMIB_Examples.Example_1.Network1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.DAEMode.SMIB_Examples.Example_1.Network1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06253/0.06253, allocations: 12.6 MB / 28.92 MB, free: 0.6016 MB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008698/0.0008698, allocations: 107.5 kB / 32.52 MB, free: 3.543 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.092/1.092, allocations: 205.1 MB / 241.1 MB, free: 12.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001103/0.001103, allocations: 188.5 kB / 291.4 MB, free: 13.39 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.3704/0.3704, allocations: 78.51 MB / 420 MB, free: 11.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.85e-05/1.852e-05, allocations: 5.891 kB / 0.5564 GB, free: 28.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.DAEMode.SMIB_Examples.Example_1.Network1): time 0.004086/0.004112, allocations: 5.267 MB / 0.5615 GB, free: 24.77 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002303/0.006428, allocations: 1.726 MB / 0.5632 GB, free: 23.53 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002388/0.006678, allocations: 6.875 kB / 0.5632 GB, free: 23.53 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003063/0.00699, allocations: 164.3 kB / 0.5634 GB, free: 23.45 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/Electrical/Branches/PSAT/TwoWindingTransformer.mo:44:3-44:83:writable] Warning: In relation twoWindingTransformer.m <> 1.0, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeBindings: time 0.001102/0.008099, allocations: 0.6629 MB / 0.564 GB, free: 23 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007295/0.008837, allocations: 0.4954 MB / 0.5645 GB, free: 22.72 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000947/0.009792, allocations: 1.359 MB / 0.5658 GB, free: 22.04 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002748/0.01007, allocations: 244.9 kB / 0.5661 GB, free: 21.91 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00039/0.01047, allocations: 0.4924 MB / 0.5665 GB, free: 21.64 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003643/0.01084, allocations: 0.5985 MB / 0.5671 GB, free: 21.21 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001092/0.01096, allocations: 105.2 kB / 0.5672 GB, free: 21.21 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003173/0.01128, allocations: 249.4 kB / 0.5675 GB, free: 21.14 MB / 398.1 MB Notification: Performance of combineBinaries: time 0.0007498/0.01204, allocations: 1.827 MB / 0.5693 GB, free: 19.77 MB / 398.1 MB Notification: Performance of replaceArrayConstructors: time 0.0003321/0.01238, allocations: 1.087 MB / 0.5703 GB, free: 18.96 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001115/0.0125, allocations: 151.1 kB / 0.5705 GB, free: 18.88 MB / 398.1 MB Notification: Performance of FrontEnd: time 6.756e-05/0.01257, allocations: 20.31 kB / 0.5705 GB, free: 18.88 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 132 (123) * Number of variables: 132 (132) Notification: Performance of Bindings: time 0.002523/0.0151, allocations: 4.799 MB / 0.5752 GB, free: 15.27 MB / 398.1 MB Notification: Performance of FunctionAlias: time 0.0002924/0.0154, allocations: 433.8 kB / 0.5756 GB, free: 14.94 MB / 398.1 MB Notification: Performance of Early Inline: time 0.00206/0.01746, allocations: 3.529 MB / 0.579 GB, free: 12.23 MB / 398.1 MB Notification: Performance of simplify1: time 0.0001084/0.01758, allocations: 203.8 kB / 0.5792 GB, free: 12.04 MB / 398.1 MB Notification: Performance of Alias: time 0.001866/0.01945, allocations: 2.869 MB / 0.582 GB, free: 8.918 MB / 398.1 MB Notification: Performance of simplify2: time 8.81e-05/0.01955, allocations: 175.8 kB / 0.5822 GB, free: 8.746 MB / 398.1 MB Notification: Performance of Events: time 0.0002476/0.01981, allocations: 434.8 kB / 0.5826 GB, free: 8.316 MB / 398.1 MB Notification: Performance of Detect States: time 0.0003577/0.02017, allocations: 0.6686 MB / 0.5833 GB, free: 7.625 MB / 398.1 MB Notification: Performance of Partitioning: time 0.0004863/0.02067, allocations: 0.7765 MB / 0.584 GB, free: 6.832 MB / 398.1 MB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency twoWindingTransformer.p.vi could not be divided by the body size 2 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [ARRY] (2) {{twoWindingTransformer.p.vr}, {twoWindingTransformer.p.vi}} = ({{$FUN_3, $FUN_4}, {-$FUN_4, $FUN_3}} * {{G1.order6.vd}, {G1.order6.vq}}) .* G1.order6.V_MBtoSB ($RES_SIM_73) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (105/105) **************************** (1) [ALGB] (1) Real G1.order6.vd (start = G1.order6.vd0) (2) [ALGB] (1) Real pwLine1.vr.im = infiniteBus.p.vi (3) [ALGB] (1) flow Real pwLine1.n.ir (start = 1e-15) (4) [ALGB] (1) flow Real G1.pwPin.ii (start = 1e-15) (5) [ALGB] (1) Real twoWindingTransformer.Q12 (nominal = 1e8) (6) [ALGB] (1) Real pwLine2.P12 (nominal = 1e8) (7) [ALGB] (1) Real $FUN_12 (8) [ALGB] (1) Real $FUN_11 (9) [ALGB] (1) Real pwLine1.P12 (nominal = 1e8) (10) [ALGB] (1) Real pwLine2.vs.im = pwFault.p.vi (11) [ALGB] (1) Real G1.order6.vq (start = G1.order6.vq0) (12) [ALGB] (1) flow Real G1.pwPin.ir (start = 1e-15) (13) [ALGB] (1) Real twoWindingTransformer.p.vi (14) [ALGB] (1) Real B2.angleDisplay = Modelica.SIunits.Conversions.to_deg(0.017453292519943295 * B2.angleDisplay) (15) [ALGB] (1) Real pwLine2.vr.im = infiniteBus.p.vi (16) [ALGB] (1) flow Real infiniteBus.p.ir (start = 1e-15) (17) [ALGB] (1) Real twoWindingTransformer.p.vr (18) [ALGB] (1) Real twoWindingTransformer.vs.re = twoWindingTransformer.p.vr (19) [DER-] (1) Real $DER.G1.order6.e1d (20) [ALGB] (1) Real twoWindingTransformer.vr.re = pwFault.p.vr (21) [ALGB] (1) Real pwLine1.vs.re = pwFault.p.vr (22) [ALGB] (1) flow Real infiniteBus.p.ii (start = 1e-15) (23) [ALGB] (1) flow Real pwFault.p.ii (start = 1e-15) (24) [ALGB] (1) Real pwLine1.vr.re = infiniteBus.p.vr (25) [DER-] (1) Real $DER.G1.order6.e1q (26) [ALGB] (1) Real B2.v (start = B2.v_0) (27) [ALGB] (1) Real pwLine2.P21 (nominal = 1e8) (28) [ALGB] (1) Real G1.Q (nominal = 1e8) (29) [ALGB] (1) Real B3.angleDisplay = Modelica.SIunits.Conversions.to_deg(0.017453292519943295 * B3.angleDisplay) (30) [ALGB] (1) Real G1.P (nominal = 1e8) (31) [ALGB] (1) flow Real pwFault.p.ir (start = 1e-15) (32) [ALGB] (1) Real pwLine1.P21 (nominal = 1e8) (33) [ALGB] (1) Real $FUN_4 (34) [ALGB] (1) Real $FUN_3 (35) [ALGB] (1) Real twoWindingTransformer.P21 (nominal = 1e8) (36) [ALGB] (1) Real G1.order6.P (start = G1.order6.p0) (37) [ALGB] (1) Real pwLine2.vs.re = pwFault.p.vr (38) [DER-] (1) Real $DER.G1.aVRtypeIII.vm (39) [ALGB] (1) Real G1.order6.Q (start = G1.order6.q0) (40) [ALGB] (1) Real pwLine2.vr.re = infiniteBus.p.vr (41) [DER-] (1) Real $DER.G1.aVRtypeIII.vr (42) [ALGB] (1) Real twoWindingTransformer.is.im = twoWindingTransformer.p.ii (43) [DER-] (1) Real $DER.G1.order6.e2d (44) [ALGB] (1) Real twoWindingTransformer.ir.im = twoWindingTransformer.n.ii (45) [ALGB] (1) protected Real G1.order6.pe (start = G1.order6.pm00) (46) [ALGB] (1) Real pwLine1.is.im = pwLine1.p.ii (47) [ALGB] (1) Real pwLine1.ir.im = pwLine1.n.ii (48) [DER-] (1) Real $DER.G1.order6.delta (49) [DER-] (1) Real $DER.G1.order6.e2q (50) [ALGB] (1) flow Real pwLine2.p.ii (start = 1e-15) (51) [ALGB] (1) Real B1.angleDisplay = Modelica.SIunits.Conversions.to_deg(0.017453292519943295 * B1.angleDisplay) (52) [ALGB] (1) Real pwLine2.is.im = pwLine2.p.ii (53) [ALGB] (1) Real twoWindingTransformer.P12 (nominal = 1e8) (54) [ALGB] (1) Real G1.order6.id (start = G1.order6.id0) (55) [ALGB] (1) Real pwLine2.Q12 (nominal = 1e8) (56) [ALGB] (1) Real pwLine2.ir.im = pwLine2.n.ii (57) [ALGB] (1) flow Real pwLine2.n.ii (start = 1e-15) (58) [ALGB] (1) Real pwFault.p.vi (59) [ALGB] (1) flow Real pwLine2.p.ir (start = 1e-15) (60) [ALGB] (1) Real G1.order6.v (start = G1.order6.v_0) (61) [ALGB] (1) Real pwLine1.Q12 (nominal = 1e8) (62) [ALGB] (1) Real twoWindingTransformer.is.re = twoWindingTransformer.p.ir (63) [ALGB] (1) Real infiniteBus.Q (nominal = 1e8) (64) [ALGB] (1) Real infiniteBus.P (nominal = 1e8) (65) [ALGB] (1) flow Real pwLine2.n.ir (start = 1e-15) (66) [ALGB] (1) Real pwFault.p.vr (67) [ALGB] (1) Real B3.v (start = B3.v_0) (68) [ALGB] (1) Real twoWindingTransformer.ir.re = twoWindingTransformer.n.ir (69) [ALGB] (1) Real G1.order6.iq (start = G1.order6.iq0) (70) [ALGB] (1) flow Real twoWindingTransformer.p.ii (start = 1e-15) (71) [ALGB] (1) Real pwLine1.is.re = pwLine1.p.ir (72) [DISC] (1) Boolean $SEV_2 (73) [DISC] (1) Boolean $TEV_7 (74) [DISC] (1) Boolean $SEV_1 (75) [DISC] (1) Boolean $TEV_6 (76) [ALGB] (1) Real pwLine1.ir.re = pwLine1.n.ir (77) [ALGB] (1) Real twoWindingTransformer.Q21 (nominal = 1e8) (78) [DISC] (1) Boolean $SEV_0 (79) [DISC] (1) Boolean $TEV_5 (80) [ALGB] (1) flow Real twoWindingTransformer.n.ii (start = 1e-15) (81) [ALGB] (1) Real infiniteBus.p.vr (82) [DISC] (1) Boolean $TEV_4 (83) [ALGB] (1) flow Real twoWindingTransformer.p.ir (start = 1e-15) (84) [DISC] (1) Boolean $TEV_3 (85) [DISC] (1) Boolean $TEV_2 (86) [DISC] (1) Boolean $TEV_1 (87) [DISC] (1) Boolean $TEV_0 (88) [DER-] (1) Real $DER.G1.order6.w (89) [ALGB] (1) flow Real twoWindingTransformer.n.ir (start = 1e-15) (90) [ALGB] (1) Real infiniteBus.p.vi (91) [ALGB] (1) Real G1.aVRtypeIII.limiter1.y (92) [ALGB] (1) Real G1.order6.anglev (start = G1.order6.angle_0) (93) [ALGB] (1) Real B1.v (start = B1.v_0) (94) [ALGB] (1) flow Real pwLine1.p.ii (start = 1e-15) (95) [ALGB] (1) Real pwLine2.Q21 (nominal = 1e8) (96) [ALGB] (1) Real pwLine2.is.re = pwLine2.p.ir (97) [ALGB] (1) Real twoWindingTransformer.vs.im = twoWindingTransformer.p.vi (98) [ALGB] (1) Real pwLine2.ir.re = pwLine2.n.ir (99) [ALGB] (1) Real pwLine1.Q21 (nominal = 1e8) (100) [ALGB] (1) Real twoWindingTransformer.vr.im = pwFault.p.vi (101) [ALGB] (1) flow Real pwLine1.n.ii (start = 1e-15) (102) [ALGB] (1) flow Real pwLine1.p.ir (start = 1e-15) (103) [ALGB] (1) Real pwLine1.vs.im = pwFault.p.vi (104) [DER-] (1) Real $DER.G1.aVRtypeIII.vf1 (105) [ALGB] (1) protected Real G1.order6.vf_MB = (G1.order6.V_b * G1.aVRtypeIII.limiter1.y) / G1.order6.Vn System Equations (96/105) *************************** (1) [SCAL] (1) pwLine2.ir.im = pwLine2.n.ii ($RES_BND_145) (2) [SCAL] (1) pwLine2.ir.re = pwLine2.n.ir ($RES_BND_146) (3) [SCAL] (1) infiniteBus.Q = -(infiniteBus.p.vi * infiniteBus.p.ir - infiniteBus.p.vr * infiniteBus.p.ii) * infiniteBus.S_b ($RES_SIM_16) (4) [SCAL] (1) infiniteBus.P = -(infiniteBus.p.vr * infiniteBus.p.ir + infiniteBus.p.vi * infiniteBus.p.ii) * infiniteBus.S_b ($RES_SIM_17) (5) [SCAL] (1) infiniteBus.p.vi = infiniteBus.v_0 * $FUN_12 ($RES_SIM_18) (6) [SCAL] (1) infiniteBus.p.vr = infiniteBus.v_0 * $FUN_11 ($RES_SIM_19) (7) [SCAL] (1) twoWindingTransformer.p.ii + G1.pwPin.ii = 0.0 ($RES_SIM_90) (8) [SCAL] (1) twoWindingTransformer.p.ir + G1.pwPin.ir = 0.0 ($RES_SIM_91) (9) [SCAL] (1) -G1.Q = (twoWindingTransformer.p.vi * G1.pwPin.ir - twoWindingTransformer.p.vr * G1.pwPin.ii) * G1.S_b ($RES_SIM_58) (10) [SCAL] (1) -G1.P = (twoWindingTransformer.p.vr * G1.pwPin.ir + twoWindingTransformer.p.vi * G1.pwPin.ii) * G1.S_b ($RES_SIM_59) (11) [SCAL] (1) $TEV_5 = time >= pwLine1.t1 ($RES_EVT_170) (12) [SCAL] (1) $TEV_6 = time < pwLine1.t2 ($RES_EVT_171) (13) [SCAL] (1) $TEV_7 = $TEV_5 and $TEV_6 ($RES_EVT_172) (14) [SCAL] (1) $SEV_0 = time < pwFault.t2 and pwFault.ground ($RES_EVT_173) (15) [SCAL] (1) $SEV_1 = G1.aVRtypeIII.vf1 > G1.aVRtypeIII.limiter1.uMax ($RES_EVT_174) (16) [SCAL] (1) $SEV_2 = G1.aVRtypeIII.vf1 < G1.aVRtypeIII.limiter1.uMin ($RES_EVT_175) (17) [-IF-] (4)if $TEV_4 then (17) [----] [RECD] (2) pwLine2.ir = Complex(0.0, 0.0) ($RES_SIM_21) (17) [----] [RECD] (2) pwLine2.is = Complex(0.0, 0.0) ($RES_SIM_22) (17) [----] else (17) [----] [RECD] (2) Complex.'constructor'.fromReal(pwLine2.vr.re - pwLine2.vs.re, pwLine2.vr.im - pwLine2.vs.im) = Complex.'constructor'.fromReal(pwLine2.Z.re * ((pwLine2.ir.re + pwLine2.vr.im * pwLine2.Y.im) - pwLine2.vr.re * pwLine2.Y.re) - pwLine2.Z.im * (pwLine2.ir.im - (pwLine2.vr.re * pwLine2.Y.im + pwLine2.vr.im * pwLine2.Y.re)), pwLine2.Z.re * (pwLine2.ir.im - (pwLine2.vr.re * pwLine2.Y.im + pwLine2.vr.im * pwLine2.Y.re)) + pwLine2.Z.im * ((pwLine2.ir.re + pwLine2.vr.im * pwLine2.Y.im) - pwLine2.vr.re * pwLine2.Y.re)) ($RES_SIM_23) (17) [----] [RECD] (2) Complex.'constructor'.fromReal(pwLine2.vs.re - pwLine2.vr.re, pwLine2.vs.im - pwLine2.vr.im) = Complex.'constructor'.fromReal(pwLine2.Z.re * ((pwLine2.is.re + pwLine2.vs.im * pwLine2.Y.im) - pwLine2.vs.re * pwLine2.Y.re) - pwLine2.Z.im * (pwLine2.is.im - (pwLine2.vs.re * pwLine2.Y.im + pwLine2.vs.im * pwLine2.Y.re)), pwLine2.Z.re * (pwLine2.is.im - (pwLine2.vs.re * pwLine2.Y.im + pwLine2.vs.im * pwLine2.Y.re)) + pwLine2.Z.im * ((pwLine2.is.re + pwLine2.vs.im * pwLine2.Y.im) - pwLine2.vs.re * pwLine2.Y.re)) ($RES_SIM_24) (17) [----] end if; (18) [SCAL] (1) G1.order6.vf_MB = (G1.order6.V_b * G1.aVRtypeIII.limiter1.y) / G1.order6.Vn ($RES_BND_119) (19) [SCAL] (1) pwLine2.Q21 = -(pwLine2.ir.re * pwLine2.vr.im - pwLine2.ir.im * pwLine2.vr.re) * pwLine2.S_b ($RES_SIM_25) (20) [SCAL] (1) pwLine2.Q12 = (pwLine2.is.re * pwLine2.vs.im - pwLine2.is.im * pwLine2.vs.re) * pwLine2.S_b ($RES_SIM_26) (21) [SCAL] (1) pwLine2.P21 = -(pwLine2.ir.re * pwLine2.vr.re + pwLine2.ir.im * pwLine2.vr.im) * pwLine2.S_b ($RES_SIM_27) (22) [SCAL] (1) $DER.G1.aVRtypeIII.vf1 = (((G1.aVRtypeIII.T1 / G1.aVRtypeIII.T2) * G1.aVRtypeIII.K0 * ((G1.pss_off.k + G1.aVRtypeIII.vref) - G1.aVRtypeIII.vm) + G1.aVRtypeIII.vr + G1.order6.vf00) * (1.0 + G1.aVRtypeIII.s0 * ((-1.0) + G1.order6.v / G1.aVRtypeIII.vm)) - G1.aVRtypeIII.vf1) / G1.aVRtypeIII.Te ($RES_SIM_63) (23) [SCAL] (1) pwLine2.P12 = (pwLine2.is.re * pwLine2.vs.re + pwLine2.is.im * pwLine2.vs.im) * pwLine2.S_b ($RES_SIM_28) (24) [SCAL] (1) $DER.G1.aVRtypeIII.vr = ((1.0 - G1.aVRtypeIII.T1 / G1.aVRtypeIII.T2) * G1.aVRtypeIII.K0 * ((G1.pss_off.k + G1.aVRtypeIII.vref) - G1.aVRtypeIII.vm) - G1.aVRtypeIII.vr) / G1.aVRtypeIII.T2 ($RES_SIM_64) (25) [-IF-] (4)if $TEV_7 then (25) [----] [RECD] (2) pwLine1.ir = Complex(0.0, 0.0) ($RES_SIM_30) (25) [----] [RECD] (2) pwLine1.is = Complex(0.0, 0.0) ($RES_SIM_31) (25) [----] else (25) [----] [RECD] (2) Complex.'constructor'.fromReal(pwLine1.vr.re - pwLine1.vs.re, pwLine1.vr.im - pwLine1.vs.im) = Complex.'constructor'.fromReal(pwLine1.Z.re * ((pwLine1.ir.re + pwLine1.vr.im * pwLine1.Y.im) - pwLine1.vr.re * pwLine1.Y.re) - pwLine1.Z.im * (pwLine1.ir.im - (pwLine1.vr.re * pwLine1.Y.im + pwLine1.vr.im * pwLine1.Y.re)), pwLine1.Z.re * (pwLine1.ir.im - (pwLine1.vr.re * pwLine1.Y.im + pwLine1.vr.im * pwLine1.Y.re)) + pwLine1.Z.im * ((pwLine1.ir.re + pwLine1.vr.im * pwLine1.Y.im) - pwLine1.vr.re * pwLine1.Y.re)) ($RES_SIM_32) (25) [----] [RECD] (2) Complex.'constructor'.fromReal(pwLine1.vs.re - pwLine1.vr.re, pwLine1.vs.im - pwLine1.vr.im) = Complex.'constructor'.fromReal(pwLine1.Z.re * ((pwLine1.is.re + pwLine1.vs.im * pwLine1.Y.im) - pwLine1.vs.re * pwLine1.Y.re) - pwLine1.Z.im * (pwLine1.is.im - (pwLine1.vs.re * pwLine1.Y.im + pwLine1.vs.im * pwLine1.Y.re)), pwLine1.Z.re * (pwLine1.is.im - (pwLine1.vs.re * pwLine1.Y.im + pwLine1.vs.im * pwLine1.Y.re)) + pwLine1.Z.im * ((pwLine1.is.re + pwLine1.vs.im * pwLine1.Y.im) - pwLine1.vs.re * pwLine1.Y.re)) ($RES_SIM_33) (25) [----] end if; (26) [SCAL] (1) $DER.G1.aVRtypeIII.vm = (G1.order6.v - G1.aVRtypeIII.vm) / G1.aVRtypeIII.Tr ($RES_SIM_65) (27) [SCAL] (1) G1.aVRtypeIII.limiter1.y = homotopy(smooth(0, if $SEV_1 then G1.aVRtypeIII.limiter1.uMax else if $SEV_2 then G1.aVRtypeIII.limiter1.uMin else G1.aVRtypeIII.vf1), G1.aVRtypeIII.vf1) ($RES_SIM_66) (28) [SCAL] (1) twoWindingTransformer.vs.im = twoWindingTransformer.p.vi ($RES_BND_123) (29) [SCAL] (1) twoWindingTransformer.vs.re = twoWindingTransformer.p.vr ($RES_BND_124) (30) [SCAL] (1) twoWindingTransformer.is.im = twoWindingTransformer.p.ii ($RES_BND_125) (31) [SCAL] (1) twoWindingTransformer.is.re = twoWindingTransformer.p.ir ($RES_BND_126) (32) [SCAL] (1) twoWindingTransformer.vr.im = pwFault.p.vi ($RES_BND_127) (33) [SCAL] (1) twoWindingTransformer.vr.re = pwFault.p.vr ($RES_BND_128) (34) [SCAL] (1) pwLine1.Q21 = -(pwLine1.ir.re * pwLine1.vr.im - pwLine1.ir.im * pwLine1.vr.re) * pwLine1.S_b ($RES_SIM_34) (35) [SCAL] (1) twoWindingTransformer.ir.im = twoWindingTransformer.n.ii ($RES_BND_129) (36) [SCAL] (1) G1.order6.pe = (G1.order6.vq + G1.order6.ra * G1.order6.iq) * G1.order6.iq + (G1.order6.vd + G1.order6.ra * G1.order6.id) * G1.order6.id ($RES_SIM_70) (37) [SCAL] (1) pwLine1.Q12 = (pwLine1.is.re * pwLine1.vs.im - pwLine1.is.im * pwLine1.vs.re) * pwLine1.S_b ($RES_SIM_35) (38) [SCAL] (1) G1.order6.Q = twoWindingTransformer.p.vr * G1.pwPin.ii - twoWindingTransformer.p.vi * G1.pwPin.ir ($RES_SIM_71) (39) [SCAL] (1) pwLine1.P21 = -(pwLine1.ir.re * pwLine1.vr.re + pwLine1.ir.im * pwLine1.vr.im) * pwLine1.S_b ($RES_SIM_36) (40) [SCAL] (1) G1.order6.P = -(twoWindingTransformer.p.vr * G1.pwPin.ir + twoWindingTransformer.p.vi * G1.pwPin.ii) ($RES_SIM_72) (41) [SCAL] (1) pwLine1.P12 = (pwLine1.is.re * pwLine1.vs.re + pwLine1.is.im * pwLine1.vs.im) * pwLine1.S_b ($RES_SIM_37) (42) [ARRY] (2) {{twoWindingTransformer.p.vr}, {twoWindingTransformer.p.vi}} = ({{$FUN_3, $FUN_4}, {-$FUN_4, $FUN_3}} * {{G1.order6.vd}, {G1.order6.vq}}) .* G1.order6.V_MBtoSB ($RES_SIM_73) (43) [SCAL] (1) twoWindingTransformer.Q21 = -(twoWindingTransformer.ir.re * twoWindingTransformer.vr.im - twoWindingTransformer.ir.im * twoWindingTransformer.vr.re) * twoWindingTransformer.S_b ($RES_SIM_38) (44) [ARRY] (2) {{G1.pwPin.ir}, {G1.pwPin.ii}} = -({{$FUN_3, $FUN_4}, {-$FUN_4, $FUN_3}} * {{G1.order6.id}, {G1.order6.iq}}) .* G1.order6.I_MBtoSB ($RES_SIM_74) (45) [SCAL] (1) twoWindingTransformer.Q12 = (twoWindingTransformer.is.re * twoWindingTransformer.vs.im - twoWindingTransformer.is.im * twoWindingTransformer.vs.re) * twoWindingTransformer.S_b ($RES_SIM_39) (46) [SCAL] (1) $DER.G1.order6.w = (G1.order6.pm00 * G1.order6.S_SBtoMB - (5.0 * ((-1.0) + G1.order6.w) + G1.order6.pe)) / G1.order6.M ($RES_SIM_75) (47) [SCAL] (1) $DER.G1.order6.delta = G1.order6.w_b * ((-1.0) + G1.order6.w) ($RES_SIM_76) (48) [SCAL] (1) twoWindingTransformer.ir.re = twoWindingTransformer.n.ir ($RES_BND_130) (49) [SCAL] (1) pwLine1.vs.im = pwFault.p.vi ($RES_BND_131) (50) [SCAL] (1) G1.order6.v = sqrt(twoWindingTransformer.p.vr ^ 2.0 + twoWindingTransformer.p.vi ^ 2.0) ($RES_$AUX_158) (51) [SCAL] (1) pwLine1.vs.re = pwFault.p.vr ($RES_BND_132) (52) [SCAL] (1) G1.order6.anglev = atan2(twoWindingTransformer.p.vi, twoWindingTransformer.p.vr) ($RES_$AUX_157) (53) [SCAL] (1) pwLine1.is.im = pwLine1.p.ii ($RES_BND_133) (54) [SCAL] (1) $FUN_3 = sin(G1.order6.delta) ($RES_$AUX_156) (55) [SCAL] (1) pwLine1.is.re = pwLine1.p.ir ($RES_BND_134) (56) [SCAL] (1) $FUN_4 = cos(G1.order6.delta) ($RES_$AUX_155) (57) [SCAL] (1) twoWindingTransformer.P21 = -(twoWindingTransformer.ir.re * twoWindingTransformer.vr.re + twoWindingTransformer.ir.im * twoWindingTransformer.vr.im) * twoWindingTransformer.S_b ($RES_SIM_40) (58) [SCAL] (1) pwLine1.vr.im = infiniteBus.p.vi ($RES_BND_135) (59) [SCAL] (1) B1.v = sqrt(twoWindingTransformer.p.vr ^ 2.0 + twoWindingTransformer.p.vi ^ 2.0) ($RES_$AUX_154) (60) [SCAL] (1) twoWindingTransformer.P12 = (twoWindingTransformer.is.re * twoWindingTransformer.vs.re + twoWindingTransformer.is.im * twoWindingTransformer.vs.im) * twoWindingTransformer.S_b ($RES_SIM_41) (61) [SCAL] (1) pwLine1.vr.re = infiniteBus.p.vr ($RES_BND_136) (62) [SCAL] (1) 0.017453292519943295 * B1.angleDisplay = atan2(twoWindingTransformer.p.vi, twoWindingTransformer.p.vr) ($RES_$AUX_153) (63) [SCAL] (1) twoWindingTransformer.x * twoWindingTransformer.n.ir + twoWindingTransformer.r * twoWindingTransformer.n.ii = pwFault.p.vi - (1/twoWindingTransformer.m) * twoWindingTransformer.p.vi ($RES_SIM_42) (64) [SCAL] (1) pwLine1.ir.im = pwLine1.n.ii ($RES_BND_137) (65) [SCAL] (1) B2.v = sqrt(pwFault.p.vr ^ 2.0 + pwFault.p.vi ^ 2.0) ($RES_$AUX_152) (66) [SCAL] (1) twoWindingTransformer.r * twoWindingTransformer.n.ir - twoWindingTransformer.x * twoWindingTransformer.n.ii = pwFault.p.vr - (1/twoWindingTransformer.m) * twoWindingTransformer.p.vr ($RES_SIM_43) (67) [SCAL] (1) pwLine1.ir.re = pwLine1.n.ir ($RES_BND_138) (68) [SCAL] (1) 0.017453292519943295 * B2.angleDisplay = atan2(pwFault.p.vi, pwFault.p.vr) ($RES_$AUX_151) (69) [SCAL] (1) twoWindingTransformer.r * twoWindingTransformer.p.ii + twoWindingTransformer.x * twoWindingTransformer.p.ir = (1/twoWindingTransformer.m ^ 2.0) * twoWindingTransformer.p.vi - (1/twoWindingTransformer.m) * pwFault.p.vi ($RES_SIM_44) (70) [SCAL] (1) pwLine2.vs.im = pwFault.p.vi ($RES_BND_139) (71) [SCAL] (1) B3.v = sqrt(infiniteBus.p.vr ^ 2.0 + infiniteBus.p.vi ^ 2.0) ($RES_$AUX_150) (72) [SCAL] (1) G1.order6.e2d = (G1.order6.ra * G1.order6.id + G1.order6.vd) - G1.order6.x2q * G1.order6.iq ($RES_SIM_80) (73) [SCAL] (1) twoWindingTransformer.r * twoWindingTransformer.p.ir - twoWindingTransformer.x * twoWindingTransformer.p.ii = (1/twoWindingTransformer.m ^ 2.0) * twoWindingTransformer.p.vr - (1/twoWindingTransformer.m) * pwFault.p.vr ($RES_SIM_45) (74) [SCAL] (1) G1.order6.e2q = G1.order6.ra * G1.order6.iq + G1.order6.vq + G1.order6.x2d * G1.order6.id ($RES_SIM_81) (75) [SCAL] (1) $DER.G1.order6.e2q = ((G1.order6.e1q + (G1.order6.Taa / G1.order6.T1d0) * G1.order6.vf_MB) - (((G1.order6.x1d + ((G1.order6.x2d * (G1.order6.T2d0 / G1.order6.T1d0)) / G1.order6.x1d) * (G1.order6.xd - G1.order6.x1d)) - G1.order6.x2d) * G1.order6.id + G1.order6.e2q)) / G1.order6.T2d0 ($RES_SIM_82) (76) [SCAL] (1) $DER.G1.order6.e2d = ((G1.order6.e1d + ((G1.order6.x1q + ((G1.order6.x2q * (G1.order6.T2q0 / G1.order6.T1q0)) / G1.order6.x1q) * (G1.order6.xq - G1.order6.x1q)) - G1.order6.x2q) * G1.order6.iq) - G1.order6.e2d) / G1.order6.T2q0 ($RES_SIM_83) (77) [SCAL] (1) $DER.G1.order6.e1d = ((G1.order6.xq - (((G1.order6.x2q * (G1.order6.T2q0 / G1.order6.T1q0)) / G1.order6.x1q) * (G1.order6.xq - G1.order6.x1q) + G1.order6.x1q)) * G1.order6.iq - G1.order6.e1d) / G1.order6.T1q0 ($RES_SIM_84) (78) [SCAL] (1) $DER.G1.order6.e1q = ((1.0 - G1.order6.Taa / G1.order6.T1d0) * G1.order6.vf_MB - ((G1.order6.xd - (((G1.order6.x2d * (G1.order6.T2d0 / G1.order6.T1d0)) / G1.order6.x1d) * (G1.order6.xd - G1.order6.x1d) + G1.order6.x1d)) * G1.order6.id + G1.order6.e1q)) / G1.order6.T1d0 ($RES_SIM_85) (79) [SCAL] (1) twoWindingTransformer.n.ii + pwLine1.p.ii + pwLine2.p.ii + pwFault.p.ii = 0.0 ($RES_SIM_86) (80) [SCAL] (1) twoWindingTransformer.n.ir + pwLine1.p.ir + pwLine2.p.ir + pwFault.p.ir = 0.0 ($RES_SIM_87) (81) [SCAL] (1) pwLine1.n.ii + pwLine2.n.ii + infiniteBus.p.ii = 0.0 ($RES_SIM_88) (82) [SCAL] (1) pwLine1.n.ir + pwLine2.n.ir + infiniteBus.p.ir = 0.0 ($RES_SIM_89) (83) [SCAL] (1) $TEV_0 = time < pwFault.t1 ($RES_EVT_165) (84) [SCAL] (1) $TEV_1 = time < pwFault.t2 ($RES_EVT_166) (85) [SCAL] (1) $TEV_2 = time >= pwLine2.t1 ($RES_EVT_167) (86) [-IF-] (2)if $TEV_0 then (86) [----] [SCAL] (1) pwFault.p.ir = 0.0 ($RES_SIM_8) (86) [----] [SCAL] (1) pwFault.p.ii = 0.0 ($RES_SIM_9) (86) [----] elseif $SEV_0 then (86) [----] [SCAL] (1) pwFault.p.vi = 0.0 ($RES_SIM_10) (86) [----] [SCAL] (1) pwFault.p.vr = 1e-10 ($RES_SIM_11) (86) [----] elseif $TEV_1 then (86) [----] [SCAL] (1) pwFault.p.ir = (pwFault.R * pwFault.p.vr + pwFault.X * pwFault.p.vi) / (pwFault.R * pwFault.R + pwFault.X * pwFault.X) ($RES_SIM_12) (86) [----] [SCAL] (1) pwFault.p.ii = (pwFault.R * pwFault.p.vi - pwFault.X * pwFault.p.vr) / (pwFault.X * pwFault.X + pwFault.R * pwFault.R) ($RES_SIM_13) (86) [----] else (86) [----] [SCAL] (1) pwFault.p.ir = 0.0 ($RES_SIM_14) (86) [----] [SCAL] (1) pwFault.p.ii = 0.0 ($RES_SIM_15) (86) [----] end if; (87) [SCAL] (1) $TEV_3 = time < pwLine2.t2 ($RES_EVT_168) (88) [SCAL] (1) $TEV_4 = $TEV_2 and $TEV_3 ($RES_EVT_169) (89) [SCAL] (1) pwLine2.vs.re = pwFault.p.vr ($RES_BND_140) (90) [SCAL] (1) 0.017453292519943295 * B3.angleDisplay = atan2(infiniteBus.p.vi, infiniteBus.p.vr) ($RES_$AUX_149) (91) [SCAL] (1) pwLine2.is.im = pwLine2.p.ii ($RES_BND_141) (92) [SCAL] (1) $FUN_11 = cos(infiniteBus.angle_0) ($RES_$AUX_148) (93) [SCAL] (1) pwLine2.is.re = pwLine2.p.ir ($RES_BND_142) (94) [SCAL] (1) $FUN_12 = sin(infiniteBus.angle_0) ($RES_$AUX_147) (95) [SCAL] (1) pwLine2.vr.im = infiniteBus.p.vi ($RES_BND_143) (96) [SCAL] (1) pwLine2.vr.re = infiniteBus.p.vr ($RES_BND_144)