Running command: "" <> buildModelFMU(OpenHPL.Examples.HPSimple_generator,fileNamePrefix="OpenHPL_OpenHPL_Examples_HPSimple_generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(OpenHPL): time 2.488/2.488, allocations: 258 MB / 265.1 MB, free: 5.465 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.804e-05/1.816e-05, allocations: 4 kB / 327.7 MB, free: 9.898 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1334/0.1334, allocations: 60.24 MB / 388 MB, free: 13.56 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5101/0.6436, allocations: 96.34 MB / 484.3 MB, free: 7.641 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002676/0.644, allocations: 84.12 kB / 484.4 MB, free: 7.633 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06437/0.7084, allocations: 14.4 MB / 498.8 MB, free: 2.539 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.7084, allocations: 0 / 498.8 MB, free: 2.539 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.583e-05/0.7085, allocations: 19.31 kB / 498.8 MB, free: 2.535 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: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.003162/0.7117, allocations: 0.9324 MB / 499.8 MB, free: 1.867 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.651e-05/0.7117, allocations: 11.7 kB / 499.8 MB, free: 1.863 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004989/0.7123, allocations: 84.75 kB / 499.9 MB, free: 1.824 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001158/0.7134, allocations: 442.3 kB / 0.4886 GB, free: 1.504 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.175e-05/0.7135, allocations: 15.38 kB / 0.4886 GB, free: 1.504 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000157/0.7137, allocations: 30.62 kB / 0.4886 GB, free: 1.504 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001584/0.7153, allocations: 422.8 kB / 0.489 GB, free: 1.473 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0015/0.7168, allocations: 465.8 kB / 0.4895 GB, free: 1.324 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.678e-05/0.7169, allocations: 3.906 kB / 0.4895 GB, free: 1.32 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.196e-05/0.717, allocations: 0 / 0.4895 GB, free: 1.32 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.882e-05/0.717, allocations: 14.97 kB / 0.4895 GB, free: 1.32 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006567/0.7236, allocations: 1.646 MB / 0.4911 GB, free: 0.5352 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003542/0.7272, allocations: 0.5134 MB / 0.4916 GB, free: 184 kB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006397/0.7279, allocations: 180.1 kB / 0.4918 GB, free: 76 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001802/0.7297, allocations: 0.855 MB / 0.4926 GB, free: 15.03 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.377e-05/0.7298, allocations: 47.34 kB / 0.4926 GB, free: 14.98 MB / 394.7 MB Notification: Performance of pre-optimization done (n=56): time 4.859e-06/0.7298, allocations: 0 / 0.4926 GB, free: 14.98 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; 52: 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); 35: surgeTank.m = data.rho * surgeTank.A * surgeTank.l; 43: surgeTank.F_g = surgeTank.m * data.g * surgeTank.cos_theta; 36: surgeTank.F_f = OpenHPL.Functions.DarcyFriction.Friction(surgeTank.v, surgeTank.D, surgeTank.l, data.rho, data.mu, surgeTank.p_eps); 42: surgeTank.F_p = (penstock.p_i - data.p_a) * surgeTank.A; 41: surgeTank.F = surgeTank.F_p + (-surgeTank.F_f) - surgeTank.F_g; 40: surgeTank.Mdot = surgeTank.mdot * surgeTank.v; 33: der(surgeTank.m) = surgeTank.mdot; 34: der(surgeTank.M) = surgeTank.Mdot + surgeTank.F; 38: surgeTank.M = surgeTank.m * surgeTank.v; 39: surgeTank.v = surgeTank.Vdot / surgeTank.A; 37: surgeTank.mdot = data.rho * surgeTank.Vdot; 9: intake.Vdot = intake.mdot / data.rho; 44: surgeTank.mdot = intake.mdot - penstock.mdot; 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); 28: penstock.v = penstock.Vdot / penstock.A_; 27: penstock.Vdot = 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; 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); 53: 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) + penstock.p_i * 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; 54: 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 penstock.p_i(27), discharge.p_i(40), tail.F_f(33), tail.Vdot_i(34), turbine.look_up_table.y[1](1), intake.dp(45), penstock.Vdot(24), surgeTank.l(18), surgeTank.M(21), surgeTank.F(19), surgeTank.v(17), reservoir.Vdot_i(54), surgeTank.m(22), penstock.dp(25), surgeTank.F_g(14), surgeTank.mdot(23), surgeTank.F_f(15), intake.mdot(50), generator.P_in(6), intake.M(47), control.y(51), reservoir.m(55), reservoir.H(52), intake.F_f(48), reservoir.A(56), reservoir.F_f(53), intake.v(49), discharge.p_o(39), penstock.F_f(29), surgeTank.h(13), tail.H(32), penstock.v(30), penstock.M(28), turbine.Kdot_i_tr(3), intake.Vdot(44), discharge.Vdot(37), discharge.dp(38), discharge.M(41), tail.A(36), tail.m(35), discharge.F_f(42), surgeTank.F_p(16) Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed!