Running command: translateModel(OpenHPL.Tests.HPSTThrottleValve,tolerance=0.0001,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="OpenHPL_OpenHPL.Tests.HPSTThrottleValve") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(OpenHPL): time 3.202/3.202, allocations: 258 MB / 265 MB, free: 15.87 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.568e-05/1.575e-05, allocations: 4 kB / 327.4 MB, free: 1.398 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5393/0.5393, allocations: 60.23 MB / 387.7 MB, free: 7.066 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2539/0.7933, allocations: 95.54 MB / 483.2 MB, free: 8.094 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004076/0.7938, allocations: 83.95 kB / 483.3 MB, free: 8.012 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.1654/0.9592, allocations: 16.82 MB / 0.4884 GB, free: 7.156 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.704e-05/0.9593, allocations: 12 kB / 0.4884 GB, free: 7.145 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.003628/0.9629, allocations: 0.9426 MB / 0.4893 GB, free: 6.156 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.918e-05/0.963, allocations: 8.031 kB / 0.4893 GB, free: 6.148 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005977/0.9636, allocations: 87.05 kB / 0.4894 GB, free: 6.062 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00145/0.9651, allocations: 428.8 kB / 0.4898 GB, free: 5.602 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002332/0.9654, allocations: 80.39 kB / 0.4899 GB, free: 5.512 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001999/0.9656, allocations: 35.91 kB / 0.4899 GB, free: 5.477 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002386/0.968, allocations: 449.8 kB / 0.4903 GB, free: 5.039 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001971/0.97, allocations: 404.4 kB / 0.4907 GB, free: 4.637 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.698e-05/0.9701, allocations: 4 kB / 0.4907 GB, free: 4.633 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001206/0.9702, allocations: 0 / 0.4907 GB, free: 4.633 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.279e-05/0.9702, allocations: 12 kB / 0.4908 GB, free: 4.621 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00821/0.9785, allocations: 1.593 MB / 0.4923 GB, free: 2.977 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0038/0.9823, allocations: 0.4937 MB / 0.4928 GB, free: 2.473 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009211/0.9833, allocations: 194.2 kB / 0.493 GB, free: 2.281 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001854/0.9851, allocations: 0.8549 MB / 0.4938 GB, free: 1.242 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.027e-05/0.9852, allocations: 39 kB / 0.4938 GB, free: 1.195 MB / 426.7 MB Notification: Performance of pre-optimization done (n=51): time 5.901e-06/0.9852, allocations: 0 / 0.4938 GB, free: 1.195 MB / 426.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/OpenHPL 1.1.1/Waterway/Reservoir.mo:71:5-71:18:writable] Error: Model is structurally singular, error found sorting equations 24: der(tail.m) = 0.0; 20: tail.A = tail.H * (tail.w + 2.0 * tail.H * tan(0.0174532925199433 * tail.alpha)); 22: tail.F_f = 0.0; 21: tail.m = data.rho * tail.A * tail.L; 33: turbine.Vdot = if turbine.WaterCompress then penstock.mdot / ((1.0 + data.beta * (penstock.p_o - data.p_a)) * data.rho) else penstock.mdot / data.rho; 7: control.y = control.offset + (if time < control.startTime then 0.0 else if time < control.startTime + control.duration then (time - control.startTime) * control.height / control.duration else control.height); 47: STThrottleValve.Mdot = STThrottleValve.mdot * STThrottleValve.v; 45: STThrottleValve.M = STThrottleValve.m * STThrottleValve.v; 50: STThrottleValve.F_g = STThrottleValve.m * data.g * STThrottleValve.cos_theta; 49: STThrottleValve.F_p = (intake.p_o - data.p_a) * STThrottleValve.A; 40: der(STThrottleValve.M) = STThrottleValve.Mdot + STThrottleValve.F; 39: der(STThrottleValve.m) = STThrottleValve.mdot; 48: STThrottleValve.F = STThrottleValve.F_p + (-STThrottleValve.F_f) - STThrottleValve.F_g; 41: STThrottleValve.m = if STThrottleValve.l <= STThrottleValve.L_t then data.rho * STThrottleValve.A_t * STThrottleValve.l else data.rho * (STThrottleValve.A_t * STThrottleValve.L_t + STThrottleValve.A * (STThrottleValve.l - STThrottleValve.L_t)); 43: STThrottleValve.F_f = if STThrottleValve.l <= STThrottleValve.L_t then OpenHPL.Functions.DarcyFriction.Friction(STThrottleValve.v, STThrottleValve.D_t, STThrottleValve.l, data.rho, data.mu, STThrottleValve.p_eps) + 0.5 * STThrottleValve.A_t * STThrottleValve.phiSO * data.rho * abs(STThrottleValve.v) * STThrottleValve.v else if STThrottleValve.v >= 0.0 then OpenHPL.Functions.DarcyFriction.Friction(STThrottleValve.v, STThrottleValve.D_t, STThrottleValve.L_t, data.rho, data.mu, STThrottleValve.p_eps) + OpenHPL.Functions.DarcyFriction.Friction(STThrottleValve.v, STThrottleValve.D, STThrottleValve.l - STThrottleValve.L_t, data.rho, data.mu, STThrottleValve.p_eps) + 0.5 * STThrottleValve.A_t * STThrottleValve.phiSO * data.rho * abs(STThrottleValve.v) * STThrottleValve.v else OpenHPL.Functions.DarcyFriction.Friction(STThrottleValve.v, STThrottleValve.D_t, STThrottleValve.L_t, data.rho, data.mu, STThrottleValve.p_eps) + OpenHPL.Functions.DarcyFriction.Friction(STThrottleValve.v, STThrottleValve.D, STThrottleValve.l - STThrottleValve.L_t, data.rho, data.mu, STThrottleValve.p_eps) + 0.5 * STThrottleValve.A * STThrottleValve.phiSO * data.rho * abs(STThrottleValve.v) * STThrottleValve.v; 42: STThrottleValve.phiSO = if STThrottleValve.l <= STThrottleValve.L_t then 0.0 else if STThrottleValve.v >= 0.0 then OpenHPL.Functions.Fitting.FittingPhi(STThrottleValve.v, STThrottleValve.D_t, STThrottleValve.D, STThrottleValve.L, 90.0, data.rho, data.mu, data.p_eps, OpenHPL.Types.Fitting.Square) else OpenHPL.Functions.Fitting.FittingPhi(STThrottleValve.v, STThrottleValve.D, STThrottleValve.D_t, STThrottleValve.L, 90.0, data.rho, data.mu, data.p_eps, OpenHPL.Types.Fitting.Square); 46: STThrottleValve.v = STThrottleValve.Vdot / STThrottleValve.A; 44: STThrottleValve.mdot = data.rho * STThrottleValve.Vdot; 9: intake.Vdot = intake.mdot / data.rho; 51: STThrottleValve.mdot = intake.mdot - penstock.mdot; 28: penstock.v = penstock.Vdot / penstock.A_; 5: der(reservoir.m) = 0.0; 1: reservoir.A = reservoir.H * (reservoir.w + 2.0 * reservoir.H * tan(0.0174532925199433 * reservoir.alpha)); 3: reservoir.F_f = 0.0; 2: reservoir.m = data.rho * reservoir.A * reservoir.L; 10: intake.v = intake.Vdot / intake.A_; 6: intake.Vdot = data.rho; 4: 0.0 = reservoir.A * (data.p_a - intake.p_i) + data.g * data.rho * reservoir.A * reservoir.H - reservoir.F_f; 11: intake.M = data.rho * intake.L * intake.Vdot; 12: intake.F_f = OpenHPL.Functions.DarcyFriction.Friction(intake.v, intake.D_, intake.L, data.rho, data.mu, intake.p_eps); 27: penstock.Vdot = penstock.mdot / data.rho; 29: penstock.M = data.rho * penstock.L * penstock.Vdot; 30: penstock.F_f = OpenHPL.Functions.DarcyFriction.Friction(penstock.v, penstock.D_, penstock.L, data.rho, data.mu, penstock.p_eps); 13: der(intake.M) = data.rho * intake.Vdot ^ 2.0 * (1.0 / intake.A_i + -1.0 / intake.A_o) + intake.p_i * intake.A_i + intake.m * data.g * intake.cos_theta + (-intake.F_f) - intake.p_o * intake.A_o; 34: turbine.dp = turbine.Vdot ^ 2.0 * data.p_a / (turbine.C_v_ * control.y) ^ 2.0; 31: der(penstock.M) = data.rho * penstock.Vdot ^ 2.0 * (1.0 / penstock.A_i + -1.0 / penstock.A_o) + intake.p_o * penstock.A_i + penstock.m * data.g * penstock.cos_theta + (-penstock.F_f) - penstock.p_o * penstock.A_o; 23: 0.0 = tail.A * (data.p_a - discharge.p_o) + data.g * data.rho * tail.A * tail.H - tail.F_f; 35: turbine.dp = penstock.p_o - discharge.p_i; 17: discharge.M = data.rho * discharge.L * discharge.Vdot; 19: der(discharge.M) = data.rho * discharge.Vdot ^ 2.0 * (1.0 / discharge.A_i + -1.0 / discharge.A_o) + discharge.p_i * discharge.A_i + discharge.m * data.g * discharge.cos_theta + (-discharge.F_f) - discharge.p_o * discharge.A_o; 15: discharge.Vdot = penstock.mdot / data.rho; 18: discharge.F_f = OpenHPL.Functions.DarcyFriction.Friction(discharge.v, discharge.D_, discharge.L, data.rho, data.mu, discharge.p_eps); 16: discharge.v = discharge.Vdot / discharge.A_; for variables tail.Vdot_i(28), tail.H(26), tail.m(29), discharge.Vdot(31), penstock.F_f(23), intake.M(42), STThrottleValve.Vdot(1), STThrottleValve.F(9), STThrottleValve.F_f(5), STThrottleValve.mdot(13), STThrottleValve.l(8), STThrottleValve.phiSO(3), STThrottleValve.F_g(4), STThrottleValve.m(12), STThrottleValve.M(11), STThrottleValve.v(7), STThrottleValve.Mdot(10), intake.p_o(40), STThrottleValve.h(2), penstock.mdot(25), reservoir.F_f(48), control.y(46), intake.F_f(43), intake.Vdot(38), reservoir.H(47), reservoir.Vdot_i(49), reservoir.m(50), intake.mdot(45), intake.dp(39), penstock.M(22), penstock.v(24), penstock.p_o(21), intake.v(44), discharge.M(35), turbine.Vdot(15), tail.A(30), turbine.dp(17), discharge.p_i(34), tail.F_f(27), discharge.p_o(33), discharge.v(37), discharge.F_f(36), turbine.Kdot_i_tr(16) Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed!