Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") Notification: Performance of loadModel(Modelica): time 2.046/2.046, allocations: 225.8 MB / 239.4 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.023e-05/3.043e-05, allocations: 4 kB / 292.7 MB, free: 8.348 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08854/0.0886, allocations: 50.41 MB / 343.1 MB, free: 5.914 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3667/0.4553, allocations: 78.82 MB / 421.9 MB, free: 15.38 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002215/0.4556, allocations: 72.16 kB / 422 MB, free: 15.34 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009292/0.4649, allocations: 2.323 MB / 424.3 MB, free: 13.35 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.042e-06/0.4649, allocations: 192 / 424.3 MB, free: 13.35 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.498e-05/0.465, allocations: 0 / 424.3 MB, free: 13.35 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0006028/0.4656, allocations: 417 kB / 424.7 MB, free: 12.91 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.313e-05/0.4656, allocations: 8.031 kB / 424.7 MB, free: 12.9 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.36e-05/0.4657, allocations: 11.91 kB / 424.7 MB, free: 12.89 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002529/0.466, allocations: 201.1 kB / 424.9 MB, free: 12.66 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.085e-05/0.466, allocations: 11.12 kB / 424.9 MB, free: 12.65 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.755e-05/0.4661, allocations: 10.88 kB / 424.9 MB, free: 12.64 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005069/0.4666, allocations: 230.4 kB / 425.2 MB, free: 12.44 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.632e-05/0.4666, allocations: 0 / 425.2 MB, free: 12.44 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.24e-05/0.4667, allocations: 7.891 kB / 425.2 MB, free: 12.44 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.4667, allocations: 4 kB / 425.2 MB, free: 12.43 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001707/0.4669, allocations: 59.3 kB / 425.2 MB, free: 12.39 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008366/0.4677, allocations: 0.6013 MB / 425.8 MB, free: 11.76 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003483/0.4681, allocations: 134.8 kB / 426 MB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001322/0.4682, allocations: 57.7 kB / 426 MB, free: 11.57 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.961e-05/0.4683, allocations: 7.875 kB / 426 MB, free: 11.57 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.513e-05/0.4683, allocations: 38.59 kB / 426.1 MB, free: 11.52 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 5.149e-06/0.4684, allocations: 4 kB / 426.1 MB, free: 11.52 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003589/0.4687, allocations: 109.1 kB / 426.2 MB, free: 11.42 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.899e-05/0.4688, allocations: 114.6 kB / 426.3 MB, free: 11.29 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001321/0.469, allocations: 113.2 kB / 426.4 MB, free: 11.18 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.338e-05/0.469, allocations: 29.64 kB / 426.4 MB, free: 11.14 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.746e-05/0.4691, allocations: 123.1 kB / 426.5 MB, free: 11.03 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.49e-05/0.4692, allocations: 23.64 kB / 426.6 MB, free: 11.01 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.524e-06/0.4692, allocations: 0 / 426.6 MB, free: 11.01 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.4693, allocations: 334.6 kB / 426.9 MB, free: 10.68 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.233e-05/0.4694, allocations: 24.19 kB / 426.9 MB, free: 10.66 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001488/0.4696, allocations: 125.6 kB / 427 MB, free: 10.5 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001071/0.4697, allocations: 42.92 kB / 427.1 MB, free: 10.47 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.679e-06/0.4697, allocations: 0 / 427.1 MB, free: 10.47 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003694/0.4701, allocations: 156.7 kB / 427.2 MB, free: 10.33 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.034e-05/0.4701, allocations: 5.406 kB / 427.2 MB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.185e-05/0.4702, allocations: 7.984 kB / 427.2 MB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.031e-05/0.4702, allocations: 8 kB / 427.2 MB, free: 10.31 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000253/0.4705, allocations: 47.86 kB / 427.3 MB, free: 10.27 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.281e-05/0.4705, allocations: 4 kB / 427.3 MB, free: 10.26 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001635/0.4707, allocations: 28.14 kB / 427.3 MB, free: 10.23 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.105e-05/0.4707, allocations: 11.69 kB / 427.3 MB, free: 10.23 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * 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.000106/0.4708, allocations: 120.6 kB / 427.5 MB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002196/0.4711, allocations: 88.62 kB / 427.5 MB, free: 10.03 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.874e-05/0.4712, allocations: 16.33 kB / 427.6 MB, free: 10.02 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.909e-06/0.4712, allocations: 7.938 kB / 427.6 MB, free: 10.01 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.614e-06/0.4712, allocations: 0 / 427.6 MB, free: 10.01 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.71e-06/0.4712, allocations: 0 / 427.6 MB, free: 10.01 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003748/0.4716, allocations: 211.9 kB / 427.8 MB, free: 9.77 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.39e-06/0.4716, allocations: 4 kB / 427.8 MB, free: 9.766 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002665/0.4719, allocations: 43.66 kB / 427.8 MB, free: 9.727 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.364e-06/0.4719, allocations: 4 kB / 427.8 MB, free: 9.723 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.952e-05/0.4719, allocations: 4 kB / 427.8 MB, free: 9.719 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.634e-06/0.472, allocations: 0 / 427.8 MB, free: 9.719 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.798e-06/0.472, allocations: 4 kB / 427.8 MB, free: 9.715 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004896/0.4725, allocations: 361.6 kB / 428.2 MB, free: 9.375 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.127e-05/0.4726, allocations: 96.88 kB / 428.3 MB, free: 9.262 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.187e-05/0.4726, allocations: 7.938 kB / 428.3 MB, free: 9.258 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001995/0.4728, allocations: 4.094 kB / 428.3 MB, free: 9.254 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.697e-05/0.4729, allocations: 15.92 kB / 428.3 MB, free: 9.238 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.726e-05/0.4729, allocations: 15.75 kB / 428.3 MB, free: 9.227 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.806e-05/0.473, allocations: 103.2 kB / 428.4 MB, free: 9.129 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.71e-07/0.473, allocations: 0 / 428.4 MB, free: 9.129 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004711/0.4735, allocations: 31.5 kB / 428.5 MB, free: 9.105 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * 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.0001498/0.4737, allocations: 99.25 kB / 428.6 MB, free: 9 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002542/0.4739, allocations: 91.8 kB / 428.6 MB, free: 8.93 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.475e-06/0.474, allocations: 4.25 kB / 428.6 MB, free: 8.926 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.219e-05/0.474, allocations: 19.69 kB / 428.7 MB, free: 8.91 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004353/0.4745, allocations: 47.64 kB / 428.7 MB, free: 8.875 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006984/0.4752, allocations: 290.9 kB / 429 MB, free: 8.59 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000388/0.4756, allocations: 0.7167 MB / 429.7 MB, free: 7.848 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 7.152e-05/0.4757, allocations: 13.2 kB / 429.7 MB, free: 7.832 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.644e-05/0.4758, allocations: 15.44 kB / 429.7 MB, free: 7.816 MB / 346.7 MB Notification: Performance of SimCode: time 1.703e-06/0.4758, allocations: 0 / 429.7 MB, free: 7.816 MB / 346.7 MB Notification: Performance of Templates: time 0.004596/0.4804, allocations: 1.026 MB / 430.8 MB, free: 6.805 MB / 346.7 MB