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_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") Notification: Performance of loadModel(Modelica): time 2.013/2.013, allocations: 225.8 MB / 238.8 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.626e-05/2.641e-05, allocations: 0 / 292.1 MB, free: 8.367 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09118/0.09123, allocations: 50.41 MB / 342.6 MB, free: 5.934 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4052/0.4964, allocations: 78.77 MB / 421.3 MB, free: 15.46 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002225/0.4967, allocations: 68.41 kB / 421.4 MB, free: 15.42 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009194/0.5059, allocations: 2.304 MB / 423.7 MB, free: 13.45 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.277e-06/0.506, allocations: 0 / 423.7 MB, free: 13.45 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.631e-05/0.506, allocations: 7.984 kB / 423.7 MB, free: 13.44 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.0005975/0.5066, allocations: 401.2 kB / 424.1 MB, free: 13.01 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.5067, allocations: 12.03 kB / 424.1 MB, free: 13 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.056e-05/0.5067, allocations: 11.86 kB / 424.1 MB, free: 12.99 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002559/0.507, allocations: 201.3 kB / 424.3 MB, free: 12.76 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.956e-05/0.507, allocations: 11.81 kB / 424.3 MB, free: 12.75 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.066e-05/0.5071, allocations: 11.12 kB / 424.3 MB, free: 12.74 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004828/0.5076, allocations: 216.1 kB / 424.5 MB, free: 12.55 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.95e-05/0.5076, allocations: 4 kB / 424.5 MB, free: 12.55 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.022e-05/0.5076, allocations: 7.391 kB / 424.6 MB, free: 12.55 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.197e-06/0.5077, allocations: 4 kB / 424.6 MB, free: 12.54 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000166/0.5078, allocations: 57.55 kB / 424.6 MB, free: 12.5 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008233/0.5087, allocations: 0.5968 MB / 425.2 MB, free: 11.87 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000269/0.509, allocations: 138.4 kB / 425.3 MB, free: 11.73 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001298/0.5091, allocations: 61.16 kB / 425.4 MB, free: 11.68 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.702e-05/0.5092, allocations: 0 / 425.4 MB, free: 11.68 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.006e-05/0.5092, allocations: 50.44 kB / 425.5 MB, free: 11.62 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 2.347e-06/0.5092, allocations: 0 / 425.5 MB, free: 11.62 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003389/0.5096, allocations: 108.3 kB / 425.6 MB, free: 11.53 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.586e-05/0.5097, allocations: 106.8 kB / 425.7 MB, free: 11.4 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001309/0.5098, allocations: 119.1 kB / 425.8 MB, free: 11.29 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.268e-05/0.5099, allocations: 25.7 kB / 425.8 MB, free: 11.25 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.48e-05/0.5099, allocations: 114.9 kB / 425.9 MB, free: 11.15 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.352e-05/0.51, allocations: 27.2 kB / 425.9 MB, free: 11.12 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.028e-05/0.51, allocations: 6.875 kB / 426 MB, free: 11.12 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001662/0.5102, allocations: 321.8 kB / 426.3 MB, free: 10.8 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.007e-05/0.5103, allocations: 25.38 kB / 426.3 MB, free: 10.79 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001412/0.5104, allocations: 118.6 kB / 426.4 MB, free: 10.64 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001028/0.5105, allocations: 45.86 kB / 426.5 MB, free: 10.6 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.578e-06/0.5106, allocations: 0 / 426.5 MB, free: 10.6 MB / 346.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003444/0.5109, allocations: 158.6 kB / 426.6 MB, free: 10.46 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.944e-05/0.5109, allocations: 4 kB / 426.6 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.717e-06/0.511, allocations: 4 kB / 426.6 MB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.694e-05/0.511, allocations: 4 kB / 426.6 MB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002456/0.5113, allocations: 47.91 kB / 426.7 MB, free: 10.4 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.42e-05/0.5113, allocations: 7.953 kB / 426.7 MB, free: 10.39 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001539/0.5114, allocations: 27.25 kB / 426.7 MB, free: 10.37 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.122e-05/0.5115, allocations: 8 kB / 426.7 MB, free: 10.36 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.0001051/0.5116, allocations: 119.4 kB / 426.8 MB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002041/0.5118, allocations: 81.97 kB / 426.9 MB, free: 10.17 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.747e-05/0.5119, allocations: 12.88 kB / 426.9 MB, free: 10.17 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.872e-06/0.5119, allocations: 4 kB / 426.9 MB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.452e-06/0.5119, allocations: 0 / 426.9 MB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.489e-06/0.5119, allocations: 3.953 kB / 426.9 MB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003613/0.5123, allocations: 208 kB / 427.1 MB, free: 9.922 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.914e-06/0.5123, allocations: 0 / 427.1 MB, free: 9.922 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002466/0.5126, allocations: 35.8 kB / 427.2 MB, free: 9.891 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.774e-06/0.5126, allocations: 4.172 kB / 427.2 MB, free: 9.887 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.812e-05/0.5126, allocations: 4 kB / 427.2 MB, free: 9.883 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.081e-06/0.5126, allocations: 3.938 kB / 427.2 MB, free: 9.879 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.541e-06/0.5127, allocations: 0 / 427.2 MB, free: 9.879 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004744/0.5131, allocations: 367.4 kB / 427.5 MB, free: 9.531 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.509e-05/0.5132, allocations: 85.05 kB / 427.6 MB, free: 9.43 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.603e-05/0.5133, allocations: 0 / 427.6 MB, free: 9.43 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002051/0.5135, allocations: 19.19 kB / 427.6 MB, free: 9.414 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.521e-05/0.5135, allocations: 16.06 kB / 427.7 MB, free: 9.398 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.376e-05/0.5136, allocations: 8 kB / 427.7 MB, free: 9.391 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.881e-05/0.5137, allocations: 102.7 kB / 427.8 MB, free: 9.297 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.47e-07/0.5137, allocations: 0 / 427.8 MB, free: 9.297 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004501/0.5141, allocations: 26.5 kB / 427.8 MB, free: 9.277 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.0001499/0.5143, allocations: 111.9 kB / 427.9 MB, free: 9.16 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002424/0.5146, allocations: 88 kB / 428 MB, free: 9.094 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.688e-06/0.5146, allocations: 4.062 kB / 428 MB, free: 9.09 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.114e-05/0.5146, allocations: 11.44 kB / 428 MB, free: 9.082 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004218/0.5151, allocations: 45.39 kB / 428 MB, free: 9.047 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007223/0.5158, allocations: 302.7 kB / 428.3 MB, free: 8.75 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003946/0.5162, allocations: 0.7165 MB / 429.1 MB, free: 8.008 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 6.392e-05/0.5163, allocations: 12.78 kB / 429.1 MB, free: 7.992 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.267e-05/0.5164, allocations: 11.44 kB / 429.1 MB, free: 7.98 MB / 346.7 MB Notification: Performance of SimCode: time 1.861e-06/0.5164, allocations: 0 / 429.1 MB, free: 7.98 MB / 346.7 MB Notification: Performance of Templates: time 0.004614/0.521, allocations: 0.9986 MB / 430.1 MB, free: 6.996 MB / 346.7 MB