Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume.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.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+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.Machines.TestSweptVolume,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume") translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001269/0.001269, allocations: 108.6 kB / 16.42 MB, free: 6.449 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.001228/0.001229, allocations: 192.3 kB / 17.36 MB, free: 5.699 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.268/1.268, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.1768/0.1768, allocations: 39.95 MB / 310.5 MB, free: 4.023 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.624e-05/2.625e-05, allocations: 6.016 kB / 436.4 MB, free: 11.79 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume): time 0.3678/0.3678, allocations: 163.3 MB / 0.5857 GB, free: 10.1 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.005392/0.3733, allocations: 4.098 MB / 0.5897 GB, free: 7.059 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003172/0.3736, allocations: 15.28 kB / 0.5897 GB, free: 7.051 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005876/0.3742, allocations: 208.2 kB / 0.5899 GB, free: 6.875 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001976/0.3762, allocations: 0.8362 MB / 0.5907 GB, free: 6.254 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00145/0.3777, allocations: 0.6704 MB / 0.5914 GB, free: 5.77 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001133/0.3788, allocations: 1.271 MB / 0.5926 GB, free: 5.051 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004558/0.3793, allocations: 354.2 kB / 0.593 GB, free: 4.82 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006884/0.38, allocations: 0.5527 MB / 0.5935 GB, free: 4.438 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004223/0.3804, allocations: 410.4 kB / 0.5939 GB, free: 4.035 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.673e-05/0.3805, allocations: 47.94 kB / 0.5939 GB, free: 3.988 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009878/0.3815, allocations: 0.6085 MB / 0.5945 GB, free: 3.379 MB / 414.1 MB Notification: Performance of combineBinaries: time 0.0007266/0.3822, allocations: 0.9555 MB / 0.5955 GB, free: 2.414 MB / 414.1 MB Notification: Performance of replaceArrayConstructors: time 0.0003628/0.3826, allocations: 0.5986 MB / 0.596 GB, free: 1.812 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 9.918e-05/0.3827, allocations: 91.69 kB / 0.5961 GB, free: 1.723 MB / 414.1 MB Notification: Performance of FrontEnd: time 6.722e-05/0.3828, allocations: 19.98 kB / 0.5961 GB, free: 1.703 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 (88) * Number of variables: 89 (89) Notification: Performance of Bindings: time 0.002311/0.3851, allocations: 2.624 MB / 0.5987 GB, free: 14.96 MB / 430.1 MB Notification: Performance of FunctionAlias: time 0.0001491/0.3853, allocations: 119.8 kB / 0.5988 GB, free: 14.85 MB / 430.1 MB Notification: Performance of Early Inline: time 0.001129/0.3864, allocations: 1.229 MB / 0.6 GB, free: 13.59 MB / 430.1 MB Notification: Performance of simplify1: time 0.0001071/0.3865, allocations: 99.86 kB / 0.6001 GB, free: 13.5 MB / 430.1 MB Notification: Performance of Alias: time 0.001572/0.3881, allocations: 1.479 MB / 0.6016 GB, free: 11.86 MB / 430.1 MB Notification: Performance of simplify2: time 8.012e-05/0.3882, allocations: 83.89 kB / 0.6016 GB, free: 11.77 MB / 430.1 MB Notification: Performance of Events: time 0.0003498/0.3886, allocations: 256 kB / 0.6019 GB, free: 11.53 MB / 430.1 MB Notification: Performance of Detect States: time 0.0004544/0.389, allocations: 438 kB / 0.6023 GB, free: 11.09 MB / 430.1 MB Notification: Performance of Partitioning: time 0.000589/0.3896, allocations: 0.6046 MB / 0.6029 GB, free: 10.36 MB / 430.1 MB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency sweptVolume.medium.state.T could not be divided by the body size 2 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [ARRY] (2) sweptVolume.heatTransfer.states = {sweptVolume.medium.state} ($RES_BND_107) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (64/64) ************************** (1) [ALGB] (1) protected Real[1] sweptVolume.portsData_height (2) [DER-] (1) Real $DER.mass.s (3) [ALGB] (1) Real sweptVolume.Hb_flow (4) [ALGB] (1) stream Real[1] sweptVolume.ports.h_outflow (start = {298609.6803431054}, min = {-1e10 for $i1 in 1:1}, max = {1e10 for $i1 in 1:1}, nominal = {1e5 for $i1 in 1:1}) (5) [DER-] (1) Real $DER.mass.v (6) [ALGB] (1) Real[1] sweptVolume.vessel_ps_static (start = {1e6 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}, max = {1e8 for $i1 in 1:1}, nominal = {1e6 for $i1 in 1:1}) (7) [ALGB] (1) Real springDamper.f (8) [ALGB] (1) Real sweptVolume.Wb_flow (9) [ALGB] (1) final input Real[1, 1] sweptVolume.heatTransfer.states.p = {sweptVolume.medium.state.p} (start = {1e6 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}, max = {1e8 for $i1 in 1:1}, nominal = {1e6 for $i1 in 1:1}) (10) [DISC] (1) protected Boolean[1] sweptVolume.regularFlow (start = {true for $i1 in 1:1}) (11) [DISS] (1) protected Integer trapezoid.count (12) [ALGB] (1) Real[1] sweptVolume.portInDensities (start = {10.0 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}, max = {1e5 for $i1 in 1:1}, nominal = {10.0 for $i1 in 1:1}) (13) [ALGB] (1) Real sweptVolume.medium.p_bar = Modelica.SIunits.Conversions.to_bar(99999.99999999999 * sweptVolume.medium.p_bar) (14) [ALGB] (1) flow Real[1] sweptVolume.heatTransfer.heatPorts.Q_flow (15) [ALGB] (1) Real springDamper.lossPower (16) [ALGB] (1) Real mass.a (start = 0.0) (17) [ALGB] (1) Real $FUN_4 (18) [ALGB] (1) final input Real[1, 1] sweptVolume.heatTransfer.states.T = {sweptVolume.medium.state.T} (start = {500.0 for $i1 in 1:1}, min = {200.0 for $i1 in 1:1}, max = {6000.0 for $i1 in 1:1}, nominal = {500.0 for $i1 in 1:1}) (19) [ALGB] (1) Real $FUN_3 (20) [ALGB] (1) Real sweptVolume.mb_flow (21) [ALGB] (1) Real $FUN_2 (22) [DISS] (1) protected Real trapezoid.T_start (23) [DER-] (1) Real $DER.sweptVolume.U (24) [ALGB] (1) flow Real sweptVolume.flange.f (25) [ALGB] (1) Real boundary.medium.state.p (start = 1e6, min = 0.0, max = 1e8, nominal = 1e6) (26) [ALGB] (1) stream Real[1] boundary.ports.h_outflow (start = {298609.6803431054}, min = {-1e10 for $i1 in 1:1}, max = {1e10 for $i1 in 1:1}, nominal = {1e5 for $i1 in 1:1}) (27) [ALGB] (1) Real sweptVolume.medium.state.T (start = 500.0, min = 200.0, max = 6000.0, nominal = 500.0) (28) [ALGB] (1) final Real sweptVolume.fluidVolume = sweptVolume.fluidVolume (29) [ALGB] (1) Real boundary.medium.p_bar = Modelica.SIunits.Conversions.to_bar(99999.99999999999 * boundary.medium.p_bar) (30) [ALGB] (1) Real[1] sweptVolume.heatTransfer.surfaceAreas = {sqrt(3.141592653589793 * sweptVolume.pistonCrossArea) * 2.0 * (sweptVolume.clearance / sweptVolume.pistonCrossArea + (mass.s - 0.5 * mass.L)) + sweptVolume.pistonCrossArea} (31) [ALGB] (1) Real springDamper.v_rel (fixed = true, start = 0.0, StateSelect = prefer) (32) [DISC] (1) Boolean $SEV_10 (33) [DER-] (1) Real $DER.sweptVolume.m (34) [ALGB] (1) Real[1] sweptVolume.s (start = {sweptVolume.fluidLevel_max for $i1 in 1:1}) (35) [ALGB] (1) Real sweptVolume.medium.u (min = -1e8, max = 1e8, nominal = 1e6) (36) [ALGB] (1) Real boundary.medium.d (start = 10.0, min = 0.0, max = 1e5, nominal = 10.0) (37) [ALGB] (1) Real sweptVolume.medium.state.p (start = 1e6, min = 0.0, max = 1e8, nominal = 1e6) (38) [ALGB] (1) Real boundary.medium.h (39) [ALGB] (1) Real[1] sweptVolume.heatTransfer.heatPorts.T (start = {288.15 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}, nominal = {300.0 for $i1 in 1:1}) (40) [DISC] (1) Boolean $SEV_9 (41) [DISC] (1) protected Boolean[1] sweptVolume.inFlow (start = {false for $i1 in 1:1}) (42) [DISC] (1) Boolean $SEV_8 (43) [ALGB] (1) Real[1] sweptVolume.heatTransfer.Q_flows (44) [ALGB] (1) Real sweptVolume.medium.h (start = sweptVolume.h_start) (45) [ALGB] (1) Real[1] sweptVolume.ports_H_flow (min = {-1e8 for $i1 in 1:1}, max = {1e8 for $i1 in 1:1}, nominal = {1000.0 for $i1 in 1:1}) (46) [ALGB] (1) protected Real springDamper.f_d (47) [DISC] (1) Boolean $SEV_4 (48) [ALGB] (1) Real sweptVolume.medium.d (start = 10.0, min = 0.0, max = 1e5, nominal = 10.0) (49) [ALGB] (1) protected Real springDamper.f_c (50) [DISC] (1) Boolean $SEV_3 (51) [ALGB] (1) flow Real[1] boundary.ports.m_flow (min = {-1e60}, max = {1e60}) (52) [DISC] (1) Boolean $SEV_2 (53) [DISC] (1) Boolean $SEV_1 (54) [DISC] (1) Boolean $SEV_0 (55) [ALGB] (1) Real boundary.medium.u (min = -1e8, max = 1e8, nominal = 1e6) (56) [DER-] (1) Real $DER.springDamper.s_rel (57) [ALGB] (1) Real[1] sweptVolume.ports_E_flow (58) [ALGB] (1) Real sweptVolume.Qb_flow (59) [ALGB] (1) Real[1] sweptVolume.heatTransfer.Ts = {ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume.sweptVolume.heatTransfer.Medium.temperature(sweptVolume.heatTransfer.states[1])} (start = {288.15 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}, nominal = {300.0 for $i1 in 1:1}) (60) [ALGB] (1) Real[1] sweptVolume.ports.p (start = {1e6 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}, max = {1e8 for $i1 in 1:1}, nominal = {1e6 for $i1 in 1:1}) (61) [ALGB] (1) Real sweptVolume.medium.T_degC = Modelica.SIunits.Conversions.to_degC(-((-273.15) - sweptVolume.medium.T_degC)) (62) [ALGB] (1) Real[1] boundary.ports.p (start = {1e6 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}, max = {1e8 for $i1 in 1:1}, nominal = {1e6 for $i1 in 1:1}) (63) [ALGB] (1) flow Real[1] sweptVolume.ports.m_flow (min = {-1e5 for $i1 in 1:1}, max = {1e5 for $i1 in 1:1}) (64) [ALGB] (1) Real[1] sweptVolume.portVelocities System Equations (63/64) ************************** (1) [SCAL] (1) $FUN_3 = sum(sweptVolume.ports_E_flow) ($RES_$AUX_109) (2) [SCAL] (1) boundary.ports[1].h_outflow = boundary.medium.h ($RES_SIM_15) (3) [SCAL] (1) $FUN_4 = sqrt(3.141592653589793 * sweptVolume.pistonCrossArea) ($RES_$AUX_108) (4) [-IF-] (1)if sweptVolume.regularFlow[1] then (4) [----] [SCAL] (1) sweptVolume.s[1] = 0.0 - sweptVolume.portsData_height[1] ($RES_SIM_52) (4) [----] elseif sweptVolume.inFlow[1] then (4) [----] [SCAL] (1) sweptVolume.s[1] = sweptVolume.ports[1].m_flow ($RES_SIM_53) (4) [----] else (4) [----] [SCAL] (1) sweptVolume.s[1] = ((sweptVolume.ports[1].p - sweptVolume.vessel_ps_static[1]) / 101325.0) * (sweptVolume.portsData_height[1] - 0.0) ($RES_SIM_54) (4) [----] end if; (5) [SCAL] (1) sweptVolume.heatTransfer.heatPorts[1].Q_flow = 0.0 ($RES_SIM_90) (6) [SCAL] (1) sweptVolume.ports[1].h_outflow = sweptVolume.medium.h ($RES_SIM_55) (7) [SCAL] (1) sweptVolume.ports_E_flow[1] = sweptVolume.ports[1].m_flow * (0.5 * sweptVolume.portVelocities[1] * sweptVolume.portVelocities[1] + system.g * sweptVolume.portsData_height[1]) ($RES_SIM_56) (8) [SCAL] (1) sweptVolume.ports_H_flow[1] = smooth(0, sweptVolume.ports[1].m_flow * (if $SEV_10 then boundary.ports[1].h_outflow else sweptVolume.ports[1].h_outflow)) ($RES_SIM_57) (9) [SCAL] (1) $SEV_8 = 0.0 >= sweptVolume.portsData_height[1] ($RES_EVT_130) (10) [SCAL] (1) sweptVolume.portInDensities[1] = (0.0034836987724536205 * sweptVolume.vessel_ps_static[1]) / ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume.sweptVolume.Medium.T_h.Internal.solve(boundary.ports[1].h_outflow, 200.0, 6000.0, 1e5, {1.0}, Modelica.Media.IdealGases.Common.DataRecord("Air", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-5, -7.94029797e-9, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -2.13854179e-4, 7.06522784e-8, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), 1e-13) ($RES_SIM_58) (11) [SCAL] (1) $SEV_9 = not sweptVolume.regularFlow[1] and (sweptVolume.s[1] > 0.0 or sweptVolume.portsData_height[1] >= sweptVolume.fluidLevel_max) ($RES_EVT_131) (12) [SCAL] (1) $SEV_10 = sweptVolume.ports[1].m_flow > 0.0 ($RES_EVT_132) (13) [SCAL] (1) sweptVolume.ports[1].m_flow + boundary.ports[1].m_flow = 0.0 ($RES_SIM_95) (14) [SCAL] (1) sweptVolume.ports[1].p = boundary.ports[1].p ($RES_SIM_96) (15) [SCAL] (1) boundary.medium.state.p = 99999.99999999999 * boundary.medium.p_bar ($RES_SIM_25) (16) [ARRY] (1) sweptVolume.portsData_height = {0.0} ($RES_SIM_61) (17) [SCAL] (1) boundary.medium.d = (0.0034836987724536205 * (99999.99999999999 * boundary.medium.p_bar)) / boundary.T ($RES_SIM_27) (18) [SCAL] (1) boundary.medium.u = boundary.medium.h - 287.0512249529787 * boundary.T ($RES_SIM_28) (19) [SCAL] (1) boundary.medium.h = Modelica.Media.IdealGases.Common.Functions.h_T(Modelica.Media.IdealGases.Common.DataRecord("Air", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-5, -7.94029797e-9, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -2.13854179e-4, 7.06522784e-8, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), boundary.T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.ZeroAt0K, 0.0) ($RES_SIM_29) (20) [SCAL] (1) sweptVolume.Qb_flow = sweptVolume.heatTransfer.Q_flows[1] ($RES_SIM_65) (21) [SCAL] (1) sweptVolume.Hb_flow = $FUN_2 + $FUN_3 ($RES_SIM_66) (22) [SCAL] (1) sweptVolume.vessel_ps_static[1] = 99999.99999999999 * sweptVolume.medium.p_bar ($RES_SIM_68) (23) [SCAL] (1) sweptVolume.Wb_flow = -sweptVolume.pistonCrossArea * (99999.99999999999 * sweptVolume.medium.p_bar) * $DER.mass.s ($RES_SIM_69) (24) [SCAL] (1) 0.0 = sweptVolume.flange.f + (99999.99999999999 * sweptVolume.medium.p_bar - system.p_ambient) * sweptVolume.pistonCrossArea ($RES_SIM_70) (25) [SCAL] (1) mass.m * mass.a = springDamper.f - sweptVolume.flange.f ($RES_SIM_35) (26) [SCAL] (1) sweptVolume.fluidVolume = sweptVolume.clearance + (mass.s - 0.5 * mass.L) * sweptVolume.pistonCrossArea ($RES_SIM_71) (27) [SCAL] (1) mass.a = $DER.mass.v ($RES_SIM_36) (28) [SCAL] (1) mass.v = $DER.mass.s ($RES_SIM_37) (29) [ARRY] (1) sweptVolume.heatTransfer.Q_flows = sweptVolume.heatTransfer.heatPorts.Q_flow ($RES_SIM_73) (30) [SCAL] (1) $DER.sweptVolume.m = sweptVolume.mb_flow ($RES_SIM_38) (31) [ARRY] (1) sweptVolume.heatTransfer.Ts = sweptVolume.heatTransfer.heatPorts.T ($RES_SIM_74) (32) [SCAL] (1) $DER.sweptVolume.U = sweptVolume.Qb_flow + sweptVolume.Hb_flow + sweptVolume.Wb_flow ($RES_SIM_39) (33) [SCAL] (1) sweptVolume.medium.state.p = 99999.99999999999 * sweptVolume.medium.p_bar ($RES_SIM_79) (34) [SCAL] (1) sweptVolume.U = sweptVolume.m * sweptVolume.medium.u ($RES_SIM_40) (35) [SCAL] (1) sweptVolume.m = sweptVolume.fluidVolume * sweptVolume.medium.d ($RES_SIM_41) (36) [SCAL] (1) sweptVolume.portVelocities[1] = 0.0 ($RES_SIM_42) (37) [SCAL] (1) sweptVolume.medium.state.T = -((-273.15) - sweptVolume.medium.T_degC) ($RES_SIM_80) (38) [SCAL] (1) sweptVolume.regularFlow[1] = $SEV_8 ($RES_SIM_45) (39) [SCAL] (1) sweptVolume.medium.d = -(0.0034836987724536205 * (99999.99999999999 * sweptVolume.medium.p_bar)) / ((-273.15) - sweptVolume.medium.T_degC) ($RES_SIM_81) (40) [SCAL] (1) sweptVolume.inFlow[1] = $SEV_9 ($RES_SIM_46) (41) [SCAL] (1) sweptVolume.medium.u = 287.0512249529787 * ((-273.15) - sweptVolume.medium.T_degC) + sweptVolume.medium.h ($RES_SIM_82) (42) [-IF-] (1)if sweptVolume.regularFlow[1] then (42) [----] [SCAL] (1) sweptVolume.ports[1].p = sweptVolume.vessel_ps_static[1] ($RES_SIM_48) (42) [----] elseif sweptVolume.inFlow[1] then (42) [----] [SCAL] (1) sweptVolume.ports[1].p = sweptVolume.vessel_ps_static[1] ($RES_SIM_49) (42) [----] else (42) [----] [SCAL] (1) sweptVolume.ports[1].m_flow = 0.0 ($RES_SIM_50) (42) [----] end if; (43) [SCAL] (1) sweptVolume.medium.h = Modelica.Media.IdealGases.Common.Functions.h_T(Modelica.Media.IdealGases.Common.DataRecord("Air", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-5, -7.94029797e-9, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -2.13854179e-4, 7.06522784e-8, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), -((-273.15) - sweptVolume.medium.T_degC), true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.ZeroAt0K, 0.0) ($RES_SIM_83) (44) [SCAL] (1) sweptVolume.mb_flow = sum(sweptVolume.ports.m_flow) ($RES_$AUX_111) (45) [SCAL] (1) $FUN_2 = sum(sweptVolume.ports_H_flow) ($RES_$AUX_110) (46) [SCAL] (1) $SEV_0 = (time < trapezoid.startTime or trapezoid.nperiod == 0) or trapezoid.nperiod > 0 and trapezoid.count >= trapezoid.nperiod ($RES_EVT_122) (47) [SCAL] (1) $SEV_1 = time < (trapezoid.T_start + trapezoid.T_rising) ($RES_EVT_123) (48) [SCAL] (1) $SEV_2 = time < (trapezoid.T_start + trapezoid.T_width) ($RES_EVT_124) (49) [SCAL] (1) $SEV_3 = time < (trapezoid.T_start + trapezoid.T_falling) ($RES_EVT_125) (50) [SCAL] (1) $SEV_4 = integer((time - trapezoid.startTime) / trapezoid.period) > $PRE.trapezoid.count ($RES_EVT_126) (51) [SCAL] (1) springDamper.f_c = springDamper.c * (springDamper.s_rel - springDamper.s_rel0) ($RES_SIM_9) (52) [SCAL] (1) springDamper.f_d = springDamper.d * springDamper.v_rel ($RES_SIM_8) (53) [SCAL] (1) springDamper.f = springDamper.f_c + springDamper.f_d ($RES_SIM_7) (54) [SCAL] (1) springDamper.lossPower = springDamper.f_d * springDamper.v_rel ($RES_SIM_6) (55) [SCAL] (1) springDamper.s_rel = fixed.s0 - (mass.s + 0.5 * mass.L) ($RES_SIM_5) (56) [SCAL] (1) springDamper.v_rel = $DER.springDamper.s_rel ($RES_SIM_4) (57) [ARRY] (1) sweptVolume.heatTransfer.surfaceAreas = {2.0 * $FUN_4 * (sweptVolume.clearance / sweptVolume.pistonCrossArea + (mass.s - 0.5 * mass.L)) + sweptVolume.pistonCrossArea} ($RES_BND_101) (58) [ARRY] (1) sweptVolume.heatTransfer.Ts = {sweptVolume.heatTransfer.states.p} ($RES_BND_102) (59) [SCAL] (1) 99999.99999999999 * boundary.medium.p_bar = trapezoid.offset + (if $SEV_0 then 0.0 else if $SEV_1 then ((time - trapezoid.T_start) * trapezoid.amplitude) / trapezoid.rising else if $SEV_2 then trapezoid.amplitude else if $SEV_3 then (((trapezoid.T_falling + trapezoid.T_start) - time) * trapezoid.amplitude) / trapezoid.falling else 0.0) ($RES_SIM_11) (60) [ARRY] (2) sweptVolume.heatTransfer.states = {sweptVolume.medium.state} ($RES_BND_107) (61) [WHEN] (1)when $SEV_4 then (61) [----] trapezoid.count := $PRE.trapezoid.count + 1 (61) [----] end when; (62) [WHEN] (1)when $SEV_4 then (62) [----] trapezoid.T_start := time (62) [----] end when; (63) [SCAL] (1) boundary.ports[1].p = 99999.99999999999 * boundary.medium.p_bar ($RES_SIM_14)