Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_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 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.BoundaryWithX_in,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Sources.Validation.BoundaryWithX_in") translateModel(Buildings.Fluid.Sources.Validation.BoundaryWithX_in,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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.001174/0.001174, allocations: 109.1 kB / 16.42 MB, free: 6.465 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.001089/0.001089, allocations: 188.9 kB / 17.35 MB, free: 5.707 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.156/1.156, allocations: 205.1 MB / 223.2 MB, free: 12.22 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.205/1.205, allocations: 251.7 MB / 0.51 GB, free: 400 kB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.559e-05/1.56e-05, allocations: 5.938 kB / 0.7264 GB, free: 4.75 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Validation.BoundaryWithX_in): time 0.4634/0.4634, allocations: 221.7 MB / 0.9428 GB, free: 15.78 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01343/0.4769, allocations: 13.23 MB / 0.9558 GB, free: 2.516 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001123/0.478, allocations: 43.69 kB / 0.9558 GB, free: 2.473 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001041/0.4791, allocations: 0.508 MB / 0.9563 GB, free: 1.961 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.003708/0.4828, allocations: 1.882 MB / 0.9581 GB, free: 76 kB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.004247/0.4871, allocations: 2.172 MB / 0.9602 GB, free: 13.92 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.002473/0.4896, allocations: 2.557 MB / 0.9627 GB, free: 11.35 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001365/0.491, allocations: 1.302 MB / 0.964 GB, free: 10.04 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001142/0.4921, allocations: 0.9499 MB / 0.9649 GB, free: 9.082 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006943/0.4928, allocations: 0.7277 MB / 0.9657 GB, free: 8.352 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.0001056/0.4929, allocations: 84 kB / 0.9657 GB, free: 8.27 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004657/0.4976, allocations: 2.809 MB / 0.9685 GB, free: 5.453 MB / 0.7481 GB Notification: Performance of combineBinaries: time 0.001239/0.4989, allocations: 1.841 MB / 0.9703 GB, free: 3.594 MB / 0.7481 GB Notification: Performance of replaceArrayConstructors: time 0.0007178/0.4996, allocations: 1.232 MB / 0.9715 GB, free: 2.348 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.000222/0.4998, allocations: 195.4 kB / 0.9717 GB, free: 2.156 MB / 0.7481 GB Notification: Performance of FrontEnd: time 0.0001624/0.5, allocations: 59.73 kB / 0.9717 GB, free: 2.098 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: 272 (160) * Number of variables: 272 (148) Notification: Performance of Bindings: time 0.00371/0.5037, allocations: 4.709 MB / 0.9763 GB, free: 13.22 MB / 0.7637 GB Notification: Performance of FunctionAlias: time 0.0001742/0.5039, allocations: 175.8 kB / 0.9765 GB, free: 13.05 MB / 0.7637 GB Notification: Performance of Early Inline: time 0.002093/0.506, allocations: 2.262 MB / 0.9787 GB, free: 10.75 MB / 0.7637 GB Notification: Performance of simplify1: time 0.0001314/0.5061, allocations: 147.8 kB / 0.9788 GB, free: 10.6 MB / 0.7637 GB Notification: Performance of Alias: time 0.002392/0.5085, allocations: 2.557 MB / 0.9813 GB, free: 7.781 MB / 0.7637 GB Notification: Performance of simplify2: time 0.0001092/0.5086, allocations: 119.8 kB / 0.9814 GB, free: 7.664 MB / 0.7637 GB Notification: Performance of Events: time 0.0003361/0.509, allocations: 358 kB / 0.9818 GB, free: 7.305 MB / 0.7637 GB Notification: Performance of Detect States: time 0.0004375/0.5094, allocations: 0.5072 MB / 0.9823 GB, free: 6.777 MB / 0.7637 GB Notification: Performance of Partitioning: time 0.0008023/0.5102, allocations: 0.9152 MB / 0.9832 GB, free: 5.699 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_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)