Running command: translateModel(OpenHPL.Examples.HPSimple,tolerance=0.0001,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="OpenHPL_OpenHPL.Examples.HPSimple") [: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.401/2.401, allocations: 258 MB / 265 MB, free: 15.95 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.526e-06/8.626e-06, allocations: 0 / 327.4 MB, free: 1.496 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2517/0.2518, allocations: 60.24 MB / 387.7 MB, free: 6.949 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1387/0.3905, allocations: 95.46 MB / 483.1 MB, free: 8.098 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002646/0.3908, allocations: 79.97 kB / 483.2 MB, free: 8.02 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.06026/0.4511, allocations: 13.45 MB / 496.6 MB, free: 10.54 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.326e-05/0.4512, allocations: 19.98 kB / 496.7 MB, free: 10.52 MB / 426.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.002043/0.4532, allocations: 0.8803 MB / 497.5 MB, free: 9.598 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.924e-05/0.4533, allocations: 12.03 kB / 497.6 MB, free: 9.586 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003411/0.4536, allocations: 83.05 kB / 497.6 MB, free: 9.504 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008121/0.4545, allocations: 416.7 kB / 498 MB, free: 9.055 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.159e-05/0.4545, allocations: 16 kB / 498.1 MB, free: 9.039 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001162/0.4546, allocations: 31.91 kB / 498.1 MB, free: 9.008 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001118/0.4558, allocations: 397.8 kB / 498.5 MB, free: 8.621 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001042/0.4568, allocations: 424.2 kB / 498.9 MB, free: 8.195 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.713e-05/0.4569, allocations: 7.984 kB / 498.9 MB, free: 8.188 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.989e-05/0.4569, allocations: 0 / 498.9 MB, free: 8.188 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.539e-05/0.457, allocations: 16 kB / 498.9 MB, free: 8.172 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00423/0.4612, allocations: 1.524 MB / 0.4887 GB, free: 6.598 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001964/0.4632, allocations: 475.9 kB / 0.4892 GB, free: 6.121 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004155/0.4636, allocations: 173.3 kB / 0.4893 GB, free: 5.953 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001111/0.4648, allocations: 0.851 MB / 0.4902 GB, free: 4.918 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.943e-05/0.4648, allocations: 39 kB / 0.4902 GB, free: 4.871 MB / 426.7 MB Notification: Performance of pre-optimization done (n=50): time 7.451e-06/0.4648, allocations: 3.984 kB / 0.4902 GB, free: 4.867 MB / 426.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 40: surgeTank.Mdot = surgeTank.mdot * surgeTank.v; 38: surgeTank.M = surgeTank.m * surgeTank.v; 43: surgeTank.F_g = surgeTank.m * data.g * surgeTank.cos_theta; 42: surgeTank.F_p = (penstock.p_i - data.p_a) * surgeTank.A; 34: der(surgeTank.M) = surgeTank.Mdot + surgeTank.F; 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); 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; 48: turbine.dp = penstock.p_o - discharge.p_i; 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: turbine.dp = turbine.Vdot ^ 2.0 * data.p_a / (turbine.C_v_ * control.y) ^ 2.0; 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); 28: penstock.v = penstock.Vdot / penstock.A_; 46: 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; 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; 30: penstock.F_f = OpenHPL.Functions.DarcyFriction.Friction(penstock.v, penstock.D_, penstock.L, data.rho, data.mu, penstock.p_eps); 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; 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; 44: surgeTank.mdot = intake.mdot - penstock.mdot; 37: surgeTank.mdot = data.rho * surgeTank.Vdot; 41: surgeTank.F = surgeTank.F_p + (-surgeTank.F_f) - surgeTank.F_g; 39: surgeTank.v = surgeTank.Vdot / surgeTank.A; 33: der(surgeTank.m) = surgeTank.mdot; 36: surgeTank.F_f = OpenHPL.Functions.DarcyFriction.Friction(surgeTank.v, surgeTank.D, surgeTank.l, data.rho, data.mu, surgeTank.p_eps); 35: surgeTank.m = data.rho * surgeTank.A * surgeTank.l; for variables turbine.dp(4), surgeTank.Vdot(6), surgeTank.F_p(10), surgeTank.l(12), penstock.dp(19), tail.Vdot_i(28), reservoir.H(46), discharge.Vdot(31), surgeTank.F(13), discharge.p_o(33), intake.Vdot(38), tail.A(30), intake.mdot(44), tail.m(29), tail.H(26), discharge.dp(32), turbine.Kdot_i_tr(3), reservoir.A(50), control.y(45), reservoir.m(49), reservoir.F_f(47), intake.F_f(42), reservoir.Vdot_i(48), intake.dp(39), discharge.F_f(36), penstock.mdot(25), turbine.look_up_table.y[1](1), discharge.p_i(34), penstock.p_i(21), surgeTank.M(15), penstock.v(24), discharge.v(37), penstock.M(22), intake.M(41), surgeTank.F_f(9), surgeTank.m(16), surgeTank.v(11), surgeTank.F_g(8), penstock.F_f(23), penstock.Vdot(18), surgeTank.mdot(17), discharge.M(35) Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed!