Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(ModelicaTest.Media.TestOnly.FlueGas,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium2.T|medium2.X.1.|medium2.X.2.|medium2.X.3.|medium2.X.4.|medium2.p|state.T|state.p",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.FlueGas") translateModel(ModelicaTest.Media.TestOnly.FlueGas,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium2.T|medium2.X.1.|medium2.X.2.|medium2.X.3.|medium2.X.4.|medium2.p|state.T|state.p",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.FlueGas") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001232/0.001237, allocations: 102.3 kB / 18.46 MB, free: 4.633 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.001204/0.001204, allocations: 192.2 kB / 19.39 MB, free: 3.711 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.31/1.31, allocations: 222.9 MB / 243.1 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2086/0.2086, allocations: 44.17 MB / 337.4 MB, free: 2.711 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.831e-05/3.832e-05, allocations: 5.516 kB / 471.1 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.FlueGas): time 0.4332/0.4332, allocations: 149.7 MB / 0.6063 GB, free: 10.11 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002405/0.4357, allocations: 2.193 MB / 0.6084 GB, free: 7.934 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.246e-05/0.4357, allocations: 0 / 0.6084 GB, free: 7.934 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003593/0.4361, allocations: 59.72 kB / 0.6085 GB, free: 7.875 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001358/0.4375, allocations: 0.6283 MB / 0.6091 GB, free: 7.246 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003152/0.4379, allocations: 99.78 kB / 0.6092 GB, free: 7.148 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002841/0.4381, allocations: 243 kB / 0.6094 GB, free: 6.91 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.352e-05/0.4382, allocations: 4.234 kB / 0.6094 GB, free: 6.906 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002662/0.4385, allocations: 131.1 kB / 0.6096 GB, free: 6.781 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001363/0.4386, allocations: 67.7 kB / 0.6096 GB, free: 6.715 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.951e-05/0.4386, allocations: 8 kB / 0.6096 GB, free: 6.707 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001151/0.4398, allocations: 0.7559 MB / 0.6104 GB, free: 5.949 MB / 446.1 MB Notification: Performance of combineBinaries: time 0.000197/0.44, allocations: 214.7 kB / 0.6106 GB, free: 5.738 MB / 446.1 MB Notification: Performance of replaceArrayConstructors: time 0.000102/0.4401, allocations: 122.4 kB / 0.6107 GB, free: 5.617 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 3.794e-05/0.4402, allocations: 20 kB / 0.6107 GB, free: 5.598 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.942e-05/0.4402, allocations: 3.938 kB / 0.6107 GB, free: 5.594 MB / 446.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.0007914/0.441, allocations: 0.7103 MB / 0.6114 GB, free: 4.777 MB / 446.1 MB Notification: Performance of FunctionAlias: time 0.0001003/0.4411, allocations: 54.67 kB / 0.6115 GB, free: 4.727 MB / 446.1 MB Notification: Performance of Early Inline: time 0.001048/0.4421, allocations: 1.029 MB / 0.6125 GB, free: 3.672 MB / 446.1 MB Notification: Performance of simplify1: time 8.503e-05/0.4422, allocations: 83.84 kB / 0.6125 GB, free: 3.59 MB / 446.1 MB Notification: Performance of Alias: time 0.0005973/0.4428, allocations: 454.4 kB / 0.613 GB, free: 3.082 MB / 446.1 MB Notification: Performance of simplify2: time 8.087e-05/0.4429, allocations: 83.89 kB / 0.6131 GB, free: 3 MB / 446.1 MB Notification: Performance of Events: time 0.0001768/0.4431, allocations: 122.6 kB / 0.6132 GB, free: 2.883 MB / 446.1 MB Notification: Performance of Detect States: time 0.0002851/0.4434, allocations: 252 kB / 0.6134 GB, free: 2.625 MB / 446.1 MB Notification: Performance of Partitioning: time 0.0002606/0.4437, allocations: 232.1 kB / 0.6136 GB, free: 2.383 MB / 446.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 = ModelicaTest.Media.TestOnly.FlueGas.Medium.density_derX(medium2.state) (2) [ALGB] (1) Real gamma2 = ModelicaTest.Media.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 = ModelicaTest.Media.TestOnly.FlueGas.Medium.isentropicEnthalpyApproximation(2e5, medium2.state) (start = 3e5, min = -1e10, max = 1e10, nominal = 1e5) (11) [ALGB] (1) Real s2 = ModelicaTest.Media.TestOnly.FlueGas.Medium.specificEntropy(medium2.state) (min = -1e7, max = 1e7, nominal = 1000.0) (12) [DISC] (1) Boolean $SEV_3 (13) [ALGB] (1) Real medium2.h (14) [DISC] (1) Boolean $SEV_2 (15) [DISC] (1) Boolean $SEV_0 (16) [DISC] (4) Boolean[4] $SEV_1[$i1] (17) [ALGB] (1) Real medium2.d (start = 10.0, min = 0.0, max = 1e5, nominal = 10.0) (18) [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) (19) [ALGB] (1) Real medium2.R_s (start = 1000.0, min = 0.0, max = 1e7, nominal = 1000.0) (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 = ModelicaTest.Media.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_s) ($RES_SIM_13) (8) [SCAL] (1) $DER.medium2.T = 0.0 ($RES_SIM_1) (9) [SCAL] (1) medium2.u = medium2.h - medium2.R_s * 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_s = {296.8033869505308, 259.8369938872708, 461.5233290850878, 188.9244822140674} * medium2.X ($RES_SIM_15) (12) [SCAL] (1) medium2.h = ModelicaTest.Media.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 = ModelicaTest.Media.TestOnly.FlueGas.Medium.s_TX(medium2.state.T, medium2.state.X) - sum(medium2.state.X[i] * 8.31446261815324 / ({0.0280134, 0.0319988, 0.01801528, 0.0440095})[i] * (if $SEV_3 then (ModelicaTest.Media.TestOnly.FlueGas.Medium.massToMoleFractions(medium2.state.X, {0.0280134, 0.0319988, 0.01801528, 0.0440095}))[i] else log((ModelicaTest.Media.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)