Running command: "" <> buildModelFMU(IndustrialControlSystems.Controllers.Digital.Examples.TestPID,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Digital_Examples_TestPID",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(IndustrialControlSystems): time 2.211/2.211, allocations: 216.8 MB / 229 MB, free: 15.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.473e-05/3.475e-05, allocations: 4 kB / 282 MB, free: 10.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1169, allocations: 49.99 MB / 332 MB, free: 8.762 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4537/0.5707, allocations: 84.21 MB / 416.2 MB, free: 11.98 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003214/0.5711, allocations: 83.58 kB / 416.3 MB, free: 11.93 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1047/0.6758, allocations: 22.55 MB / 438.8 MB, free: 8.836 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.225e-06/0.6759, allocations: 0 / 438.8 MB, free: 8.836 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001068/0.676, allocations: 28.09 kB / 438.9 MB, free: 8.809 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 111 * Number of variables: 111 Notification: Performance of Generate backend data structure: time 0.002878/0.6789, allocations: 1.178 MB / 440 MB, free: 7.605 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.714e-05/0.679, allocations: 8.031 kB / 440 MB, free: 7.598 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002479/0.6792, allocations: 88.33 kB / 440.1 MB, free: 7.527 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000398/0.6796, allocations: 102.8 kB / 440.2 MB, free: 7.426 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00219/0.6818, allocations: 0.6564 MB / 440.9 MB, free: 6.82 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.516e-05/0.6819, allocations: 31.28 kB / 440.9 MB, free: 6.797 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001559/0.6821, allocations: 50.47 kB / 441 MB, free: 6.758 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001543/0.6836, allocations: 0.5972 MB / 441.6 MB, free: 6.293 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.847e-05/0.6837, allocations: 3.5 kB / 441.6 MB, free: 6.293 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.139e-05/0.6838, allocations: 22.58 kB / 441.6 MB, free: 6.281 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.779e-05/0.6838, allocations: 12 kB / 441.6 MB, free: 6.27 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001082/0.6849, allocations: 389.2 kB / 442 MB, free: 6.008 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004612/0.6895, allocations: 1.593 MB / 443.6 MB, free: 4.711 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001422/0.691, allocations: 0.6847 MB / 444.3 MB, free: 4.375 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008944/0.6919, allocations: 0.5595 MB / 444.8 MB, free: 4.141 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.454e-05/0.692, allocations: 7.984 kB / 444.8 MB, free: 4.133 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001049/0.693, allocations: 495.6 kB / 445.3 MB, free: 3.73 MB / 362.7 MB Notification: Performance of pre-optimization done (n=65): time 3.627e-06/0.6931, allocations: 0 / 445.3 MB, free: 3.73 MB / 362.7 MB Notification: Performance of matching and sorting (n=65): time 0.00271/0.6958, allocations: 0.9967 MB / 446.3 MB, free: 2.914 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002025/0.696, allocations: 296.2 kB / 446.6 MB, free: 2.57 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001716/0.6977, allocations: 0.7802 MB / 447.4 MB, free: 1.961 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001164/0.6979, allocations: 40.95 kB / 447.4 MB, free: 1.922 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003822/0.6983, allocations: 361.3 kB / 447.8 MB, free: 1.734 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002572/0.6986, allocations: 193.3 kB / 448 MB, free: 1.57 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.181e-05/0.6986, allocations: 14.19 kB / 448 MB, free: 1.566 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001599/0.6988, allocations: 343.5 kB / 448.3 MB, free: 1.238 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005791/0.6994, allocations: 211.2 kB / 448.5 MB, free: 1.094 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008121/0.7002, allocations: 474.9 kB / 449 MB, free: 0.6016 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007515/0.701, allocations: 352 kB / 449.3 MB, free: 324 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.839e-06/0.701, allocations: 4 kB / 449.3 MB, free: 320 kB / 362.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.002631/0.7036, allocations: 0.965 MB / 450.3 MB, free: 15.51 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001045/0.7038, allocations: 93.09 kB / 450.4 MB, free: 15.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.082e-05/0.7038, allocations: 11.94 kB / 450.4 MB, free: 15.39 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.632e-05/0.7039, allocations: 12.66 kB / 450.4 MB, free: 15.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009604/0.7049, allocations: 134.7 kB / 450.5 MB, free: 15.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.232e-05/0.7049, allocations: 15.94 kB / 450.5 MB, free: 15.24 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009132/0.7058, allocations: 89.47 kB / 450.6 MB, free: 15.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001188/0.706, allocations: 42.67 kB / 450.7 MB, free: 15.12 MB / 378.7 MB Warning: Assuming fixed start value for the following 19 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 Process.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] Process.U[2]:VARIABLE(protected = true ) type: Real [2] 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: 29 * Number of states: 0 () * Number of discrete variables: 65 ($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,$whenCondition7,$PRE.TSsignal.combiTimeTable.nextTimeEvent,$whenCondition6,$PRE.ForbinINC.combiTimeTable.nextTimeEvent,$whenCondition5,$PRE.ForbinDEC.combiTimeTable.nextTimeEvent,$whenCondition4,$PRE.man.combiTimeTable.nextTimeEvent,$whenCondition3,deltaCS.a,deltaCS.b,deltaCS.last,$PRE.deltaCS.nextEvent,deltaCS.nextEvent,deltaCS.nextEventScaled,Controller.MAN,man.combiTimeTable.nextTimeEvent,$PRE.man.combiTimeTable.nextTimeEventScaled,man.combiTimeTable.nextTimeEventScaled,Controller.Fdec,ForbinDEC.combiTimeTable.nextTimeEvent,$PRE.ForbinDEC.combiTimeTable.nextTimeEventScaled,ForbinDEC.combiTimeTable.nextTimeEventScaled,Controller.Finc,ForbinINC.combiTimeTable.nextTimeEvent,$PRE.ForbinINC.combiTimeTable.nextTimeEventScaled,ForbinINC.combiTimeTable.nextTimeEventScaled,$whenCondition2,TrackRef.a,TrackRef.b,TrackRef.last,$PRE.TrackRef.nextEvent,TrackRef.nextEvent,TrackRef.nextEventScaled,Controller.TS,TSsignal.combiTimeTable.nextTimeEvent,$PRE.TSsignal.combiTimeTable.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEventScaled,$PRE.Controller.CS,Controller.CS,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 3 * 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.0005674/0.7065, allocations: 326.1 kB / 451 MB, free: 14.82 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002789/0.7068, allocations: 102.9 kB / 451.1 MB, free: 14.71 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002853/0.7097, allocations: 1.135 MB / 452.2 MB, free: 13.83 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.098e-05/0.7097, allocations: 4 kB / 452.2 MB, free: 13.82 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.233e-06/0.7098, allocations: 0 / 452.2 MB, free: 13.82 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.128e-06/0.7098, allocations: 0 / 452.2 MB, free: 13.82 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001322/0.7111, allocations: 0.7082 MB / 452.9 MB, free: 13.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.7111, allocations: 4 kB / 452.9 MB, free: 13.22 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006501/0.7118, allocations: 71.77 kB / 453 MB, free: 13.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.546e-06/0.7118, allocations: 0 / 453 MB, free: 13.16 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001059/0.7119, allocations: 34.72 kB / 453.1 MB, free: 13.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.881e-06/0.712, allocations: 0 / 453.1 MB, free: 13.13 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.712, allocations: 0 / 453.1 MB, free: 13.13 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003821/0.7158, allocations: 1.545 MB / 454.6 MB, free: 11.81 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003628/0.7162, allocations: 191.9 kB / 454.8 MB, free: 11.6 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002601/0.7165, allocations: 32 kB / 454.8 MB, free: 11.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007195/0.7172, allocations: 56.08 kB / 454.9 MB, free: 11.52 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001759/0.7174, allocations: 47.94 kB / 454.9 MB, free: 11.47 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001166/0.7175, allocations: 35.98 kB / 455 MB, free: 11.43 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001336/0.7189, allocations: 0.5967 MB / 455.5 MB, free: 10.83 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.7189, allocations: 0 / 455.5 MB, free: 10.83 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001373/0.7203, allocations: 255.6 kB / 455.8 MB, free: 10.58 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (Process.Y[3],Process.U[2],Process.w,ProcessNoControl.Y[3],ProcessNoControl.U[2],ProcessNoControl.w) * Number of discrete variables: 42 ($whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition1,$whenCondition2,$whenCondition3,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,Controller.TS,Controller.MAN,Controller.Finc,Controller.Fdec,TSsignal.combiTimeTable.nextTimeEvent,TSsignal.combiTimeTable.nextTimeEventScaled,TrackRef.a,TrackRef.b,TrackRef.last,TrackRef.nextEvent,TrackRef.nextEventScaled,ForbinINC.combiTimeTable.nextTimeEvent,ForbinINC.combiTimeTable.nextTimeEventScaled,ForbinDEC.combiTimeTable.nextTimeEvent,ForbinDEC.combiTimeTable.nextTimeEventScaled,man.combiTimeTable.nextTimeEvent,man.combiTimeTable.nextTimeEventScaled,deltaCS.a,deltaCS.b,deltaCS.last,deltaCS.nextEvent,deltaCS.nextEventScaled) * Number of discrete states: 35 (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,$whenCondition1,Controller.bias,TrackRef.nextEvent,TrackRef.last,TrackRef.nextEventScaled,TrackRef.b,TrackRef.a,$whenCondition2,deltaCS.nextEvent,deltaCS.last,deltaCS.nextEventScaled,deltaCS.b,deltaCS.a,$whenCondition3,man.combiTimeTable.nextTimeEvent,ForbinDEC.combiTimeTable.nextTimeEvent,ForbinINC.combiTimeTable.nextTimeEvent,TSsignal.combiTimeTable.nextTimeEvent,man.combiTimeTable.nextTimeEventScaled,ForbinDEC.combiTimeTable.nextTimeEventScaled,ForbinINC.combiTimeTable.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 8 * 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.005417/0.7257, allocations: 2.428 MB / 458.2 MB, free: 8.164 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002002/0.7278, allocations: 0.8491 MB / 459.1 MB, free: 7.277 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.7278, allocations: 1.312 kB / 459.1 MB, free: 7.277 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001512/0.7293, allocations: 1.018 MB / 460.1 MB, free: 6.223 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001308/0.7307, allocations: 151.5 kB / 460.2 MB, free: 6.078 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00448/0.7352, allocations: 1.469 MB / 461.7 MB, free: 4.562 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008124/0.736, allocations: 1.016 MB / 462.7 MB, free: 3.52 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006381/0.7367, allocations: 133.5 kB / 462.9 MB, free: 3.387 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006628/0.7373, allocations: 303.3 kB / 463.2 MB, free: 3.09 MB / 378.7 MB Notification: Performance of SimCode: time 1.343e-06/0.7374, allocations: 4 kB / 463.2 MB, free: 3.086 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06434/0.8017, allocations: 17.57 MB / 480.7 MB, free: 1.594 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003794/0.8022, allocations: 214.9 kB / 480.9 MB, free: 1.367 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.212/4.014, allocations: 0 / 480.9 MB, free: 1.367 MB / 394.7 MB