Running command: "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestPD_bias,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_bias",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(IndustrialControlSystems): time 2.073/2.073, allocations: 216.8 MB / 229 MB, free: 15.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.55e-05/3.554e-05, allocations: 5.25 kB / 282 MB, free: 10.87 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.135/0.1351, allocations: 50 MB / 332 MB, free: 8.777 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4488/0.5839, allocations: 80 MB / 412 MB, free: 176 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002836/0.5843, allocations: 76.02 kB / 412.1 MB, free: 136 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03463/0.6189, allocations: 7.311 MB / 419.4 MB, free: 9.824 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.619, allocations: 0 / 419.4 MB, free: 9.824 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.623e-05/0.619, allocations: 20 kB / 419.4 MB, free: 9.805 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: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001866/0.6209, allocations: 0.7459 MB / 420.1 MB, free: 9.043 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.855e-05/0.621, allocations: 8.031 kB / 420.1 MB, free: 9.035 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001382/0.6211, allocations: 77.41 kB / 420.2 MB, free: 8.973 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001541/0.6213, allocations: 59.25 kB / 420.3 MB, free: 8.914 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00112/0.6224, allocations: 445.2 kB / 420.7 MB, free: 8.473 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.238e-05/0.6225, allocations: 28.66 kB / 420.7 MB, free: 8.457 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001152/0.6226, allocations: 53.12 kB / 420.8 MB, free: 8.418 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001208/0.6238, allocations: 0.5061 MB / 421.3 MB, free: 8.016 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.364e-05/0.6239, allocations: 15.84 kB / 421.3 MB, free: 8 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.915e-05/0.624, allocations: 14.88 kB / 421.3 MB, free: 7.996 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.883e-05/0.624, allocations: 16 kB / 421.3 MB, free: 7.98 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001014/0.625, allocations: 367.7 kB / 421.7 MB, free: 7.723 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004662/0.6297, allocations: 1.82 MB / 423.5 MB, free: 6.109 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007989/0.6305, allocations: 267.3 kB / 423.8 MB, free: 5.914 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004086/0.631, allocations: 181.9 kB / 424 MB, free: 5.789 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.023e-05/0.631, allocations: 7.984 kB / 424 MB, free: 5.781 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000597/0.6317, allocations: 257.3 kB / 424.2 MB, free: 5.566 MB / 346.7 MB Notification: Performance of pre-optimization done (n=36): time 3.526e-06/0.6317, allocations: 0 / 424.2 MB, free: 5.566 MB / 346.7 MB Notification: Performance of matching and sorting (n=36): time 0.001214/0.6329, allocations: 460.5 kB / 424.7 MB, free: 5.184 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.211e-05/0.633, allocations: 89.09 kB / 424.8 MB, free: 5.078 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007597/0.6338, allocations: 436.1 kB / 425.2 MB, free: 4.727 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.801e-05/0.6338, allocations: 33.64 kB / 425.2 MB, free: 4.691 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002809/0.6341, allocations: 279 kB / 425.5 MB, free: 4.488 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001573/0.6343, allocations: 137.1 kB / 425.6 MB, free: 4.371 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.42e-05/0.6343, allocations: 11.75 kB / 425.6 MB, free: 4.367 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002088/0.6346, allocations: 369.5 kB / 426 MB, free: 4.02 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004216/0.635, allocations: 159.2 kB / 426.1 MB, free: 3.914 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005724/0.6356, allocations: 330.2 kB / 426.5 MB, free: 3.578 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005767/0.6362, allocations: 252.4 kB / 426.7 MB, free: 3.379 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.03e-05/0.6362, allocations: 7.953 kB / 426.7 MB, free: 3.371 MB / 346.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001695/0.6379, allocations: 0.701 MB / 427.4 MB, free: 2.801 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.824e-05/0.638, allocations: 45.44 kB / 427.5 MB, free: 2.754 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.743e-05/0.638, allocations: 12.03 kB / 427.5 MB, free: 2.742 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.329e-05/0.638, allocations: 8 kB / 427.5 MB, free: 2.734 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009709/0.639, allocations: 131.7 kB / 427.6 MB, free: 2.609 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.169e-05/0.6391, allocations: 8 kB / 427.6 MB, free: 2.602 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004459/0.6395, allocations: 63.05 kB / 427.7 MB, free: 2.547 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.89e-05/0.6396, allocations: 23.88 kB / 427.7 MB, free: 2.527 MB / 346.7 MB Warning: Assuming fixed start value for the following 15 variables: processNoCtrl.w:VARIABLE(protected = true ) "proper part of the output" type: Real processNoCtrl.U[3]:VARIABLE(protected = true ) type: Real [3] processNoCtrl.Y[3]:VARIABLE(protected = true ) type: Real [4] processNoCtrl.Y[4]:VARIABLE(protected = true ) type: Real [4] processNoCtrl.U[2]:VARIABLE(protected = true ) type: Real [3] ProcessBias.w:VARIABLE(protected = true ) "proper part of the output" type: Real ProcessBias.U[3]:VARIABLE(protected = true ) type: Real [3] ProcessBias.U[2]:VARIABLE(protected = true ) type: Real [3] ProcessBias.Y[4]:VARIABLE(protected = true ) type: Real [4] ProcessCtrl.Y[3]:VARIABLE(protected = true ) type: Real [4] ProcessCtrl.Y[4]:VARIABLE(protected = true ) type: Real [4] ProcessCtrl.U[2]:VARIABLE(protected = true ) type: Real [3] ProcessCtrl.U[3]:VARIABLE(protected = true ) type: Real [3] ProcessCtrl.w:VARIABLE(protected = true ) "proper part of the output" type: Real ProcessBias.Y[3]:VARIABLE(protected = true ) type: Real [4] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,Disturbance.a,Disturbance.b,Disturbance.last,$PRE.Disturbance.nextEvent,Disturbance.nextEvent,Disturbance.nextEventScaled,R_Bias.TS_in,R.TS_in,R_Bias.ATreq_in,R.ATreq_in) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 69 * 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.0003074/0.6399, allocations: 192.3 kB / 427.9 MB, free: 2.344 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001047/0.6401, allocations: 55.33 kB / 427.9 MB, free: 2.293 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00136/0.6414, allocations: 0.5207 MB / 428.5 MB, free: 1.887 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.747e-06/0.6414, allocations: 4 kB / 428.5 MB, free: 1.883 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.747e-06/0.6415, allocations: 8 kB / 428.5 MB, free: 1.875 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.907e-06/0.6415, allocations: 3.984 kB / 428.5 MB, free: 1.871 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007679/0.6423, allocations: 484.9 kB / 429 MB, free: 1.441 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.6423, allocations: 0 / 429 MB, free: 1.441 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001027/0.6433, allocations: 91.02 kB / 429 MB, free: 1.355 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.398e-06/0.6433, allocations: 4 kB / 429.1 MB, free: 1.352 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.447e-05/0.6434, allocations: 18.48 kB / 429.1 MB, free: 1.34 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.29e-06/0.6435, allocations: 0 / 429.1 MB, free: 1.34 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.6435, allocations: 3.984 kB / 429.1 MB, free: 1.336 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001646/0.6451, allocations: 0.7289 MB / 429.8 MB, free: 0.7383 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001459/0.6453, allocations: 131.8 kB / 429.9 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001124/0.6454, allocations: 18.39 kB / 429.9 MB, free: 0.582 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002969/0.6457, allocations: 14.98 kB / 430 MB, free: 0.5703 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.181e-05/0.6458, allocations: 27.3 kB / 430 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.307e-05/0.6459, allocations: 14.88 kB / 430 MB, free: 0.5352 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005554/0.6465, allocations: 334.8 kB / 430.3 MB, free: 280 kB / 346.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.6465, allocations: 4 kB / 430.3 MB, free: 276 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006458/0.6471, allocations: 117.3 kB / 430.5 MB, free: 172 kB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 17 (R.Fin,R_Bias.Fin,ProcessCtrl.Y[3],ProcessCtrl.Y[4],ProcessCtrl.U[2],ProcessCtrl.U[3],ProcessCtrl.w,processNoCtrl.Y[3],processNoCtrl.Y[4],processNoCtrl.U[2],processNoCtrl.U[3],processNoCtrl.w,ProcessBias.Y[3],ProcessBias.Y[4],ProcessBias.U[2],ProcessBias.U[3],ProcessBias.w) * Number of discrete variables: 6 ($whenCondition1,Disturbance.a,Disturbance.b,Disturbance.last,Disturbance.nextEvent,Disturbance.nextEventScaled) * Number of discrete states: 6 (Disturbance.nextEvent,Disturbance.last,Disturbance.nextEventScaled,Disturbance.b,Disturbance.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 32 * 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 Backend phase and start with SimCode phase: time 0.002043/0.6492, allocations: 1.268 MB / 431.7 MB, free: 15.02 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001201/0.6504, allocations: 0.5136 MB / 432.2 MB, free: 14.62 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.6505, allocations: 3.938 kB / 432.2 MB, free: 14.62 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004736/0.6509, allocations: 265.7 kB / 432.5 MB, free: 14.41 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003877/0.6513, allocations: 42.72 kB / 432.5 MB, free: 14.39 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002496/0.6538, allocations: 1.09 MB / 433.6 MB, free: 13.37 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006815/0.6546, allocations: 0.9018 MB / 434.5 MB, free: 12.45 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0004821/0.6551, allocations: 108.1 kB / 434.6 MB, free: 12.34 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003124/0.6554, allocations: 180.8 kB / 434.8 MB, free: 12.3 MB / 362.7 MB Notification: Performance of SimCode: time 9.51e-07/0.6554, allocations: 4 kB / 434.8 MB, free: 12.29 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03729/0.6927, allocations: 8.48 MB / 443.3 MB, free: 3.914 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004063/0.6932, allocations: 178.1 kB / 443.5 MB, free: 3.684 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.904/3.597, allocations: 0 / 443.5 MB, free: 3.684 MB / 362.7 MB