Running command: translateModel(OpenHPL.Tests.HPSTSharpOrifice,tolerance=0.0001,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="OpenHPL_OpenHPL.Tests.HPSTSharpOrifice") Notification: Performance of loadModel(OpenHPL): time 2.196/2.196, allocations: 258 MB / 265.1 MB, free: 5.398 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.482e-05/2.492e-05, allocations: 4 kB / 327.7 MB, free: 10.01 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1042, allocations: 60.26 MB / 387.9 MB, free: 13.66 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4125/0.5168, allocations: 95.59 MB / 483.5 MB, free: 7.793 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000237/0.5171, allocations: 86.36 kB / 483.6 MB, free: 7.781 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06462/0.5817, allocations: 16.13 MB / 499.7 MB, free: 2.129 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.246e-06/0.5817, allocations: 7.938 kB / 499.7 MB, free: 2.121 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.091e-05/0.5818, allocations: 15.41 kB / 499.7 MB, free: 2.117 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.001706/0.5835, allocations: 0.9022 MB / 0.4889 GB, free: 1.453 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.489e-05/0.5836, allocations: 11.56 kB / 0.4889 GB, free: 1.453 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002783/0.5839, allocations: 81.3 kB / 0.489 GB, free: 1.41 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006821/0.5845, allocations: 419.8 kB / 0.4894 GB, free: 1.102 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.662e-05/0.5846, allocations: 50.27 kB / 0.4894 GB, free: 1.066 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.428e-05/0.5847, allocations: 38.06 kB / 0.4895 GB, free: 1.062 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009996/0.5858, allocations: 405 kB / 0.4899 GB, free: 1.031 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008929/0.5867, allocations: 439.5 kB / 0.4903 GB, free: 0.8984 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.346e-05/0.5867, allocations: 0 / 0.4903 GB, free: 0.8984 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.006e-05/0.5868, allocations: 0 / 0.4903 GB, free: 0.8984 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.187e-05/0.5868, allocations: 11.41 kB / 0.4903 GB, free: 0.8984 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003811/0.5906, allocations: 1.576 MB / 0.4918 GB, free: 15.9 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001844/0.5925, allocations: 0.4939 MB / 0.4923 GB, free: 15.54 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003986/0.5929, allocations: 174.7 kB / 0.4925 GB, free: 15.43 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001064/0.594, allocations: 0.8627 MB / 0.4933 GB, free: 14.39 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.413e-05/0.594, allocations: 42.75 kB / 0.4934 GB, free: 14.34 MB / 394.7 MB Notification: Performance of pre-optimization done (n=51): time 5.466e-06/0.5941, allocations: 3.938 kB / 0.4934 GB, free: 14.34 MB / 394.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: STSharpOrifice.Mdot = STSharpOrifice.mdot * STSharpOrifice.v; 45: STSharpOrifice.M = STSharpOrifice.m * STSharpOrifice.v; 50: STSharpOrifice.F_g = STSharpOrifice.m * data.g * STSharpOrifice.cos_theta; 49: STSharpOrifice.F_p = (intake.p_o - data.p_a) * STSharpOrifice.A; 40: der(STSharpOrifice.M) = STSharpOrifice.Mdot + STSharpOrifice.F; 39: der(STSharpOrifice.m) = STSharpOrifice.mdot; 43: STSharpOrifice.phiSO = if STSharpOrifice.v >= 0.0 then OpenHPL.Functions.Fitting.FittingPhi(STSharpOrifice.v, STSharpOrifice.D, STSharpOrifice.D_so, STSharpOrifice.L, 90.0, data.rho, data.mu, data.p_eps, OpenHPL.Types.Fitting.SharpOrifice) else OpenHPL.Functions.Fitting.FittingPhi(STSharpOrifice.v, STSharpOrifice.D_so, STSharpOrifice.D, STSharpOrifice.L, 90.0, data.rho, data.mu, data.p_eps, OpenHPL.Types.Fitting.SharpOrifice); 48: STSharpOrifice.F = STSharpOrifice.F_p + (-STSharpOrifice.F_f) - STSharpOrifice.F_g; 41: STSharpOrifice.m = data.rho * STSharpOrifice.A * STSharpOrifice.l; 42: STSharpOrifice.F_f = OpenHPL.Functions.DarcyFriction.Friction(STSharpOrifice.v, STSharpOrifice.D, STSharpOrifice.l, data.rho, data.mu, STSharpOrifice.p_eps) + 0.5 * STSharpOrifice.A * STSharpOrifice.phiSO * data.rho * abs(STSharpOrifice.v) * STSharpOrifice.v; 46: STSharpOrifice.v = STSharpOrifice.Vdot / STSharpOrifice.A; 44: STSharpOrifice.mdot = data.rho * STSharpOrifice.Vdot; 9: intake.Vdot = intake.mdot / data.rho; 51: STSharpOrifice.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), STSharpOrifice.Vdot(1), STSharpOrifice.F(9), STSharpOrifice.F_f(5), STSharpOrifice.mdot(13), STSharpOrifice.l(8), STSharpOrifice.m(12), STSharpOrifice.phiSO(3), STSharpOrifice.F_g(4), STSharpOrifice.M(11), STSharpOrifice.v(7), STSharpOrifice.Mdot(10), intake.p_o(40), STSharpOrifice.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!