Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_Buildings.Fluid.Sources.Validation.BoundaryWithXi_in") translateModel(Buildings.Fluid.Sources.Validation.BoundaryWithXi_in,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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.001134/0.001134, allocations: 107.9 kB / 16.42 MB, free: 6.5 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.001072/0.001072, allocations: 187.1 kB / 17.35 MB, free: 5.754 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.158/1.158, 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 7.0.3-maint.7.0.x/package.mo): time 1.206/1.206, allocations: 251.7 MB / 0.51 GB, free: 436 kB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.054e-05/1.055e-05, allocations: 2.281 kB / 0.7264 GB, free: 4.762 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Validation.BoundaryWithXi_in): time 0.4723/0.4723, allocations: 221.7 MB / 0.9428 GB, free: 15.78 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01367/0.486, allocations: 13.23 MB / 0.9557 GB, free: 2.512 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009805/0.487, allocations: 39.75 kB / 0.9558 GB, free: 2.473 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0009915/0.488, allocations: 0.5002 MB / 0.9563 GB, free: 1.969 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.003545/0.4916, allocations: 1.893 MB / 0.9581 GB, free: 72 kB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.004085/0.4957, allocations: 2.166 MB / 0.9602 GB, free: 13.92 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.002262/0.498, allocations: 2.573 MB / 0.9628 GB, free: 11.34 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001341/0.4993, allocations: 1.305 MB / 0.964 GB, free: 10.02 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001024/0.5003, allocations: 0.9577 MB / 0.965 GB, free: 9.059 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006967/0.5011, allocations: 0.7393 MB / 0.9657 GB, free: 8.316 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 9.781e-05/0.5012, allocations: 80 kB / 0.9658 GB, free: 8.238 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00424/0.5054, allocations: 2.805 MB / 0.9685 GB, free: 5.426 MB / 0.7481 GB Notification: Performance of combineBinaries: time 0.00125/0.5067, allocations: 1.844 MB / 0.9703 GB, free: 3.562 MB / 0.7481 GB Notification: Performance of replaceArrayConstructors: time 0.0006948/0.5074, allocations: 1.236 MB / 0.9715 GB, free: 2.312 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.000187/0.5076, allocations: 199.4 kB / 0.9717 GB, free: 2.117 MB / 0.7481 GB Notification: Performance of FrontEnd: time 0.0001213/0.5077, allocations: 51.75 kB / 0.9717 GB, free: 2.066 MB / 0.7481 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.003723/0.5114, allocations: 4.705 MB / 0.9763 GB, free: 13.19 MB / 0.7637 GB Notification: Performance of FunctionAlias: time 0.0002703/0.5117, allocations: 318.6 kB / 0.9766 GB, free: 12.88 MB / 0.7637 GB Notification: Performance of Early Inline: time 0.002083/0.5138, allocations: 2.285 MB / 0.9789 GB, free: 10.55 MB / 0.7637 GB Notification: Performance of simplify1: time 0.0001303/0.5139, allocations: 147.8 kB / 0.979 GB, free: 10.41 MB / 0.7637 GB Notification: Performance of Alias: time 0.002379/0.5163, allocations: 2.557 MB / 0.9815 GB, free: 7.59 MB / 0.7637 GB Notification: Performance of simplify2: time 0.0001116/0.5164, allocations: 119.8 kB / 0.9816 GB, free: 7.473 MB / 0.7637 GB Notification: Performance of Events: time 0.0003431/0.5168, allocations: 362.2 kB / 0.982 GB, free: 7.109 MB / 0.7637 GB Notification: Performance of Detect States: time 0.0004418/0.5172, allocations: 0.5237 MB / 0.9825 GB, free: 6.566 MB / 0.7637 GB Notification: Performance of Partitioning: time 0.0008082/0.5181, allocations: 0.9149 MB / 0.9834 GB, free: 5.492 MB / 0.7637 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 divided 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)