Running command: translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController") Notification: Performance of loadModel(Modelica_Synchronous): time 1.973/1.973, allocations: 218.4 MB / 231.1 MB, free: 12.48 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.396e-05/3.4e-05, allocations: 4 kB / 284.3 MB, free: 8.215 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0915/0.09156, allocations: 50.36 MB / 334.7 MB, free: 5.754 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3664/0.458, allocations: 80.12 MB / 414.8 MB, free: 14.23 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002277/0.4583, allocations: 70.45 kB / 414.9 MB, free: 14.2 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01133/0.4697, allocations: 2.289 MB / 417.2 MB, free: 12.23 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.003e-06/0.4697, allocations: 0 / 417.2 MB, free: 12.23 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.46e-05/0.4697, allocations: 4 kB / 417.2 MB, free: 12.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.0005831/0.4703, allocations: 402.9 kB / 417.6 MB, free: 11.8 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.4704, allocations: 8.031 kB / 417.6 MB, free: 11.79 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.335e-05/0.4705, allocations: 20.42 kB / 417.6 MB, free: 11.77 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000252/0.4707, allocations: 197.7 kB / 417.8 MB, free: 11.55 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.074e-05/0.4708, allocations: 11.58 kB / 417.8 MB, free: 11.54 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.134e-05/0.4708, allocations: 15.09 kB / 417.8 MB, free: 11.53 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005036/0.4713, allocations: 233.9 kB / 418 MB, free: 11.32 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.535e-05/0.4714, allocations: 0 / 418 MB, free: 11.32 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.214e-05/0.4714, allocations: 7.5 kB / 418 MB, free: 11.32 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.987e-06/0.4714, allocations: 0 / 418 MB, free: 11.32 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001741/0.4716, allocations: 63.36 kB / 418.1 MB, free: 11.27 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008121/0.4724, allocations: 0.5811 MB / 418.7 MB, free: 10.66 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003378/0.4728, allocations: 139.3 kB / 418.8 MB, free: 10.52 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001273/0.4729, allocations: 57.52 kB / 418.9 MB, free: 10.47 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.476e-05/0.473, allocations: 11 kB / 418.9 MB, free: 10.46 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.521e-05/0.473, allocations: 42.69 kB / 418.9 MB, free: 10.41 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 6.059e-06/0.4731, allocations: 0 / 418.9 MB, free: 10.41 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003457/0.4734, allocations: 123.2 kB / 419.1 MB, free: 10.3 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.278e-05/0.4735, allocations: 118.2 kB / 419.2 MB, free: 10.17 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001233/0.4737, allocations: 112.9 kB / 419.3 MB, free: 10.05 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.371e-05/0.4737, allocations: 25.7 kB / 419.3 MB, free: 10.02 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.355e-05/0.4738, allocations: 118.7 kB / 419.4 MB, free: 9.914 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.531e-05/0.4738, allocations: 35.22 kB / 419.5 MB, free: 9.883 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.837e-06/0.4739, allocations: 3.938 kB / 419.5 MB, free: 9.883 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.474, allocations: 318.1 kB / 419.8 MB, free: 9.566 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.259e-05/0.4741, allocations: 23.56 kB / 419.8 MB, free: 9.547 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000149/0.4743, allocations: 124.6 kB / 419.9 MB, free: 9.395 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001034/0.4744, allocations: 46.98 kB / 420 MB, free: 9.355 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.91e-06/0.4744, allocations: 0 / 420 MB, free: 9.355 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003495/0.4748, allocations: 164.4 kB / 420.1 MB, free: 9.211 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.242e-05/0.4748, allocations: 11.95 kB / 420.1 MB, free: 9.199 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.4748, allocations: 4 kB / 420.1 MB, free: 9.195 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.661e-05/0.4749, allocations: 4 kB / 420.1 MB, free: 9.191 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002185/0.4751, allocations: 44.39 kB / 420.2 MB, free: 9.148 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.096e-05/0.4751, allocations: 15.92 kB / 420.2 MB, free: 9.133 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001505/0.4753, allocations: 23.34 kB / 420.2 MB, free: 9.113 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.166e-05/0.4753, allocations: 12 kB / 420.2 MB, free: 9.102 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.0001089/0.4754, allocations: 124.3 kB / 420.4 MB, free: 8.98 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002102/0.4757, allocations: 84.23 kB / 420.4 MB, free: 8.902 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.667e-05/0.4758, allocations: 22.45 kB / 420.5 MB, free: 8.891 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.177e-06/0.4758, allocations: 0 / 420.5 MB, free: 8.891 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.107e-06/0.4758, allocations: 4 kB / 420.5 MB, free: 8.887 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.127e-06/0.4758, allocations: 4 kB / 420.5 MB, free: 8.883 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003599/0.4762, allocations: 202.5 kB / 420.7 MB, free: 8.652 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.245e-06/0.4762, allocations: 0 / 420.7 MB, free: 8.652 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002686/0.4765, allocations: 43.91 kB / 420.7 MB, free: 8.609 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.691e-06/0.4765, allocations: 0 / 420.7 MB, free: 8.609 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.917e-05/0.4765, allocations: 7.062 kB / 420.7 MB, free: 8.605 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.794e-06/0.4765, allocations: 3.953 kB / 420.7 MB, free: 8.602 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.203e-06/0.4765, allocations: 0 / 420.7 MB, free: 8.602 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004889/0.477, allocations: 370.9 kB / 421.1 MB, free: 8.25 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.987e-05/0.4771, allocations: 89 kB / 421.2 MB, free: 8.145 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.135e-05/0.4772, allocations: 2.5 kB / 421.2 MB, free: 8.145 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002017/0.4774, allocations: 19.3 kB / 421.2 MB, free: 8.129 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.925e-05/0.4774, allocations: 8.062 kB / 421.2 MB, free: 8.121 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.438e-05/0.4775, allocations: 4 kB / 421.2 MB, free: 8.117 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.721e-05/0.4776, allocations: 106.8 kB / 421.3 MB, free: 8.02 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.2e-07/0.4776, allocations: 0 / 421.3 MB, free: 8.02 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004508/0.478, allocations: 26.12 kB / 421.3 MB, free: 8 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.0001389/0.4782, allocations: 99.25 kB / 421.4 MB, free: 7.895 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002313/0.4784, allocations: 96.3 kB / 421.5 MB, free: 7.82 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.544e-06/0.4785, allocations: 96 / 421.5 MB, free: 7.82 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.957e-05/0.4785, allocations: 19.69 kB / 421.5 MB, free: 7.805 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004153/0.479, allocations: 54.19 kB / 421.6 MB, free: 7.762 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006795/0.4797, allocations: 297.6 kB / 421.9 MB, free: 7.465 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003986/0.4801, allocations: 0.7166 MB / 422.6 MB, free: 6.727 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 6.38e-05/0.4802, allocations: 13.2 kB / 422.6 MB, free: 6.715 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.343e-05/0.4802, allocations: 15.44 kB / 422.6 MB, free: 6.699 MB / 346.7 MB Notification: Performance of SimCode: time 1.763e-06/0.4802, allocations: 0 / 422.6 MB, free: 6.699 MB / 346.7 MB Notification: Performance of Templates: time 0.004892/0.4851, allocations: 1.032 MB / 423.7 MB, free: 5.676 MB / 346.7 MB