Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Sources.Validation.BoundaryWithX_in.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)
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false)
Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo)
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(Buildings.Fluid.Sources.Validation.BoundaryWithX_in,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Sources.Validation.BoundaryWithX_in")
translateModel(Buildings.Fluid.Sources.Validation.BoundaryWithX_in,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Sources.Validation.BoundaryWithX_in")
Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001283/0.001283, allocations: 108.6 kB / 16.38 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.001201/0.001201, allocations: 190.5 kB / 17.31 MB, free: 5.812 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.446/1.446, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.1 MB
Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.78/1.78, allocations: 292.3 MB / 0.5496 GB, free: 17.54 MB / 462.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 2.716e-05/2.718e-05, allocations: 6.219 kB / 0.6728 GB, free: 5.961 MB / 0.545 GB
Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Validation.BoundaryWithX_in): time 0.7103/0.7104, allocations: 221.4 MB / 0.8891 GB, free: 30.77 MB / 0.6544 GB
Notification: Performance of NFInst.instExpressions: time 0.01737/0.7278, allocations: 13.1 MB / 0.9019 GB, free: 20.12 MB / 0.6544 GB
Notification: Performance of NFInst.updateImplicitVariability: time 0.002576/0.7304, allocations: 41.94 kB / 0.9019 GB, free: 20.1 MB / 0.6544 GB
Notification: Performance of NFTyping.typeComponents: time 0.001613/0.732, allocations: 0.507 MB / 0.9024 GB, free: 19.64 MB / 0.6544 GB
Notification: Performance of NFTyping.typeBindings: time 0.006575/0.7387, allocations: 1.88 MB / 0.9042 GB, free: 18.2 MB / 0.6544 GB
Notification: Performance of NFTyping.typeClassSections: time 0.006966/0.7457, allocations: 2.179 MB / 0.9064 GB, free: 16.62 MB / 0.6544 GB
Notification: Performance of NFFlatten.flatten: time 0.004408/0.7501, allocations: 2.538 MB / 0.9089 GB, free: 15.17 MB / 0.6544 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.002106/0.7522, allocations: 1.311 MB / 0.9101 GB, free: 14.45 MB / 0.6544 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.002254/0.7545, allocations: 0.9475 MB / 0.9111 GB, free: 13.92 MB / 0.6544 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.001104/0.7556, allocations: 0.7325 MB / 0.9118 GB, free: 13.51 MB / 0.6544 GB
Notification: Performance of NFPackage.collectConstants: time 0.0001368/0.7557, allocations: 79.81 kB / 0.9119 GB, free: 13.51 MB / 0.6544 GB
Notification: Performance of NFFlatten.collectFunctions: time 0.006294/0.7621, allocations: 2.814 MB / 0.9146 GB, free: 11.91 MB / 0.6544 GB
Notification: Performance of combineBinaries: time 0.001228/0.7633, allocations: 1.846 MB / 0.9164 GB, free: 10.68 MB / 0.6544 GB
Notification: Performance of replaceArrayConstructors: time 0.0007089/0.764, allocations: 1.225 MB / 0.9176 GB, free: 9.809 MB / 0.6544 GB
Notification: Performance of NFVerifyModel.verify: time 0.0003162/0.7643, allocations: 194.3 kB / 0.9178 GB, free: 9.711 MB / 0.6544 GB
Notification: Performance of FrontEnd: time 0.0003155/0.7647, allocations: 62.97 kB / 0.9178 GB, free: 9.684 MB / 0.6544 GB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 272 (160)
 * Number of variables: 272 (148)
Notification: Performance of Bindings: time 0.003451/0.7681, allocations: 4.69 MB / 0.9224 GB, free: 6.266 MB / 0.6544 GB
Notification: Performance of FunctionAlias: time 0.0001896/0.7683, allocations: 180.2 kB / 0.9226 GB, free: 6.117 MB / 0.6544 GB
Notification: Performance of Early Inline: time 0.002033/0.7704, allocations: 2.28 MB / 0.9248 GB, free: 4.398 MB / 0.6544 GB
Notification: Performance of simplify1: time 0.0001223/0.7705, allocations: 144.5 kB / 0.925 GB, free: 4.289 MB / 0.6544 GB
Notification: Performance of Alias: time 0.002348/0.7728, allocations: 2.552 MB / 0.9275 GB, free: 2.168 MB / 0.6544 GB
Notification: Performance of simplify2: time 8.664e-05/0.7729, allocations: 119.8 kB / 0.9276 GB, free: 2.051 MB / 0.6544 GB
Notification: Performance of Events: time 0.0003074/0.7733, allocations: 356.7 kB / 0.9279 GB, free: 1.695 MB / 0.6544 GB
Notification: Performance of Detect States: time 0.0003698/0.7736, allocations: 0.5145 MB / 0.9284 GB, free: 1.164 MB / 0.6544 GB
Notification: Performance of Partitioning: time 0.0006459/0.7743, allocations: 0.9125 MB / 0.9293 GB, free: 84 kB / 0.6544 GB
Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency bouNatGas.sou.ports[1].Xi_outflow[5] could not be devided by the body size 6 without rest.
Error: Internal error NBAdjacency.Matrix.createPseudo failed for:
[ARRY] (6) bouNatGas.senTem.port_b.Xi_outflow = {bouNatGas.sou.ports[1].Xi_outflow[1], bouNatGas.sou.ports[1].Xi_outflow[2], bouNatGas.sou.ports[1].Xi_outflow[3], bouNatGas.sou.ports[1].Xi_outflow[4], bouNatGas.sou.ports[1].Xi_outflow[5], bouNatGas.sou.ports[1].Xi_outflow[6]} ($RES_SIM_12)
Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system:
System Variables (25/110)
***************************
(1)       [ALGB] (1) Real bouProFluGas.T = bouProFluGas.T (start = 288.15, min = 0.0, nominal = 300.0)
(2)       [ALGB] (1) stream Real bouNatGas.senTem.port_b.h_outflow (start = 3e5, min = -1e10, max = 1e10, nominal = 1e5)
(3)       [DISC] (6) Boolean[6] $SEV_2[$i1]
(4)       [ALGB] (6) stream Real[6] bouNatGas.senTem.port_b.Xi_outflow (min = {0.0 for $i1 in 1:6}, max = {1.0 for $i1 in 1:6}, nominal = {0.1 for $i1 in 1:6})
(5)       [ALGB] (1) stream Real bouProFluGas.senTem.port_b.h_outflow (start = 3e5, min = -1e10, max = 1e10, nominal = 1e5)
(6)       [ALGB] (1) stream Real[1] bouProFluGas.sou.ports.h_outflow (start = {3e5}, min = {-1e10 for $i1 in 1:1}, max = {1e10 for $i1 in 1:1}, nominal = {1e5 for $i1 in 1:1})
(7)       [ALGB] (6) Real[6] X_6.y
(8)       [ALGB] (6) Real[6] bouNatGas.sou.X_in
(9)       [ALGB] (6) protected Real[6] bouProFluGas.sou.Xi_in_internal
(10)      [ALGB] (6) stream Real[1, 6] bouProFluGas.sou.ports.Xi_outflow (min = {{0.0 for $i1 in 1:6}}, max = {{1.0 for $i1 in 1:6}}, nominal = {{0.1 for $i1 in 1:6}})
(11)      [ALGB] (1) protected Real bouNatGas.sou.h_internal = Buildings.Fluid.Sources.Validation.BoundaryWithX_in.bouNatGas.sou.Medium.specificEnthalpy(Buildings.Fluid.Sources.Validation.BoundaryWithX_in.bouNatGas.sou.Medium.setState_pTX(bouNatGas.sou.p, bouNatGas.sou.T, bouNatGas.sou.X_in_internal))
(12)      [DISC] (6) Boolean[6] $SEV_3[$i1]
(13)      [ALGB] (6) stream Real[1, 6] bouNatGas.sou.ports.Xi_outflow (min = {{0.0 for $i1 in 1:6}}, max = {{1.0 for $i1 in 1:6}}, nominal = {{0.1 for $i1 in 1:6}})
(14)      [ALGB] (6) Real[6] bouNatGas.Xi = bouNatGas.sou.ports[1].Xi_outflow (min = {0.0 for $i1 in 1:6}, max = {1.0 for $i1 in 1:6})
(15)      [ALGB] (6) Real[6] bouProFluGas.sou.X_in
(16)      [ALGB] (6) protected Real[6] bouProFluGas.sou.X_in_internal
(17)      [ALGB] (6) protected Real[6] bouNatGas.sou.Xi_in_internal
(18)      [ALGB] (1) stream Real[1] bouNatGas.sou.ports.h_outflow (start = {3e5}, min = {-1e10 for $i1 in 1:1}, max = {1e10 for $i1 in 1:1}, nominal = {1e5 for $i1 in 1:1})
(19)      [ALGB] (6) Real[6] bouProFluGas.X_in
(20)      [ALGB] (6) Real[6] bouProFluGas.Xi = bouProFluGas.sou.ports[1].Xi_outflow (min = {0.0 for $i1 in 1:6}, max = {1.0 for $i1 in 1:6})
(21)      [ALGB] (6) protected Real[6] bouNatGas.sou.X_in_internal
(22)      [ALGB] (6) stream Real[6] bouProFluGas.senTem.port_b.Xi_outflow (min = {0.0 for $i1 in 1:6}, max = {1.0 for $i1 in 1:6}, nominal = {0.1 for $i1 in 1:6})
(23)      [ALGB] (1) protected Real bouProFluGas.sou.h_internal = Buildings.Fluid.Sources.Validation.BoundaryWithX_in.bouProFluGas.sou.Medium.specificEnthalpy(Buildings.Fluid.Sources.Validation.BoundaryWithX_in.bouProFluGas.sou.Medium.setState_pTX(bouProFluGas.sou.p, bouProFluGas.sou.T, bouProFluGas.sou.X_in_internal))
(24)      [ALGB] (6) Real[6] bouNatGas.X_in
(25)      [ALGB] (1) Real bouNatGas.T = bouNatGas.T (start = 288.15, min = 0.0, nominal = 300.0)


System Equations (35/110)
***************************
(1)       [ARRY] (6) bouNatGas.senTem.port_b.Xi_outflow = {bouNatGas.sou.ports[1].Xi_outflow[1], bouNatGas.sou.ports[1].Xi_outflow[2], bouNatGas.sou.ports[1].Xi_outflow[3], bouNatGas.sou.ports[1].Xi_outflow[4], bouNatGas.sou.ports[1].Xi_outflow[5], bouNatGas.sou.ports[1].Xi_outflow[6]} ($RES_SIM_12)
(2)       [SCAL] (1) bouNatGas.senTem.port_b.h_outflow = bouNatGas.sou.ports[1].h_outflow ($RES_SIM_14)
(3)       [FOR-] (6) ($RES_SIM_30)
(3)       [----] for $i1 in 1:1 loop
(3)       [----]   [ARRY] (6) bouNatGas.sou.ports[$i1].Xi_outflow = bouNatGas.sou.Xi_in_internal ($RES_SIM_31)
(3)       [----] end for;
(4)       [ARRY] (6) bouNatGas.sou.X_in_internal[:] = bouNatGas.sou.Xi_in_internal[:] ($RES_SIM_32)
(5)       [SCAL] (1) bouNatGas.sou.ports[1].h_outflow = bouNatGas.sou.h_internal ($RES_SIM_34)
(6)       [FOR-] (6) ($RES_SIM_58)
(6)       [----] for $i1 in 1:1 loop
(6)       [----]   [ARRY] (6) bouProFluGas.sou.ports[$i1].Xi_outflow = bouProFluGas.sou.Xi_in_internal ($RES_SIM_59)
(6)       [----] end for;
(7)       [FOR-] (6) ($RES_EVT_190)
(7)       [----] for $i1 in 1:6 loop
(7)       [----]   [SCAL] (1) $SEV_2[$i1] = abs(bouNatGas.Xi[$i1] - bouNatGas.X_in[$i1]) < 1e-6 ($RES_EVT_191)
(7)       [----] end for;
(8)       [SCAL] (1) bouProFluGas.sou.h_internal = Buildings.Fluid.Sources.Validation.BoundaryWithX_in.bouProFluGas.sou.Medium.h_TX(bouProFluGas.sou.T, bouProFluGas.sou.X_in_internal, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.ZeroAt0K, 0.0) ($RES_BND_174)
(9)       [FOR-] (6) ($RES_EVT_192)
(9)       [----] for $i1 in 1:6 loop
(9)       [----]   [SCAL] (1) $SEV_3[$i1] = abs(bouProFluGas.Xi[$i1] - bouProFluGas.X_in[$i1]) < 1e-6 ($RES_EVT_193)
(9)       [----] end for;
(10)      [SCAL] (1) X_6[6].y = bouProFluGas.X_in[6] ($RES_SIM_128)
(11)      [ARRY] (6) bouProFluGas.Xi = bouProFluGas.sou.ports[1].Xi_outflow ($RES_BND_177)
(12)      [ARRY] (6) bouNatGas.sou.X_in = bouNatGas.X_in ($RES_SIM_144)
(13)      [SCAL] (1) X_6[6].y = bouNatGas.X_in[6] ($RES_SIM_129)
(14)      [ARRY] (6) bouNatGas.sou.X_in = bouNatGas.sou.X_in_internal ($RES_SIM_145)
(15)      [SCAL] (1) bouNatGas.sou.h_internal = Buildings.Fluid.Sources.Validation.BoundaryWithX_in.bouNatGas.sou.Medium.h_TX(bouNatGas.sou.T, bouNatGas.sou.X_in_internal, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.ZeroAt0K, 0.0) ($RES_BND_179)
(16)      [SCAL] (1) bouNatGas.T = Buildings.Fluid.Sources.Validation.BoundaryWithX_in.bouNatGas.senTem.Medium.T_hX.Internal.solve(bouNatGas.senTem.port_b.h_outflow, 200.0, 6000.0, 1e5, bouNatGas.senTem.port_b.Xi_outflow, Modelica.Media.IdealGases.Common.DataRecord("CH4", 0.01604246, -4.65015963885838e6, 624355.7409524474, 1000.0, {-176685.0998, 2786.18102, -12.0257785, 0.0391761929, -3.61905443e-5, 2.026853043e-8, -4.976705489999999e-12}, {-23313.1436, 89.0432275}, {3.73004276e6, -13835.01485, 20.49107091, -0.001961974759, 4.72731304e-7, -3.72881469e-11, 1.623737207e-15}, {75320.6691, -121.9124889}, 518.2791167938085), 1e-13) ($RES_SIM_20)
(17)      [ARRY] (6) bouProFluGas.senTem.port_b.Xi_outflow = {bouProFluGas.sou.ports[1].Xi_outflow[1], bouProFluGas.sou.ports[1].Xi_outflow[2], bouProFluGas.sou.ports[1].Xi_outflow[3], bouProFluGas.sou.ports[1].Xi_outflow[4], bouProFluGas.sou.ports[1].Xi_outflow[5], bouProFluGas.sou.ports[1].Xi_outflow[6]} ($RES_SIM_40)
(18)      [SCAL] (1) bouProFluGas.senTem.port_b.h_outflow = bouProFluGas.sou.ports[1].h_outflow ($RES_SIM_42)
(19)      [ARRY] (6) bouProFluGas.sou.X_in_internal[:] = bouProFluGas.sou.Xi_in_internal[:] ($RES_SIM_60)
(20)      [SCAL] (1) bouProFluGas.sou.ports[1].h_outflow = bouProFluGas.sou.h_internal ($RES_SIM_62)
(21)      [SCAL] (1) bouProFluGas.T = Buildings.Fluid.Sources.Validation.BoundaryWithX_in.bouProFluGas.senTem.Medium.T_hX.Internal.solve(bouProFluGas.senTem.port_b.h_outflow, 200.0, 6000.0, 1e5, bouProFluGas.senTem.port_b.Xi_outflow, 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), 1e-13) ($RES_SIM_48)
(22)      [FOR-] (6) ($RES_SIM_6)
(22)      [----] for $i1 in 1:6 loop
(22)      [----]   [SCAL] (1) X_6[$i1].y = X_6[$i1].k ($RES_SIM_7)
(22)      [----] end for;
(23)      [SCAL] (1) X_6[5].y = bouProFluGas.X_in[5] ($RES_SIM_130)
(24)      [SCAL] (1) X_6[5].y = bouNatGas.X_in[5] ($RES_SIM_131)
(25)      [SCAL] (1) X_6[4].y = bouProFluGas.X_in[4] ($RES_SIM_132)
(26)      [SCAL] (1) X_6[4].y = bouNatGas.X_in[4] ($RES_SIM_133)
(27)      [ARRY] (6) bouNatGas.Xi = bouNatGas.sou.ports[1].Xi_outflow ($RES_BND_182)
(28)      [SCAL] (1) X_6[3].y = bouProFluGas.X_in[3] ($RES_SIM_134)
(29)      [ARRY] (6) bouProFluGas.sou.X_in = bouProFluGas.X_in ($RES_SIM_150)
(30)      [SCAL] (1) X_6[3].y = bouNatGas.X_in[3] ($RES_SIM_135)
(31)      [ARRY] (6) bouProFluGas.sou.X_in = bouProFluGas.sou.X_in_internal ($RES_SIM_151)
(32)      [SCAL] (1) X_6[2].y = bouProFluGas.X_in[2] ($RES_SIM_136)
(33)      [SCAL] (1) X_6[2].y = bouNatGas.X_in[2] ($RES_SIM_137)
(34)      [SCAL] (1) X_6[1].y = bouProFluGas.X_in[1] ($RES_SIM_138)
(35)      [SCAL] (1) X_6[1].y = bouNatGas.X_in[1] ($RES_SIM_139)