Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Media.Examples.TestOnly.FlueGas.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.TestOnly.FlueGas,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Media.Examples.TestOnly.FlueGas") translateModel(Modelica.Media.Examples.TestOnly.FlueGas,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Media.Examples.TestOnly.FlueGas") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001231/0.001231, allocations: 105.8 kB / 16.42 MB, free: 6.461 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.001139/0.001139, allocations: 189.9 kB / 17.36 MB, free: 5.73 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.351/1.351, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.046e-05/2.046e-05, allocations: 3.547 kB / 327.2 MB, free: 3.348 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TestOnly.FlueGas): time 0.334/0.334, allocations: 151 MB / 478.1 MB, free: 15.16 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002332/0.3364, allocations: 2.089 MB / 480.2 MB, free: 13.08 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.253e-05/0.3364, allocations: 0 / 480.2 MB, free: 13.08 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003675/0.3368, allocations: 65.64 kB / 480.3 MB, free: 13.02 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001203/0.338, allocations: 0.6053 MB / 480.9 MB, free: 12.41 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002863/0.3384, allocations: 101.8 kB / 481 MB, free: 12.31 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002836/0.3387, allocations: 235 kB / 481.2 MB, free: 12.08 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.324e-05/0.3388, allocations: 12.22 kB / 481.2 MB, free: 12.07 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002524/0.339, allocations: 133.1 kB / 481.4 MB, free: 11.94 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000128/0.3392, allocations: 75.69 kB / 481.5 MB, free: 11.87 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.82e-05/0.3392, allocations: 4 kB / 481.5 MB, free: 11.86 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001064/0.3403, allocations: 0.7248 MB / 482.2 MB, free: 11.14 MB / 382.1 MB Notification: Performance of combineBinaries: time 0.0001899/0.3405, allocations: 210.7 kB / 482.4 MB, free: 10.93 MB / 382.1 MB Notification: Performance of replaceArrayConstructors: time 8.406e-05/0.3405, allocations: 130.5 kB / 482.5 MB, free: 10.8 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.811e-05/0.3406, allocations: 19.94 kB / 482.5 MB, free: 10.78 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.476e-05/0.3406, allocations: 7.938 kB / 482.5 MB, free: 10.77 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 43 (28) * Number of variables: 43 (28) Notification: Performance of Bindings: time 0.000783/0.3414, allocations: 0.7126 MB / 483.3 MB, free: 9.961 MB / 382.1 MB Notification: Performance of FunctionAlias: time 9.471e-05/0.3415, allocations: 49.59 kB / 483.3 MB, free: 9.914 MB / 382.1 MB Notification: Performance of Early Inline: time 0.00111/0.3426, allocations: 1.07 MB / 484.4 MB, free: 8.816 MB / 382.1 MB Notification: Performance of simplify1: time 0.0001125/0.3427, allocations: 91.83 kB / 484.5 MB, free: 8.727 MB / 382.1 MB Notification: Performance of Alias: time 0.0005455/0.3433, allocations: 454.4 kB / 484.9 MB, free: 8.219 MB / 382.1 MB Notification: Performance of simplify2: time 8.691e-05/0.3434, allocations: 91.83 kB / 485 MB, free: 8.129 MB / 382.1 MB Notification: Performance of Events: time 0.0001645/0.3436, allocations: 116.3 kB / 485.1 MB, free: 8.016 MB / 382.1 MB Notification: Performance of Detect States: time 0.0002722/0.3439, allocations: 249.4 kB / 485.4 MB, free: 7.758 MB / 382.1 MB Notification: Performance of Partitioning: time 0.000262/0.3441, allocations: 244.2 kB / 485.6 MB, free: 7.504 MB / 382.1 MB Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [ARRY] (4) dddX = {-medium2.state.p / (medium2.state.T * ({296.8033869505308, 259.8369938872708, 461.5233290850878, 188.9244822140674} * medium2.state.X)) * (1/sum(medium2.state.X[j] / ({0.0280134, 0.0319988, 0.01801528, 0.0440095})[j] for j in 1:4)) / ({0.0280134, 0.0319988, 0.01801528, 0.0440095})[i] for i in 1:4} ($RES_BND_31) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (20/35) ************************** (1) [ALGB] (4) Real[4] dddX = Modelica.Media.Examples.TestOnly.FlueGas.Medium.density_derX(medium2.state) (2) [ALGB] (1) Real gamma2 = Modelica.Media.Examples.TestOnly.FlueGas.Medium.isothermalCompressibility(medium2.state) (3) [ALGB] (1) Real medium2.state.T (start = 500.0, min = 200.0, max = 6000.0, nominal = 500.0) (4) [ALGB] (1) Real medium2.state.p (start = 1e6, min = 0.0, max = 1e8, nominal = 1e6) (5) [DER-] (4) Real[4] $DER.medium2.X (6) [ALGB] (1) Real medium2.u (min = -1e8, max = 1e8, nominal = 1e6) (7) [DER-] (1) Real $DER.medium2.T (8) [DER-] (1) Real $DER.medium2.p (9) [ALGB] (1) Real medium2.MM (min = 0.001, max = 0.25, nominal = 0.032) (10) [ALGB] (1) Real h_is = Modelica.Media.Examples.TestOnly.FlueGas.Medium.isentropicEnthalpyApproximation(2e5, medium2.state) (start = 3e5, min = -1e10, max = 1e10, nominal = 1e5) (11) [ALGB] (1) Real medium2.R (start = 1000.0, min = 0.0, max = 1e7, nominal = 1000.0) (12) [ALGB] (1) Real s2 = Modelica.Media.Examples.TestOnly.FlueGas.Medium.specificEntropy(medium2.state) (min = -1e7, max = 1e7, nominal = 1000.0) (13) [DISC] (1) Boolean $SEV_3 (14) [ALGB] (1) Real medium2.h (15) [DISC] (1) Boolean $SEV_2 (16) [DISC] (1) Boolean $SEV_0 (17) [DISC] (4) Boolean[4] $SEV_1[$i1] (18) [ALGB] (1) Real medium2.d (start = 10.0, min = 0.0, max = 1e5, nominal = 10.0) (19) [ALGB] (4) Real[4] medium2.Xi (start = {0.768, 0.232, 0.0, 0.0}, min = {0.0 for $i1 in 1:4}, max = {1.0 for $i1 in 1:4}, StateSelect = default) (20) [ALGB] (4) Real[4] medium2.state.X (start = {0.768, 0.232, 0.0, 0.0}, min = {0.0 for $i1 in 1:4}, max = {1.0 for $i1 in 1:4}, nominal = {0.1 for $i1 in 1:4}) System Equations (20/35) ************************** (1) [ARRY] (4) medium2.Xi = medium2.X[:] ($RES_SIM_9) (2) [SCAL] (1) h_is = Modelica.Media.Examples.TestOnly.FlueGas.Medium.isentropicEnthalpyApproximation(2e5, medium2.state) ($RES_$AUX_32) (3) [ARRY] (4) medium2.state.X = medium2.X ($RES_SIM_10) (4) [SCAL] (1) medium2.state.p = medium2.p ($RES_SIM_11) (5) [SCAL] (1) medium2.state.T = medium2.T ($RES_SIM_12) (6) [SCAL] (1) $DER.medium2.p = 1000.0 ($RES_SIM_2) (7) [SCAL] (1) medium2.d = medium2.p / (medium2.T * medium2.R) ($RES_SIM_13) (8) [SCAL] (1) $DER.medium2.T = 0.0 ($RES_SIM_1) (9) [SCAL] (1) medium2.u = medium2.h - medium2.R * medium2.T ($RES_SIM_14) (10) [ARRY] (4) $DER.medium2.X[:] = {0.0, 0.0, 0.0, 0.0} ($RES_SIM_0) (11) [SCAL] (1) medium2.R = {296.8033869505308, 259.8369938872708, 461.5233290850878, 188.9244822140674} * medium2.X ($RES_SIM_15) (12) [SCAL] (1) medium2.h = Modelica.Media.Examples.TestOnly.FlueGas.Medium.h_TX(medium2.T, medium2.X, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.ZeroAt0K, 0.0) ($RES_SIM_16) (13) [SCAL] (1) medium2.MM = 1/sum(medium2.state.X[j] / ({0.0280134, 0.0319988, 0.01801528, 0.0440095})[j] for j in 1:4) ($RES_SIM_17) (14) [SCAL] (1) $SEV_3 = medium2.state.X[i] < 1e-15 ($RES_EVT_40) (15) [ARRY] (4) dddX = {-medium2.state.p / (medium2.state.T * ({296.8033869505308, 259.8369938872708, 461.5233290850878, 188.9244822140674} * medium2.state.X)) * (1/sum(medium2.state.X[j] / ({0.0280134, 0.0319988, 0.01801528, 0.0440095})[j] for j in 1:4)) / ({0.0280134, 0.0319988, 0.01801528, 0.0440095})[i] for i in 1:4} ($RES_BND_31) (16) [SCAL] (1) s2 = sum(Modelica.Media.IdealGases.Common.Functions.s0_T(({Modelica.Media.IdealGases.Common.DataRecord("N2", 0.0280134, 0.0, 309498.4543111511, 1000.0, {22103.71497, -381.846182, 6.08273836, -0.00853091441, 1.384646189e-5, -9.62579362e-9, 2.519705809e-12}, {710.846086, -10.76003744}, {587712.406, -2239.249073, 6.06694922, -6.1396855e-4, 1.491806679e-7, -1.923105485e-11, 1.061954386e-15}, {12832.10415, -15.86640027}, 296.8033869505308), Modelica.Media.IdealGases.Common.DataRecord("O2", 0.0319988, 0.0, 271263.4223783392, 1000.0, {-34255.6342, 484.700097, 1.119010961, 0.00429388924, -6.83630052e-7, -2.0233727e-9, 1.039040018e-12}, {-3391.45487, 18.4969947}, {-1.037939022e6, 2344.830282, 1.819732036, 0.001267847582, -2.188067988e-7, 2.053719572e-11, -8.193467050000001e-16}, {-16890.10929, 17.38716506}, 259.8369938872708), Modelica.Media.IdealGases.Common.DataRecord("H2O", 0.01801528, -1.342338281725291e7, 549760.6476280135, 1000.0, {-39479.6083, 575.573102, 0.931782653, 0.00722271286, -7.34255737e-6, 4.95504349e-9, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1.034972096e6, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-7, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), Modelica.Media.IdealGases.Common.DataRecord("CO2", 0.0440095, -8.941478544405185e6, 212805.6215135368, 1000.0, {49436.5054, -626.411601, 5.30172524, 0.002503813816, -2.127308728e-7, -7.68998878e-10, 2.849677801e-13}, {-45281.9846, -7.04827944}, {117696.2419, -1788.791477, 8.29152319, -9.22315678e-5, 4.86367688e-9, -1.891053312e-12, 6.330036589999999e-16}, {-39083.5059, -26.52669281}, 188.9244822140674)})[i], medium2.state.T) * medium2.state.X[i] for i in 1:4) - sum(medium2.state.X[i] * 8.3144598 / ({0.0280134, 0.0319988, 0.01801528, 0.0440095})[i] * (if $SEV_3 then (Modelica.Media.Examples.TestOnly.FlueGas.Medium.massToMoleFractions(medium2.state.X, {0.0280134, 0.0319988, 0.01801528, 0.0440095}))[i] else log((Modelica.Media.Examples.TestOnly.FlueGas.Medium.massToMoleFractions(medium2.state.X, {0.0280134, 0.0319988, 0.01801528, 0.0440095}))[i] * medium2.state.p / 101325.0)) for i in 1:4) ($RES_BND_25) (17) [SCAL] (1) $SEV_0 = medium2.p >= 0.0 ($RES_EVT_36) (18) [FOR-] (4) ($RES_EVT_37) (18) [----] for $i1 in 1:4 loop (18) [----] [SCAL] (1) $SEV_1[$i1] = medium2.X[$i1] >= (-1e-5) and medium2.X[$i1] <= 1.00001 ($RES_EVT_38) (18) [----] end for; (19) [SCAL] (1) gamma2 = 1/medium2.state.p ($RES_BND_28) (20) [SCAL] (1) $SEV_2 = medium2.T >= 200.0 and medium2.T <= 6000.0 ($RES_EVT_39)