Running command: "" <> buildModelFMU(IndustrialControlSystems.Applications.ControlProblems.CascadeAntiWindup,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Applications_ControlProblems_CascadeAntiWindup",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(IndustrialControlSystems): time 2.359/2.359, allocations: 216.9 MB / 229 MB, free: 15.1 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.084e-05/4.097e-05, allocations: 5.25 kB / 282 MB, free: 10.87 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1096, allocations: 50 MB / 332 MB, free: 8.773 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4342/0.5439, allocations: 79.94 MB / 411.9 MB, free: 272 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000287/0.5442, allocations: 74.2 kB / 412 MB, free: 232 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0433/0.5876, allocations: 9.444 MB / 421.4 MB, free: 8.047 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.5876, allocations: 0 / 421.4 MB, free: 8.047 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.769e-05/0.5877, allocations: 20 kB / 421.5 MB, free: 8.027 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 165 * Number of variables: 165 Notification: Performance of Generate backend data structure: time 0.001897/0.5896, allocations: 0.9989 MB / 422.5 MB, free: 7.023 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.299e-05/0.5897, allocations: 8.031 kB / 422.5 MB, free: 7.016 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002445/0.5899, allocations: 116.4 kB / 422.6 MB, free: 6.926 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002612/0.5902, allocations: 110.8 kB / 422.7 MB, free: 6.816 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002028/0.5923, allocations: 0.5643 MB / 423.3 MB, free: 6.266 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.565e-05/0.5923, allocations: 42.31 kB / 423.3 MB, free: 6.238 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001545/0.5925, allocations: 63.05 kB / 423.4 MB, free: 6.191 MB / 346.7 MB Error: An independent subset of the model has imbalanced number of equations (63) and variables (53). variables: P4.w P4.A P4.U[1] P4.Y[2] P4.Y[1] P4.c[1] P4.a[2] P4.a[1] P4.y P4.u P3.w P3.A P3.U[1] P3.Y[2] P3.Y[1] P3.c[1] P3.a[2] P3.a[1] P3.y P3.u PID_inner.dcs PID_inner.cs PID_inner.dd PID_inner.d PID_inner.di PID_inner.dp PID_inner.dpv PID_inner.pv PID_inner.dsp PID_inner.sp PID_inner.satLOW PID_inner.satHI PID_inner.Fdec_in PID_inner.Finc_in PID_inner.MAN_in PID_inner.CSinc_in PID_inner.BIAS_in PID_inner.TS_in PID_inner.TR_in PID_inner.PV PID_inner.CS PID_inner.SP PID_inner.F_dec PID_inner.F_inc PID_inner.man PID_inner.csInc PID_inner.ts PID_inner.tr PID_inner.bias PID_outer.cs PID_outer.satLOW PID_outer.PV PID_outer.CS equations: 1 : algorithm when sample(3, 0.0, 0.01) then PID_outer.CS := PID_outer.cs; PID_outer.satLOW := false; PID_outer.CS := PID_outer.cs; end when; 2 : PID_inner.TR_in = 0.0 3 : PID_inner.TS_in = false 4 : PID_inner.BIAS_in = 0.0 5 : PID_inner.MAN_in = false 6 : PID_inner.CSinc_in = 0.0 7 : PID_inner.Finc_in = false 8 : PID_inner.Fdec_in = false 9 : PID_inner.tr = PID_inner.TR_in 10 : PID_inner.ts = PID_inner.TS_in 11 : PID_inner.bias = PID_inner.BIAS_in 12 : PID_inner.csInc = PID_inner.CSinc_in 13 : PID_inner.man = PID_inner.MAN_in 14 : PID_inner.F_inc = PID_inner.Finc_in 15 : PID_inner.F_dec = PID_inner.Fdec_in 16 : algorithm when sample(4, 0.0, 0.01) then PID_inner.sp := PID_inner.SP; PID_inner.pv := PID_inner.PV; PID_inner.dsp := PID_inner.sp - pre(PID_inner.sp); PID_inner.dpv := PID_inner.pv - pre(PID_inner.pv); if not PID_inner.ts and not PID_inner.man then PID_inner.dp := PID_inner.Kp * (PID_inner.b * PID_inner.dsp - PID_inner.dpv); PID_inner.di := 0.01 * PID_inner.Kp * (PID_inner.sp - PID_inner.pv) / PID_inner.Ti; PID_inner.d := (PID_inner.Td * pre(PID_inner.d) + PID_inner.Kp * PID_inner.N * PID_inner.Td * (PID_inner.c * PID_inner.dsp - PID_inner.dpv)) / (if PID_inner.Td > 0.0 then PID_inner.Td + PID_inner.N * 0.01 else 1.0); PID_inner.dd := PID_inner.d - pre(PID_inner.d); PID_inner.dcs := PID_inner.dp + PID_inner.di + PID_inner.dd + PID_inner.bias - pre(PID_inner.bias); PID_inner.cs := pre(PID_inner.cs) + PID_inner.dcs; elseif PID_inner.man then PID_inner.cs := pre(PID_inner.cs) + PID_inner.csInc; else PID_inner.cs := PID_inner.tr; end if; if PID_inner.F_inc and not PID_inner.man and PID_inner.cs > pre(PID_inner.cs) then PID_inner.cs := pre(PID_inner.cs); end if; if PID_inner.F_dec and not PID_inner.man and PID_inner.cs < pre(PID_inner.cs) then PID_inner.cs := pre(PID_inner.cs); end if; if PID_inner.cs > 1.0 then PID_inner.cs := 1.0; PID_inner.satHI := true; PID_inner.satLOW := false; else PID_inner.satHI := false; end if; if PID_inner.cs < 0.0 then PID_inner.cs := 0.0; PID_inner.satLOW := true; PID_inner.satHI := false; else PID_inner.satLOW := false; end if; PID_inner.CS := PID_inner.cs; end when; 17 : P3.a[1] = 0.0 18 : P3.a[2] = P3.num[1] 19 : P3.A = P3.a[1] / P3.b[1] 20 : P3.c[1] = P3.a[2] - P3.A * P3.b[2] 21 : P3.Y[1] = der(P3.w) 22 : P3.Y[2] = P3.w 23 : P3.U[1] = P3.u 24 : P3.y = P3.A * P3.u + P3.w 25 : P3.b[1] * P3.Y[1] + P3.b[2] * P3.Y[2] = P3.c[1] * P3.U[1] 26 : P4.a[1] = 0.0 27 : P4.a[2] = P4.num[1] 28 : P4.A = P4.a[1] / P4.b[1] 29 : P4.c[1] = P4.a[2] - P4.A * P4.b[2] 30 : P4.Y[1] = der(P4.w) 31 : P4.Y[2] = P4.w 32 : P4.U[1] = P4.u 33 : P4.y = P4.A * P4.u + P4.w 34 : P4.b[1] * P4.Y[1] + P4.b[2] * P4.Y[2] = P4.c[1] * P4.U[1] 35 : P3.u = PID_inner.CS 36 : P3.y = P4.u 37 : P3.y = PID_inner.PV 38 : P4.y = PID_outer.PV 39 : PID_inner.SP = PID_outer.CS Notification: Performance of preOpt clockPartitioning (simulation) : time 0.001845/0.5944, allocations: 0.7318 MB / 424.1 MB, free: 5.594 MB / 346.7 MB Error: pre-optimization module clockPartitioning (simulation) failed.