Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.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/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/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(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|pipe1.port_a.p|pipe1.port_b.p|pipe1.port_b.m_flow|pipe1.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe") translateModel(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|pipe1.port_a.p|pipe1.port_b.p|pipe1.port_b.m_flow|pipe1.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001099/0.001099, allocations: 109.8 kB / 17.05 MB, free: 6.023 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.00108/0.00108, allocations: 196.7 kB / 17.98 MB, free: 5.109 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.187/1.187, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1746/0.1746, allocations: 43.52 MB / 314.7 MB, free: 496 kB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.938e-05/1.94e-05, allocations: 2.828 kB / 384.1 MB, free: 56.32 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe): time 0.009446/0.009479, allocations: 12.59 MB / 396.7 MB, free: 48.06 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005713/0.01523, allocations: 5.419 MB / 402.1 MB, free: 44.28 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004934/0.01575, allocations: 16.84 kB / 402.2 MB, free: 44.27 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005577/0.01632, allocations: 198.1 kB / 402.4 MB, free: 44.16 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001459/0.01783, allocations: 0.6872 MB / 403 MB, free: 43.78 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003129/0.02096, allocations: 1.543 MB / 404.6 MB, free: 42.81 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001139/0.02211, allocations: 1.359 MB / 405.9 MB, free: 41.95 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003343/0.02246, allocations: 348.1 kB / 406.3 MB, free: 41.61 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004981/0.02296, allocations: 0.5529 MB / 406.8 MB, free: 41.06 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003646/0.02334, allocations: 446.5 kB / 407.3 MB, free: 40.62 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.392e-05/0.0234, allocations: 48 kB / 407.3 MB, free: 40.57 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001091/0.0245, allocations: 1.057 MB / 408.4 MB, free: 39.52 MB / 318.1 MB Notification: Performance of combineBinaries: time 0.0004632/0.02497, allocations: 0.9609 MB / 409.3 MB, free: 38.55 MB / 318.1 MB Notification: Performance of replaceArrayConstructors: time 0.000199/0.02518, allocations: 0.5951 MB / 409.9 MB, free: 37.95 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.399e-05/0.02526, allocations: 87.75 kB / 410 MB, free: 37.86 MB / 318.1 MB Notification: Performance of FrontEnd: time 6.545e-05/0.02533, allocations: 17.34 kB / 410 MB, free: 37.84 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 (67) * Number of variables: 84 (72) Notification: Performance of Bindings: time 0.001417/0.02675, allocations: 2.481 MB / 412.5 MB, free: 35.29 MB / 318.1 MB Notification: Performance of FunctionAlias: time 0.0001783/0.02694, allocations: 196.2 kB / 412.7 MB, free: 35.11 MB / 318.1 MB Notification: Performance of Early Inline: time 0.0006965/0.02764, allocations: 1.133 MB / 413.8 MB, free: 33.95 MB / 318.1 MB Notification: Performance of simplify1: time 6.241e-05/0.02772, allocations: 83.89 kB / 413.9 MB, free: 33.87 MB / 318.1 MB Notification: Performance of Alias: time 0.0009666/0.02869, allocations: 1.362 MB / 415.3 MB, free: 32.37 MB / 318.1 MB Notification: Performance of simplify2: time 4.828e-05/0.02875, allocations: 71.91 kB / 415.4 MB, free: 32.3 MB / 318.1 MB Notification: Performance of Events: time 0.0001789/0.02893, allocations: 189.7 kB / 415.5 MB, free: 32.12 MB / 318.1 MB Notification: Performance of Detect States: time 0.0002032/0.02914, allocations: 309.2 kB / 415.8 MB, free: 31.81 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0002805/0.02943, allocations: 474.8 kB / 416.3 MB, free: 31.24 MB / 318.1 MB Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (48/60) ************************** (1) [ALGB] (1) final Real[1] pipe1.flowModel.dheights = {pipe1.height_ab} (2) [ALGB] (1) Real[1] pipe1.flowModel.rhos_act (start = {1.0 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}, max = {1e5 for $i1 in 1:1}, nominal = {1.0 for $i1 in 1:1}) (3) [ALGB] (4) input Real[2, 2] pipe1.flowModel.states.T (start = {288.15 for $i1 in 1:2}, min = {1.0 for $i1 in 1:2}, max = {1e4 for $i1 in 1:2}, nominal = {300.0 for $i1 in 1:2}) (4) [ALGB] (1) flow Real[1] source.ports.m_flow (min = {-1e60}, max = {1e60}) (5) [ALGB] (1) Real $FUN_4 (6) [ALGB] (1) Real $FUN_3 (7) [ALGB] (1) Real pipe1.port_b.p (start = 1e5, min = 0.0, max = 1e8, nominal = 1e5) (8) [ALGB] (1) Real $FUN_2 (9) [ALGB] (2) final Real[2] pipe1.flowModel.roughnesses = {pipe1.roughness, pipe1.roughness} (min = {0.0 for $i1 in 1:2}) (10) [ALGB] (1) Real $FUN_1 (11) [ALGB] (1) stream Real[1] source.ports.h_outflow (min = {-1e10 for $i1 in 1:1}, max = {1e10 for $i1 in 1:1}, nominal = {1e6 for $i1 in 1:1}) (12) [ALGB] (1) Real source.medium.state.p (start = 1e5, min = 0.0, max = 1e8, nominal = 1e5) (13) [ALGB] (2) Real[2] pipe1.flowModel.mus = {ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe1.flowModel.Medium.dynamicViscosity(pipe1.flowModel.states[$i1]) for $i1 in 1:2} (start = {0.001 for $i1 in 1:2}, min = {0.0 for $i1 in 1:2}, max = {1e8 for $i1 in 1:2}, nominal = {0.001 for $i1 in 1:2}) (14) [ALGB] (1) Real[1] pipe1.flowModel.Fs_fg (15) [DISC] (1) protected Real p_table.b (16) [DISC] (1) protected Real p_table.a (17) [ALGB] (1) Real[1] pipe1.flowModel.dps_fg (start = {pipe1.flowModel.p_a_start - pipe1.flowModel.p_b_start for $i1 in 1:1}) (18) [ALGB] (1) stream Real[1] sink.ports.h_outflow (min = {-1e10 for $i1 in 1:1}, max = {1e10 for $i1 in 1:1}, nominal = {1e6 for $i1 in 1:1}) (19) [DISC] (1) protected discrete Real p_table.nextEventScaled (fixed = true, start = 0.0) (20) [ALGB] (1) Real[1] pipe1.flowModel.mus_act (start = {0.001 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}, max = {1e8 for $i1 in 1:1}, nominal = {0.001 for $i1 in 1:1}) (21) [ALGB] (1) flow Real[1] sink.ports.m_flow (min = {-1e60}, max = {1e60}) (22) [ALGB] (1) flow Real pipe1.port_b.m_flow (min = -1e5, max = 1e60) (23) [ALGB] (1) Real[1] pipe1.flowModel.m_flows (start = {0.0 for $i1 in 1:1}, min = {-1e60 for $i1 in 1:1}, max = {1e5 for $i1 in 1:1}, StateSelect = default) (24) [ALGB] (1) Real[1] source.ports.p (start = {1e5 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}, max = {1e8 for $i1 in 1:1}, nominal = {1e5 for $i1 in 1:1}) (25) [ALGB] (1) Real[1] pipe1.flowModel.Res_turbulent_internal = pipe1.flowModel.Re_turbulent * {1.0 for $i1 in 1:1} (26) [DISC] (1) protected discrete Real p_table.nextEvent (fixed = true, start = 0.0) (27) [ALGB] (1) Real[1] pipe1.flowModel.Fs_p (28) [ALGB] (4) input Real[2, 2] pipe1.flowModel.states.p (start = {1e5 for $i1 in 1:2}, min = {0.0 for $i1 in 1:2}, max = {1e8 for $i1 in 1:2}, nominal = {1e5 for $i1 in 1:2}) (29) [ALGB] (2) Real[2] pipe1.flowModel.vs = {(-pipe1.port_b.m_flow) / (pipe1.flowModel.crossAreas[1] * ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe1.Medium.density(pipe1.flowModel.states[1])), -pipe1.port_b.m_flow / (ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe1.Medium.density(pipe1.flowModel.states[2]) * pipe1.flowModel.crossAreas[2])} / pipe1.nParallel (30) [ALGB] (2) Real[2] pipe1.flowModel.rhos = {ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe1.flowModel.Medium.density(pipe1.flowModel.states[$i1]) for $i1 in 1:2} (start = {1.0 for $i1 in 1:2}, min = {0.0 for $i1 in 1:2}, max = {1e5 for $i1 in 1:2}, nominal = {1.0 for $i1 in 1:2}) (31) [ALGB] (1) Real[1] sink.ports.p (start = {1e5 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}, max = {1e8 for $i1 in 1:1}, nominal = {1e5 for $i1 in 1:1}) (32) [ALGB] (1) Real source.medium.p_bar = Modelica.SIunits.Conversions.to_bar(99999.99999999999 * source.medium.p_bar) (33) [ALGB] (1) protected Real pipe1.flowModel.dp_fric_nominal = sum({ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe1.flowModel.WallFriction.pressureLoss_m_flow(pipe1.flowModel.m_flow_nominal / pipe1.flowModel.nParallel, pipe1.flowModel.rho_nominal, pipe1.flowModel.rho_nominal, pipe1.flowModel.mu_nominal, pipe1.flowModel.mu_nominal, pipe1.flowModel.pathLengths_internal[1], pipe1.flowModel.diameters[1], ((pipe1.flowModel.crossAreas[2:2] + pipe1.flowModel.crossAreas[1:1]) / 2.0)[1], ((pipe1.flowModel.roughnesses[2:2] + pipe1.flowModel.roughnesses[1:1]) / 2.0)[1], pipe1.flowModel.m_flow_small / pipe1.flowModel.nParallel, pipe1.flowModel.Res_turbulent_internal[1])}) (min = 0.0, nominal = 1e5) (34) [ALGB] (2) final Real[2] pipe1.flowModel.crossAreas = {pipe1.crossArea, pipe1.crossArea} (35) [ALGB] (1) final Real[1] pipe1.flowModel.pathLengths = {pipe1.length} (36) [DISC] (1) Boolean $TEV_0 (37) [ALGB] (1) Real[1] pipe1.flowModel.Ib_flows (38) [ALGB] (1) protected Real[1] pipe1.flowModel.diameters = 0.5 * (pipe1.flowModel.dimensions[2:2] + pipe1.flowModel.dimensions[1:1]) (39) [ALGB] (1) Real[1] pipe1.flowModel.pathLengths_internal = pipe1.flowModel.pathLengths (40) [ALGB] (2) final Real[2] pipe1.flowModel.dimensions = {(4.0 * pipe1.crossArea) / pipe1.perimeter, (4.0 * pipe1.crossArea) / pipe1.perimeter} (41) [ALGB] (1) Real pipe1.port_a.p (start = 1e5, min = 0.0, max = 1e8, nominal = 1e5) (42) [DISC] (1) Boolean $SEV_11 (43) [DISC] (1) protected Integer p_table.last (start = 1) (44) [ALGB] (1) stream Real pipe1.port_a.h_outflow (min = -1e10, max = 1e10, nominal = 1e6) (45) [ALGB] (1) Real[1] pipe1.flowModel.Is (46) [ALGB] (1) stream Real pipe1.port_b.h_outflow (min = -1e10, max = 1e10, nominal = 1e6) (47) [ALGB] (1) Real $FUN_6 (48) [DISC] (1) Integer $FUN_5 System Equations (40/56) ************************** (1) [SCAL] (1) $TEV_0 = $PRE.p_table.nextEvent ($RES_EVT_90) (2) [SCAL] (1) source.medium.state.p = 99999.99999999999 * source.medium.p_bar ($RES_SIM_14) (3) [ARRY] (1) pipe1.flowModel.Is = {pipe1.flowModel.m_flows[1] * pipe1.flowModel.pathLengths[1]} ($RES_SIM_50) (4) [SCAL] (1) $SEV_11 = pipe1.flowModel.m_flows[1] > 0.0 ($RES_EVT_98) (5) [ARRY] (1) pipe1.flowModel.dps_fg = {(2.0 * (pipe1.flowModel.Fs_fg[1] / pipe1.flowModel.nParallel)) / (pipe1.flowModel.crossAreas[1] + pipe1.flowModel.crossAreas[2])} ($RES_SIM_51) (6) [ARRY] (1) pipe1.flowModel.Fs_p = pipe1.flowModel.nParallel * {0.5 * (pipe1.flowModel.crossAreas[1] + pipe1.flowModel.crossAreas[2]) * (pipe1.flowModel.states.T - pipe1.flowModel.states.T)} ($RES_SIM_52) (7) [ARRY] (1) pipe1.flowModel.Ib_flows = {0.0} ($RES_SIM_53) (8) [SCAL] (1) pipe1.flowModel.rhos_act[1] = noEvent(if $SEV_11 then pipe1.flowModel.rhos[1] else pipe1.flowModel.rhos[2]) ($RES_SIM_54) (9) [SCAL] (1) pipe1.flowModel.mus_act[1] = noEvent(if $SEV_11 then pipe1.flowModel.mus[1] else pipe1.flowModel.mus[2]) ($RES_SIM_55) (10) [ARRY] (1) pipe1.flowModel.m_flows = {homotopy(({$FUN_1} .* pipe1.flowModel.nParallel)[1], (pipe1.flowModel.m_flow_nominal / pipe1.flowModel.dp_nominal * (pipe1.flowModel.dps_fg - (pipe1.flowModel.g * pipe1.flowModel.dheights) .* pipe1.flowModel.rho_nominal))[1])} ($RES_SIM_56) (11) [SCAL] (1) pipe1.port_b.m_flow + sink.ports[1].m_flow = 0.0 ($RES_SIM_57) (12) [ARRY] (2) pipe1.flowModel.vs = {-(0.0010044335697769957 * pipe1.port_b.m_flow) / pipe1.flowModel.crossAreas[1], -(0.0010044335697769957 * pipe1.port_b.m_flow) / pipe1.flowModel.crossAreas[2]} / pipe1.nParallel ($RES_BND_63) (13) [ARRY] (2) pipe1.flowModel.crossAreas = {pipe1.crossArea, pipe1.crossArea} ($RES_BND_64) (14) [SCAL] (1) source.ports[1].m_flow - pipe1.port_b.m_flow = 0.0 ($RES_SIM_59) (15) [ARRY] (2) pipe1.flowModel.dimensions = {(4.0 * pipe1.crossArea) / pipe1.perimeter, (4.0 * pipe1.crossArea) / pipe1.perimeter} ($RES_BND_65) (16) [ARRY] (2) pipe1.flowModel.roughnesses = {pipe1.roughness, pipe1.roughness} ($RES_BND_66) (17) [ARRY] (4) pipe1.flowModel.states = {ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe1.Medium.ThermodynamicState(pipe1.port_a.p, 273.15 + 2.390057361376673e-4 * source.ports[1].h_outflow), ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe1.Medium.ThermodynamicState(pipe1.port_b.p, 273.15 + 2.390057361376673e-4 * sink.ports[1].h_outflow)} ($RES_BND_81) (18) [ARRY] (1) pipe1.flowModel.dheights = {pipe1.height_ab} ($RES_BND_67) (19) [ARRY] (1) pipe1.flowModel.pathLengths = {pipe1.length} ($RES_BND_68) (20) [FOR-] (2) ($RES_BND_69) (20) [----] for $i1 in 1:2 loop (20) [----] [SCAL] (1) pipe1.flowModel.rhos[$i1] = 995.586 ($RES_BND_70) (20) [----] end for; (21) [SCAL] (1) 99999.99999999999 * source.medium.p_bar = p_table.a * time + p_table.b ($RES_SIM_22) (22) [SCAL] (1) sink.ports[1].p = sink.p ($RES_SIM_24) (23) [SCAL] (1) sink.ports[1].h_outflow = 4184.0 * ((-273.15) + sink.T) ($RES_SIM_25) (24) [SCAL] (1) pipe1.flowModel.dp_fric_nominal = sum({$FUN_6}) ($RES_$AUX_82) (25) [SCAL] (1) $FUN_6 = ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe1.flowModel.WallFriction.pressureLoss_m_flow(pipe1.flowModel.m_flow_nominal / pipe1.flowModel.nParallel, pipe1.flowModel.rho_nominal, pipe1.flowModel.rho_nominal, pipe1.flowModel.mu_nominal, pipe1.flowModel.mu_nominal, pipe1.flowModel.pathLengths_internal[1], pipe1.flowModel.diameters[1], (0.5 .* (pipe1.flowModel.crossAreas[2:2] + pipe1.flowModel.crossAreas[1:1]))[1], (0.5 .* (pipe1.flowModel.roughnesses[2:2] + pipe1.flowModel.roughnesses[1:1]))[1], pipe1.flowModel.m_flow_small / pipe1.flowModel.nParallel, pipe1.flowModel.Res_turbulent_internal[1]) ($RES_$AUX_83) (26) [TUPL] (4) ($FUN_2, $FUN_3, $FUN_4, $FUN_5) = ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.p_table.getInterpolationCoefficients(p_table.table, p_table.offset, p_table.startTime, time, p_table.last, 1e-13, p_table.shiftTime) ($RES_$AUX_84) (27) [SCAL] (1) $FUN_1 = ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe1.flowModel.WallFriction.massFlowRate_dp_staticHead(pipe1.flowModel.dps_fg[1], pipe1.flowModel.rhos[1], pipe1.flowModel.rhos[2], pipe1.flowModel.mus[1], pipe1.flowModel.mus[2], pipe1.flowModel.pathLengths_internal[1], pipe1.flowModel.diameters[1], (pipe1.flowModel.g * pipe1.flowModel.dheights)[1], (0.5 .* (pipe1.flowModel.crossAreas[1:1] + pipe1.flowModel.crossAreas[2:2]))[1], (0.5 .* (pipe1.flowModel.roughnesses[1:1] + pipe1.flowModel.roughnesses[2:2]))[1], pipe1.flowModel.dp_small, pipe1.flowModel.Res_turbulent_internal[1]) ($RES_$AUX_85) (28) [SCAL] (1) source.ports[1].p = pipe1.port_a.p ($RES_SIM_60) (29) [SCAL] (1) pipe1.port_a.h_outflow = sink.ports[1].h_outflow + system.g * pipe1.height_ab ($RES_SIM_45) (30) [SCAL] (1) pipe1.port_b.p = sink.ports[1].p ($RES_SIM_61) (31) [SCAL] (1) pipe1.port_b.h_outflow = source.ports[1].h_outflow - system.g * pipe1.height_ab ($RES_SIM_46) (32) [SCAL] (1) -pipe1.port_b.m_flow = pipe1.flowModel.m_flows[1] ($RES_SIM_48) (33) [ARRY] (1) {0.0} = pipe1.flowModel.Ib_flows - (pipe1.flowModel.Fs_fg + pipe1.flowModel.Fs_p) ($RES_SIM_49) (34) [FOR-] (2) ($RES_BND_71) (34) [----] for $i1 in 1:2 loop (34) [----] [SCAL] (1) pipe1.flowModel.mus[$i1] = 0.001 ($RES_BND_72) (34) [----] end for; (35) [ARRY] (1) pipe1.flowModel.pathLengths_internal = pipe1.flowModel.pathLengths ($RES_BND_73) (36) [SCAL] (1) pipe1.flowModel.Res_turbulent_internal[1] = pipe1.flowModel.Re_turbulent ($RES_BND_74) (37) [SCAL] (1) source.ports[1].h_outflow = 4184.0 * ((-273.15) + source.T) ($RES_SIM_4) (38) [ARRY] (1) pipe1.flowModel.diameters = 0.5 * (pipe1.flowModel.dimensions[2:2] + pipe1.flowModel.dimensions[1:1]) ($RES_BND_75) (39) [SCAL] (1) source.ports[1].p = 99999.99999999999 * source.medium.p_bar ($RES_SIM_3) (40) [ALGO] (5) ($RES_SIM_2) (40) [----] assert(not (p_table.table[1, 1] > 0.0 or p_table.table[1, 1] < 0.0), "The first point in time has to be set to 0, but is table[1,1] = " + String(p_table.table[1, 1], 6, 0, true), AssertionLevel.error); (40) [----] when {time >= $PRE.p_table.nextEvent, initial()} then (40) [----] (p_table.a, p_table.b, p_table.nextEventScaled, p_table.last) := ($FUN_2, $FUN_3, $FUN_4, $FUN_5); (40) [----] p_table.nextEvent := p_table.nextEventScaled; (40) [----] end when;