Running command: "" <> buildModelFMU(OpenHPL.Tests.HPSTSimple,fileNamePrefix="OpenHPL_OpenHPL_Tests_HPSTSimple",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(OpenHPL): time 2.749/2.749, allocations: 258 MB / 265.1 MB, free: 5.465 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.523e-05/3.525e-05, allocations: 4 kB / 327.8 MB, free: 9.906 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1727/0.1727, allocations: 60.24 MB / 388 MB, free: 13.57 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5754/0.7482, allocations: 95.58 MB / 483.6 MB, free: 7.793 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003265/0.7486, allocations: 87.92 kB / 483.7 MB, free: 7.781 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0618/0.8104, allocations: 13.67 MB / 497.3 MB, free: 2.965 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.8105, allocations: 0 / 497.3 MB, free: 2.965 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.71e-05/0.8105, allocations: 19.48 kB / 497.3 MB, free: 2.961 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.002461/0.813, allocations: 0.8676 MB / 498.2 MB, free: 2.324 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.297e-05/0.8131, allocations: 11.66 kB / 498.2 MB, free: 2.324 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004379/0.8135, allocations: 85.27 kB / 498.3 MB, free: 2.277 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001019/0.8146, allocations: 419.8 kB / 498.7 MB, free: 1.965 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.207e-05/0.8146, allocations: 14.88 kB / 498.7 MB, free: 1.965 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001153/0.8148, allocations: 38.78 kB / 498.8 MB, free: 1.957 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001153/0.8159, allocations: 390.1 kB / 499.2 MB, free: 1.934 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001014/0.817, allocations: 431 kB / 499.6 MB, free: 1.797 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.704e-05/0.817, allocations: 0 / 499.6 MB, free: 1.797 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6e-05/0.8171, allocations: 0 / 499.6 MB, free: 1.797 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.474e-05/0.8171, allocations: 11.53 kB / 499.6 MB, free: 1.797 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004758/0.8219, allocations: 1.547 MB / 0.4894 GB, free: 1.047 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00244/0.8244, allocations: 495 kB / 0.4899 GB, free: 0.9648 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004324/0.8249, allocations: 166.9 kB / 0.49 GB, free: 0.9531 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0011/0.826, allocations: 0.8588 MB / 0.4909 GB, free: 15.99 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.696e-05/0.826, allocations: 38.88 kB / 0.4909 GB, free: 15.95 MB / 394.7 MB Notification: Performance of pre-optimization done (n=50): time 4.017e-06/0.8261, allocations: 3.938 kB / 0.4909 GB, free: 15.94 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!