Running command: translateModel(OpenHPL.Tests.HPSTSimple,tolerance=0.0001,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="OpenHPL_OpenHPL.Tests.HPSTSimple") Notification: Performance of loadModel(OpenHPL): time 2.373/2.373, allocations: 258 MB / 265.1 MB, free: 5.477 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.434e-05/2.443e-05, allocations: 6.812 kB / 327.7 MB, free: 10 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1033, allocations: 60.24 MB / 387.9 MB, free: 13.67 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4153/0.5187, allocations: 95.57 MB / 483.5 MB, free: 7.723 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002472/0.519, allocations: 86.02 kB / 483.6 MB, free: 7.711 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05173/0.5707, allocations: 13.68 MB / 497.2 MB, free: 2.887 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.62e-06/0.5708, allocations: 7.844 kB / 497.2 MB, free: 2.883 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.344e-05/0.5708, allocations: 15.53 kB / 497.3 MB, free: 2.879 MB / 378.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.001641/0.5725, allocations: 0.8678 MB / 498.1 MB, free: 2.238 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.5725, allocations: 7.688 kB / 498.1 MB, free: 2.238 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003394/0.5729, allocations: 80.59 kB / 498.2 MB, free: 2.199 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007584/0.5737, allocations: 423.9 kB / 498.6 MB, free: 1.887 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.589e-05/0.5737, allocations: 15.25 kB / 498.6 MB, free: 1.887 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001001/0.5738, allocations: 30.44 kB / 498.7 MB, free: 1.887 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009792/0.5748, allocations: 399 kB / 499.1 MB, free: 1.855 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008797/0.5757, allocations: 426.8 kB / 499.5 MB, free: 1.723 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.452e-05/0.5758, allocations: 0 / 499.5 MB, free: 1.723 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.831e-05/0.5758, allocations: 0 / 499.5 MB, free: 1.723 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.193e-05/0.5758, allocations: 11.47 kB / 499.5 MB, free: 1.723 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00373/0.5796, allocations: 1.54 MB / 0.4893 GB, free: 0.9766 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001905/0.5815, allocations: 489.8 kB / 0.4898 GB, free: 0.8984 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003626/0.5819, allocations: 174.3 kB / 0.4899 GB, free: 0.8867 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008812/0.5828, allocations: 0.8569 MB / 0.4908 GB, free: 15.92 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.364e-05/0.5829, allocations: 39.47 kB / 0.4908 GB, free: 15.88 MB / 394.7 MB Notification: Performance of pre-optimization done (n=50): time 3.79e-06/0.5829, allocations: 3.938 kB / 0.4908 GB, free: 15.88 MB / 394.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 46: STSimple.Mdot = STSimple.mdot * STSimple.v; 44: STSimple.M = STSimple.m * STSimple.v; 49: STSimple.F_g = STSimple.m * data.g * STSimple.cos_theta; 48: STSimple.F_p = (intake.p_o - data.p_a) * STSimple.A; 40: der(STSimple.M) = STSimple.Mdot + STSimple.F; 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); 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); 34: turbine.dp = turbine.Vdot ^ 2.0 * data.p_a / (turbine.C_v_ * control.y) ^ 2.0; 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; 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_; 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); 35: turbine.dp = penstock.p_o - discharge.p_i; 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; 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; 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; 50: STSimple.mdot = intake.mdot - penstock.mdot; 43: STSimple.mdot = data.rho * STSimple.Vdot; 47: STSimple.F = STSimple.F_p + (-STSimple.F_f) - STSimple.F_g; 45: STSimple.v = STSimple.Vdot / STSimple.A; 39: der(STSimple.m) = STSimple.mdot; 42: STSimple.F_f = OpenHPL.Functions.DarcyFriction.Friction(STSimple.v, STSimple.D, STSimple.l, data.rho, data.mu, STSimple.p_eps); 41: STSimple.m = data.rho * STSimple.A * STSimple.l; for variables STSimple.Vdot(1), STSimple.Mdot(9), STSimple.F_p(5), STSimple.F_f(4), penstock.dp(19), intake.F_f(42), tail.Vdot_i(27), discharge.F_f(35), discharge.Vdot(30), discharge.dp(31), discharge.M(34), discharge.v(36), tail.m(28), intake.Vdot(37), tail.A(29), turbine.P_out(17), tail.F_f(26), penstock.mdot(24), reservoir.Vdot_i(48), intake.v(43), reservoir.m(49), intake.dp(38), intake.mdot(44), reservoir.F_f(47), intake.p_o(39), reservoir.A(50), penstock.Vdot(18), turbine.Kdot_i_tr(15), discharge.p_o(32), turbine.Vdot(14), penstock.M(21), control.y(45), tail.H(25), reservoir.H(46), STSimple.h(2), STSimple.M(10), STSimple.F_g(3), STSimple.l(7), turbine.look_up_table.y[1](13), STSimple.mdot(12), STSimple.m(11), intake.M(41) Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed!