Running command: translateModel(OpenHPL.Tests.HPDraftTube,tolerance=0.0001,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="OpenHPL_OpenHPL.Tests.HPDraftTube") Notification: Performance of loadModel(OpenHPL): time 2.187/2.187, allocations: 258 MB / 265.1 MB, free: 5.48 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.568e-05/2.572e-05, allocations: 6.812 kB / 327.7 MB, free: 10.02 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1029, allocations: 60.25 MB / 387.9 MB, free: 13.68 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.414/0.5169, allocations: 98.39 MB / 486.3 MB, free: 7.137 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001924/0.5171, allocations: 90.89 kB / 486.4 MB, free: 7.125 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1288/0.646, allocations: 33.79 MB / 0.508 GB, free: 3.328 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.648e-06/0.646, allocations: 0 / 0.508 GB, free: 3.328 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001194/0.6461, allocations: 47.45 kB / 0.508 GB, free: 3.285 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.004605/0.6507, allocations: 1.899 MB / 0.5099 GB, free: 1.457 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.636e-05/0.6508, allocations: 12.03 kB / 0.5099 GB, free: 1.445 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008847/0.6517, allocations: 241.3 kB / 0.5101 GB, free: 1.207 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001829/0.6536, allocations: 0.8931 MB / 0.511 GB, free: 440 kB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.21e-05/0.6536, allocations: 48 kB / 0.511 GB, free: 392 kB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002856/0.6539, allocations: 106.9 kB / 0.5111 GB, free: 288 kB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003087/0.657, allocations: 1.184 MB / 0.5123 GB, free: 15.52 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002968/0.66, allocations: 1.302 MB / 0.5136 GB, free: 14.5 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.276e-05/0.6601, allocations: 7.938 kB / 0.5136 GB, free: 14.49 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001686/0.6603, allocations: 4 kB / 0.5136 GB, free: 14.48 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.871e-05/0.6603, allocations: 36 kB / 0.5136 GB, free: 14.45 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01177/0.6721, allocations: 5.252 MB / 0.5187 GB, free: 10.28 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005338/0.6775, allocations: 1.515 MB / 0.5202 GB, free: 9.156 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001067/0.6786, allocations: 0.5157 MB / 0.5207 GB, free: 8.828 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001092/0.6797, allocations: 0.8743 MB / 0.5216 GB, free: 7.773 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.201e-05/0.6797, allocations: 54.62 kB / 0.5216 GB, free: 7.723 MB / 410.7 MB Notification: Performance of pre-optimization done (n=155): time 4.416e-06/0.6797, allocations: 0 / 0.5216 GB, free: 7.723 MB / 410.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/OpenHPL 1.1.1/Waterway/SurgeTank.mo:116:3-116:16:writable] Error: Model is structurally singular, error found sorting equations 40: surgeTank.Mdot = surgeTank.mdot * surgeTank.v; 38: surgeTank.M = surgeTank.m * surgeTank.v; 43: surgeTank.F_g = surgeTank.m * data.g * surgeTank.cos_theta; 42: surgeTank.F_p = (penstock.p_i - data.p_a) * surgeTank.A; 34: der(surgeTank.M) = surgeTank.Mdot + surgeTank.F; 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; 16: discharge.v = discharge.Vdot / discharge.A_; 15: discharge.Vdot = penstock.mdot / data.rho; 23: 0.0 = tail.A * (data.p_a - discharge.p_o) + data.g * data.rho * tail.A * tail.H - tail.F_f; 17: discharge.M = data.rho * discharge.L * discharge.Vdot; 18: discharge.F_f = OpenHPL.Functions.DarcyFriction.Friction(discharge.v, discharge.D_, discharge.L, data.rho, data.mu, discharge.p_eps); 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; 48: turbine.dp = penstock.p_o - discharge.p_i; 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: turbine.dp = turbine.Vdot ^ 2.0 * data.p_a / (turbine.C_v_ * control.y) ^ 2.0; 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_; 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); 28: penstock.v = penstock.Vdot / penstock.A_; 46: 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; 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) - penstock.p_i * intake.A_o; 30: penstock.F_f = OpenHPL.Functions.DarcyFriction.Friction(penstock.v, penstock.D_, penstock.L, data.rho, data.mu, penstock.p_eps); 31: der(penstock.M) = data.rho * penstock.Vdot ^ 2.0 * (1.0 / penstock.A_i + (-1.0) / penstock.A_o) + penstock.p_i * penstock.A_i + penstock.m * data.g * penstock.cos_theta + (-penstock.F_f) - penstock.p_o * penstock.A_o; 29: penstock.M = data.rho * penstock.L * penstock.Vdot; 6: intake.Vdot = data.rho; 27: penstock.Vdot = penstock.mdot / data.rho; 9: intake.Vdot = intake.mdot / data.rho; 44: surgeTank.mdot = intake.mdot - penstock.mdot; 37: surgeTank.mdot = data.rho * surgeTank.Vdot; 41: surgeTank.F = surgeTank.F_p + (-surgeTank.F_f) - surgeTank.F_g; 39: surgeTank.v = surgeTank.Vdot / surgeTank.A; 33: der(surgeTank.m) = surgeTank.mdot; 36: surgeTank.F_f = OpenHPL.Functions.DarcyFriction.Friction(surgeTank.v, surgeTank.D, surgeTank.l, data.rho, data.mu, surgeTank.p_eps); 35: surgeTank.m = data.rho * surgeTank.A * surgeTank.l; for variables turbine.dp(4), surgeTank.Vdot(6), surgeTank.F_p(10), surgeTank.l(12), penstock.dp(19), tail.Vdot_i(28), reservoir.H(46), discharge.Vdot(31), surgeTank.F(13), discharge.p_o(33), intake.Vdot(38), tail.A(30), intake.mdot(44), tail.m(29), tail.H(26), discharge.dp(32), turbine.Kdot_i_tr(3), reservoir.A(50), control.y(45), reservoir.m(49), reservoir.F_f(47), intake.F_f(42), reservoir.Vdot_i(48), intake.dp(39), discharge.F_f(36), penstock.mdot(25), turbine.look_up_table.y[1](1), discharge.p_i(34), penstock.p_i(21), surgeTank.M(15), penstock.v(24), discharge.v(37), penstock.M(22), intake.M(41), surgeTank.F_f(9), surgeTank.m(16), surgeTank.v(11), surgeTank.F_g(8), penstock.F_f(23), penstock.Vdot(18), surgeTank.mdot(17), discharge.M(35) Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed!