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_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") Notification: Performance of loadModel(Modelica): time 2.051/2.051, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.132e-05/3.142e-05, allocations: 8 kB / 292.1 MB, free: 8.336 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08954/0.0896, allocations: 50.4 MB / 342.5 MB, free: 5.914 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3681/0.4577, allocations: 78.82 MB / 421.4 MB, free: 15.41 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002149/0.458, allocations: 68.47 kB / 421.4 MB, free: 15.38 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009213/0.4672, allocations: 2.32 MB / 423.8 MB, free: 13.39 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.151e-06/0.4673, allocations: 7.938 kB / 423.8 MB, free: 13.38 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.249e-05/0.4673, allocations: 0 / 423.8 MB, free: 13.38 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.0006262/0.468, allocations: 413.7 kB / 424.2 MB, free: 12.95 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.468, allocations: 8.031 kB / 424.2 MB, free: 12.94 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.341e-05/0.4681, allocations: 11.91 kB / 424.2 MB, free: 12.93 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002611/0.4683, allocations: 206.4 kB / 424.4 MB, free: 12.69 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.793e-05/0.4684, allocations: 11.88 kB / 424.4 MB, free: 12.68 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.454e-05/0.4684, allocations: 15.44 kB / 424.4 MB, free: 12.67 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005042/0.4689, allocations: 223.3 kB / 424.6 MB, free: 12.48 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.621e-05/0.469, allocations: 4 kB / 424.6 MB, free: 12.47 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.002e-05/0.469, allocations: 7.703 kB / 424.6 MB, free: 12.47 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.469, allocations: 4 kB / 424.6 MB, free: 12.46 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001736/0.4692, allocations: 63.11 kB / 424.7 MB, free: 12.42 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000832/0.4701, allocations: 0.5898 MB / 425.3 MB, free: 11.8 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003478/0.4704, allocations: 130.8 kB / 425.4 MB, free: 11.66 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001317/0.4706, allocations: 66.02 kB / 425.5 MB, free: 11.61 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.301e-05/0.4706, allocations: 7.984 kB / 425.5 MB, free: 11.6 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.187e-05/0.4707, allocations: 38.53 kB / 425.5 MB, free: 11.55 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 3.169e-06/0.4707, allocations: 4 kB / 425.5 MB, free: 11.55 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003589/0.4711, allocations: 108.1 kB / 425.6 MB, free: 11.46 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.901e-05/0.4712, allocations: 114.7 kB / 425.8 MB, free: 11.32 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001308/0.4713, allocations: 117.1 kB / 425.9 MB, free: 11.21 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.397e-05/0.4713, allocations: 33.58 kB / 425.9 MB, free: 11.17 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.754e-05/0.4714, allocations: 119.4 kB / 426 MB, free: 11.06 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.71e-05/0.4715, allocations: 23.58 kB / 426 MB, free: 11.04 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.75e-06/0.4715, allocations: 3.938 kB / 426 MB, free: 11.04 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000172/0.4717, allocations: 326.7 kB / 426.4 MB, free: 10.71 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.065e-05/0.4718, allocations: 23.88 kB / 426.4 MB, free: 10.7 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001575/0.472, allocations: 125.9 kB / 426.5 MB, free: 10.54 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001047/0.4721, allocations: 47.23 kB / 426.6 MB, free: 10.5 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.705e-06/0.4721, allocations: 0 / 426.6 MB, free: 10.5 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003609/0.4725, allocations: 152.6 kB / 426.7 MB, free: 10.36 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/0.4725, allocations: 4.469 kB / 426.7 MB, free: 10.36 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.2e-05/0.4725, allocations: 11.98 kB / 426.7 MB, free: 10.35 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.307e-05/0.4725, allocations: 8 kB / 426.7 MB, free: 10.34 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002553/0.4728, allocations: 47.8 kB / 426.8 MB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.298e-05/0.4728, allocations: 4 kB / 426.8 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000167/0.473, allocations: 27.52 kB / 426.8 MB, free: 10.27 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.176e-05/0.4731, allocations: 8 kB / 426.8 MB, free: 10.26 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.0001041/0.4732, allocations: 120.7 kB / 426.9 MB, free: 10.14 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002115/0.4734, allocations: 88.91 kB / 427 MB, free: 10.06 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.989e-05/0.4735, allocations: 20.23 kB / 427 MB, free: 10.05 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.906e-06/0.4735, allocations: 4 kB / 427 MB, free: 10.05 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.447e-06/0.4735, allocations: 0 / 427 MB, free: 10.05 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.048e-06/0.4735, allocations: 0 / 427 MB, free: 10.05 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003713/0.4739, allocations: 209.3 kB / 427.2 MB, free: 9.809 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.228e-06/0.4739, allocations: 4 kB / 427.3 MB, free: 9.805 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002705/0.4742, allocations: 47.78 kB / 427.3 MB, free: 9.762 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.035e-06/0.4742, allocations: 0 / 427.3 MB, free: 9.762 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.618e-05/0.4743, allocations: 8 kB / 427.3 MB, free: 9.754 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.034e-06/0.4743, allocations: 0 / 427.3 MB, free: 9.754 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.68e-06/0.4743, allocations: 4 kB / 427.3 MB, free: 9.75 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004768/0.4748, allocations: 357.4 kB / 427.7 MB, free: 9.414 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.26e-05/0.4749, allocations: 100.9 kB / 427.8 MB, free: 9.297 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.032e-05/0.4749, allocations: 4 kB / 427.8 MB, free: 9.293 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002041/0.4751, allocations: 7.812 kB / 427.8 MB, free: 9.289 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.944e-05/0.4752, allocations: 15.88 kB / 427.8 MB, free: 9.273 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.597e-05/0.4752, allocations: 4 kB / 427.8 MB, free: 9.27 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.956e-05/0.4753, allocations: 107.5 kB / 427.9 MB, free: 9.172 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.1e-07/0.4753, allocations: 0 / 427.9 MB, free: 9.172 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004888/0.4758, allocations: 27.88 kB / 427.9 MB, free: 9.148 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.0001499/0.476, allocations: 106.9 kB / 428 MB, free: 9.039 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002484/0.4763, allocations: 95.11 kB / 428.1 MB, free: 8.965 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.62e-06/0.4763, allocations: 0 / 428.1 MB, free: 8.965 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.431e-05/0.4764, allocations: 15.94 kB / 428.1 MB, free: 8.953 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004248/0.4768, allocations: 47.33 kB / 428.2 MB, free: 8.922 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000686/0.4775, allocations: 292.7 kB / 428.5 MB, free: 8.633 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004059/0.4779, allocations: 0.7206 MB / 429.2 MB, free: 7.887 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 7.07e-05/0.478, allocations: 13.19 kB / 429.2 MB, free: 7.871 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.671e-05/0.4781, allocations: 15.44 kB / 429.2 MB, free: 7.855 MB / 346.7 MB Notification: Performance of SimCode: time 1.539e-06/0.4781, allocations: 0 / 429.2 MB, free: 7.855 MB / 346.7 MB Notification: Performance of Templates: time 0.004665/0.4828, allocations: 1.023 MB / 430.2 MB, free: 6.844 MB / 346.7 MB