Running command: "" <> buildModelFMU(IndustrialControlSystems.Controllers.Digital.Examples.TestPID_TDO,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Digital_Examples_TestPID_TDO",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(IndustrialControlSystems): time 2.19/2.19, allocations: 216.8 MB / 229 MB, free: 15.11 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.335e-05/4.354e-05, allocations: 8 kB / 282 MB, free: 10.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.1168, allocations: 50 MB / 332 MB, free: 8.766 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4367/0.5535, allocations: 79.46 MB / 411.4 MB, free: 0.7227 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003232/0.5539, allocations: 75.89 kB / 411.5 MB, free: 0.6797 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02506/0.579, allocations: 5.493 MB / 417 MB, free: 11.84 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.5791, allocations: 0 / 417 MB, free: 11.84 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.734e-05/0.5791, allocations: 19.98 kB / 417 MB, free: 11.82 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.001533/0.5807, allocations: 0.7498 MB / 417.8 MB, free: 11.06 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.771e-05/0.5807, allocations: 16.03 kB / 417.8 MB, free: 11.04 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001607/0.5809, allocations: 87.77 kB / 417.9 MB, free: 10.97 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001725/0.5811, allocations: 70.62 kB / 417.9 MB, free: 10.91 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001383/0.5825, allocations: 432.9 kB / 418.4 MB, free: 10.48 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.916e-05/0.5826, allocations: 34.77 kB / 418.4 MB, free: 10.45 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001367/0.5827, allocations: 62.22 kB / 418.5 MB, free: 10.41 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001413/0.5842, allocations: 0.5319 MB / 419 MB, free: 10.02 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.593e-05/0.5842, allocations: 3.984 kB / 419 MB, free: 10.02 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.827e-05/0.5843, allocations: 27.83 kB / 419 MB, free: 10 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.382e-05/0.5843, allocations: 8 kB / 419 MB, free: 9.992 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009664/0.5853, allocations: 339.8 kB / 419.4 MB, free: 9.777 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003915/0.5892, allocations: 1.361 MB / 420.7 MB, free: 8.609 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001141/0.5904, allocations: 0.6238 MB / 421.4 MB, free: 8.371 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000751/0.5912, allocations: 0.575 MB / 421.9 MB, free: 8.188 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.658e-05/0.5913, allocations: 4 kB / 421.9 MB, free: 8.184 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006818/0.592, allocations: 334.1 kB / 422.3 MB, free: 7.91 MB / 346.7 MB Notification: Performance of pre-optimization done (n=50): time 3.406e-06/0.592, allocations: 0 / 422.3 MB, free: 7.91 MB / 346.7 MB Notification: Performance of matching and sorting (n=50): time 0.001924/0.5939, allocations: 0.7762 MB / 423 MB, free: 7.289 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000161/0.5941, allocations: 202.2 kB / 423.2 MB, free: 7.066 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007125/0.5948, allocations: 395.4 kB / 423.6 MB, free: 6.75 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.516e-05/0.5949, allocations: 45.2 kB / 423.7 MB, free: 6.711 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002391/0.5952, allocations: 256.3 kB / 423.9 MB, free: 6.52 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001716/0.5954, allocations: 149.7 kB / 424.1 MB, free: 6.398 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.136e-05/0.5954, allocations: 17.38 kB / 424.1 MB, free: 6.391 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001864/0.5956, allocations: 373.3 kB / 424.4 MB, free: 6.043 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003555/0.596, allocations: 126.5 kB / 424.6 MB, free: 5.961 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006437/0.5966, allocations: 488.1 kB / 425 MB, free: 5.379 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006367/0.5973, allocations: 286 kB / 425.3 MB, free: 5.137 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.249e-05/0.5973, allocations: 4 kB / 425.3 MB, free: 5.133 MB / 346.7 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.001957/0.5993, allocations: 0.8208 MB / 426.1 MB, free: 4.453 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.753e-05/0.5994, allocations: 65.56 kB / 426.2 MB, free: 4.383 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.549e-05/0.5994, allocations: 12 kB / 426.2 MB, free: 4.371 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.655e-05/0.5995, allocations: 20 kB / 426.2 MB, free: 4.352 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009692/0.6005, allocations: 158.5 kB / 426.4 MB, free: 4.203 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.841e-05/0.6005, allocations: 27.86 kB / 426.4 MB, free: 4.176 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005586/0.6011, allocations: 92.7 kB / 426.5 MB, free: 4.098 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.809e-05/0.6012, allocations: 47.34 kB / 426.6 MB, free: 4.059 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 ControllerTDO.StepsUp:DISCRETE(fixed = false protected = true ) type: Real ControllerTDO.dold:DISCRETE(fixed = false protected = true ) type: Real ControllerTDO.cso:DISCRETE(fixed = false protected = true ) type: Real ControllerTDO.pvo:DISCRETE(fixed = false protected = true ) type: Real ControllerTDO.spo:DISCRETE(fixed = false protected = true ) type: Real ControllerTDO.satLOW:DISCRETE(fixed = false ) "The CS signal saturated at CSmin" type: Boolean ControllerTDO.satHI:DISCRETE(fixed = false ) "The CS signal saturated at CSmax" type: Boolean ControllerTDO.cs:DISCRETE(fixed = false ) type: Real ControllerTDO.dcs:DISCRETE(fixed = false protected = true ) type: Real ControllerTDO.dd:DISCRETE(fixed = false protected = true ) type: Real ControllerTDO.d:DISCRETE(fixed = false protected = true ) type: Real ControllerTDO.di:DISCRETE(fixed = false protected = true ) type: Real ControllerTDO.dp:DISCRETE(fixed = false protected = true ) type: Real ControllerTDO.dpv:DISCRETE(fixed = false protected = true ) type: Real ControllerTDO.dsp:DISCRETE(fixed = false protected = true ) type: Real ControllerTDO.pv:DISCRETE(fixed = false protected = true ) type: Real ControllerTDO.sp:DISCRETE(fixed = false protected = true ) type: Real ControllerTDO.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] ControllerTDO.CS:DISCRETE(fixed = false ) "Control signal" type: Real ProcessTDO.Y[3]:VARIABLE(protected = true ) type: Real [3] ProcessTDO.U[2]:VARIABLE(protected = true ) type: Real [2] ProcessTDO.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] 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: 56 * Number of states: 0 () * Number of discrete variables: 74 ($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.ControllerTDO.StepsUp,ControllerTDO.StepsUp,$PRE.ControllerTDO.dold,ControllerTDO.dold,$PRE.ControllerTDO.cso,ControllerTDO.cso,$PRE.ControllerTDO.pvo,ControllerTDO.pvo,$PRE.ControllerTDO.spo,ControllerTDO.spo,$PRE.ControllerTDO.satLOW,ControllerTDO.satLOW,$PRE.ControllerTDO.satHI,ControllerTDO.satHI,$PRE.ControllerTDO.cs,ControllerTDO.cs,$PRE.ControllerTDO.dcs,ControllerTDO.dcs,$PRE.ControllerTDO.dd,ControllerTDO.dd,$PRE.ControllerTDO.d,ControllerTDO.d,$PRE.ControllerTDO.di,ControllerTDO.di,$PRE.ControllerTDO.dp,ControllerTDO.dp,$PRE.ControllerTDO.dpv,ControllerTDO.dpv,$PRE.ControllerTDO.dsp,ControllerTDO.dsp,$PRE.ControllerTDO.pv,ControllerTDO.pv,$PRE.ControllerTDO.sp,ControllerTDO.sp,$PRE.ControllerTDO.counter,ControllerTDO.counter,$whenCondition2,$PRE.ControllerTDO.CS,ControllerTDO.CS,$PRE.Controller.CS,Controller.CS,$whenCondition1,Controller.Fdec_in,Controller.Finc_in,Controller.MAN_in,Controller.TS_in,ControllerTDO.Fdec_in,ControllerTDO.Finc_in,ControllerTDO.MAN_in,ControllerTDO.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.000648/0.6018, allocations: 338.8 kB / 426.9 MB, free: 3.734 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001623/0.602, allocations: 71.28 kB / 427 MB, free: 3.664 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001481/0.6022, allocations: 44.83 kB / 427 MB, free: 3.633 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.616e-06/0.6022, allocations: 4 kB / 427 MB, free: 3.629 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.6022, allocations: 3.938 kB / 427 MB, free: 3.625 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.6022, allocations: 0 / 427 MB, free: 3.625 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007365/0.603, allocations: 486.6 kB / 427.5 MB, free: 3.191 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.603, allocations: 0 / 427.5 MB, free: 3.191 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000617/0.6036, allocations: 51.95 kB / 427.5 MB, free: 3.141 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.995e-06/0.6037, allocations: 4 kB / 427.5 MB, free: 3.137 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.377e-05/0.6038, allocations: 33 kB / 427.6 MB, free: 3.113 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.508e-06/0.6038, allocations: 0 / 427.6 MB, free: 3.113 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.264e-06/0.6038, allocations: 7.938 kB / 427.6 MB, free: 3.105 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002814/0.6066, allocations: 1.188 MB / 428.8 MB, free: 2.227 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001657/0.6068, allocations: 132.3 kB / 428.9 MB, free: 2.078 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001646/0.607, allocations: 33.73 kB / 428.9 MB, free: 2.055 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004736/0.6075, allocations: 35.34 kB / 429 MB, free: 2.023 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.846e-05/0.6076, allocations: 15.42 kB / 429 MB, free: 2.012 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.014e-05/0.6077, allocations: 27.86 kB / 429 MB, free: 1.988 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005094/0.6082, allocations: 292 kB / 429.3 MB, free: 1.754 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.6082, allocations: 0 / 429.3 MB, free: 1.754 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008875/0.6091, allocations: 124.5 kB / 429.4 MB, free: 1.648 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (ProcessTDO.Y[3],ProcessTDO.U[2],ProcessTDO.w,Process.Y[3],Process.U[2],Process.w,ProcessNoControl.Y[3],ProcessNoControl.U[2],ProcessNoControl.w) * Number of discrete variables: 34 ($whenCondition1,$whenCondition2,ControllerTDO.CS,ControllerTDO.satHI,ControllerTDO.satLOW,ControllerTDO.counter,ControllerTDO.cs,ControllerTDO.sp,ControllerTDO.dsp,ControllerTDO.pv,ControllerTDO.dpv,ControllerTDO.dp,ControllerTDO.di,ControllerTDO.d,ControllerTDO.dd,ControllerTDO.dcs,ControllerTDO.spo,ControllerTDO.pvo,ControllerTDO.dold,ControllerTDO.cso,ControllerTDO.StepsUp,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: 34 (ControllerTDO.CS,ControllerTDO.StepsUp,ControllerTDO.dold,ControllerTDO.cso,ControllerTDO.pvo,ControllerTDO.spo,ControllerTDO.satLOW,ControllerTDO.satHI,ControllerTDO.cs,ControllerTDO.dcs,ControllerTDO.dd,ControllerTDO.d,ControllerTDO.di,ControllerTDO.dp,ControllerTDO.dpv,ControllerTDO.dsp,ControllerTDO.pv,ControllerTDO.sp,ControllerTDO.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,$whenCondition2) * 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.003243/0.6124, allocations: 1.792 MB / 431.2 MB, free: 168 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001571/0.614, allocations: 0.6342 MB / 431.8 MB, free: 15.65 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.6141, allocations: 0 / 431.8 MB, free: 15.65 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001568/0.6157, allocations: 1.272 MB / 433.1 MB, free: 15.18 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003591/0.6161, allocations: 31.19 kB / 433.1 MB, free: 15.17 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003168/0.6193, allocations: 0.9552 MB / 434.1 MB, free: 14.31 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005815/0.6199, allocations: 0.8818 MB / 435 MB, free: 13.41 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003961/0.6203, allocations: 88.31 kB / 435.1 MB, free: 13.32 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002904/0.6206, allocations: 167.9 kB / 435.2 MB, free: 13.27 MB / 362.7 MB Notification: Performance of SimCode: time 1.463e-06/0.6206, allocations: 0 / 435.2 MB, free: 13.27 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03626/0.6569, allocations: 8.375 MB / 443.6 MB, free: 4.996 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003164/0.6573, allocations: 186.6 kB / 443.8 MB, free: 4.766 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.747/3.404, allocations: 0 / 443.8 MB, free: 4.766 MB / 362.7 MB