Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Media.Examples.TestOnly.FlueGas") translateModel(Modelica.Media.Examples.TestOnly.FlueGas,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.001197/0.001197, allocations: 103.2 kB / 16.42 MB, free: 6.469 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.001343/0.001344, allocations: 189.5 kB / 17.35 MB, free: 5.734 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.239/1.239, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.079e-05/2.08e-05, allocations: 6.219 kB / 327.2 MB, free: 3.371 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TestOnly.FlueGas): time 0.3207/0.3208, allocations: 151 MB / 478.2 MB, free: 15.18 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002171/0.323, allocations: 2.084 MB / 480.2 MB, free: 13.11 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.594e-05/0.323, allocations: 4 kB / 480.2 MB, free: 13.11 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000327/0.3234, allocations: 55.7 kB / 480.3 MB, free: 13.05 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001133/0.3245, allocations: 0.6147 MB / 480.9 MB, free: 12.44 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002537/0.3248, allocations: 99.78 kB / 481 MB, free: 12.34 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000263/0.3251, allocations: 243 kB / 481.2 MB, free: 12.1 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.454e-05/0.3251, allocations: 8.219 kB / 481.3 MB, free: 12.09 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002522/0.3254, allocations: 129.1 kB / 481.4 MB, free: 11.97 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001086/0.3255, allocations: 67.7 kB / 481.4 MB, free: 11.9 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.871e-05/0.3255, allocations: 8 kB / 481.5 MB, free: 11.89 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001031/0.3266, allocations: 0.7247 MB / 482.2 MB, free: 11.17 MB / 382.1 MB Notification: Performance of combineBinaries: time 0.000203/0.3268, allocations: 218.7 kB / 482.4 MB, free: 10.95 MB / 382.1 MB Notification: Performance of replaceArrayConstructors: time 8.909e-05/0.3269, allocations: 126.5 kB / 482.5 MB, free: 10.83 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.067e-05/0.3269, allocations: 19.94 kB / 482.5 MB, free: 10.81 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.139e-05/0.3269, allocations: 0 / 482.5 MB, free: 10.81 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.0007802/0.3277, allocations: 0.7226 MB / 483.3 MB, free: 9.988 MB / 382.1 MB Notification: Performance of FunctionAlias: time 9.696e-05/0.3278, allocations: 45.62 kB / 483.3 MB, free: 9.945 MB / 382.1 MB Notification: Performance of Early Inline: time 0.001066/0.3289, allocations: 1.074 MB / 484.4 MB, free: 8.844 MB / 382.1 MB Notification: Performance of simplify1: time 8.93e-05/0.329, allocations: 87.88 kB / 484.5 MB, free: 8.758 MB / 382.1 MB Notification: Performance of Alias: time 0.000554/0.3296, allocations: 462.4 kB / 484.9 MB, free: 8.242 MB / 382.1 MB Notification: Performance of simplify2: time 9.446e-05/0.3297, allocations: 79.84 kB / 485 MB, free: 8.164 MB / 382.1 MB Notification: Performance of Events: time 0.0001565/0.3298, allocations: 120.3 kB / 485.1 MB, free: 8.047 MB / 382.1 MB Notification: Performance of Detect States: time 0.0002987/0.3301, allocations: 253.5 kB / 485.4 MB, free: 7.785 MB / 382.1 MB Notification: Performance of Partitioning: time 0.0002532/0.3304, allocations: 240.2 kB / 485.6 MB, free: 7.535 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)