Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") Notification: Performance of loadModel(Modelica): time 2.047/2.047, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.911e-05/2.932e-05, allocations: 1.562 kB / 292.7 MB, free: 8.352 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1273/0.1273, allocations: 50.42 MB / 343.1 MB, free: 5.914 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3598/0.4872, allocations: 78.77 MB / 421.9 MB, free: 15.39 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000211/0.4874, allocations: 69.97 kB / 421.9 MB, free: 15.36 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008955/0.4964, allocations: 2.299 MB / 424.2 MB, free: 13.38 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.977e-06/0.4965, allocations: 0 / 424.2 MB, free: 13.38 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.22e-05/0.4965, allocations: 4 kB / 424.2 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0005859/0.4971, allocations: 401 kB / 424.6 MB, free: 12.95 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.243e-05/0.4972, allocations: 8.031 kB / 424.6 MB, free: 12.94 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.206e-05/0.4972, allocations: 15.86 kB / 424.6 MB, free: 12.93 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002471/0.4975, allocations: 201.4 kB / 424.8 MB, free: 12.7 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.113e-05/0.4975, allocations: 14.44 kB / 424.9 MB, free: 12.69 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.493e-05/0.4976, allocations: 15.12 kB / 424.9 MB, free: 12.68 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004811/0.4981, allocations: 211.3 kB / 425.1 MB, free: 12.49 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.847e-05/0.4981, allocations: 3.938 kB / 425.1 MB, free: 12.49 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.294e-05/0.4981, allocations: 11.39 kB / 425.1 MB, free: 12.48 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.355e-06/0.4981, allocations: 4 kB / 425.1 MB, free: 12.48 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000168/0.4983, allocations: 53.23 kB / 425.1 MB, free: 12.44 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008169/0.4992, allocations: 0.596 MB / 425.7 MB, free: 11.81 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002636/0.4994, allocations: 129.3 kB / 425.9 MB, free: 11.68 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001273/0.4996, allocations: 56.8 kB / 425.9 MB, free: 11.63 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.268e-05/0.4996, allocations: 11.48 kB / 425.9 MB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.67e-05/0.4997, allocations: 42.56 kB / 426 MB, free: 11.57 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 2.512e-06/0.4997, allocations: 0 / 426 MB, free: 11.57 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003442/0.5, allocations: 107.8 kB / 426.1 MB, free: 11.48 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.276e-05/0.5002, allocations: 113.9 kB / 426.2 MB, free: 11.34 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001646/0.5003, allocations: 123 kB / 426.3 MB, free: 11.22 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.43e-05/0.5004, allocations: 25.7 kB / 426.3 MB, free: 11.19 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.31e-05/0.5005, allocations: 110.9 kB / 426.4 MB, free: 11.09 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.428e-05/0.5005, allocations: 30.14 kB / 426.5 MB, free: 11.06 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.277e-06/0.5006, allocations: 3.125 kB / 426.5 MB, free: 11.06 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.5007, allocations: 325.8 kB / 426.8 MB, free: 10.74 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.804e-05/0.5008, allocations: 23 kB / 426.8 MB, free: 10.72 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001399/0.501, allocations: 113.8 kB / 426.9 MB, free: 10.58 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001049/0.5011, allocations: 46.05 kB / 427 MB, free: 10.54 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.844e-06/0.5011, allocations: 0 / 427 MB, free: 10.54 MB / 346.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003389/0.5014, allocations: 152.3 kB / 427.1 MB, free: 10.41 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.151e-05/0.5015, allocations: 11.98 kB / 427.1 MB, free: 10.39 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.5015, allocations: 4 kB / 427.1 MB, free: 10.39 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.761e-05/0.5015, allocations: 4 kB / 427.1 MB, free: 10.39 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002552/0.5018, allocations: 47.23 kB / 427.2 MB, free: 10.34 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.531e-05/0.5018, allocations: 12.33 kB / 427.2 MB, free: 10.33 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002234/0.5021, allocations: 31.08 kB / 427.2 MB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.011e-05/0.5021, allocations: 8 kB / 427.2 MB, free: 10.3 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.0001496/0.5023, allocations: 115.7 kB / 427.4 MB, free: 10.18 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003578/0.5027, allocations: 77.59 kB / 427.4 MB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.566e-05/0.5028, allocations: 23.19 kB / 427.4 MB, free: 10.1 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.028e-05/0.5028, allocations: 4 kB / 427.5 MB, free: 10.09 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.08e-06/0.5028, allocations: 0 / 427.5 MB, free: 10.09 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.035e-05/0.5028, allocations: 3.953 kB / 427.5 MB, free: 10.09 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006464/0.5035, allocations: 205.6 kB / 427.7 MB, free: 9.855 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.706e-06/0.5035, allocations: 4 kB / 427.7 MB, free: 9.852 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004082/0.504, allocations: 31.98 kB / 427.7 MB, free: 9.82 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.825e-06/0.504, allocations: 0 / 427.7 MB, free: 9.82 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.617e-05/0.504, allocations: 3.25 kB / 427.7 MB, free: 9.82 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.125e-06/0.5041, allocations: 4 kB / 427.7 MB, free: 9.816 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.816e-06/0.5041, allocations: 3.984 kB / 427.7 MB, free: 9.812 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000587/0.5047, allocations: 364.9 kB / 428.1 MB, free: 9.465 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.3e-05/0.5048, allocations: 85.02 kB / 428.1 MB, free: 9.363 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.855e-05/0.5048, allocations: 3.844 kB / 428.1 MB, free: 9.363 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001992/0.5051, allocations: 19.88 kB / 428.2 MB, free: 9.344 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.811e-05/0.5051, allocations: 11.75 kB / 428.2 MB, free: 9.336 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.208e-05/0.5051, allocations: 3.938 kB / 428.2 MB, free: 9.332 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.172e-05/0.5052, allocations: 111.5 kB / 428.3 MB, free: 9.23 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.7e-07/0.5053, allocations: 0 / 428.3 MB, free: 9.23 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004613/0.5057, allocations: 23.5 kB / 428.3 MB, free: 9.211 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 (14): * Single equations (assignments): 14 * 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.0001575/0.5059, allocations: 107.2 kB / 428.4 MB, free: 9.098 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002397/0.5061, allocations: 83.55 kB / 428.5 MB, free: 9.035 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.716e-06/0.5062, allocations: 8.188 kB / 428.5 MB, free: 9.027 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.966e-05/0.5062, allocations: 11.94 kB / 428.5 MB, free: 9.02 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004319/0.5067, allocations: 51.45 kB / 428.6 MB, free: 8.98 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007161/0.5074, allocations: 290.8 kB / 428.9 MB, free: 8.691 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004631/0.5079, allocations: 0.7164 MB / 429.6 MB, free: 7.949 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001092/0.508, allocations: 16.77 kB / 429.6 MB, free: 7.93 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.417e-05/0.5081, allocations: 11.44 kB / 429.6 MB, free: 7.918 MB / 346.7 MB Notification: Performance of SimCode: time 1.68e-06/0.5081, allocations: 0 / 429.6 MB, free: 7.918 MB / 346.7 MB Notification: Performance of Templates: time 0.004732/0.5128, allocations: 1 MB / 430.6 MB, free: 6.934 MB / 346.7 MB