Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") Notification: Performance of loadModel(Modelica): time 1.888/1.888, allocations: 225.8 MB / 239.3 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.075e-05/3.089e-05, allocations: 4 kB / 292.1 MB, free: 8.824 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08594/0.08599, allocations: 50.42 MB / 342.5 MB, free: 6.391 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3575/0.4435, allocations: 78.88 MB / 421.4 MB, free: 15.26 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002221/0.4438, allocations: 72.38 kB / 421.5 MB, free: 15.23 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009228/0.453, allocations: 2.313 MB / 423.8 MB, free: 13.24 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.549e-06/0.4531, allocations: 0 / 423.8 MB, free: 13.24 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.633e-05/0.4531, allocations: 4 kB / 423.8 MB, free: 13.23 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.0006136/0.4537, allocations: 413.7 kB / 424.2 MB, free: 12.79 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.4538, allocations: 8.031 kB / 424.2 MB, free: 12.79 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.374e-05/0.4539, allocations: 11.91 kB / 424.2 MB, free: 12.77 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002552/0.4541, allocations: 206.7 kB / 424.4 MB, free: 12.54 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.839e-05/0.4542, allocations: 7.75 kB / 424.4 MB, free: 12.54 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.665e-05/0.4542, allocations: 11.88 kB / 424.4 MB, free: 12.53 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004874/0.4547, allocations: 228.6 kB / 424.7 MB, free: 12.33 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.594e-05/0.4547, allocations: 0 / 424.7 MB, free: 12.33 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.677e-05/0.4548, allocations: 15.62 kB / 424.7 MB, free: 12.32 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.42e-06/0.4548, allocations: 4 kB / 424.7 MB, free: 12.31 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001691/0.455, allocations: 59.3 kB / 424.7 MB, free: 12.27 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008209/0.4558, allocations: 0.5899 MB / 425.3 MB, free: 11.65 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003392/0.4562, allocations: 138.9 kB / 425.5 MB, free: 11.51 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001273/0.4563, allocations: 57.89 kB / 425.5 MB, free: 11.46 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.378e-05/0.4564, allocations: 7.984 kB / 425.5 MB, free: 11.45 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.079e-05/0.4564, allocations: 34.53 kB / 425.6 MB, free: 11.41 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 2.62e-06/0.4565, allocations: 7.938 kB / 425.6 MB, free: 11.4 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003476/0.4568, allocations: 112.9 kB / 425.7 MB, free: 11.3 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.607e-05/0.4569, allocations: 110.7 kB / 425.8 MB, free: 11.18 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000128/0.457, allocations: 112.8 kB / 425.9 MB, free: 11.06 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.311e-05/0.4571, allocations: 29.64 kB / 425.9 MB, free: 11.03 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001083/0.4572, allocations: 189.9 kB / 426.1 MB, free: 10.85 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.462e-05/0.4573, allocations: 23.58 kB / 426.1 MB, free: 10.83 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.332e-06/0.4573, allocations: 11.78 kB / 426.2 MB, free: 10.82 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.4574, allocations: 322.7 kB / 426.5 MB, free: 10.5 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.067e-05/0.4575, allocations: 24.12 kB / 426.5 MB, free: 10.48 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001427/0.4577, allocations: 121.7 kB / 426.6 MB, free: 10.32 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001038/0.4578, allocations: 39.8 kB / 426.7 MB, free: 10.29 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.225e-06/0.4578, allocations: 4 kB / 426.7 MB, free: 10.29 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003353/0.4582, allocations: 152 kB / 426.8 MB, free: 10.16 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/0.4582, allocations: 8 kB / 426.8 MB, free: 10.15 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.4582, allocations: 4 kB / 426.8 MB, free: 10.14 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.876e-05/0.4582, allocations: 4 kB / 426.8 MB, free: 10.14 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002434/0.4585, allocations: 55.84 kB / 426.9 MB, free: 10.09 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.456e-05/0.4585, allocations: 4.438 kB / 426.9 MB, free: 10.09 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001529/0.4587, allocations: 23.84 kB / 426.9 MB, free: 10.06 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.213e-05/0.4587, allocations: 11.69 kB / 426.9 MB, free: 10.05 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.0001068/0.4588, allocations: 124.7 kB / 427 MB, free: 9.93 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002125/0.4591, allocations: 85.34 kB / 427.1 MB, free: 9.852 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.359e-05/0.4592, allocations: 20.16 kB / 427.1 MB, free: 9.844 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.054e-05/0.4592, allocations: 7.938 kB / 427.1 MB, free: 9.836 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.425e-06/0.4592, allocations: 0 / 427.1 MB, free: 9.836 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.62e-06/0.4592, allocations: 0 / 427.1 MB, free: 9.836 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003674/0.4596, allocations: 204.8 kB / 427.3 MB, free: 9.602 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.74e-06/0.4596, allocations: 4 kB / 427.4 MB, free: 9.598 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002694/0.4599, allocations: 43.95 kB / 427.4 MB, free: 9.555 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.006e-05/0.4599, allocations: 0 / 427.4 MB, free: 9.555 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.909e-05/0.46, allocations: 11.81 kB / 427.4 MB, free: 9.547 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.398e-06/0.46, allocations: 0 / 427.4 MB, free: 9.547 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.382e-06/0.46, allocations: 0 / 427.4 MB, free: 9.547 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004918/0.4605, allocations: 369.7 kB / 427.8 MB, free: 9.195 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.876e-05/0.4606, allocations: 92.8 kB / 427.9 MB, free: 9.09 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.728e-05/0.4606, allocations: 0 / 427.9 MB, free: 9.09 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001979/0.4608, allocations: 15.8 kB / 427.9 MB, free: 9.078 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.794e-05/0.4609, allocations: 12.02 kB / 427.9 MB, free: 9.066 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.595e-05/0.4609, allocations: 4 kB / 427.9 MB, free: 9.062 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.22e-05/0.461, allocations: 107.5 kB / 428 MB, free: 8.965 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.15e-07/0.461, allocations: 3.938 kB / 428 MB, free: 8.961 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004707/0.4615, allocations: 27.88 kB / 428 MB, free: 8.938 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.0001526/0.4617, allocations: 103.1 kB / 428.1 MB, free: 8.832 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002675/0.462, allocations: 88.11 kB / 428.2 MB, free: 8.762 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.039e-06/0.462, allocations: 4.062 kB / 428.2 MB, free: 8.758 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.31e-05/0.462, allocations: 15.88 kB / 428.2 MB, free: 8.746 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004382/0.4625, allocations: 51.39 kB / 428.3 MB, free: 8.707 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007158/0.4632, allocations: 323.1 kB / 428.6 MB, free: 8.383 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003898/0.4636, allocations: 0.7206 MB / 429.3 MB, free: 7.637 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.17e-05/0.4637, allocations: 19.38 kB / 429.3 MB, free: 7.621 MB / 346.7 MB Notification: Performance of SimCode: time 2.014e-06/0.4637, allocations: 0 / 429.3 MB, free: 7.621 MB / 346.7 MB Notification: Performance of Templates: time 0.003816/0.4675, allocations: 1.483 MB / 430.8 MB, free: 6.152 MB / 346.7 MB