Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.DAEMode.SMIB_Examples.Example_1.Network1.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/Modelica 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/OpenIPSL 3.1.0-master/package.mo", uses=false) Using package OpenIPSL with version 3.1.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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(OpenIPSL.Examples.DAEMode.SMIB_Examples.Example_1.Network1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200000,variableFilter="",fileNamePrefix="OpenIPSL_dev_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_dev_OpenIPSL.Examples.DAEMode.SMIB_Examples.Example_1.Network1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001098/0.001098, allocations: 104.4 kB / 16.37 MB, free: 6.367 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.173/1.173, allocations: 222.9 MB / 240 MB, free: 4.555 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001168/0.001169, allocations: 188.5 kB / 290.3 MB, free: 2.277 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4533/0.4533, allocations: 91.89 MB / 432.4 MB, free: 9.227 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.937e-05/1.939e-05, allocations: 6.219 kB / 0.5032 GB, free: 7.07 MB / 382.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.DAEMode.SMIB_Examples.Example_1.Network1): time 0.005005/0.005037, allocations: 5.25 MB / 0.5083 GB, free: 1.789 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002484/0.007535, allocations: 1.755 MB / 0.5101 GB, free: 32 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002173/0.007763, allocations: 4 kB / 0.5101 GB, free: 28 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003283/0.008099, allocations: 174.5 kB / 0.5102 GB, free: 15.86 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00116/0.009268, allocations: 0.6564 MB / 0.5109 GB, free: 15.2 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007551/0.01003, allocations: 0.5017 MB / 0.5114 GB, free: 14.7 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009998/0.01104, allocations: 1.359 MB / 0.5127 GB, free: 13.34 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002904/0.01134, allocations: 246.5 kB / 0.5129 GB, free: 13.08 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004097/0.01175, allocations: 498 kB / 0.5134 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004594/0.01222, allocations: 0.5912 MB / 0.514 GB, free: 12 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001284/0.01236, allocations: 115.9 kB / 0.5141 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000329/0.0127, allocations: 251.8 kB / 0.5143 GB, free: 11.64 MB / 398.1 MB Notification: Performance of combineBinaries: time 0.001032/0.01374, allocations: 1.82 MB / 0.5161 GB, free: 9.801 MB / 398.1 MB Notification: Performance of replaceArrayConstructors: time 0.0005052/0.01425, allocations: 1.09 MB / 0.5172 GB, free: 8.695 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001171/0.01437, allocations: 143.5 kB / 0.5173 GB, free: 8.555 MB / 398.1 MB Notification: Performance of FrontEnd: time 6.184e-05/0.01444, allocations: 23.94 kB / 0.5173 GB, free: 8.531 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.003298/0.01774, allocations: 4.801 MB / 0.522 GB, free: 3.559 MB / 398.1 MB Notification: Performance of FunctionAlias: time 0.0003646/0.01811, allocations: 431 kB / 0.5224 GB, free: 3.129 MB / 398.1 MB Notification: Performance of Early Inline: time 0.00268/0.0208, allocations: 3.52 MB / 0.5259 GB, free: 15.57 MB / 414.1 MB Notification: Performance of simplify1: time 0.000151/0.02096, allocations: 199.8 kB / 0.5261 GB, free: 15.37 MB / 414.1 MB Notification: Performance of Alias: time 0.00263/0.0236, allocations: 2.892 MB / 0.5289 GB, free: 12.23 MB / 414.1 MB Notification: Performance of simplify2: time 0.0001282/0.02373, allocations: 183.8 kB / 0.5291 GB, free: 12.05 MB / 414.1 MB Notification: Performance of Events: time 0.0003397/0.02408, allocations: 410.9 kB / 0.5294 GB, free: 11.64 MB / 414.1 MB Notification: Performance of Detect States: time 0.0005179/0.02461, allocations: 0.6715 MB / 0.5301 GB, free: 10.95 MB / 414.1 MB Notification: Performance of Partitioning: time 0.0006796/0.0253, allocations: 0.7727 MB / 0.5309 GB, free: 10.16 MB / 414.1 MB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency twoWindingTransformer.p.vi could not be devided 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.Units.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.Units.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.Units.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)