Running command: translateModel(OpenHPL.Tests.HPSTSimple,tolerance=0.0001,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="OpenHPL_OpenHPL.Tests.HPSTSimple") [: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.16/2.16, allocations: 258 MB / 265 MB, free: 15.91 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.403e-05/1.417e-05, allocations: 8 kB / 327.4 MB, free: 1.445 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2762/0.2763, allocations: 60.23 MB / 387.7 MB, free: 7.047 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1479/0.4242, allocations: 95.51 MB / 483.2 MB, free: 8.09 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000372/0.4246, allocations: 83.95 kB / 483.3 MB, free: 8.008 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.08298/0.5076, allocations: 13.44 MB / 496.7 MB, free: 10.54 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.765e-05/0.5077, 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.002218/0.5099, allocations: 0.8803 MB / 497.6 MB, free: 9.594 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.51, allocations: 12.03 kB / 497.6 MB, free: 9.582 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004152/0.5104, allocations: 79.05 kB / 497.7 MB, free: 9.504 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000949/0.5114, allocations: 416.7 kB / 498.1 MB, free: 9.055 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.704e-05/0.5114, allocations: 23.97 kB / 498.1 MB, free: 9.031 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001093/0.5116, allocations: 35.91 kB / 498.2 MB, free: 8.996 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001215/0.5128, allocations: 389.8 kB / 498.5 MB, free: 8.617 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001089/0.5139, allocations: 432.1 kB / 499 MB, free: 8.184 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.399e-05/0.5139, allocations: 0 / 499 MB, free: 8.184 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.091e-05/0.514, allocations: 0 / 499 MB, free: 8.184 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.633e-05/0.514, allocations: 12 kB / 499 MB, free: 8.172 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004534/0.5186, allocations: 1.532 MB / 0.4888 GB, free: 6.59 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002077/0.5207, allocations: 467.9 kB / 0.4892 GB, free: 6.121 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004702/0.5212, allocations: 174.2 kB / 0.4894 GB, free: 5.949 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001093/0.5223, allocations: 0.851 MB / 0.4902 GB, free: 4.914 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.702e-05/0.5224, allocations: 46.98 kB / 0.4903 GB, free: 4.859 MB / 426.7 MB Notification: Performance of pre-optimization done (n=50): time 3.461e-06/0.5224, allocations: 0 / 0.4903 GB, free: 4.859 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 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!