Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Media.Examples.TestOnly.FlueGas") translateModel(Modelica.Media.Examples.TestOnly.FlueGas,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001085/0.001085, allocations: 113.4 kB / 17.75 MB, free: 5.305 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.001067/0.001067, allocations: 184.3 kB / 18.68 MB, free: 4.387 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.277/1.277, allocations: 205.1 MB / 224.6 MB, free: 12.24 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.311e-05/2.311e-05, allocations: 3.125 kB / 328.5 MB, free: 3.344 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TestOnly.FlueGas): time 0.3133/0.3133, allocations: 151 MB / 479.5 MB, free: 15.14 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002455/0.3158, allocations: 2.089 MB / 481.6 MB, free: 13.06 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001004/0.3159, allocations: 0 / 481.6 MB, free: 13.06 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003323/0.3163, allocations: 57.66 kB / 481.6 MB, free: 13.01 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001574/0.3179, allocations: 0.6052 MB / 482.2 MB, free: 12.41 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003255/0.3183, allocations: 106.1 kB / 482.3 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003584/0.3186, allocations: 239 kB / 482.6 MB, free: 12.07 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.83e-05/0.3187, allocations: 8.234 kB / 482.6 MB, free: 12.06 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00028/0.319, allocations: 133.1 kB / 482.7 MB, free: 11.93 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001242/0.3191, allocations: 71.7 kB / 482.8 MB, free: 11.86 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.18e-05/0.3191, allocations: 4 kB / 482.8 MB, free: 11.86 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001272/0.3204, allocations: 0.7287 MB / 483.5 MB, free: 11.13 MB / 382.1 MB Notification: Performance of combineBinaries: time 0.0001989/0.3206, allocations: 210.7 kB / 483.7 MB, free: 10.92 MB / 382.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001016/0.3207, allocations: 126.5 kB / 483.8 MB, free: 10.8 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.843e-05/0.3208, allocations: 23.94 kB / 483.9 MB, free: 10.77 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.655e-05/0.3208, allocations: 3.938 kB / 483.9 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.0007894/0.3216, allocations: 0.7204 MB / 484.6 MB, free: 9.949 MB / 382.1 MB Notification: Performance of FunctionAlias: time 0.0001004/0.3217, allocations: 37.55 kB / 484.6 MB, free: 9.914 MB / 382.1 MB Notification: Performance of Early Inline: time 0.00115/0.3229, allocations: 1.074 MB / 485.7 MB, free: 8.812 MB / 382.1 MB Notification: Performance of simplify1: time 0.0001192/0.323, allocations: 91.83 kB / 485.8 MB, free: 8.723 MB / 382.1 MB Notification: Performance of Alias: time 0.0006205/0.3236, allocations: 462.3 kB / 486.2 MB, free: 8.207 MB / 382.1 MB Notification: Performance of simplify2: time 0.000113/0.3237, allocations: 79.91 kB / 486.3 MB, free: 8.129 MB / 382.1 MB Notification: Performance of Events: time 0.0001995/0.324, allocations: 121.2 kB / 486.4 MB, free: 8.012 MB / 382.1 MB Notification: Performance of Detect States: time 0.0003064/0.3243, allocations: 253.1 kB / 486.7 MB, free: 7.75 MB / 382.1 MB Notification: Performance of Partitioning: time 0.0002804/0.3246, allocations: 246.6 kB / 486.9 MB, free: 7.496 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)