Running command: "" <> buildModelFMU(OpenHPL.Examples.HPSimple_generator,fileNamePrefix="OpenHPL_OpenHPL_Examples_HPSimple_generator",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(OpenHPL): time 2.34/2.34, allocations: 257.8 MB / 264.8 MB, free: 15.95 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1915/2.532, allocations: 62.54 MB / 327.4 MB, free: 1.406 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3762/2.908, allocations: 60.22 MB / 387.6 MB, free: 7.047 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2359/3.144, allocations: 96.29 MB / 483.9 MB, free: 7.363 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003882/3.144, allocations: 79.95 kB / 483.9 MB, free: 7.285 MB / 410.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.1032/3.248, allocations: 15.15 MB / 499.1 MB, free: 8.055 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.069e-05/3.248, allocations: 11.94 kB / 499.1 MB, free: 8.043 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006987/3.249, allocations: 90.97 kB / 499.2 MB, free: 7.953 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00168/3.25, allocations: 432.7 kB / 499.6 MB, free: 7.492 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.952e-05/3.25, allocations: 19.91 kB / 499.6 MB, free: 7.473 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002109/3.251, allocations: 32 kB / 499.7 MB, free: 7.441 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002332/3.253, allocations: 422.5 kB / 0.4884 GB, free: 7.027 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001948/3.255, allocations: 460.2 kB / 0.4888 GB, free: 6.562 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.121e-05/3.255, allocations: 4 kB / 0.4888 GB, free: 6.559 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001053/3.255, allocations: 8 kB / 0.4888 GB, free: 6.551 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.102e-05/3.255, allocations: 15.91 kB / 0.4888 GB, free: 6.535 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008708/3.264, allocations: 1.638 MB / 0.4904 GB, free: 4.844 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004798/3.269, allocations: 0.4959 MB / 0.4909 GB, free: 4.336 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009534/3.27, allocations: 187.3 kB / 0.4911 GB, free: 4.152 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001899/3.272, allocations: 0.8627 MB / 0.4919 GB, free: 3.105 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.745e-05/3.272, allocations: 39 kB / 0.492 GB, free: 3.059 MB / 426.7 MB Notification: Performance of pre-optimization done (n=56): time 5.511e-06/3.272, allocations: 0 / 0.492 GB, free: 3.059 MB / 426.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! Error: Internal error SimCode: The model OpenHPL.Examples.HPSimple_generator could not be translated to FMU