Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.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) 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(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas") translateModel(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001232/0.001232, allocations: 107.9 kB / 16.42 MB, free: 6.492 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.001226/0.001226, allocations: 187.2 kB / 17.35 MB, free: 5.754 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.371/1.371, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.465e-05/2.466e-05, allocations: 2.281 kB / 327.2 MB, free: 3.297 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.3597/0.3597, allocations: 175.5 MB / 0.4909 GB, free: 6.535 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004519/0.3643, allocations: 3.835 MB / 0.4947 GB, free: 2.691 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000176/0.3645, allocations: 7.938 kB / 0.4947 GB, free: 2.684 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007853/0.3653, allocations: 242.7 kB / 0.4949 GB, free: 2.445 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006145/0.3659, allocations: 362 kB / 0.4953 GB, free: 2.09 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001405/0.3674, allocations: 0.544 MB / 0.4958 GB, free: 1.547 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009752/0.3683, allocations: 0.985 MB / 0.4968 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003289/0.3687, allocations: 237.4 kB / 0.497 GB, free: 340 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002738/0.3714, allocations: 1.233 MB / 0.4982 GB, free: 15.1 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003472/0.3718, allocations: 302.9 kB / 0.4985 GB, free: 14.8 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.404e-05/0.3719, allocations: 48 kB / 0.4985 GB, free: 14.76 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008043/0.3727, allocations: 427 kB / 0.4989 GB, free: 14.34 MB / 414.1 MB Notification: Performance of combineBinaries: time 0.0006214/0.3733, allocations: 0.7363 MB / 0.4996 GB, free: 13.6 MB / 414.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002972/0.3736, allocations: 442.7 kB / 0.5001 GB, free: 13.16 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 9.083e-05/0.3737, allocations: 79.81 kB / 0.5001 GB, free: 13.08 MB / 414.1 MB Notification: Performance of FrontEnd: time 4.714e-05/0.3738, allocations: 8 kB / 0.5002 GB, free: 13.07 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 177 (92) * Number of variables: 177 (77) Notification: Performance of Bindings: time 0.002014/0.3758, allocations: 2.197 MB / 0.5023 GB, free: 10.77 MB / 414.1 MB Notification: Performance of FunctionAlias: time 0.0001832/0.376, allocations: 152.2 kB / 0.5024 GB, free: 10.62 MB / 414.1 MB Notification: Performance of Early Inline: time 0.001218/0.3772, allocations: 1.285 MB / 0.5037 GB, free: 9.309 MB / 414.1 MB Notification: Performance of simplify1: time 8.844e-05/0.3773, allocations: 87.88 kB / 0.5038 GB, free: 9.223 MB / 414.1 MB Notification: Performance of Alias: time 0.001544/0.3789, allocations: 1.406 MB / 0.5052 GB, free: 7.699 MB / 414.1 MB Notification: Performance of simplify2: time 7.751e-05/0.3789, allocations: 87.83 kB / 0.5052 GB, free: 7.613 MB / 414.1 MB Notification: Performance of Events: time 0.0002291/0.3792, allocations: 175.6 kB / 0.5054 GB, free: 7.441 MB / 414.1 MB Notification: Performance of Detect States: time 0.0003462/0.3795, allocations: 347.9 kB / 0.5057 GB, free: 7.082 MB / 414.1 MB Notification: Performance of Partitioning: time 0.0005047/0.38, allocations: 0.515 MB / 0.5062 GB, free: 6.488 MB / 414.1 MB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency $FUN_1 could not be divided by the body size 6 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [ARRY] (6) fixedMassFlowRate.port.mXi_flow = {$FUN_1 for $i1 in 1:6} ($RES_SIM_31) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (55/170) *************************** (1) [ALGB] (1) Real volume.medium.T_degC = Modelica.SIunits.Conversions.to_degC(-((-273.15) - volume.medium.T_degC)) (2) [ALGB] (1) Real $FUN_4 (3) [ALGB] (1) Real $FUN_1 (4) [DISC] (6) Boolean[6] $SEV_7[$i1] (5) [ALGB] (1) flow Real fixedMassFlowRate.port.H_flow (min = -1e8, max = 1e8, nominal = 1000.0) (6) [ALGB] (1) Real volume.medium.u (min = -1e8, max = 1e8, nominal = 1e6) (7) [ALGB] (1) Real ambient.medium.u (min = -1e8, max = 1e8, nominal = 1e6) (8) [ALGB] (1) Real volume.medium.state.T (start = 500.0, min = 200.0, max = 6000.0, nominal = 500.0) (9) [ALGB] (1) Real shortPipe.port_b.h (start = 3e5, min = -1e10, max = 1e10, nominal = 1e5) (10) [DISC] (6) Boolean[6] $SEV_1[$i1] (11) [ALGB] (6) Real[6] volume.medium.state.X (start = {0.92, 0.048, 0.005, 0.002, 0.015, 0.01}, min = {0.0 for $i1 in 1:6}, max = {1.0 for $i1 in 1:6}, nominal = {0.1 for $i1 in 1:6}) (12) [ALGB] (1) flow Real shortPipe.port_a.H_flow (min = -1e8, max = 1e8, nominal = 1000.0) (13) [ALGB] (6) Real[6] ambient.medium.Xi (start = {0.92, 0.048, 0.005, 0.002, 0.015, 0.01}, min = {0.0 for $i1 in 1:6}, max = {1.0 for $i1 in 1:6}, StateSelect = default) (14) [ALGB] (1) Real fixedMassFlowRate.medium.u (min = -1e8, max = 1e8, nominal = 1e6) (15) [ALGB] (1) Real fixedMassFlowRate.medium.MM (min = 0.001, max = 0.25, nominal = 0.032) (16) [ALGB] (6) flow Real[6] fixedMassFlowRate.port.mXi_flow (min = {-1e5 for $i1 in 1:6}, max = {1e5 for $i1 in 1:6}) (17) [DER-] (1) Real $DER.volume.m (18) [ALGB] (6) Real[6] volume.port.Xi (min = {0.0 for $i1 in 1:6}, max = {1.0 for $i1 in 1:6}, nominal = {0.1 for $i1 in 1:6}) (19) [ALGB] (6) flow Real[6] shortPipe.port_a.mXi_flow (min = {-1e5 for $i1 in 1:6}, max = {1e5 for $i1 in 1:6}) (20) [ALGB] (6) Real[6] volume.medium.Xi (start = {0.92, 0.048, 0.005, 0.002, 0.015, 0.01}, min = {0.0 for $i1 in 1:6}, max = {1.0 for $i1 in 1:6}, StateSelect = prefer) (21) [ALGB] (6) Real[6] shortPipe.port_b.Xi (min = {0.0 for $i1 in 1:6}, max = {1.0 for $i1 in 1:6}, nominal = {0.1 for $i1 in 1:6}) (22) [ALGB] (1) Real volume.medium.p_bar = Modelica.SIunits.Conversions.to_bar(99999.99999999999 * volume.medium.p_bar) (23) [ALGB] (1) Real fixedMassFlowRate.medium.state.p (start = 1e6, min = 0.0, max = 1e8, nominal = 1e6) (24) [ALGB] (1) Real fixedMassFlowRate.medium.h (25) [ALGB] (6) Real[6] shortPipe.port_a.Xi (min = {0.0 for $i1 in 1:6}, max = {1.0 for $i1 in 1:6}, nominal = {0.1 for $i1 in 1:6}) (26) [ALGB] (1) Real fixedMassFlowRate.medium.d (start = 10.0, min = 0.0, max = 1e5, nominal = 10.0) (27) [ALGB] (1) Real volume.medium.R (start = 1000.0, min = 0.0, max = 1e7, nominal = 1000.0) (28) [ALGB] (1) Real ambient.medium.R (start = 1000.0, min = 0.0, max = 1e7, nominal = 1000.0) (29) [ALGB] (1) Real volume.medium.state.p (start = 1e6, min = 0.0, max = 1e8, nominal = 1e6) (30) [DISC] (6) Boolean[6] $SEV_4[$i1] (31) [DER-] (6) Real[6] $DER.volume.mXi (32) [ALGB] (1) flow Real volume.port.m_flow (min = -1e5, max = 1e5) (33) [ALGB] (6) Real[6] volume.medium.X (start = {0.92, 0.048, 0.005, 0.002, 0.015, 0.01}, min = {0.0 for $i1 in 1:6}, max = {1.0 for $i1 in 1:6}, nominal = {0.1 for $i1 in 1:6}) (34) [ALGB] (6) Real[6] ambient.medium.X (start = {0.92, 0.048, 0.005, 0.002, 0.015, 0.01}, min = {0.0 for $i1 in 1:6}, max = {1.0 for $i1 in 1:6}, nominal = {0.1 for $i1 in 1:6}) (35) [ALGB] (6) Real[6] ambient.port.Xi (min = {0.0 for $i1 in 1:6}, max = {1.0 for $i1 in 1:6}, nominal = {0.1 for $i1 in 1:6}) (36) [ALGB] (6) Real[6] fixedMassFlowRate.medium.X (start = {0.92, 0.048, 0.005, 0.002, 0.015, 0.01}, min = {0.0 for $i1 in 1:6}, max = {1.0 for $i1 in 1:6}, nominal = {0.1 for $i1 in 1:6}) (37) [ALGB] (6) Real[6] fixedMassFlowRate.port.Xi (min = {0.0 for $i1 in 1:6}, max = {1.0 for $i1 in 1:6}, nominal = {0.1 for $i1 in 1:6}) (38) [ALGB] (6) flow Real[6] ambient.port.mXi_flow (min = {-1e5 for $i1 in 1:6}, max = {1e5 for $i1 in 1:6}) (39) [ALGB] (1) Real ambient.medium.MM (min = 0.001, max = 0.25, nominal = 0.032) (40) [ALGB] (1) Real shortPipe.dp (41) [ALGB] (1) Real fixedMassFlowRate.medium.R (start = 1000.0, min = 0.0, max = 1e7, nominal = 1000.0) (42) [ALGB] (1) Real volume.medium.d (start = 10.0, min = 0.0, max = 1e5, nominal = 10.0) (43) [ALGB] (1) Real ambient.medium.d (start = 10.0, min = 0.0, max = 1e5, nominal = 10.0) (44) [ALGB] (6) Real[6] fixedMassFlowRate.medium.Xi (start = {0.92, 0.048, 0.005, 0.002, 0.015, 0.01}, min = {0.0 for $i1 in 1:6}, max = {1.0 for $i1 in 1:6}, StateSelect = default) (45) [ALGB] (6) flow Real[6] volume.port.mXi_flow (min = {-1e5 for $i1 in 1:6}, max = {1e5 for $i1 in 1:6}) (46) [ALGB] (6) Real[6] fixedMassFlowRate.medium.state.X (start = {0.92, 0.048, 0.005, 0.002, 0.015, 0.01}, min = {0.0 for $i1 in 1:6}, max = {1.0 for $i1 in 1:6}, nominal = {0.1 for $i1 in 1:6}) (47) [DER-] (1) Real $DER.volume.U (48) [ALGB] (1) Real ambient.medium.h (49) [ALGB] (1) Real volume.medium.h (50) [ALGB] (6) Real[6] ambient.medium.state.X (start = {0.92, 0.048, 0.005, 0.002, 0.015, 0.01}, min = {0.0 for $i1 in 1:6}, max = {1.0 for $i1 in 1:6}, nominal = {0.1 for $i1 in 1:6}) (51) [ALGB] (6) flow Real[6] shortPipe.port_b.mXi_flow (min = {-1e5 for $i1 in 1:6}, max = {1e5 for $i1 in 1:6}) (52) [ALGB] (1) Real $FUN_6 (53) [ALGB] (1) flow Real volume.port.H_flow (min = -1e8, max = 1e8, nominal = 1000.0) (54) [ALGB] (1) Real volume.medium.MM (min = 0.001, max = 0.25, nominal = 0.032) (55) [ALGB] (1) Real shortPipe.m_flow (min = -1e5, max = 1e5) System Equations (70/170) *************************** (1) [ARRY] (6) $DER.volume.mXi = volume.port.mXi_flow ($RES_SIM_50) (2) [SCAL] (1) shortPipe.port_a.H_flow = semiLinear(shortPipe.m_flow, volume.medium.h, shortPipe.port_b.h) ($RES_$AUX_109) (3) [SCAL] (1) $DER.volume.m = volume.port.m_flow ($RES_SIM_51) (4) [SCAL] (1) $FUN_6 = semiLinear(shortPipe.m_flow, shortPipe.port_a.Xi[$i1], shortPipe.port_b.Xi[$i1]) ($RES_$AUX_108) (5) [SCAL] (1) volume.U = volume.m * volume.medium.u ($RES_SIM_52) (6) [ARRY] (6) volume.mXi = volume.m * volume.medium.Xi ($RES_SIM_53) (7) [SCAL] (1) volume.m = volume.V * volume.medium.d ($RES_SIM_54) (8) [SCAL] (1) volume.port.Xi[6] = fixedMassFlowRate.port.Xi[6] ($RES_SIM_90) (9) [ARRY] (6) volume.medium.Xi = volume.port.Xi ($RES_SIM_55) (10) [SCAL] (1) volume.port.Xi[6] = shortPipe.port_a.Xi[6] ($RES_SIM_91) (11) [SCAL] (1) volume.port.Xi[5] = fixedMassFlowRate.port.Xi[5] ($RES_SIM_92) (12) [FOR-] (6) ($RES_EVT_130) (12) [----] for $i1 in 1:6 loop (12) [----] [SCAL] (1) $SEV_7[$i1] = volume.medium.X[$i1] >= (-1e-5) and volume.medium.X[$i1] <= 1.00001 ($RES_EVT_131) (12) [----] end for; (13) [SCAL] (1) volume.port.Xi[5] = shortPipe.port_a.Xi[5] ($RES_SIM_93) (14) [SCAL] (1) volume.port.Xi[4] = fixedMassFlowRate.port.Xi[4] ($RES_SIM_94) (15) [SCAL] (1) volume.port.Xi[4] = shortPipe.port_a.Xi[4] ($RES_SIM_95) (16) [SCAL] (1) volume.port.Xi[3] = fixedMassFlowRate.port.Xi[3] ($RES_SIM_96) (17) [SCAL] (1) volume.port.Xi[3] = shortPipe.port_a.Xi[3] ($RES_SIM_97) (18) [SCAL] (1) volume.port.Xi[2] = fixedMassFlowRate.port.Xi[2] ($RES_SIM_98) (19) [SCAL] (1) volume.port.Xi[2] = shortPipe.port_a.Xi[2] ($RES_SIM_99) (20) [SCAL] (1) volume.port.Xi[1] = fixedMassFlowRate.port.Xi[1] ($RES_SIM_100) (21) [SCAL] (1) volume.port.Xi[1] = shortPipe.port_a.Xi[1] ($RES_SIM_101) (22) [ARRY] (6) ambient.medium.Xi = ambient.medium.X[:] ($RES_SIM_20) (23) [ARRY] (6) ambient.medium.state.X = ambient.medium.X ($RES_SIM_21) (24) [SCAL] (1) ambient.medium.d = ambient.p_ambient / (ambient.T_ambient * ambient.medium.R) ($RES_SIM_24) (25) [SCAL] (1) ambient.medium.u = ambient.medium.h - ambient.medium.R * ambient.T_ambient ($RES_SIM_25) (26) [ARRY] (6) volume.medium.Xi = volume.medium.X[:] ($RES_SIM_61) (27) [SCAL] (1) ambient.medium.R = {518.2791167938085, 276.5127187299628, 188.5555073270316, 143.0515706563069, 296.8033869505308, 188.9244822140674} * ambient.medium.X ($RES_SIM_26) (28) [ARRY] (6) volume.medium.state.X = volume.medium.X ($RES_SIM_62) (29) [SCAL] (1) ambient.medium.h = Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.ambient.Medium.h_TX(ambient.T_ambient, ambient.medium.X, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.ZeroAt0K, 0.0) ($RES_SIM_27) (30) [SCAL] (1) volume.medium.state.p = 99999.99999999999 * volume.medium.p_bar ($RES_SIM_63) (31) [SCAL] (1) ambient.medium.MM = 1/sum(ambient.medium.state.X[j] / ({0.01604246, 0.03006904, 0.04409562, 0.0581222, 0.0280134, 0.0440095})[j] for j in 1:6) ($RES_SIM_28) (32) [SCAL] (1) volume.medium.state.T = -((-273.15) - volume.medium.T_degC) ($RES_SIM_64) (33) [SCAL] (1) volume.medium.d = -(99999.99999999999 * volume.medium.p_bar) / (((-273.15) - volume.medium.T_degC) * volume.medium.R) ($RES_SIM_65) (34) [SCAL] (1) volume.medium.u = volume.medium.R * ((-273.15) - volume.medium.T_degC) + volume.medium.h ($RES_SIM_66) (35) [SCAL] (1) volume.medium.R = {518.2791167938085, 276.5127187299628, 188.5555073270316, 143.0515706563069, 296.8033869505308, 188.9244822140674} * volume.medium.X ($RES_SIM_67) (36) [SCAL] (1) volume.medium.h = Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.volume.Medium.h_TX(-((-273.15) - volume.medium.T_degC), volume.medium.X, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.ZeroAt0K, 0.0) ($RES_SIM_68) (37) [SCAL] (1) volume.medium.MM = 1/sum(volume.medium.state.X[j] / ({0.01604246, 0.03006904, 0.04409562, 0.0581222, 0.0280134, 0.0440095})[j] for j in 1:6) ($RES_SIM_69) (38) [ARRY] (6) fixedMassFlowRate.port.mXi_flow = {$FUN_1 for $i1 in 1:6} ($RES_SIM_31) (39) [ARRY] (6) fixedMassFlowRate.medium.Xi = fixedMassFlowRate.X_ambient[:] ($RES_SIM_34) (40) [SCAL] (1) fixedMassFlowRate.port.H_flow + shortPipe.port_a.H_flow + volume.port.H_flow = 0.0 ($RES_SIM_73) (41) [SCAL] (1) (shortPipe.m_flow + volume.port.m_flow) - fixedMassFlowRate.m_flow = 0.0 ($RES_SIM_74) (42) [ARRY] (6) fixedMassFlowRate.medium.Xi = fixedMassFlowRate.medium.X[:] ($RES_SIM_39) (43) [FOR-] (6) ($RES_SIM_75) (43) [----] for $i1 in 1:6 loop (43) [----] [SCAL] (1) shortPipe.port_b.mXi_flow[$i1] + ambient.port.mXi_flow[$i1] = 0.0 ($RES_SIM_76) (43) [----] end for; (44) [ARRY] (6) shortPipe.port_b.Xi = ambient.port.Xi ($RES_SIM_79) (45) [ARRY] (6) fixedMassFlowRate.medium.state.X = fixedMassFlowRate.medium.X ($RES_SIM_40) (46) [SCAL] (1) fixedMassFlowRate.medium.state.p = 99999.99999999999 * volume.medium.p_bar ($RES_SIM_41) (47) [SCAL] (1) fixedMassFlowRate.medium.d = (99999.99999999999 * volume.medium.p_bar) / (fixedMassFlowRate.T_ambient * fixedMassFlowRate.medium.R) ($RES_SIM_43) (48) [SCAL] (1) fixedMassFlowRate.medium.u = fixedMassFlowRate.medium.h - fixedMassFlowRate.medium.R * fixedMassFlowRate.T_ambient ($RES_SIM_44) (49) [SCAL] (1) shortPipe.port_a.mXi_flow[6] + volume.port.mXi_flow[6] + fixedMassFlowRate.port.mXi_flow[6] = 0.0 ($RES_SIM_80) (50) [SCAL] (1) fixedMassFlowRate.medium.R = {518.2791167938085, 276.5127187299628, 188.5555073270316, 143.0515706563069, 296.8033869505308, 188.9244822140674} * fixedMassFlowRate.medium.X ($RES_SIM_45) (51) [SCAL] (1) shortPipe.port_a.mXi_flow[5] + volume.port.mXi_flow[5] + fixedMassFlowRate.port.mXi_flow[5] = 0.0 ($RES_SIM_81) (52) [SCAL] (1) $FUN_1 = semiLinear(-fixedMassFlowRate.m_flow, fixedMassFlowRate.port.Xi[$i1], fixedMassFlowRate.medium.Xi[$i1]) ($RES_$AUX_113) (53) [SCAL] (1) fixedMassFlowRate.medium.h = Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.fixedMassFlowRate.Medium.h_TX(fixedMassFlowRate.T_ambient, fixedMassFlowRate.medium.X, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.ZeroAt0K, 0.0) ($RES_SIM_46) (54) [SCAL] (1) shortPipe.port_a.mXi_flow[4] + volume.port.mXi_flow[4] + fixedMassFlowRate.port.mXi_flow[4] = 0.0 ($RES_SIM_82) (55) [SCAL] (1) fixedMassFlowRate.medium.MM = 1/sum(fixedMassFlowRate.medium.state.X[j] / ({0.01604246, 0.03006904, 0.04409562, 0.0581222, 0.0280134, 0.0440095})[j] for j in 1:6) ($RES_SIM_47) (56) [SCAL] (1) fixedMassFlowRate.port.H_flow = semiLinear(-fixedMassFlowRate.m_flow, volume.medium.h, fixedMassFlowRate.medium.h) ($RES_$AUX_112) (57) [SCAL] (1) shortPipe.port_a.mXi_flow[3] + volume.port.mXi_flow[3] + fixedMassFlowRate.port.mXi_flow[3] = 0.0 ($RES_SIM_83) (58) [SCAL] (1) shortPipe.port_a.H_flow = semiLinear(shortPipe.m_flow, shortPipe.port_b.h, ambient.medium.h) ($RES_$AUX_111) (59) [SCAL] (1) shortPipe.port_a.mXi_flow[2] + volume.port.mXi_flow[2] + fixedMassFlowRate.port.mXi_flow[2] = 0.0 ($RES_SIM_84) (60) [SCAL] (1) $DER.volume.U = volume.port.H_flow ($RES_SIM_49) (61) [SCAL] (1) $FUN_4 = semiLinear(shortPipe.m_flow, ambient.port.Xi[$i1], ambient.medium.Xi[$i1]) ($RES_$AUX_110) (62) [FOR-] (6) ($RES_EVT_122) (62) [----] for $i1 in 1:6 loop (62) [----] [SCAL] (1) $SEV_1[$i1] = ambient.medium.X[$i1] >= (-1e-5) and ambient.medium.X[$i1] <= 1.00001 ($RES_EVT_123) (62) [----] end for; (63) [SCAL] (1) shortPipe.port_a.mXi_flow[1] + volume.port.mXi_flow[1] + fixedMassFlowRate.port.mXi_flow[1] = 0.0 ($RES_SIM_85) (64) [FOR-] (6) ($RES_EVT_126) (64) [----] for $i1 in 1:6 loop (64) [----] [SCAL] (1) $SEV_4[$i1] = fixedMassFlowRate.medium.X[$i1] >= (-1e-5) and fixedMassFlowRate.medium.X[$i1] <= 1.00001 ($RES_EVT_127) (64) [----] end for; (65) [ARRY] (6) shortPipe.port_a.mXi_flow = {$FUN_6 for $i1 in 1:6} ($RES_SIM_9) (66) [ARRY] (6) shortPipe.port_a.mXi_flow + shortPipe.port_b.mXi_flow = {0.0 for $i1 in 1:6} ($RES_SIM_6) (67) [SCAL] (1) shortPipe.dp = 99999.99999999999 * volume.medium.p_bar - ambient.p_ambient ($RES_SIM_4) (68) [SCAL] (1) shortPipe.m_flow = (shortPipe.m_flow_nominal / shortPipe.dp_nominal) * shortPipe.dp ($RES_SIM_3) (69) [ARRY] (6) ambient.port.mXi_flow = {$FUN_4 for $i1 in 1:6} ($RES_SIM_11) (70) [ARRY] (6) ambient.medium.Xi = ambient.X_ambient[:] ($RES_SIM_14)