Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Sources.Validation.BoundaryWithXi_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.BoundaryWithXi_in,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Sources.Validation.BoundaryWithXi_in") translateModel(Buildings.Fluid.Sources.Validation.BoundaryWithXi_in,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Sources.Validation.BoundaryWithXi_in") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001357/0.001358, allocations: 108 kB / 16.38 MB, free: 5.977 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.001216/0.001216, allocations: 191 kB / 17.31 MB, free: 5.59 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.435/1.435, allocations: 205.1 MB / 223.2 MB, free: 12.24 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.733/1.733, allocations: 292.3 MB / 0.5496 GB, free: 17.56 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.931e-05/2.938e-05, allocations: 6.219 kB / 0.6728 GB, free: 5.934 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Validation.BoundaryWithXi_in): time 0.7185/0.7185, allocations: 221.4 MB / 0.8891 GB, free: 30.58 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.01413/0.7327, allocations: 13.11 MB / 0.9019 GB, free: 19.93 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002457/0.7352, allocations: 42.31 kB / 0.9019 GB, free: 19.91 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.001431/0.7366, allocations: 0.5027 MB / 0.9024 GB, free: 19.45 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.005602/0.7423, allocations: 1.878 MB / 0.9042 GB, free: 18.01 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.005283/0.7476, allocations: 2.173 MB / 0.9064 GB, free: 16.44 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.003234/0.7508, allocations: 2.579 MB / 0.9089 GB, free: 14.96 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001571/0.7524, allocations: 1.301 MB / 0.9102 GB, free: 14.24 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001605/0.754, allocations: 0.9609 MB / 0.9111 GB, free: 13.7 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007432/0.7548, allocations: 0.7361 MB / 0.9118 GB, free: 13.29 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0001071/0.7549, allocations: 82.12 kB / 0.9119 GB, free: 13.29 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00607/0.761, allocations: 2.798 MB / 0.9146 GB, free: 11.7 MB / 0.6544 GB Notification: Performance of combineBinaries: time 0.001349/0.7624, allocations: 1.854 MB / 0.9164 GB, free: 10.46 MB / 0.6544 GB Notification: Performance of replaceArrayConstructors: time 0.0006754/0.7631, allocations: 1.232 MB / 0.9176 GB, free: 9.59 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0003103/0.7634, allocations: 196.7 kB / 0.9178 GB, free: 9.488 MB / 0.6544 GB Notification: Performance of FrontEnd: time 0.0003188/0.7637, allocations: 54.84 kB / 0.9179 GB, free: 9.469 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: 267 (160) * Number of variables: 267 (148) Notification: Performance of Bindings: time 0.003342/0.767, allocations: 4.686 MB / 0.9225 GB, free: 6.051 MB / 0.6544 GB Notification: Performance of FunctionAlias: time 0.0002837/0.7673, allocations: 324.8 kB / 0.9228 GB, free: 5.809 MB / 0.6544 GB Notification: Performance of Early Inline: time 0.002058/0.7694, allocations: 2.293 MB / 0.925 GB, free: 4.082 MB / 0.6544 GB Notification: Performance of simplify1: time 0.0001362/0.7695, allocations: 140.5 kB / 0.9251 GB, free: 3.977 MB / 0.6544 GB Notification: Performance of Alias: time 0.002502/0.7721, allocations: 2.566 MB / 0.9276 GB, free: 1.938 MB / 0.6544 GB Notification: Performance of simplify2: time 9.686e-05/0.7722, allocations: 115.8 kB / 0.9278 GB, free: 1.824 MB / 0.6544 GB Notification: Performance of Events: time 0.00032/0.7725, allocations: 377.5 kB / 0.9281 GB, free: 1.449 MB / 0.6544 GB Notification: Performance of Detect States: time 0.0003655/0.7729, allocations: 0.5092 MB / 0.9286 GB, free: 0.9219 MB / 0.6544 GB Notification: Performance of Partitioning: time 0.000747/0.7736, allocations: 0.9164 MB / 0.9295 GB, free: 15.84 MB / 0.67 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_11) 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] bouNatGas.Xi_in (8) [ALGB] (6) protected Real[6] bouProFluGas.sou.Xi_in_internal (9) [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}}) (10) [ALGB] (1) protected Real bouNatGas.sou.h_internal = Buildings.Fluid.Sources.Validation.BoundaryWithXi_in.bouNatGas.sou.Medium.specificEnthalpy(Buildings.Fluid.Sources.Validation.BoundaryWithXi_in.bouNatGas.sou.Medium.setState_pTX(bouNatGas.sou.p, bouNatGas.sou.T, bouNatGas.sou.X_in_internal)) (11) [ALGB] (6) Real[6] bouNatGas.sou.Xi_in (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) protected Real[6] bouProFluGas.sou.X_in_internal (16) [ALGB] (6) protected Real[6] bouNatGas.sou.Xi_in_internal (17) [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}) (18) [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}) (19) [ALGB] (6) protected Real[6] bouNatGas.sou.X_in_internal (20) [ALGB] (6) Real[6] bouProFluGas.Xi_in (21) [ALGB] (6) Real[6] bouProFluGas.sou.Xi_in (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.BoundaryWithXi_in.bouProFluGas.sou.Medium.specificEnthalpy(Buildings.Fluid.Sources.Validation.BoundaryWithXi_in.bouProFluGas.sou.Medium.setState_pTX(bouProFluGas.sou.p, bouProFluGas.sou.T, bouProFluGas.sou.X_in_internal)) (24) [ALGB] (1) Real bouNatGas.T = bouNatGas.T (start = 288.15, min = 0.0, nominal = 300.0) (25) [ALGB] (6) Real[6] Xi_6.y 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_11) (2) [SCAL] (1) bouNatGas.senTem.port_b.h_outflow = bouNatGas.sou.ports[1].h_outflow ($RES_SIM_13) (3) [ARRY] (6) bouNatGas.sou.X_in_internal[:] = bouNatGas.sou.Xi_in_internal[:] ($RES_SIM_31) (4) [SCAL] (1) bouNatGas.sou.ports[1].h_outflow = bouNatGas.sou.h_internal ($RES_SIM_33) (5) [SCAL] (1) bouNatGas.T = Buildings.Fluid.Sources.Validation.BoundaryWithXi_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_19) (6) [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_39) (7) [FOR-] (6) ($RES_SIM_57) (7) [----] for $i1 in 1:1 loop (7) [----] [ARRY] (6) bouProFluGas.sou.ports[$i1].Xi_outflow = bouProFluGas.sou.Xi_in_internal ($RES_SIM_58) (7) [----] end for; (8) [ARRY] (6) bouProFluGas.sou.X_in_internal[:] = bouProFluGas.sou.Xi_in_internal[:] ($RES_SIM_59) (9) [SCAL] (1) bouProFluGas.sou.h_internal = Buildings.Fluid.Sources.Validation.BoundaryWithXi_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_173) (10) [FOR-] (6) ($RES_EVT_191) (10) [----] for $i1 in 1:6 loop (10) [----] [SCAL] (1) $SEV_2[$i1] = abs(bouNatGas.Xi[$i1] - bouNatGas.Xi_in[$i1]) < 1e-6 ($RES_EVT_192) (10) [----] end for; (11) [FOR-] (6) ($RES_EVT_193) (11) [----] for $i1 in 1:6 loop (11) [----] [SCAL] (1) $SEV_3[$i1] = abs(bouProFluGas.Xi[$i1] - bouProFluGas.Xi_in[$i1]) < 1e-6 ($RES_EVT_194) (11) [----] end for; (12) [SCAL] (1) Xi_6[6].y = bouProFluGas.Xi_in[6] ($RES_SIM_127) (13) [ARRY] (6) bouProFluGas.Xi = bouProFluGas.sou.ports[1].Xi_outflow ($RES_BND_176) (14) [ARRY] (6) bouNatGas.sou.Xi_in = bouNatGas.Xi_in ($RES_SIM_143) (15) [SCAL] (1) Xi_6[6].y = bouNatGas.Xi_in[6] ($RES_SIM_128) (16) [ARRY] (6) bouNatGas.sou.Xi_in = bouNatGas.sou.Xi_in_internal ($RES_SIM_144) (17) [SCAL] (1) Xi_6[5].y = bouProFluGas.Xi_in[5] ($RES_SIM_129) (18) [SCAL] (1) bouNatGas.sou.h_internal = Buildings.Fluid.Sources.Validation.BoundaryWithXi_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_178) (19) [ARRY] (6) bouProFluGas.sou.Xi_in = bouProFluGas.Xi_in ($RES_SIM_149) (20) [SCAL] (1) bouProFluGas.senTem.port_b.h_outflow = bouProFluGas.sou.ports[1].h_outflow ($RES_SIM_41) (21) [FOR-] (6) ($RES_SIM_29) (21) [----] for $i1 in 1:1 loop (21) [----] [ARRY] (6) bouNatGas.sou.ports[$i1].Xi_outflow = bouNatGas.sou.Xi_in_internal ($RES_SIM_30) (21) [----] end for; (22) [SCAL] (1) bouProFluGas.sou.ports[1].h_outflow = bouProFluGas.sou.h_internal ($RES_SIM_61) (23) [SCAL] (1) bouProFluGas.T = Buildings.Fluid.Sources.Validation.BoundaryWithXi_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_47) (24) [FOR-] (6) ($RES_SIM_6) (24) [----] for $i1 in 1:6 loop (24) [----] [SCAL] (1) Xi_6[$i1].y = Xi_6[$i1].k ($RES_SIM_7) (24) [----] end for; (25) [SCAL] (1) Xi_6[5].y = bouNatGas.Xi_in[5] ($RES_SIM_130) (26) [SCAL] (1) Xi_6[4].y = bouProFluGas.Xi_in[4] ($RES_SIM_131) (27) [SCAL] (1) Xi_6[4].y = bouNatGas.Xi_in[4] ($RES_SIM_132) (28) [ARRY] (6) bouNatGas.Xi = bouNatGas.sou.ports[1].Xi_outflow ($RES_BND_181) (29) [SCAL] (1) Xi_6[3].y = bouProFluGas.Xi_in[3] ($RES_SIM_133) (30) [SCAL] (1) Xi_6[3].y = bouNatGas.Xi_in[3] ($RES_SIM_134) (31) [ARRY] (6) bouProFluGas.sou.Xi_in = bouProFluGas.sou.Xi_in_internal ($RES_SIM_150) (32) [SCAL] (1) Xi_6[2].y = bouProFluGas.Xi_in[2] ($RES_SIM_135) (33) [SCAL] (1) Xi_6[2].y = bouNatGas.Xi_in[2] ($RES_SIM_136) (34) [SCAL] (1) Xi_6[1].y = bouProFluGas.Xi_in[1] ($RES_SIM_137) (35) [SCAL] (1) Xi_6[1].y = bouNatGas.Xi_in[1] ($RES_SIM_138)