Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.GasComponents.TestTurboJetConstSpeed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ThermoPower.Test.GasComponents.TestTurboJetConstSpeed,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.GasComponents.TestTurboJetConstSpeed") translateModel(ThermoPower.Test.GasComponents.TestTurboJetConstSpeed,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.GasComponents.TestTurboJetConstSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001145/0.001145, allocations: 106.6 kB / 17.69 MB, free: 5.5 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.001087/0.001088, allocations: 192 kB / 18.63 MB, free: 4.566 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.179/1.179, allocations: 205.1 MB / 224.5 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2459/0.2459, allocations: 48.85 MB / 320.7 MB, free: 11.04 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.97e-05/1.972e-05, allocations: 2.984 kB / 391.5 MB, free: 48.61 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.GasComponents.TestTurboJetConstSpeed): time 0.3372/0.3373, allocations: 223.8 MB / 0.6008 GB, free: 5.059 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.009325/0.3466, allocations: 8.02 MB / 0.6087 GB, free: 4.137 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001351/0.348, allocations: 23.22 kB / 0.6087 GB, free: 4.137 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001777/0.3498, allocations: 0.7179 MB / 0.6094 GB, free: 3.812 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.002546/0.3524, allocations: 1.321 MB / 0.6107 GB, free: 3.277 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006828/0.3592, allocations: 3.511 MB / 0.6141 GB, free: 1.625 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003155/0.3624, allocations: 3.707 MB / 0.6177 GB, free: 172 kB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001324/0.3637, allocations: 1.254 MB / 0.6189 GB, free: 15.42 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001736/0.3654, allocations: 1.436 MB / 0.6204 GB, free: 14.8 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009372/0.3664, allocations: 1.123 MB / 0.6214 GB, free: 14.26 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001771/0.3666, allocations: 165.6 kB / 0.6216 GB, free: 14.26 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004832/0.3714, allocations: 2.717 MB / 0.6243 GB, free: 13.23 MB / 430.1 MB Notification: Performance of combineBinaries: time 0.002097/0.3735, allocations: 2.792 MB / 0.627 GB, free: 10.57 MB / 430.1 MB Notification: Performance of replaceArrayConstructors: time 0.001013/0.3746, allocations: 1.685 MB / 0.6286 GB, free: 8.949 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004791/0.375, allocations: 295.2 kB / 0.6289 GB, free: 8.66 MB / 430.1 MB Notification: Performance of FrontEnd: time 0.0002975/0.3753, allocations: 37 kB / 0.6289 GB, free: 8.629 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 455 (293) * Number of variables: 455 (289) Notification: Performance of Bindings: time 0.00643/0.3818, allocations: 7.829 MB / 0.6366 GB, free: 0.7266 MB / 430.1 MB Notification: Performance of FunctionAlias: time 0.0007427/0.3825, allocations: 0.8538 MB / 0.6374 GB, free: 15.88 MB / 446.1 MB Notification: Performance of Early Inline: time 0.003612/0.3861, allocations: 4.105 MB / 0.6414 GB, free: 11.81 MB / 446.1 MB Notification: Performance of simplify1: time 0.000299/0.3865, allocations: 325 kB / 0.6417 GB, free: 11.51 MB / 446.1 MB Notification: Performance of Alias: time 0.00526/0.3917, allocations: 5.201 MB / 0.6468 GB, free: 5.996 MB / 446.1 MB Notification: Performance of simplify2: time 0.0002566/0.392, allocations: 261.5 kB / 0.6471 GB, free: 5.754 MB / 446.1 MB Notification: Performance of Events: time 0.0009126/0.3929, allocations: 0.8142 MB / 0.6479 GB, free: 4.965 MB / 446.1 MB Notification: Performance of Detect States: time 0.001018/0.3939, allocations: 1.058 MB / 0.6489 GB, free: 3.914 MB / 446.1 MB Notification: Performance of Partitioning: time 0.00155/0.3955, allocations: 1.669 MB / 0.6505 GB, free: 1.941 MB / 446.1 MB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency Compressor1.outlet.Xi_outflow[2] could not be devided by the body size 4 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [ARRY] (4) {Compressor1.outlet.Xi_outflow[1], Compressor1.outlet.Xi_outflow[2], Compressor1.outlet.Xi_outflow[3], Compressor1.outlet.Xi_outflow[4]} = PressDrop2.outlet.Xi_outflow ($RES_SIM_10) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (175/373) **************************** (1) [ALGB] (4) Real[4] PressDrop2.gas.Xi (start = PressDrop2.Xstart[:], min = {0.0 for $i1 in 1:4}, max = {1.0 for $i1 in 1:4}, StateSelect = default) (2) [ALGB] (1) Real PressDrop2.dp (3) [DISC] (1) Boolean $SEV_26 (4) [ALGB] (1) Real Turbine1.gas_iso.MM (min = 0.001, max = 0.25, nominal = 0.032) (5) [ALGB] (1) Real PressDrop2.gas.T_degC = Modelica.SIunits.Conversions.to_degC(-((-273.15) - PressDrop2.gas.T_degC)) (6) [ALGB] (4) Real[4] Compressor1.gas_iso.state.X (start = {0.23, 0.015, 0.005, 0.75}, min = {0.0 for $i1 in 1:4}, max = {1.0 for $i1 in 1:4}, nominal = {0.1 for $i1 in 1:4}) (7) [ALGB] (1) Real Compressor1.gas_iso.u (min = -1e8, max = 1e8, nominal = 1e6) (8) [DER-] (1) Real $DER.ConstantSpeed1.phi (9) [ALGB] (1) stream Real Turbine1.outlet.h_outflow (start = 0.0, min = -1e10, max = 1e10, nominal = 1e5) (10) [ALGB] (1) Real Turbine1.gas_iso.R (start = 1000.0, min = 0.0, max = 1e7, nominal = 1000.0) (11) [DER-] (1) Real $DER.CombustionChamber1.fluegas.T_degC (12) [ALGB] (1) Real PressDrop2.w (min = -1e5, max = 1e5) (13) [ALGB] (5) Real[5] Turbine1.gas_iso.X (start = {0.23, 0.02, 0.01, 0.04, 0.7}, min = {0.0 for $i1 in 1:5}, max = {1.0 for $i1 in 1:5}, nominal = {0.1 for $i1 in 1:5}) (14) [ALGB] (1) Real Compressor1.gas_iso.h (15) [ALGB] (1) Real Compressor1.gas_iso.d (start = 10.0, min = 0.0, max = 1e5, nominal = 10.0) (16) [ALGB] (1) Real SourceP1.gas.u (min = -1e8, max = 1e8, nominal = 1e6) (17) [ALGB] (1) Real PressDrop1.gas.R (start = 1000.0, min = 0.0, max = 1e7, nominal = 1000.0) (18) [ALGB] (1) Real SinkP1.gas.R (start = 1000.0, min = 0.0, max = 1e7, nominal = 1000.0) (19) [ALGB] (1) Real Turbine1.gas_iso.d (start = 10.0, min = 0.0, max = 1e5, nominal = 10.0) (20) [ALGB] (5) Real[5] SinkP1.gas.state.X (start = {0.23, 0.02, 0.01, 0.04, 0.7}, min = {0.0 for $i1 in 1:5}, max = {1.0 for $i1 in 1:5}, nominal = {0.1 for $i1 in 1:5}) (21) [ALGB] (3) protected Real[3] SourceW1.in_X_internal (22) [ALGB] (1) Real Turbine1.eta (23) [ALGB] (5) Real[5] PressDrop1.gas.X (start = {0.23, 0.02, 0.01, 0.04, 0.7}, min = {0.0 for $i1 in 1:5}, max = {1.0 for $i1 in 1:5}, nominal = {0.1 for $i1 in 1:5}) (24) [ALGB] (1) Real Turbine1.gas_iso.h (25) [ALGB] (5) Real[5] SinkP1.gas.X (start = {0.23, 0.02, 0.01, 0.04, 0.7}, min = {0.0 for $i1 in 1:5}, max = {1.0 for $i1 in 1:5}, nominal = {0.1 for $i1 in 1:5}) (26) [ALGB] (1) flow Real Compressor1.shaft_a.tau (27) [DISC] (4) Boolean[4] $SEV_42[$i1] (28) [ALGB] (4) Real[4] Compressor1.gas_iso.X (start = {0.23, 0.015, 0.005, 0.75}, min = {0.0 for $i1 in 1:4}, max = {1.0 for $i1 in 1:4}, nominal = {0.1 for $i1 in 1:4}) (29) [ALGB] (1) Real CombustionChamber1.hia (start = 0.0, min = -1e10, max = 1e10, nominal = 1e5) (30) [ALGB] (1) Real SourceP1.gas.h (31) [ALGB] (1) Real SourceW1.gas.u (min = -1e8, max = 1e8, nominal = 1e6) (32) [ALGB] (1) Real SourceP1.gas.d (start = 10.0, min = 0.0, max = 1e5, nominal = 10.0) (33) [ALGB] (4) stream Real[4] Compressor1.inlet.Xi_outflow (min = {0.0 for $i1 in 1:4}, max = {1.0 for $i1 in 1:4}, nominal = {0.1 for $i1 in 1:4}) (34) [ALGB] (1) Real Compressor1.gas_iso.R (start = 1000.0, min = 0.0, max = 1e7, nominal = 1000.0) (35) [ALGB] (1) Real PressDrop1.gas.d (start = 10.0, min = 0.0, max = 1e5, nominal = 10.0) (36) [ALGB] (1) Real SinkP1.gas.d (start = 10.0, min = 0.0, max = 1e5, nominal = 10.0) (37) [ALGB] (1) Real Turbine1.gas_iso.u (min = -1e8, max = 1e8, nominal = 1e6) (38) [DISC] (4) Boolean[4] $SEV_5[$i1] (39) [ALGB] (1) Real PressDrop1.gas.h (40) [ALGB] (1) Real PressDrop1.gas.state.p (start = 1e6, min = 0.0, max = 1e8, nominal = 1e6) (41) [ALGB] (5) stream Real[5] PressDrop1.outlet.Xi_outflow (min = {0.0 for $i1 in 1:5}, max = {1.0 for $i1 in 1:5}, nominal = {0.1 for $i1 in 1:5}) (42) [ALGB] (1) Real PressDrop2.pin (start = 1e6, min = 0.0, max = 1e8, nominal = 1e6) (43) [ALGB] (4) stream Real[4] SourceP1.flange.Xi_outflow (min = {0.0 for $i1 in 1:4}, max = {1.0 for $i1 in 1:4}, nominal = {0.1 for $i1 in 1:4}) (44) [ALGB] (1) Real SourceW1.gas.h (45) [ALGB] (4) Real[4] SourceP1.gas.X (start = {0.23, 0.015, 0.005, 0.75}, min = {0.0 for $i1 in 1:4}, max = {1.0 for $i1 in 1:4}, nominal = {0.1 for $i1 in 1:4}) (46) [DER-] (1) Real $DER.CombustionChamber1.fluegas.p_bar (47) [ALGB] (1) Real SourceW1.gas.d (start = 10.0, min = 0.0, max = 1e5, nominal = 10.0) (48) [ALGB] (1) Real SourceP1.gas.R (start = 1000.0, min = 0.0, max = 1e7, nominal = 1000.0) (49) [ALGB] (1) Real Compressor1.gas_iso.MM (min = 0.001, max = 0.25, nominal = 0.032) (50) [ALGB] (1) Real PressDrop1.gas.u (min = -1e8, max = 1e8, nominal = 1e6) (51) [ALGB] (1) Real SinkP1.gas.u (min = -1e8, max = 1e8, nominal = 1e6) (52) [ALGB] (4) stream Real[4] PressDrop2.outlet.Xi_outflow (min = {0.0 for $i1 in 1:4}, max = {1.0 for $i1 in 1:4}, nominal = {0.1 for $i1 in 1:4}) (53) [ALGB] (5) stream Real[5] Turbine1.outlet.Xi_outflow (min = {0.0 for $i1 in 1:5}, max = {1.0 for $i1 in 1:5}, nominal = {0.1 for $i1 in 1:5}) (54) [ALGB] (1) Real CombustionChamber1.HR (55) [ALGB] (3) Real[3] SourceW1.gas.X (start = {0.02, 0.012, 0.968}, min = {0.0 for $i1 in 1:3}, max = {1.0 for $i1 in 1:3}, nominal = {0.1 for $i1 in 1:3}) (56) [ALGB] (4) Real[4] Compressor1.gas_in.Xi (start = Compressor1.Xstart[:], min = {0.0 for $i1 in 1:4}, max = {1.0 for $i1 in 1:4}, StateSelect = default) (57) [ALGB] (1) Real Compressor1.tau (58) [ALGB] (1) Real Compressor1.PR (59) [ALGB] (5) Real[5] PressDrop1.gas.state.X (start = {0.23, 0.02, 0.01, 0.04, 0.7}, min = {0.0 for $i1 in 1:5}, max = {1.0 for $i1 in 1:5}, nominal = {0.1 for $i1 in 1:5}) (60) [ALGB] (1) stream Real PressDrop1.inlet.h_outflow (start = 0.0, min = -1e10, max = 1e10, nominal = 1e5) (61) [ALGB] (1) Real Turbine1.gas_in.p_bar = Modelica.SIunits.Conversions.to_bar(99999.99999999999 * Turbine1.gas_in.p_bar) (62) [ALGB] (1) Real SourceW1.gas.R (start = 1000.0, min = 0.0, max = 1e7, nominal = 1000.0) (63) [ALGB] (1) Real SinkP1.gas.MM (min = 0.001, max = 0.25, nominal = 0.032) (64) [ALGB] (1) Real PressDrop1.gas.state.T (start = 500.0, min = 200.0, max = 6000.0, nominal = 500.0) (65) [ALGB] (3) Real[3] SourceW1.gas.Xi (start = SourceW1.Xnom[:], min = {0.0 for $i1 in 1:3}, max = {1.0 for $i1 in 1:3}, StateSelect = default) (66) [ALGB] (1) Real PressDrop2.gas.R (start = 1000.0, min = 0.0, max = 1e7, nominal = 1000.0) (67) [ALGB] (1) Real $FUN_5 (68) [ALGB] (1) Real $FUN_4 (69) [DISC] (5) Boolean[5] $SEV_18[$i1] (70) [ALGB] (4) stream Real[4] Compressor1.outlet.Xi_outflow (min = {0.0 for $i1 in 1:4}, max = {1.0 for $i1 in 1:4}, nominal = {0.1 for $i1 in 1:4}) (71) [ALGB] (1) Real $FUN_3 (72) [ALGB] (4) Real[4] PressDrop2.gas.X (start = {0.23, 0.015, 0.005, 0.75}, min = {0.0 for $i1 in 1:4}, max = {1.0 for $i1 in 1:4}, nominal = {0.1 for $i1 in 1:4}) (73) [ALGB] (1) Real $FUN_2 (74) [DISC] (5) Boolean[5] $SEV_35[$i1] (75) [ALGB] (1) Real Turbine1.tau (76) [ALGB] (1) Real $FUN_1 (77) [ALGB] (4) protected Real[4] SourceP1.in_X_internal (78) [ALGB] (1) Real PressDrop2.gas.d (start = 10.0, min = 0.0, max = 1e5, nominal = 10.0) (79) [ALGB] (4) Real[4] SourceP1.gas.Xi (start = SourceP1.Xnom[:], min = {0.0 for $i1 in 1:4}, max = {1.0 for $i1 in 1:4}, StateSelect = default) (80) [ALGB] (1) Real PressDrop2.gas.state.T (start = 500.0, min = 200.0, max = 6000.0, nominal = 500.0) (81) [ALGB] (1) Real CombustionChamber1.lambda (82) [ALGB] (1) Real PressDrop2.gas.h (83) [ALGB] (1) Real CombustionChamber1.wcomb (84) [ALGB] (4) Real[4] PressDrop2.gas.state.X (start = {0.23, 0.015, 0.005, 0.75}, min = {0.0 for $i1 in 1:4}, max = {1.0 for $i1 in 1:4}, nominal = {0.1 for $i1 in 1:4}) (85) [ALGB] (1) Real Compressor1.PressRatio.u1 (86) [ALGB] (5) Real[5] PressDrop1.gas.Xi (start = PressDrop1.Xstart[:], min = {0.0 for $i1 in 1:5}, max = {1.0 for $i1 in 1:5}, StateSelect = default) (87) [ALGB] (1) Real Compressor1.PressRatio.u2 (88) [ALGB] (1) Real Turbine1.gas_in.R (start = 1000.0, min = 0.0, max = 1e7, nominal = 1000.0) (89) [ALGB] (1) Real Turbine1.gas_in.MM (min = 0.001, max = 0.25, nominal = 0.032) (90) [ALGB] (5) Real[5] Turbine1.gas_in.X (start = {0.23, 0.02, 0.01, 0.04, 0.7}, min = {0.0 for $i1 in 1:5}, max = {1.0 for $i1 in 1:5}, nominal = {0.1 for $i1 in 1:5}) (91) [ALGB] (5) Real[5] Turbine1.gas_iso.state.X (start = {0.23, 0.02, 0.01, 0.04, 0.7}, min = {0.0 for $i1 in 1:5}, max = {1.0 for $i1 in 1:5}, nominal = {0.1 for $i1 in 1:5}) (92) [ALGB] (1) Real Turbine1.Eta.u2 (93) [ALGB] (1) Real PressDrop2.gas.u (min = -1e8, max = 1e8, nominal = 1e6) (94) [ALGB] (1) Real Turbine1.Eta.u1 (95) [ALGB] (1) Real Compressor1.gas_in.state.T (start = 500.0, min = 200.0, max = 6000.0, nominal = 500.0) (96) [ALGB] (4) Real[4] Compressor1.gas_in.state.X (start = {0.23, 0.015, 0.005, 0.75}, min = {0.0 for $i1 in 1:4}, max = {1.0 for $i1 in 1:4}, nominal = {0.1 for $i1 in 1:4}) (97) [ALGB] (1) Real CombustionChamber1.fluegas.u (min = -1e8, max = 1e8, nominal = 1e6) (98) [ALGB] (1) Real Turbine1.gas_in.d (start = 10.0, min = 0.0, max = 1e5, nominal = 10.0) (99) [ALGB] (1) Real Compressor1.eta (100) [ALGB] (1) Real PressDrop2.gas.state.p (start = 1e6, min = 0.0, max = 1e8, nominal = 1e6) (101) [ALGB] (5) Real[5] Turbine1.gas_iso.Xi (start = Turbine1.Xstart[:], min = {0.0 for $i1 in 1:5}, max = {1.0 for $i1 in 1:5}, StateSelect = default) (102) [ALGB] (1) Real Turbine1.gas_in.h (103) [ALGB] (1) Real Turbine1.N_T_design (104) [DISC] (4) Boolean[4] $SEV_39[$i1] (105) [ALGB] (1) Real PressDrop2.gas.MM (min = 0.001, max = 0.25, nominal = 0.032) (106) [DISC] (1) Boolean $SEV_8 (107) [DISC] (1) Boolean $SEV_7 (108) [DISC] (5) Boolean[5] $SEV_28[$i1] (109) [DER-] (1) Real $DER.CombustionChamber1.Tm (110) [DISC] (1) Boolean $SEV_1 (111) [DISC] (1) Boolean $SEV_0 (112) [ALGB] (1) Real CombustionChamber1.fluegas.d (start = 10.0, min = 0.0, max = 1e5, nominal = 10.0) (113) [ALGB] (1) Real Turbine1.gas_in.u (min = -1e8, max = 1e8, nominal = 1e6) (114) [DER-] (5) Real[5] $DER.CombustionChamber1.MX (115) [DISC] (5) Boolean[5] $SEV_12[$i1] (116) [ALGB] (1) Real Compressor1.gas_in.state.p (start = 1e6, min = 0.0, max = 1e8, nominal = 1e6) (117) [ALGB] (1) Real Turbine1.phic (118) [ALGB] (5) Real[5] CombustionChamber1.fluegas.X (start = {0.23, 0.02, 0.01, 0.04, 0.7}, min = {0.0 for $i1 in 1:5}, max = {1.0 for $i1 in 1:5}, nominal = {0.1 for $i1 in 1:5}) (119) [DER-] (1) Real $DER.CombustionChamber1.E (120) [ALGB] (1) Real CombustionChamber1.Tr (121) [ALGB] (1) Real CombustionChamber1.fluegas.R (start = 1000.0, min = 0.0, max = 1e7, nominal = 1000.0) (122) [ALGB] (1) flow Real Compressor1.shaft_b.tau (123) [DER-] (1) Real $DER.Inertia1.w (124) [ALGB] (5) stream Real[5] Turbine1.inlet.Xi_outflow (min = {0.0 for $i1 in 1:5}, max = {1.0 for $i1 in 1:5}, nominal = {0.1 for $i1 in 1:5}) (125) [DER-] (1) Real $DER.CombustionChamber1.M (126) [ALGB] (1) Real Turbine1.hout_iso (start = 0.0, min = -1e10, max = 1e10, nominal = 1e5) (127) [DER-] (1) Real $DER.Turbine1.shaft_b.phi (128) [ALGB] (4) protected Real[4] CombustionChamber1.ina_X = {PressDrop2.outlet.Xi_outflow[1], PressDrop2.outlet.Xi_outflow[2], PressDrop2.outlet.Xi_outflow[3], PressDrop2.outlet.Xi_outflow[4]} (min = {0.0 for $i1 in 1:4}, max = {1.0 for $i1 in 1:4}, nominal = {0.1 for $i1 in 1:4}) (129) [ALGB] (1) Real Compressor1.hout_iso (start = 0.0, min = -1e10, max = 1e10, nominal = 1e5) (130) [ALGB] (3) stream Real[3] SourceW1.flange.Xi_outflow (min = {0.0 for $i1 in 1:3}, max = {1.0 for $i1 in 1:3}, nominal = {0.1 for $i1 in 1:3}) (131) [ALGB] (1) Real PressDrop1.gas.T_degC = Modelica.SIunits.Conversions.to_degC(-((-273.15) - PressDrop1.gas.T_degC)) (132) [ALGB] (1) Real Compressor1.omega (133) [ALGB] (4) Real[4] Compressor1.gas_iso.Xi (start = Compressor1.Xstart[:], min = {0.0 for $i1 in 1:4}, max = {1.0 for $i1 in 1:4}, StateSelect = default) (134) [ALGB] (1) Real Turbine1.gas_in.T_degC = Modelica.SIunits.Conversions.to_degC(-((-273.15) - Turbine1.gas_in.T_degC)) (135) [ALGB] (4) stream Real[4] PressDrop2.inlet.Xi_outflow (min = {0.0 for $i1 in 1:4}, max = {1.0 for $i1 in 1:4}, nominal = {0.1 for $i1 in 1:4}) (136) [ALGB] (1) Real Compressor1.N_T_design (137) [ALGB] (5) stream Real[5] PressDrop1.inlet.Xi_outflow (min = {0.0 for $i1 in 1:5}, max = {1.0 for $i1 in 1:5}, nominal = {0.1 for $i1 in 1:5}) (138) [ALGB] (1) Real CombustionChamber1.fluegas.state.p (start = 1e6, min = 0.0, max = 1e8, nominal = 1e6) (139) [ALGB] (5) Real[5] SinkP1.gas.Xi (start = SinkP1.Xnom[:], min = {0.0 for $i1 in 1:5}, max = {1.0 for $i1 in 1:5}, StateSelect = default) (140) [DER-] (5) Real[5] $DER.CombustionChamber1.fluegas.Xi (141) [ALGB] (1) Real Turbine1.gas_in.state.T (start = 500.0, min = 200.0, max = 6000.0, nominal = 500.0) (142) [ALGB] (5) Real[5] Turbine1.gas_in.state.X (start = {0.23, 0.02, 0.01, 0.04, 0.7}, min = {0.0 for $i1 in 1:5}, max = {1.0 for $i1 in 1:5}, nominal = {0.1 for $i1 in 1:5}) (143) [ALGB] (1) Real Compressor1.gas_in.MM (min = 0.001, max = 0.25, nominal = 0.032) (144) [ALGB] (1) Real Compressor1.gas_in.u (min = -1e8, max = 1e8, nominal = 1e6) (145) [ALGB] (1) Real SourceW1.gas.MM (min = 0.001, max = 0.25, nominal = 0.032) (146) [ALGB] (1) Real PressDrop1.gas.p_bar = Modelica.SIunits.Conversions.to_bar(99999.99999999999 * PressDrop1.gas.p_bar) (147) [ALGB] (1) Real PressDrop1.dp (148) [ALGB] (1) Real PressDrop1.w (min = -1e5, max = 1e5) (149) [ALGB] (1) flow Real Turbine1.shaft_a.tau (150) [ALGB] (5) protected Real[5] SinkP1.in_X_internal (151) [ALGB] (5) stream Real[5] CombustionChamber1.out.Xi_outflow (min = {0.0 for $i1 in 1:5}, max = {1.0 for $i1 in 1:5}, nominal = {0.1 for $i1 in 1:5}) (152) [ALGB] (5) stream Real[5] SinkP1.flange.Xi_outflow (min = {0.0 for $i1 in 1:5}, max = {1.0 for $i1 in 1:5}, nominal = {0.1 for $i1 in 1:5}) (153) [ALGB] (5) Real[5] CombustionChamber1.fluegas.state.X (start = {0.23, 0.02, 0.01, 0.04, 0.7}, min = {0.0 for $i1 in 1:5}, max = {1.0 for $i1 in 1:5}, nominal = {0.1 for $i1 in 1:5}) (154) [ALGB] (1) Real CombustionChamber1.fluegas.MM (min = 0.001, max = 0.25, nominal = 0.032) (155) [ALGB] (3) Real[3] SourceW1.gas.state.X (start = {0.02, 0.012, 0.968}, min = {0.0 for $i1 in 1:3}, max = {1.0 for $i1 in 1:3}, nominal = {0.1 for $i1 in 1:3}) (156) [ALGB] (4) Real[4] SourceP1.gas.state.X (start = {0.23, 0.015, 0.005, 0.75}, min = {0.0 for $i1 in 1:4}, max = {1.0 for $i1 in 1:4}, nominal = {0.1 for $i1 in 1:4}) (157) [ALGB] (1) Real Compressor1.gas_in.d (start = 10.0, min = 0.0, max = 1e5, nominal = 10.0) (158) [ALGB] (1) Real CombustionChamber1.fluegas.state.T (start = 500.0, min = 200.0, max = 6000.0, nominal = 500.0) (159) [ALGB] (3) protected Real[3] CombustionChamber1.inf_X = {SourceW1.flange.Xi_outflow[1], SourceW1.flange.Xi_outflow[2], SourceW1.flange.Xi_outflow[3]} (min = {0.0 for $i1 in 1:3}, max = {1.0 for $i1 in 1:3}, nominal = {0.1 for $i1 in 1:3}) (160) [ALGB] (1) Real Turbine1.gas_in.state.p (start = 1e6, min = 0.0, max = 1e8, nominal = 1e6) (161) [ALGB] (1) Real PressDrop2.gas.p_bar = Modelica.SIunits.Conversions.to_bar(99999.99999999999 * PressDrop2.gas.p_bar) (162) [ALGB] (1) Real SourceP1.gas.MM (min = 0.001, max = 0.25, nominal = 0.032) (163) [ALGB] (1) Real Compressor1.gas_in.T_degC = Modelica.SIunits.Conversions.to_degC(-((-273.15) - Compressor1.gas_in.T_degC)) (164) [ALGB] (4) Real[4] Compressor1.gas_in.X (start = {0.23, 0.015, 0.005, 0.75}, min = {0.0 for $i1 in 1:4}, max = {1.0 for $i1 in 1:4}, nominal = {0.1 for $i1 in 1:4}) (165) [ALGB] (1) Real PressDrop1.gas.MM (min = 0.001, max = 0.25, nominal = 0.032) (166) [ALGB] (4) stream Real[4] CombustionChamber1.ina.Xi_outflow (min = {0.0 for $i1 in 1:4}, max = {1.0 for $i1 in 1:4}, nominal = {0.1 for $i1 in 1:4}) (167) [ALGB] (5) Real[5] Turbine1.gas_in.Xi (start = Turbine1.Xstart[:], min = {0.0 for $i1 in 1:5}, max = {1.0 for $i1 in 1:5}, StateSelect = default) (168) [DISC] (3) Boolean[3] $SEV_15[$i1] (169) [ALGB] (1) Real Compressor1.gas_in.R (start = 1000.0, min = 0.0, max = 1e7, nominal = 1000.0) (170) [DISC] (5) Boolean[5] $SEV_32[$i1] (171) [ALGB] (1) Real Turbine1.omega (172) [DISC] (4) Boolean[4] $SEV_21[$i1] (173) [ALGB] (1) Real SourceW1.gas.state.p (start = 1e6, min = 0.0, max = 1e8, nominal = 1e6) (174) [ALGB] (1) Real Inertia1.a (175) [ALGB] (1) Real Compressor1.phic System Equations (179/373) **************************** (1) [ARRY] (3) SourceW1.gas.Xi = SourceW1.gas.X[:] ($RES_SIM_84) (2) [ARRY] (4) Compressor1.gas_iso.Xi = Compressor1.gas_iso.X[:] ($RES_SIM_283) (3) [ARRY] (3) SourceW1.gas.state.X = SourceW1.gas.X ($RES_SIM_85) (4) [ARRY] (4) Compressor1.gas_iso.state.X = Compressor1.gas_iso.X ($RES_SIM_284) (5) [SCAL] (1) SourceW1.gas.state.p = 99999.99999999999 * CombustionChamber1.fluegas.p_bar ($RES_SIM_86) (6) [SCAL] (1) SourceW1.gas.d = (99999.99999999999 * CombustionChamber1.fluegas.p_bar) / (SourceW1.T * SourceW1.gas.R) ($RES_SIM_88) (7) [ARRY] (4) SourceP1.gas.Xi = SourceP1.gas.X[:] ($RES_SIM_128) (8) [SCAL] (1) Compressor1.gas_iso.d = 333.3333333333333 / Compressor1.gas_iso.R ($RES_SIM_287) (9) [SCAL] (1) SourceW1.gas.u = SourceW1.gas.h - SourceW1.gas.R * SourceW1.T ($RES_SIM_89) (10) [ARRY] (4) SourceP1.gas.state.X = SourceP1.gas.X ($RES_SIM_129) (11) [SCAL] (1) Compressor1.gas_iso.u = Compressor1.gas_iso.h - 300.0 * Compressor1.gas_iso.R ($RES_SIM_288) (12) [SCAL] (1) Compressor1.gas_iso.R = {259.8369938872708, 461.5233290850878, 208.1323720837088, 296.8033869505308} * Compressor1.gas_iso.X ($RES_SIM_289) (13) [SCAL] (1) $SEV_0 = PressDrop2.w > 0.0 ($RES_EVT_376) (14) [SCAL] (1) $SEV_1 = PressDrop2.w >= 0.0 ($RES_EVT_377) (15) [ARRY] (4) {Compressor1.outlet.Xi_outflow[1], Compressor1.outlet.Xi_outflow[2], Compressor1.outlet.Xi_outflow[3], Compressor1.outlet.Xi_outflow[4]} = PressDrop2.outlet.Xi_outflow ($RES_SIM_10) (16) [ARRY] (4) PressDrop2.inlet.Xi_outflow = {CombustionChamber1.ina.Xi_outflow[1], CombustionChamber1.ina.Xi_outflow[2], CombustionChamber1.ina.Xi_outflow[3], CombustionChamber1.ina.Xi_outflow[4]} ($RES_SIM_11) (17) [SCAL] (1) Turbine1.phic = ($FUN_4 * PressDrop1.w) / (99999.99999999999 * Turbine1.gas_in.p_bar) ($RES_SIM_211) (18) [SCAL] (1) Turbine1.Eta.u2 = (100.0 * Turbine1.omega) / (Turbine1.N_T_design * $FUN_4) ($RES_SIM_212) (19) [SCAL] (1) Turbine1.N_T_design = Turbine1.Ndesign / $FUN_3 ($RES_SIM_213) (20) [SCAL] (1) PressDrop2.dp = PressDrop2.pin - 99999.99999999999 * CombustionChamber1.fluegas.p_bar ($RES_SIM_15) (21) [SCAL] (1) Turbine1.eta = Modelica.Blocks.Tables.Internal.getTable2DValue(Turbine1.Eta.tableID, Turbine1.Eta.u1, Turbine1.Eta.u2) ($RES_SIM_214) (22) [SCAL] (1) Turbine1.phic = Modelica.Blocks.Tables.Internal.getTable2DValue(Turbine1.Phic.tableID, Turbine1.Eta.u1, Turbine1.Eta.u2) ($RES_SIM_215) (23) [SCAL] (1) SourceW1.gas.R = {296.8033869505308, 188.9244822140674, 518.2791167938085} * SourceW1.gas.X ($RES_SIM_90) (24) [SCAL] (1) SourceW1.gas.h = ThermoPower.Test.GasComponents.TestTurboJetConstSpeed.SourceW1.Medium.h_TX(SourceW1.T, SourceW1.gas.X, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.ZeroAt25C, 0.0) ($RES_SIM_91) (25) [SCAL] (1) Compressor1.gas_iso.h = ThermoPower.Test.GasComponents.TestTurboJetConstSpeed.Compressor1.Medium.h_TX(300.0, Compressor1.gas_iso.X, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.ZeroAt25C, 0.0) ($RES_SIM_290) (26) [SCAL] (1) SourceW1.gas.MM = 1/sum(SourceW1.gas.state.X[j] / ({0.0280134, 0.0440095, 0.01604246})[j] for j in 1:3) ($RES_SIM_92) (27) [SCAL] (1) SourceP1.gas.d = SourceP1.p0 / (SourceP1.T * SourceP1.gas.R) ($RES_SIM_132) (28) [SCAL] (1) PressDrop2.pin - 99999.99999999999 * CombustionChamber1.fluegas.p_bar = homotopy(smooth(1, PressDrop2.Kf_a * (PressDrop2.w * sqrt(PressDrop2.w * PressDrop2.w + PressDrop2.wnf * PressDrop2.wnom * PressDrop2.wnf * PressDrop2.wnom))) / PressDrop2.gas.d, (PressDrop2.dpnom / PressDrop2.wnom) * PressDrop2.w) ($RES_SIM_19) (29) [SCAL] (1) Compressor1.gas_iso.MM = 1/sum(Compressor1.gas_iso.state.X[j] / ({0.0319988, 0.01801528, 0.039948, 0.0280134})[j] for j in 1:4) ($RES_SIM_291) (30) [SCAL] (1) SourceP1.gas.u = SourceP1.gas.h - SourceP1.gas.R * SourceP1.T ($RES_SIM_133) (31) [ARRY] (5) Turbine1.gas_iso.Xi = Turbine1.gas_iso.X[:] ($RES_SIM_219) (32) [ARRY] (5) SinkP1.flange.Xi_outflow = SinkP1.gas.Xi ($RES_SIM_94) (33) [SCAL] (1) SourceP1.gas.R = {259.8369938872708, 461.5233290850878, 208.1323720837088, 296.8033869505308} * SourceP1.gas.X ($RES_SIM_134) (34) [SCAL] (1) SourceP1.gas.h = ThermoPower.Test.GasComponents.TestTurboJetConstSpeed.SourceP1.Medium.h_TX(SourceP1.T, SourceP1.gas.X, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.ZeroAt25C, 0.0) ($RES_SIM_135) (35) [ARRY] (5) SinkP1.in_X_internal = SinkP1.Xnom ($RES_SIM_96) (36) [SCAL] (1) SourceP1.gas.MM = 1/sum(SourceP1.gas.state.X[j] / ({0.0319988, 0.01801528, 0.039948, 0.0280134})[j] for j in 1:4) ($RES_SIM_136) (37) [ARRY] (5) SinkP1.gas.Xi = SinkP1.in_X_internal[:] ($RES_SIM_97) (38) [ARRY] (4) Compressor1.gas_in.Xi = Compressor1.gas_in.X[:] ($RES_SIM_296) (39) [SCAL] (1) CombustionChamber1.Tr = noEvent(CombustionChamber1.M / max($FUN_5, 1e-15)) ($RES_SIM_138) (40) [ARRY] (4) Compressor1.gas_in.state.X = Compressor1.gas_in.X ($RES_SIM_297) (41) [SCAL] (1) Compressor1.gas_in.state.p = SourceP1.p0 ($RES_SIM_298) (42) [SCAL] (1) Compressor1.gas_in.state.T = -((-273.15) - Compressor1.gas_in.T_degC) ($RES_SIM_299) (43) [SCAL] (1) $FUN_1 = sqrt(Compressor1.Tdes_in) ($RES_$AUX_353) (44) [SCAL] (1) $FUN_2 = sqrt(-((-273.15) - Compressor1.gas_in.T_degC)) ($RES_$AUX_352) (45) [SCAL] (1) $FUN_3 = sqrt(Turbine1.Tdes_in) ($RES_$AUX_351) (46) [SCAL] (1) $FUN_4 = sqrt(-((-273.15) - Turbine1.gas_in.T_degC)) ($RES_$AUX_350) (47) [FOR-] (4) ($RES_EVT_381) (47) [----] for $i1 in 1:4 loop (47) [----] [SCAL] (1) $SEV_5[$i1] = PressDrop2.gas.X[$i1] >= (-1e-5) and PressDrop2.gas.X[$i1] <= 1.00001 ($RES_EVT_382) (47) [----] end for; (48) [SCAL] (1) $SEV_7 = PressDrop1.w > 0.0 ($RES_EVT_384) (49) [SCAL] (1) $SEV_8 = PressDrop1.w >= 0.0 ($RES_EVT_385) (50) [SCAL] (1) Compressor1.gas_in.d = -SourceP1.p0 / (((-273.15) - Compressor1.gas_in.T_degC) * Compressor1.gas_in.R) ($RES_SIM_300) (51) [SCAL] (1) Compressor1.gas_in.u = Compressor1.gas_in.R * ((-273.15) - Compressor1.gas_in.T_degC) + SourceP1.gas.h ($RES_SIM_301) (52) [SCAL] (1) Compressor1.gas_in.R = {259.8369938872708, 461.5233290850878, 208.1323720837088, 296.8033869505308} * Compressor1.gas_in.X ($RES_SIM_302) (53) [FOR-] (5) ($RES_EVT_389) (53) [----] for $i1 in 1:5 loop (53) [----] [SCAL] (1) $SEV_12[$i1] = PressDrop1.gas.X[$i1] >= (-1e-5) and PressDrop1.gas.X[$i1] <= 1.00001 ($RES_EVT_390) (53) [----] end for; (54) [SCAL] (1) SourceP1.gas.h = ThermoPower.Test.GasComponents.TestTurboJetConstSpeed.Compressor1.Medium.h_TX(-((-273.15) - Compressor1.gas_in.T_degC), Compressor1.gas_in.X, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.ZeroAt25C, 0.0) ($RES_SIM_303) (55) [ARRY] (4) PressDrop2.gas.Xi = {homotopy(if $SEV_0 then Compressor1.outlet.Xi_outflow[1] else PressDrop2.inlet.Xi_outflow[1], Compressor1.outlet.Xi_outflow[1]), homotopy(if $SEV_0 then Compressor1.outlet.Xi_outflow[2] else PressDrop2.inlet.Xi_outflow[2], Compressor1.outlet.Xi_outflow[2]), homotopy(if $SEV_0 then Compressor1.outlet.Xi_outflow[3] else PressDrop2.inlet.Xi_outflow[3], Compressor1.outlet.Xi_outflow[3]), homotopy(if $SEV_0 then Compressor1.outlet.Xi_outflow[4] else PressDrop2.inlet.Xi_outflow[4], Compressor1.outlet.Xi_outflow[4])} ($RES_SIM_20) (56) [SCAL] (1) Compressor1.gas_in.MM = 1/sum(Compressor1.gas_in.state.X[j] / ({0.0319988, 0.01801528, 0.039948, 0.0280134})[j] for j in 1:4) ($RES_SIM_304) (57) [SCAL] (1) PressDrop2.gas.h = homotopy(if $SEV_0 then CombustionChamber1.hia else 0.0, CombustionChamber1.hia) ($RES_SIM_21) (58) [ARRY] (5) Turbine1.gas_iso.state.X = Turbine1.gas_iso.X ($RES_SIM_220) (59) [SCAL] (1) 99999.99999999999 * PressDrop2.gas.p_bar = homotopy(if $SEV_1 then PressDrop2.pin else 99999.99999999999 * CombustionChamber1.fluegas.p_bar, PressDrop2.pin) ($RES_SIM_22) (60) [SCAL] (1) Turbine1.gas_iso.d = 333.3333333333333 / Turbine1.gas_iso.R ($RES_SIM_223) (61) [SCAL] (1) Turbine1.gas_iso.u = Turbine1.gas_iso.h - 300.0 * Turbine1.gas_iso.R ($RES_SIM_224) (62) [SCAL] (1) Turbine1.gas_iso.R = {259.8369938872708, 208.1323720837088, 461.5233290850878, 188.9244822140674, 296.8033869505308} * Turbine1.gas_iso.X ($RES_SIM_225) (63) [SCAL] (1) Turbine1.gas_iso.h = ThermoPower.Test.GasComponents.TestTurboJetConstSpeed.Turbine1.Medium.h_TX(300.0, Turbine1.gas_iso.X, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.ZeroAt25C, 0.0) ($RES_SIM_226) (64) [ARRY] (4) PressDrop2.gas.Xi = PressDrop2.gas.X[:] ($RES_SIM_28) (65) [SCAL] (1) Turbine1.gas_iso.MM = 1/sum(Turbine1.gas_iso.state.X[j] / ({0.0319988, 0.039948, 0.01801528, 0.0440095, 0.0280134})[j] for j in 1:5) ($RES_SIM_227) (66) [ARRY] (4) PressDrop2.gas.state.X = PressDrop2.gas.X ($RES_SIM_29) (67) [SCAL] (1) $FUN_5 = abs(-PressDrop1.w) ($RES_$AUX_349) (68) [ARRY] (4) CombustionChamber1.ina.Xi_outflow = {0.23, 0.015, 0.005, 0.75} ($RES_SIM_148) (69) [FOR-] (3) ($RES_EVT_393) (69) [----] for $i1 in 1:3 loop (69) [----] [SCAL] (1) $SEV_15[$i1] = SourceW1.gas.X[$i1] >= (-1e-5) and SourceW1.gas.X[$i1] <= 1.00001 ($RES_EVT_394) (69) [----] end for; (70) [FOR-] (5) ($RES_EVT_397) (70) [----] for $i1 in 1:5 loop (70) [----] [SCAL] (1) $SEV_18[$i1] = SinkP1.gas.X[$i1] >= (-1e-5) and SinkP1.gas.X[$i1] <= 1.00001 ($RES_EVT_398) (70) [----] end for; (71) [SCAL] (1) PressDrop2.gas.state.p = 99999.99999999999 * PressDrop2.gas.p_bar ($RES_SIM_30) (72) [SCAL] (1) PressDrop2.gas.state.T = -((-273.15) - PressDrop2.gas.T_degC) ($RES_SIM_31) (73) [SCAL] (1) PressDrop2.gas.d = -(99999.99999999999 * PressDrop2.gas.p_bar) / (((-273.15) - PressDrop2.gas.T_degC) * PressDrop2.gas.R) ($RES_SIM_32) (74) [SCAL] (1) PressDrop2.gas.u = PressDrop2.gas.R * ((-273.15) - PressDrop2.gas.T_degC) + PressDrop2.gas.h ($RES_SIM_33) (75) [ARRY] (5) Turbine1.gas_in.Xi = Turbine1.gas_in.X[:] ($RES_SIM_232) (76) [SCAL] (1) PressDrop2.gas.R = {259.8369938872708, 461.5233290850878, 208.1323720837088, 296.8033869505308} * PressDrop2.gas.X ($RES_SIM_34) (77) [ARRY] (5) Turbine1.gas_in.state.X = Turbine1.gas_in.X ($RES_SIM_233) (78) [SCAL] (1) PressDrop2.gas.h = ThermoPower.Test.GasComponents.TestTurboJetConstSpeed.PressDrop2.Medium.h_TX(-((-273.15) - PressDrop2.gas.T_degC), PressDrop2.gas.X, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.ZeroAt25C, 0.0) ($RES_SIM_35) (79) [SCAL] (1) Turbine1.gas_in.state.p = 99999.99999999999 * Turbine1.gas_in.p_bar ($RES_SIM_234) (80) [SCAL] (1) PressDrop2.gas.MM = 1/sum(PressDrop2.gas.state.X[j] / ({0.0319988, 0.01801528, 0.039948, 0.0280134})[j] for j in 1:4) ($RES_SIM_36) (81) [SCAL] (1) Turbine1.gas_in.state.T = -((-273.15) - Turbine1.gas_in.T_degC) ($RES_SIM_235) (82) [SCAL] (1) Turbine1.gas_in.d = -(99999.99999999999 * Turbine1.gas_in.p_bar) / (((-273.15) - Turbine1.gas_in.T_degC) * Turbine1.gas_in.R) ($RES_SIM_236) (83) [ARRY] (5) CombustionChamber1.out.Xi_outflow = CombustionChamber1.fluegas.Xi ($RES_SIM_151) (84) [ARRY] (5) {CombustionChamber1.out.Xi_outflow[1], CombustionChamber1.out.Xi_outflow[2], CombustionChamber1.out.Xi_outflow[3], CombustionChamber1.out.Xi_outflow[4], CombustionChamber1.out.Xi_outflow[5]} = PressDrop1.outlet.Xi_outflow ($RES_SIM_38) (85) [SCAL] (1) Turbine1.gas_in.u = Turbine1.gas_in.R * ((-273.15) - Turbine1.gas_in.T_degC) + Turbine1.gas_in.h ($RES_SIM_237) (86) [ARRY] (5) PressDrop1.inlet.Xi_outflow = {Turbine1.inlet.Xi_outflow[1], Turbine1.inlet.Xi_outflow[2], Turbine1.inlet.Xi_outflow[3], Turbine1.inlet.Xi_outflow[4], Turbine1.inlet.Xi_outflow[5]} ($RES_SIM_39) (87) [SCAL] (1) Turbine1.gas_in.R = {259.8369938872708, 208.1323720837088, 461.5233290850878, 188.9244822140674, 296.8033869505308} * Turbine1.gas_in.X ($RES_SIM_238) (88) [SCAL] (1) Turbine1.gas_in.h = ThermoPower.Test.GasComponents.TestTurboJetConstSpeed.Turbine1.Medium.h_TX(-((-273.15) - Turbine1.gas_in.T_degC), Turbine1.gas_in.X, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.ZeroAt25C, 0.0) ($RES_SIM_239) (89) [SCAL] (1) $DER.CombustionChamber1.Tm = CombustionChamber1.S * (-(CombustionChamber1.Tm + ((-273.15) - CombustionChamber1.fluegas.T_degC))) ($RES_SIM_154) (90) [SCAL] (1) $DER.CombustionChamber1.E = (CombustionChamber1.HR + SourceW1.w0 * SourceW1.gas.h + PressDrop2.w * CombustionChamber1.hia) - (CombustionChamber1.S * (-(CombustionChamber1.Tm + ((-273.15) - CombustionChamber1.fluegas.T_degC))) + PressDrop1.w * Turbine1.gas_in.h) ($RES_SIM_155) (91) [FOR-] (4) ($RES_EVT_401) (91) [----] for $i1 in 1:4 loop (91) [----] [SCAL] (1) $SEV_21[$i1] = SourceP1.gas.X[$i1] >= (-1e-5) and SourceP1.gas.X[$i1] <= 1.00001 ($RES_EVT_402) (91) [----] end for; (92) [SCAL] (1) $DER.CombustionChamber1.M = (SourceW1.w0 + PressDrop2.w) - PressDrop1.w ($RES_SIM_156) (93) [SCAL] (1) CombustionChamber1.HR = SourceW1.w0 * CombustionChamber1.HH ($RES_SIM_157) (94) [ARRY] (5) CombustionChamber1.MX = CombustionChamber1.fluegas.Xi .* CombustionChamber1.M ($RES_SIM_158) (95) [SCAL] (1) CombustionChamber1.E = CombustionChamber1.fluegas.u * CombustionChamber1.M ($RES_SIM_159) (96) [SCAL] (1) $SEV_26 = CombustionChamber1.lambda >= 1.0 ($RES_EVT_407) (97) [FOR-] (5) ($RES_EVT_409) (97) [----] for $i1 in 1:5 loop (97) [----] [SCAL] (1) $SEV_28[$i1] = CombustionChamber1.fluegas.X[$i1] >= (-1e-5) and CombustionChamber1.fluegas.X[$i1] <= 1.00001 ($RES_EVT_410) (97) [----] end for; (98) [SCAL] (1) Turbine1.gas_in.MM = 1/sum(Turbine1.gas_in.state.X[j] / ({0.0319988, 0.039948, 0.01801528, 0.0440095, 0.0280134})[j] for j in 1:5) ($RES_SIM_240) (99) [SCAL] (1) PressDrop1.dp = 99999.99999999999 * CombustionChamber1.fluegas.p_bar - 99999.99999999999 * Turbine1.gas_in.p_bar ($RES_SIM_43) (100) [SCAL] (1) $DER.Turbine1.shaft_b.phi = Compressor1.omega ($RES_SIM_242) (101) [SCAL] (1) Compressor1.shaft_a.tau + Compressor1.shaft_b.tau = Compressor1.tau ($RES_SIM_243) (102) [SCAL] (1) CombustionChamber1.M = CombustionChamber1.fluegas.d * CombustionChamber1.V ($RES_SIM_160) (103) [SCAL] (1) 99999.99999999999 * CombustionChamber1.fluegas.p_bar - 99999.99999999999 * Turbine1.gas_in.p_bar = homotopy(smooth(1, PressDrop1.Kf_a * (PressDrop1.w * sqrt(PressDrop1.w * PressDrop1.w + PressDrop1.wnf * PressDrop1.wnom * PressDrop1.wnf * PressDrop1.wnom))) / PressDrop1.gas.d, (PressDrop1.dpnom / PressDrop1.wnom) * PressDrop1.w) ($RES_SIM_47) (104) [SCAL] (1) Compressor1.PR = PressDrop2.pin / SourceP1.p0 ($RES_SIM_246) (105) [SCAL] (1) $DER.CombustionChamber1.MX[5] = (PressDrop2.w * CombustionChamber1.ina_X[4] + SourceW1.w0 * CombustionChamber1.inf_X[1]) - PressDrop1.w * CombustionChamber1.fluegas.X[5] ($RES_SIM_161) (106) [ARRY] (5) PressDrop1.gas.Xi = {homotopy(if $SEV_7 then CombustionChamber1.out.Xi_outflow[1] else PressDrop1.inlet.Xi_outflow[1], CombustionChamber1.out.Xi_outflow[1]), homotopy(if $SEV_7 then CombustionChamber1.out.Xi_outflow[2] else PressDrop1.inlet.Xi_outflow[2], CombustionChamber1.out.Xi_outflow[2]), homotopy(if $SEV_7 then CombustionChamber1.out.Xi_outflow[3] else PressDrop1.inlet.Xi_outflow[3], CombustionChamber1.out.Xi_outflow[3]), homotopy(if $SEV_7 then CombustionChamber1.out.Xi_outflow[4] else PressDrop1.inlet.Xi_outflow[4], CombustionChamber1.out.Xi_outflow[4]), homotopy(if $SEV_7 then CombustionChamber1.out.Xi_outflow[5] else PressDrop1.inlet.Xi_outflow[5], CombustionChamber1.out.Xi_outflow[5])} ($RES_SIM_48) (107) [SCAL] (1) PressDrop2.w * (CombustionChamber1.hia - SourceP1.gas.h) = Compressor1.omega * Compressor1.tau * Compressor1.eta_mech ($RES_SIM_247) (108) [SCAL] (1) $DER.CombustionChamber1.MX[4] = (SourceW1.w0 * CombustionChamber1.inf_X[2] + 0.0440095 * CombustionChamber1.wcomb) - PressDrop1.w * CombustionChamber1.fluegas.X[4] ($RES_SIM_162) (109) [SCAL] (1) PressDrop1.gas.h = homotopy(if $SEV_7 then Turbine1.gas_in.h else PressDrop1.inlet.h_outflow, Turbine1.gas_in.h) ($RES_SIM_49) (110) [SCAL] (1) $DER.CombustionChamber1.MX[3] = (PressDrop2.w * CombustionChamber1.ina_X[2] + 0.03603056 * CombustionChamber1.wcomb) - PressDrop1.w * CombustionChamber1.fluegas.X[3] ($RES_SIM_163) (111) [SCAL] (1) $DER.CombustionChamber1.MX[2] = PressDrop2.w * CombustionChamber1.ina_X[3] - PressDrop1.w * CombustionChamber1.fluegas.X[2] ($RES_SIM_164) (112) [SCAL] (1) $DER.CombustionChamber1.MX[1] = PressDrop2.w * CombustionChamber1.ina_X[1] - (0.0639976 * CombustionChamber1.wcomb + PressDrop1.w * CombustionChamber1.fluegas.X[1]) ($RES_SIM_165) (113) [SCAL] (1) CombustionChamber1.lambda = (0.5 * (31.25117191894696 * CombustionChamber1.ina_X[1] * PressDrop2.w)) / CombustionChamber1.wcomb ($RES_SIM_167) (114) [SCAL] (1) CombustionChamber1.wcomb = 62.334579609361654 * CombustionChamber1.inf_X[3] * SourceW1.w0 ($RES_SIM_168) (115) [FOR-] (5) ($RES_EVT_414) (115) [----] for $i1 in 1:5 loop (115) [----] [SCAL] (1) $SEV_32[$i1] = Turbine1.gas_iso.X[$i1] >= (-1e-5) and Turbine1.gas_iso.X[$i1] <= 1.00001 ($RES_EVT_415) (115) [----] end for; (116) [FOR-] (5) ($RES_EVT_418) (116) [----] for $i1 in 1:5 loop (116) [----] [SCAL] (1) $SEV_35[$i1] = Turbine1.gas_in.X[$i1] >= (-1e-5) and Turbine1.gas_in.X[$i1] <= 1.00001 ($RES_EVT_419) (116) [----] end for; (117) [SCAL] (1) 99999.99999999999 * PressDrop1.gas.p_bar = homotopy(if $SEV_8 then 99999.99999999999 * CombustionChamber1.fluegas.p_bar else 99999.99999999999 * Turbine1.gas_in.p_bar, 99999.99999999999 * CombustionChamber1.fluegas.p_bar) ($RES_SIM_50) (118) [SCAL] (1) CombustionChamber1.hia - SourceP1.gas.h = (1/Compressor1.eta) * (Compressor1.hout_iso - SourceP1.gas.h) ($RES_SIM_251) (119) [SCAL] (1) Compressor1.hout_iso = ThermoPower.Test.GasComponents.TestTurboJetConstSpeed.Compressor1.Medium.isentropicEnthalpyApproximation(PressDrop2.pin, Compressor1.gas_in.state) ($RES_SIM_252) (120) [SCAL] (1) ConstantSpeed1.w_fixed = $DER.ConstantSpeed1.phi ($RES_SIM_9) (121) [ARRY] (4) Compressor1.gas_iso.Xi = Compressor1.gas_in.Xi ($RES_SIM_253) (122) [ARRY] (4) Compressor1.inlet.Xi_outflow = {PressDrop2.inlet.Xi_outflow[1], PressDrop2.inlet.Xi_outflow[2], PressDrop2.inlet.Xi_outflow[3], PressDrop2.inlet.Xi_outflow[4]} ($RES_SIM_254) (123) [ARRY] (5) PressDrop1.gas.Xi = PressDrop1.gas.X[:] ($RES_SIM_56) (124) [SCAL] (1) ConstantSpeed1.phi = Turbine1.shaft_b.phi ($RES_SIM_7) (125) [ARRY] (5) PressDrop1.gas.state.X = PressDrop1.gas.X ($RES_SIM_57) (126) [ARRY] (4) Compressor1.outlet.Xi_outflow = Compressor1.gas_in.Xi ($RES_SIM_256) (127) [SCAL] (1) PressDrop1.gas.state.p = 99999.99999999999 * PressDrop1.gas.p_bar ($RES_SIM_58) (128) [ARRY] (5) CombustionChamber1.fluegas.Xi = CombustionChamber1.fluegas.X[:] ($RES_SIM_172) (129) [SCAL] (1) PressDrop1.gas.state.T = -((-273.15) - PressDrop1.gas.T_degC) ($RES_SIM_59) (130) [ARRY] (5) CombustionChamber1.fluegas.state.X = CombustionChamber1.fluegas.X ($RES_SIM_173) (131) [ARRY] (4) Compressor1.gas_in.Xi = {SourceP1.flange.Xi_outflow[1], SourceP1.flange.Xi_outflow[2], SourceP1.flange.Xi_outflow[3], SourceP1.flange.Xi_outflow[4]} ($RES_SIM_259) (132) [SCAL] (1) CombustionChamber1.fluegas.state.p = 99999.99999999999 * CombustionChamber1.fluegas.p_bar ($RES_SIM_174) (133) [SCAL] (1) CombustionChamber1.fluegas.state.T = -((-273.15) - CombustionChamber1.fluegas.T_degC) ($RES_SIM_175) (134) [SCAL] (1) CombustionChamber1.fluegas.d = -(99999.99999999999 * CombustionChamber1.fluegas.p_bar) / (((-273.15) - CombustionChamber1.fluegas.T_degC) * CombustionChamber1.fluegas.R) ($RES_SIM_176) (135) [SCAL] (1) CombustionChamber1.fluegas.u = CombustionChamber1.fluegas.R * ((-273.15) - CombustionChamber1.fluegas.T_degC) + Turbine1.gas_in.h ($RES_SIM_177) (136) [FOR-] (4) ($RES_EVT_423) (136) [----] for $i1 in 1:4 loop (136) [----] [SCAL] (1) $SEV_39[$i1] = Compressor1.gas_iso.X[$i1] >= (-1e-5) and Compressor1.gas_iso.X[$i1] <= 1.00001 ($RES_EVT_424) (136) [----] end for; (137) [SCAL] (1) CombustionChamber1.fluegas.R = {259.8369938872708, 208.1323720837088, 461.5233290850878, 188.9244822140674, 296.8033869505308} * CombustionChamber1.fluegas.X ($RES_SIM_178) (138) [SCAL] (1) Turbine1.gas_in.h = ThermoPower.Test.GasComponents.TestTurboJetConstSpeed.CombustionChamber1.Exhaust.h_TX(-((-273.15) - CombustionChamber1.fluegas.T_degC), CombustionChamber1.fluegas.X, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.ZeroAt25C, 0.0) ($RES_SIM_179) (139) [FOR-] (4) ($RES_EVT_427) (139) [----] for $i1 in 1:4 loop (139) [----] [SCAL] (1) $SEV_42[$i1] = Compressor1.gas_in.X[$i1] >= (-1e-5) and Compressor1.gas_in.X[$i1] <= 1.00001 ($RES_EVT_428) (139) [----] end for; (140) [SCAL] (1) PressDrop1.gas.d = -(99999.99999999999 * PressDrop1.gas.p_bar) / (((-273.15) - PressDrop1.gas.T_degC) * PressDrop1.gas.R) ($RES_SIM_60) (141) [SCAL] (1) PressDrop1.gas.u = PressDrop1.gas.R * ((-273.15) - PressDrop1.gas.T_degC) + PressDrop1.gas.h ($RES_SIM_61) (142) [SCAL] (1) PressDrop1.gas.R = {259.8369938872708, 208.1323720837088, 461.5233290850878, 188.9244822140674, 296.8033869505308} * PressDrop1.gas.X ($RES_SIM_62) (143) [SCAL] (1) PressDrop1.gas.h = ThermoPower.Test.GasComponents.TestTurboJetConstSpeed.PressDrop1.Medium.h_TX(-((-273.15) - PressDrop1.gas.T_degC), PressDrop1.gas.X, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.ZeroAt25C, 0.0) ($RES_SIM_63) (144) [SCAL] (1) PressDrop1.gas.MM = 1/sum(PressDrop1.gas.state.X[j] / ({0.0319988, 0.039948, 0.01801528, 0.0440095, 0.0280134})[j] for j in 1:5) ($RES_SIM_64) (145) [SCAL] (1) Inertia1.J * Inertia1.a = -(Compressor1.shaft_b.tau + Turbine1.shaft_a.tau) ($RES_SIM_66) (146) [ARRY] (5) SinkP1.gas.Xi = SinkP1.gas.X[:] ($RES_SIM_106) (147) [SCAL] (1) Inertia1.a = $DER.Inertia1.w ($RES_SIM_67) (148) [SCAL] (1) CombustionChamber1.fluegas.MM = 1/sum(CombustionChamber1.fluegas.state.X[j] / ({0.0319988, 0.039948, 0.01801528, 0.0440095, 0.0280134})[j] for j in 1:5) ($RES_SIM_180) (149) [ARRY] (5) SinkP1.gas.state.X = SinkP1.gas.X ($RES_SIM_107) (150) [SCAL] (1) Inertia1.w = $DER.Turbine1.shaft_b.phi ($RES_SIM_68) (151) [SCAL] (1) $DER.Turbine1.shaft_b.phi = Turbine1.omega ($RES_SIM_182) (152) [SCAL] (1) Turbine1.shaft_a.tau = Turbine1.tau ($RES_SIM_183) (153) [SCAL] (1) Turbine1.Eta.u1 = (99999.99999999999 * Turbine1.gas_in.p_bar) / SinkP1.p0 ($RES_SIM_186) (154) [SCAL] (1) (Turbine1.outlet.h_outflow - Turbine1.gas_in.h) * PressDrop1.w * Turbine1.eta_mech = Turbine1.tau * Turbine1.omega ($RES_SIM_187) (155) [SCAL] (1) SinkP1.gas.d = SinkP1.p0 / (SinkP1.T * SinkP1.gas.R) ($RES_SIM_110) (156) [ARRY] (3) SourceW1.flange.Xi_outflow = SourceW1.gas.Xi ($RES_SIM_71) (157) [SCAL] (1) SinkP1.gas.u = PressDrop1.inlet.h_outflow - SinkP1.gas.R * SinkP1.T ($RES_SIM_111) (158) [SCAL] (1) SinkP1.gas.R = {259.8369938872708, 208.1323720837088, 461.5233290850878, 188.9244822140674, 296.8033869505308} * SinkP1.gas.X ($RES_SIM_112) (159) [SCAL] (1) PressDrop1.inlet.h_outflow = ThermoPower.Test.GasComponents.TestTurboJetConstSpeed.SinkP1.Medium.h_TX(SinkP1.T, SinkP1.gas.X, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.ZeroAt25C, 0.0) ($RES_SIM_113) (160) [ARRY] (3) SourceW1.in_X_internal = SourceW1.Xnom ($RES_SIM_74) (161) [SCAL] (1) SinkP1.gas.MM = 1/sum(SinkP1.gas.state.X[j] / ({0.0319988, 0.039948, 0.01801528, 0.0440095, 0.0280134})[j] for j in 1:5) ($RES_SIM_114) (162) [ARRY] (3) SourceW1.gas.Xi = SourceW1.in_X_internal[:] ($RES_SIM_75) (163) [SCAL] (1) Compressor1.phic = ($FUN_2 * PressDrop2.w) / SourceP1.p0 ($RES_SIM_274) (164) [ARRY] (4) SourceP1.flange.Xi_outflow = SourceP1.gas.Xi ($RES_SIM_116) (165) [SCAL] (1) Compressor1.PressRatio.u2 = (100.0 * Compressor1.omega) / (Compressor1.N_T_design * $FUN_2) ($RES_SIM_275) (166) [SCAL] (1) Compressor1.N_T_design = Compressor1.Ndesign / $FUN_1 ($RES_SIM_276) (167) [SCAL] (1) Turbine1.outlet.h_outflow - Turbine1.gas_in.h = Turbine1.eta * (Turbine1.hout_iso - Turbine1.gas_in.h) ($RES_SIM_191) (168) [ARRY] (4) SourceP1.in_X_internal = SourceP1.Xnom ($RES_SIM_118) (169) [SCAL] (1) Compressor1.phic = Modelica.Blocks.Tables.Internal.getTable2DValue(Compressor1.Phic.tableID, Compressor1.PressRatio.u1, Compressor1.PressRatio.u2) ($RES_SIM_277) (170) [SCAL] (1) Turbine1.hout_iso = ThermoPower.Test.GasComponents.TestTurboJetConstSpeed.Turbine1.Medium.isentropicEnthalpyApproximation(SinkP1.p0, Turbine1.gas_in.state) ($RES_SIM_192) (171) [ARRY] (4) SourceP1.gas.Xi = SourceP1.in_X_internal[:] ($RES_SIM_119) (172) [SCAL] (1) Compressor1.PR = Modelica.Blocks.Tables.Internal.getTable2DValue(Compressor1.PressRatio.tableID, Compressor1.PressRatio.u1, Compressor1.PressRatio.u2) ($RES_SIM_278) (173) [ARRY] (5) Turbine1.gas_iso.Xi = Turbine1.gas_in.Xi ($RES_SIM_193) (174) [SCAL] (1) Compressor1.eta = Modelica.Blocks.Tables.Internal.getTable2DValue(Compressor1.Eta.tableID, Compressor1.PressRatio.u1, Compressor1.PressRatio.u2) ($RES_SIM_279) (175) [ARRY] (5) Turbine1.inlet.Xi_outflow = {SinkP1.flange.Xi_outflow[1], SinkP1.flange.Xi_outflow[2], SinkP1.flange.Xi_outflow[3], SinkP1.flange.Xi_outflow[4], SinkP1.flange.Xi_outflow[5]} ($RES_SIM_194) (176) [ARRY] (5) Turbine1.outlet.Xi_outflow = Turbine1.gas_in.Xi ($RES_SIM_196) (177) [ARRY] (5) Turbine1.gas_in.Xi = {PressDrop1.outlet.Xi_outflow[1], PressDrop1.outlet.Xi_outflow[2], PressDrop1.outlet.Xi_outflow[3], PressDrop1.outlet.Xi_outflow[4], PressDrop1.outlet.Xi_outflow[5]} ($RES_SIM_199) (178) [ARRY] (4) CombustionChamber1.ina_X = {PressDrop2.outlet.Xi_outflow[1], PressDrop2.outlet.Xi_outflow[2], PressDrop2.outlet.Xi_outflow[3], PressDrop2.outlet.Xi_outflow[4]} ($RES_BND_337) (179) [ARRY] (3) CombustionChamber1.inf_X = {SourceW1.flange.Xi_outflow[1], SourceW1.flange.Xi_outflow[2], SourceW1.flange.Xi_outflow[3]} ($RES_BND_338)