Running command: "" <> buildModelFMU(IndustrialControlSystems.Controllers.Digital.Examples.TestPID_TDOe,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Digital_Examples_TestPID_TDOe",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(IndustrialControlSystems): time 2.16/2.16, allocations: 216.8 MB / 229 MB, free: 15.11 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.381e-05/3.401e-05, allocations: 0 / 282 MB, free: 10.85 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.115, allocations: 50.01 MB / 332 MB, free: 8.75 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4323/0.5474, allocations: 79.58 MB / 411.6 MB, free: 0.5703 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003027/0.5478, allocations: 80.56 kB / 411.7 MB, free: 0.5234 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02522/0.573, allocations: 5.559 MB / 417.2 MB, free: 11.62 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.38e-06/0.5731, allocations: 4 kB / 417.2 MB, free: 11.62 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.055e-05/0.5731, allocations: 15.98 kB / 417.2 MB, free: 11.6 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: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.001498/0.5747, allocations: 0.7487 MB / 418 MB, free: 10.84 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.078e-05/0.5747, allocations: 12.03 kB / 418 MB, free: 10.83 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001484/0.5749, allocations: 82.47 kB / 418.1 MB, free: 10.76 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001681/0.5751, allocations: 75.23 kB / 418.1 MB, free: 10.69 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001323/0.5764, allocations: 434.5 kB / 418.6 MB, free: 10.26 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.769e-05/0.5765, allocations: 36.16 kB / 418.6 MB, free: 10.23 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001455/0.5766, allocations: 56.09 kB / 418.7 MB, free: 10.19 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001401/0.5781, allocations: 0.5423 MB / 419.2 MB, free: 9.797 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.149e-05/0.5781, allocations: 3.312 kB / 419.2 MB, free: 9.797 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.91e-05/0.5782, allocations: 33.31 kB / 419.2 MB, free: 9.773 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.563e-05/0.5782, allocations: 8 kB / 419.2 MB, free: 9.766 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009558/0.5792, allocations: 352.6 kB / 419.6 MB, free: 9.543 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003763/0.583, allocations: 1.356 MB / 420.9 MB, free: 8.379 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001191/0.5842, allocations: 0.744 MB / 421.7 MB, free: 8.113 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008635/0.5851, allocations: 0.6896 MB / 422.4 MB, free: 7.902 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.86e-05/0.5851, allocations: 0 / 422.4 MB, free: 7.902 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007074/0.5859, allocations: 369.1 kB / 422.7 MB, free: 7.598 MB / 346.7 MB Notification: Performance of pre-optimization done (n=51): time 8.396e-06/0.5859, allocations: 3.984 kB / 422.7 MB, free: 7.594 MB / 346.7 MB Notification: Performance of matching and sorting (n=51): time 0.001891/0.5878, allocations: 0.8089 MB / 423.6 MB, free: 6.953 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001656/0.588, allocations: 228.9 kB / 423.8 MB, free: 6.703 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007329/0.5887, allocations: 396.8 kB / 424.2 MB, free: 6.387 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.566e-05/0.5888, allocations: 54.62 kB / 424.2 MB, free: 6.336 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002497/0.5891, allocations: 254.7 kB / 424.5 MB, free: 6.148 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001821/0.5893, allocations: 154.8 kB / 424.6 MB, free: 6.023 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.058e-05/0.5893, allocations: 11.19 kB / 424.6 MB, free: 6.02 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001895/0.5895, allocations: 370.3 kB / 425 MB, free: 5.676 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003519/0.5899, allocations: 128.2 kB / 425.1 MB, free: 5.59 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006323/0.5905, allocations: 481.3 kB / 425.6 MB, free: 5.016 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006333/0.5912, allocations: 293.1 kB / 425.9 MB, free: 4.77 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.354e-05/0.5912, allocations: 4 kB / 425.9 MB, free: 4.766 MB / 346.7 MB Notification: Performance of matching and sorting (n=114) (initialization): time 0.001973/0.5932, allocations: 0.8159 MB / 426.7 MB, free: 4.09 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.1e-05/0.5933, allocations: 59.41 kB / 426.8 MB, free: 4.02 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.51e-05/0.5933, allocations: 12 kB / 426.8 MB, free: 4.008 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.225e-05/0.5934, allocations: 20 kB / 426.8 MB, free: 3.988 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009342/0.5943, allocations: 163.5 kB / 426.9 MB, free: 3.836 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.873e-05/0.5944, allocations: 32.23 kB / 427 MB, free: 3.805 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005575/0.595, allocations: 90.7 kB / 427.1 MB, free: 3.727 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.654e-05/0.595, allocations: 43.75 kB / 427.1 MB, free: 3.691 MB / 346.7 MB Warning: Assuming fixed start value for the following 41 variables: Controller.satLOW:DISCRETE(fixed = false ) "The CS signal saturated at CSmin" type: Boolean Controller.satHI:DISCRETE(fixed = false ) "The CS signal saturated at CSmax" type: Boolean Controller.cs:DISCRETE(fixed = false protected = true ) type: Real Controller.dcs:DISCRETE(fixed = false protected = true ) type: Real Controller.dd:DISCRETE(fixed = false protected = true ) type: Real Controller.d:DISCRETE(fixed = false protected = true ) type: Real Controller.di:DISCRETE(fixed = false protected = true ) type: Real Controller.dp:DISCRETE(fixed = false protected = true ) type: Real Controller.dpv:DISCRETE(fixed = false protected = true ) type: Real Controller.dsp:DISCRETE(fixed = false protected = true ) type: Real Controller.pv:DISCRETE(fixed = false protected = true ) type: Real Controller.sp:DISCRETE(fixed = false protected = true ) type: Real ControllerTDOe.dold:DISCRETE(fixed = false protected = true ) type: Real ControllerTDOe.cso:DISCRETE(fixed = false protected = true ) type: Real ControllerTDOe.pvo:DISCRETE(fixed = false protected = true ) type: Real ControllerTDOe.spo:DISCRETE(fixed = false protected = true ) type: Real ControllerTDOe.satLOW:DISCRETE(fixed = false ) "The CS signal saturated at CSmin" type: Boolean ControllerTDOe.satHI:DISCRETE(fixed = false ) "The CS signal saturated at CSmax" type: Boolean ControllerTDOe.cs:DISCRETE(fixed = false ) type: Real ControllerTDOe.dcs:DISCRETE(fixed = false protected = true ) type: Real ControllerTDOe.dd:DISCRETE(fixed = false protected = true ) type: Real ControllerTDOe.d:DISCRETE(fixed = false protected = true ) type: Real ControllerTDOe.di:DISCRETE(fixed = false protected = true ) type: Real ControllerTDOe.dp:DISCRETE(fixed = false protected = true ) type: Real ControllerTDOe.dpv:DISCRETE(fixed = false protected = true ) type: Real ControllerTDOe.dsp:DISCRETE(fixed = false protected = true ) type: Real ControllerTDOe.pv:DISCRETE(fixed = false protected = true ) type: Real ControllerTDOe.sp:DISCRETE(fixed = false protected = true ) type: Real ControllerTDOe.counter:DISCRETE(fixed = false ) type: Real Process.w:VARIABLE(protected = true ) "proper part of the output" type: Real Process.U[2]:VARIABLE(protected = true ) type: Real [2] ControllerTDOe.CS:DISCRETE(fixed = false ) "Control signal" type: Real ProcessTDOe.Y[3]:VARIABLE(protected = true ) type: Real [3] ProcessTDOe.U[2]:VARIABLE(protected = true ) type: Real [2] ProcessTDOe.w:VARIABLE(protected = true ) "proper part of the output" type: Real Controller.CS:DISCRETE(fixed = false ) "Control signal" type: Real Process.Y[3]:VARIABLE(protected = true ) type: Real [3] ControllerTDOe.nextEventTime:DISCRETE(fixed = false protected = true ) type: Real ProcessNoControl.w:VARIABLE(protected = true ) "proper part of the output" type: Real ProcessNoControl.Y[3]:VARIABLE(protected = true ) type: Real [3] ProcessNoControl.U[2]:VARIABLE(protected = true ) type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 75 ($PRE.Controller.satLOW,Controller.satLOW,$PRE.Controller.satHI,Controller.satHI,$PRE.Controller.cs,Controller.cs,$PRE.Controller.dcs,Controller.dcs,$PRE.Controller.dd,Controller.dd,$PRE.Controller.d,Controller.d,$PRE.Controller.di,Controller.di,$PRE.Controller.dp,Controller.dp,$PRE.Controller.dpv,Controller.dpv,$PRE.Controller.dsp,Controller.dsp,$PRE.Controller.pv,Controller.pv,$PRE.Controller.sp,Controller.sp,$PRE.ControllerTDOe.dold,ControllerTDOe.dold,$PRE.ControllerTDOe.cso,ControllerTDOe.cso,$PRE.ControllerTDOe.pvo,ControllerTDOe.pvo,$PRE.ControllerTDOe.spo,ControllerTDOe.spo,$PRE.ControllerTDOe.satLOW,ControllerTDOe.satLOW,$PRE.ControllerTDOe.satHI,ControllerTDOe.satHI,$PRE.ControllerTDOe.cs,ControllerTDOe.cs,$PRE.ControllerTDOe.dcs,ControllerTDOe.dcs,$PRE.ControllerTDOe.dd,ControllerTDOe.dd,$PRE.ControllerTDOe.d,ControllerTDOe.d,$PRE.ControllerTDOe.di,ControllerTDOe.di,$PRE.ControllerTDOe.dp,ControllerTDOe.dp,$PRE.ControllerTDOe.dpv,ControllerTDOe.dpv,$PRE.ControllerTDOe.dsp,ControllerTDOe.dsp,$PRE.ControllerTDOe.pv,ControllerTDOe.pv,$PRE.ControllerTDOe.sp,ControllerTDOe.sp,$PRE.ControllerTDOe.counter,ControllerTDOe.counter,$whenCondition3,$PRE.ControllerTDOe.CS,ControllerTDOe.CS,$PRE.Controller.CS,Controller.CS,$whenCondition1,$whenCondition2,$PRE.ControllerTDOe.nextEventTime,ControllerTDOe.nextEventTime,Controller.Fdec_in,Controller.Finc_in,Controller.MAN_in,Controller.TS_in,ControllerTDOe.Fdec_in,ControllerTDOe.Finc_in,ControllerTDOe.MAN_in,ControllerTDOe.TS_in) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 111 * Array equations: 0 * Algorithm blocks: 2 * 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.0006202/0.5957, allocations: 344.6 kB / 427.4 MB, free: 3.363 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001382/0.5958, allocations: 63.39 kB / 427.5 MB, free: 3.301 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001463/0.596, allocations: 44.27 kB / 427.5 MB, free: 3.27 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.265e-06/0.596, allocations: 4 kB / 427.6 MB, free: 3.266 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.596, allocations: 0 / 427.6 MB, free: 3.266 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.777e-06/0.596, allocations: 3.984 kB / 427.6 MB, free: 3.262 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007425/0.5968, allocations: 499.7 kB / 428 MB, free: 2.816 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-06/0.5968, allocations: 0 / 428 MB, free: 2.816 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006012/0.5974, allocations: 63.77 kB / 428.1 MB, free: 2.758 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.764e-06/0.5974, allocations: 0 / 428.1 MB, free: 2.758 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.757e-05/0.5975, allocations: 27.88 kB / 428.1 MB, free: 2.734 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.5976, allocations: 0 / 428.1 MB, free: 2.734 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.5976, allocations: 0 / 428.1 MB, free: 2.734 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00281/0.6004, allocations: 1.237 MB / 429.4 MB, free: 1.82 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000156/0.6006, allocations: 128.4 kB / 429.5 MB, free: 1.676 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001665/0.6008, allocations: 27.56 kB / 429.5 MB, free: 1.656 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004802/0.6013, allocations: 39.91 kB / 429.6 MB, free: 1.621 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001113/0.6014, allocations: 23.89 kB / 429.6 MB, free: 1.602 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.294e-05/0.6015, allocations: 27.86 kB / 429.6 MB, free: 1.578 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004869/0.602, allocations: 290.3 kB / 429.9 MB, free: 1.348 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.602, allocations: 0 / 429.9 MB, free: 1.348 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008687/0.6029, allocations: 127.1 kB / 430 MB, free: 1.238 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (ProcessTDOe.Y[3],ProcessTDOe.U[2],ProcessTDOe.w,Process.Y[3],Process.U[2],Process.w,ProcessNoControl.Y[3],ProcessNoControl.U[2],ProcessNoControl.w) * Number of discrete variables: 35 ($whenCondition1,$whenCondition2,$whenCondition3,ControllerTDOe.CS,ControllerTDOe.satHI,ControllerTDOe.satLOW,ControllerTDOe.counter,ControllerTDOe.cs,ControllerTDOe.sp,ControllerTDOe.dsp,ControllerTDOe.pv,ControllerTDOe.dpv,ControllerTDOe.dp,ControllerTDOe.di,ControllerTDOe.d,ControllerTDOe.dd,ControllerTDOe.dcs,ControllerTDOe.spo,ControllerTDOe.pvo,ControllerTDOe.dold,ControllerTDOe.cso,ControllerTDOe.nextEventTime,Controller.CS,Controller.satHI,Controller.satLOW,Controller.sp,Controller.dsp,Controller.pv,Controller.dpv,Controller.dp,Controller.di,Controller.d,Controller.dd,Controller.cs,Controller.dcs) * Number of discrete states: 35 ($whenCondition2,ControllerTDOe.nextEventTime,ControllerTDOe.CS,ControllerTDOe.dold,ControllerTDOe.cso,ControllerTDOe.pvo,ControllerTDOe.spo,ControllerTDOe.satLOW,ControllerTDOe.satHI,ControllerTDOe.cs,ControllerTDOe.dcs,ControllerTDOe.dd,ControllerTDOe.d,ControllerTDOe.di,ControllerTDOe.dp,ControllerTDOe.dpv,ControllerTDOe.dsp,ControllerTDOe.pv,ControllerTDOe.sp,ControllerTDOe.counter,$whenCondition1,Controller.CS,Controller.satLOW,Controller.satHI,Controller.cs,Controller.dcs,Controller.dd,Controller.d,Controller.di,Controller.dp,Controller.dpv,Controller.dsp,Controller.pv,Controller.sp,$whenCondition3) * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 2 * 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 Backend phase and start with SimCode phase: time 0.003354/0.6063, allocations: 1.832 MB / 431.9 MB, free: 15.73 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001742/0.6081, allocations: 0.6407 MB / 432.5 MB, free: 15.21 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/0.6081, allocations: 0 / 432.5 MB, free: 15.21 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00195/0.6101, allocations: 1.456 MB / 433.9 MB, free: 14.7 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003498/0.6105, allocations: 37.88 kB / 434 MB, free: 14.68 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002934/0.6135, allocations: 0.9615 MB / 434.9 MB, free: 13.82 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005613/0.6141, allocations: 0.8861 MB / 435.8 MB, free: 12.91 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003293/0.6144, allocations: 84.69 kB / 435.9 MB, free: 12.83 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002908/0.6147, allocations: 171.7 kB / 436.1 MB, free: 12.79 MB / 362.7 MB Notification: Performance of SimCode: time 9.91e-07/0.6148, allocations: 3.938 kB / 436.1 MB, free: 12.78 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03799/0.6528, allocations: 8.526 MB / 444.6 MB, free: 4.355 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003132/0.6531, allocations: 183.9 kB / 444.8 MB, free: 4.129 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.701/3.354, allocations: 0 / 444.8 MB, free: 4.129 MB / 362.7 MB