Running command: "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestPD_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_tracking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(IndustrialControlSystems): time 2.116/2.116, allocations: 216.8 MB / 229 MB, free: 15.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.778e-05/3.782e-05, allocations: 4 kB / 282 MB, free: 10.87 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1109, allocations: 49.99 MB / 332 MB, free: 8.777 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4483/0.5593, allocations: 83.7 MB / 415.7 MB, free: 12.53 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003022/0.5597, allocations: 74.53 kB / 415.8 MB, free: 12.5 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05423/0.6139, allocations: 10.72 MB / 426.5 MB, free: 3.391 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.614, allocations: 0 / 426.5 MB, free: 3.391 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.447e-05/0.6141, allocations: 19.98 kB / 426.5 MB, free: 3.371 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.002206/0.6163, allocations: 0.778 MB / 427.3 MB, free: 2.57 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.66e-05/0.6164, allocations: 8.031 kB / 427.3 MB, free: 2.562 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002136/0.6166, allocations: 75.98 kB / 427.3 MB, free: 2.5 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002175/0.6168, allocations: 55.34 kB / 427.4 MB, free: 2.445 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001559/0.6184, allocations: 462.5 kB / 427.9 MB, free: 1.996 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.062e-05/0.6185, allocations: 24.41 kB / 427.9 MB, free: 1.98 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001254/0.6186, allocations: 42.03 kB / 427.9 MB, free: 1.953 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00111/0.6197, allocations: 435.1 kB / 428.3 MB, free: 1.602 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.313e-05/0.6198, allocations: 8 kB / 428.3 MB, free: 1.594 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.041e-05/0.6199, allocations: 22.39 kB / 428.4 MB, free: 1.582 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.863e-05/0.62, allocations: 8 kB / 428.4 MB, free: 1.574 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008893/0.6208, allocations: 293.2 kB / 428.7 MB, free: 1.367 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004469/0.6254, allocations: 1.603 MB / 430.3 MB, free: 15.93 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006376/0.626, allocations: 242.8 kB / 430.5 MB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003617/0.6264, allocations: 142.5 kB / 430.6 MB, free: 15.66 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.744e-05/0.6265, allocations: 8.219 kB / 430.7 MB, free: 15.65 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005657/0.6271, allocations: 240.6 kB / 430.9 MB, free: 15.45 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 3.737e-06/0.6271, allocations: 0 / 430.9 MB, free: 15.45 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.00124/0.6284, allocations: 438.8 kB / 431.3 MB, free: 15.09 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.111e-05/0.6285, allocations: 115 kB / 431.4 MB, free: 14.95 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001045/0.6296, allocations: 471.9 kB / 431.9 MB, free: 14.57 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001177/0.6297, allocations: 29.39 kB / 431.9 MB, free: 14.54 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002741/0.63, allocations: 276 kB / 432.2 MB, free: 14.35 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001823/0.6302, allocations: 113.6 kB / 432.3 MB, free: 14.26 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.084e-05/0.6302, allocations: 3.875 kB / 432.3 MB, free: 14.26 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002022/0.6305, allocations: 374.4 kB / 432.7 MB, free: 13.91 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004274/0.6309, allocations: 139.2 kB / 432.8 MB, free: 13.81 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005097/0.6314, allocations: 278.8 kB / 433.1 MB, free: 13.54 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005408/0.632, allocations: 224.1 kB / 433.3 MB, free: 13.36 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.608e-06/0.632, allocations: 4 kB / 433.3 MB, free: 13.35 MB / 362.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001678/0.6337, allocations: 0.6058 MB / 433.9 MB, free: 12.86 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.161e-05/0.6338, allocations: 37.69 kB / 433.9 MB, free: 12.81 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.398e-05/0.6339, allocations: 4.531 kB / 433.9 MB, free: 12.81 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.891e-05/0.6339, allocations: 12 kB / 434 MB, free: 12.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000883/0.6348, allocations: 111 kB / 434.1 MB, free: 12.69 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.723e-05/0.6349, allocations: 11.98 kB / 434.1 MB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005263/0.6354, allocations: 54.33 kB / 434.1 MB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.302e-05/0.6355, allocations: 31.02 kB / 434.2 MB, free: 12.61 MB / 362.7 MB Warning: Assuming fixed start value for the following 10 variables: processTrack.w:VARIABLE(protected = true ) "proper part of the output" type: Real processTrack.U[3]:VARIABLE(protected = true ) type: Real [3] processTrack.U[2]:VARIABLE(protected = true ) type: Real [3] processTrack.Y[4]:VARIABLE(protected = true ) type: Real [4] process.Y[3]:VARIABLE(protected = true ) type: Real [4] process.Y[4]:VARIABLE(protected = true ) type: Real [4] process.U[2]:VARIABLE(protected = true ) type: Real [3] process.U[3]:VARIABLE(protected = true ) type: Real [3] process.w:VARIABLE(protected = true ) "proper part of the output" type: Real processTrack.Y[3]:VARIABLE(protected = true ) type: Real [4] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition2,$PRE.TSsignal.combiTimeTable.nextTimeEvent,$whenCondition1,R_track.TS,TSsignal.combiTimeTable.nextTimeEvent,$PRE.TSsignal.combiTimeTable.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEventScaled,TrackRef.a,TrackRef.b,TrackRef.last,$PRE.TrackRef.nextEvent,TrackRef.nextEvent,TrackRef.nextEventScaled,R.TS_in,R_track.ATreq_in,R.ATreq_in) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 1 * 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.0003289/0.6359, allocations: 182.4 kB / 434.3 MB, free: 12.43 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001745/0.636, allocations: 55.34 kB / 434.4 MB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001448/0.6375, allocations: 0.4959 MB / 434.9 MB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.299e-05/0.6376, allocations: 4 kB / 434.9 MB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.775e-06/0.6376, allocations: 3.938 kB / 434.9 MB, free: 11.97 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.6376, allocations: 4 kB / 434.9 MB, free: 11.97 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008913/0.6385, allocations: 464.1 kB / 435.4 MB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.979e-06/0.6386, allocations: 8 kB / 435.4 MB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008867/0.6395, allocations: 70.77 kB / 435.4 MB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.388e-06/0.6395, allocations: 0 / 435.4 MB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001084/0.6396, allocations: 22.86 kB / 435.5 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.919e-06/0.6397, allocations: 0 / 435.5 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.6397, allocations: 0 / 435.5 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001807/0.6415, allocations: 0.6774 MB / 436.1 MB, free: 10.91 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002393/0.6418, allocations: 131.6 kB / 436.3 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000146/0.6419, allocations: 19.42 kB / 436.3 MB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003545/0.6423, allocations: 19.48 kB / 436.3 MB, free: 10.74 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001259/0.6424, allocations: 19.28 kB / 436.3 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.671e-05/0.6425, allocations: 15.5 kB / 436.3 MB, free: 10.71 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007166/0.6433, allocations: 359.9 kB / 436.7 MB, free: 10.44 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.6433, allocations: 4 kB / 436.7 MB, free: 10.43 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008374/0.6441, allocations: 138.5 kB / 436.8 MB, free: 10.31 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 12 (R.Fin,R_track.Fin,process.Y[3],process.Y[4],process.U[2],process.U[3],process.w,processTrack.Y[3],processTrack.Y[4],processTrack.U[2],processTrack.U[3],processTrack.w) * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,R_track.TS,TSsignal.combiTimeTable.nextTimeEvent,TSsignal.combiTimeTable.nextTimeEventScaled,TrackRef.a,TrackRef.b,TrackRef.last,TrackRef.nextEvent,TrackRef.nextEventScaled) * Number of discrete states: 8 (TrackRef.nextEvent,TrackRef.last,TrackRef.nextEventScaled,TrackRef.b,TrackRef.a,$whenCondition1,TSsignal.combiTimeTable.nextTimeEvent,TSsignal.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * 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.003324/0.6475, allocations: 1.531 MB / 438.4 MB, free: 8.965 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001293/0.6488, allocations: 465.5 kB / 438.8 MB, free: 8.613 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.119e-06/0.6489, allocations: 0 / 438.8 MB, free: 8.613 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005594/0.6494, allocations: 251.8 kB / 439.1 MB, free: 8.418 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006603/0.6501, allocations: 66.97 kB / 439.1 MB, free: 8.375 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002884/0.653, allocations: 0.9871 MB / 440.1 MB, free: 7.457 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006565/0.6538, allocations: 0.8882 MB / 441 MB, free: 6.551 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0005875/0.6544, allocations: 103.3 kB / 441.1 MB, free: 6.445 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003633/0.6548, allocations: 175.6 kB / 441.3 MB, free: 6.395 MB / 362.7 MB Notification: Performance of SimCode: time 1.563e-06/0.6548, allocations: 0 / 441.3 MB, free: 6.395 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04946/0.7042, allocations: 9.66 MB / 450.9 MB, free: 12.81 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003523/0.7047, allocations: 218.8 kB / 451.1 MB, free: 12.58 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.756/3.461, allocations: 0 / 451.1 MB, free: 12.58 MB / 378.7 MB