Running command: "" <> buildModelFMU(IndustrialControlSystems.Applications.ControlProblems.CascadeControl,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Applications_ControlProblems_CascadeControl",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(IndustrialControlSystems): time 2.089/2.089, allocations: 216.8 MB / 229 MB, free: 15.1 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.122e-05/3.131e-05, allocations: 4 kB / 282 MB, free: 10.85 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1035, allocations: 49.99 MB / 332 MB, free: 8.762 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4491/0.5526, allocations: 78.98 MB / 411 MB, free: 1.23 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003056/0.5529, allocations: 74.77 kB / 411 MB, free: 1.191 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0277/0.5807, allocations: 6.109 MB / 417.1 MB, free: 11.89 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.5807, allocations: 0 / 417.1 MB, free: 11.89 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.691e-05/0.5808, allocations: 16 kB / 417.2 MB, free: 11.88 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: 101 * Number of variables: 101 Notification: Performance of Generate backend data structure: time 0.001842/0.5826, allocations: 0.7068 MB / 417.9 MB, free: 11.16 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.862e-05/0.5827, allocations: 8.031 kB / 417.9 MB, free: 11.15 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001523/0.5829, allocations: 83.14 kB / 418 MB, free: 11.09 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001567/0.583, allocations: 59.25 kB / 418 MB, free: 11.03 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00126/0.5843, allocations: 461.7 kB / 418.5 MB, free: 10.57 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.225e-05/0.5844, allocations: 33.92 kB / 418.5 MB, free: 10.55 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001076/0.5845, allocations: 44.38 kB / 418.5 MB, free: 10.52 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001144/0.5857, allocations: 496.2 kB / 419 MB, free: 10.12 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.99e-05/0.5857, allocations: 3.906 kB / 419 MB, free: 10.12 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.332e-05/0.5858, allocations: 21.86 kB / 419 MB, free: 10.11 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.533e-05/0.5858, allocations: 12 kB / 419.1 MB, free: 10.1 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008026/0.5866, allocations: 292.9 kB / 419.3 MB, free: 9.895 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003985/0.5906, allocations: 1.604 MB / 420.9 MB, free: 8.438 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000791/0.5915, allocations: 241.8 kB / 421.2 MB, free: 8.254 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002569/0.5917, allocations: 94.42 kB / 421.3 MB, free: 8.188 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.846e-05/0.5918, allocations: 4.234 kB / 421.3 MB, free: 8.184 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004914/0.5923, allocations: 204.6 kB / 421.5 MB, free: 8.016 MB / 346.7 MB Notification: Performance of pre-optimization done (n=31): time 3.386e-06/0.5923, allocations: 0 / 421.5 MB, free: 8.016 MB / 346.7 MB Notification: Performance of matching and sorting (n=31): time 0.0009983/0.5933, allocations: 350.8 kB / 421.8 MB, free: 7.727 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.628e-05/0.5934, allocations: 63.39 kB / 421.9 MB, free: 7.652 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007322/0.5941, allocations: 426.3 kB / 422.3 MB, free: 7.309 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.021e-05/0.5942, allocations: 40.62 kB / 422.3 MB, free: 7.27 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000287/0.5945, allocations: 291.2 kB / 422.6 MB, free: 7.051 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001246/0.5946, allocations: 108.4 kB / 422.7 MB, free: 6.961 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.774e-05/0.5947, allocations: 16.12 kB / 422.7 MB, free: 6.953 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001961/0.5949, allocations: 371.5 kB / 423.1 MB, free: 6.605 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002956/0.5952, allocations: 100.2 kB / 423.2 MB, free: 6.539 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005528/0.5958, allocations: 408.4 kB / 423.6 MB, free: 6.043 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004696/0.5963, allocations: 195.4 kB / 423.8 MB, free: 5.895 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.055e-06/0.5963, allocations: 3.938 kB / 423.8 MB, free: 5.891 MB / 346.7 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001442/0.5977, allocations: 0.5808 MB / 424.4 MB, free: 5.41 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.925e-05/0.5978, allocations: 8 kB / 424.4 MB, free: 5.402 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.102e-05/0.5978, allocations: 12 kB / 424.4 MB, free: 5.391 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.104e-05/0.5979, allocations: 19.98 kB / 424.4 MB, free: 5.371 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008327/0.5987, allocations: 131.1 kB / 424.5 MB, free: 5.246 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.142e-05/0.5987, allocations: 16.47 kB / 424.6 MB, free: 5.23 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004562/0.5992, allocations: 77.36 kB / 424.6 MB, free: 5.164 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.243e-05/0.5993, allocations: 39.06 kB / 424.7 MB, free: 5.133 MB / 346.7 MB Warning: Assuming fixed start value for the following 17 variables: R.cs:DISCRETE(fixed = false ) "Pre-biased Control Signal" type: Real R.satin:DISCRETE(fixed = false ) "input of the saturation block" type: Real R_outer.CS:DISCRETE(fixed = false ) "Control signal" type: Real R_outer.cs:DISCRETE(fixed = false ) "Pre-biased Control Signal" type: Real R_outer.satin:DISCRETE(fixed = false ) "input of the saturation block" type: Real R_inner.cs:DISCRETE(fixed = false ) "Pre-biased Control Signal" type: Real R_inner.satin:DISCRETE(fixed = false ) "input of the saturation block" type: Real P_outer.Y[3]:VARIABLE(protected = true ) type: Real [3] P_outer.U[2]:VARIABLE(protected = true ) type: Real [2] P_outer.w:VARIABLE(protected = true ) "proper part of the output" type: Real P2.Y[3]:VARIABLE(protected = true ) type: Real [3] P2.U[2]:VARIABLE(protected = true ) type: Real [2] P2.w:VARIABLE(protected = true ) "proper part of the output" type: Real R_inner.CS:DISCRETE(fixed = false ) "Control signal" type: Real P_inner.w:VARIABLE(protected = true ) "proper part of the output" type: Real R.CS:DISCRETE(fixed = false ) "Control signal" type: Real P1.w:VARIABLE(protected = true ) "proper part of the output" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 33 ($PRE.R.FBout,R.FBout,$PRE.R.cs,R.cs,$PRE.R.satin,R.satin,$PRE.R_outer.CS,R_outer.CS,$PRE.R_outer.FBout,R_outer.FBout,$PRE.R_outer.cs,R_outer.cs,$PRE.R_outer.satin,R_outer.satin,$PRE.R_inner.FBout,R_inner.FBout,$PRE.R_inner.cs,R_inner.cs,$PRE.R_inner.satin,R_inner.satin,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.R.CS,R.CS,$PRE.R_inner.CS,R_inner.CS,R_inner.TS_in,R_outer.TS_in,R.TS_in,R_inner.ATreq_in,R_outer.ATreq_in,R.ATreq_in) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (81): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003234/0.5996, allocations: 180.6 kB / 424.9 MB, free: 4.969 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001027/0.5997, allocations: 47.38 kB / 424.9 MB, free: 4.922 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001679/0.5999, allocations: 50.88 kB / 425 MB, free: 4.891 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.077e-06/0.5999, allocations: 4 kB / 425 MB, free: 4.887 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.006e-05/0.6, allocations: 7.984 kB / 425 MB, free: 4.879 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.623e-06/0.6, allocations: 0 / 425 MB, free: 4.879 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006788/0.6007, allocations: 432.2 kB / 425.4 MB, free: 4.484 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.72e-06/0.6007, allocations: 3.953 kB / 425.4 MB, free: 4.48 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006315/0.6013, allocations: 55.83 kB / 425.4 MB, free: 4.43 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.334e-06/0.6014, allocations: 0 / 425.4 MB, free: 4.43 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.32e-05/0.6014, allocations: 15.48 kB / 425.5 MB, free: 4.418 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.6014, allocations: 0 / 425.5 MB, free: 4.418 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.6014, allocations: 0 / 425.5 MB, free: 4.418 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001243/0.6027, allocations: 0.5229 MB / 426 MB, free: 3.988 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001378/0.6029, allocations: 124.4 kB / 426.1 MB, free: 3.848 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.741e-05/0.603, allocations: 11.88 kB / 426.1 MB, free: 3.84 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00026/0.6032, allocations: 15.86 kB / 426.1 MB, free: 3.828 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.532e-05/0.6033, allocations: 19.91 kB / 426.1 MB, free: 3.812 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.174e-05/0.6034, allocations: 11.98 kB / 426.2 MB, free: 3.801 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005119/0.6039, allocations: 314.5 kB / 426.5 MB, free: 3.555 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6039, allocations: 4 kB / 426.5 MB, free: 3.551 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006936/0.6046, allocations: 98.94 kB / 426.6 MB, free: 3.469 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (P1.w,P2.Y[3],P2.U[2],P2.w,P_inner.w,P_outer.Y[3],P_outer.U[2],P_outer.w) * Number of discrete variables: 15 ($whenCondition3,$whenCondition2,$whenCondition1,R.CS,R.FBout,R.cs,R.satin,R_outer.CS,R_outer.FBout,R_outer.cs,R_outer.satin,R_inner.CS,R_inner.FBout,R_inner.cs,R_inner.satin) * Number of discrete states: 6 (R_inner.FBout,R_inner.cs,R_outer.FBout,R_outer.cs,R.FBout,R.cs) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 12 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001687/0.6063, allocations: 1.094 MB / 427.7 MB, free: 2.469 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009465/0.6073, allocations: 361.9 kB / 428 MB, free: 2.195 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.6073, allocations: 0 / 428 MB, free: 2.195 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003242/0.6076, allocations: 126.5 kB / 428.1 MB, free: 2.105 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003665/0.608, allocations: 45.25 kB / 428.2 MB, free: 2.082 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002156/0.6102, allocations: 0.8262 MB / 429 MB, free: 1.297 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005982/0.6108, allocations: 0.8775 MB / 429.9 MB, free: 412 kB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000439/0.6113, allocations: 96.48 kB / 430 MB, free: 316 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002717/0.6116, allocations: 170.1 kB / 430.1 MB, free: 268 kB / 346.7 MB Notification: Performance of SimCode: time 1.082e-06/0.6116, allocations: 3.938 kB / 430.2 MB, free: 264 kB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03951/0.6511, allocations: 7.571 MB / 437.7 MB, free: 8.785 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003568/0.6516, allocations: 189.9 kB / 437.9 MB, free: 8.555 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.672/3.323, allocations: 0 / 437.9 MB, free: 8.555 MB / 362.7 MB