Running command: translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") Notification: Performance of loadModel(Modelica_Synchronous): time 1.984/1.984, allocations: 218.4 MB / 231.1 MB, free: 12.48 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.512e-05/3.529e-05, allocations: 4 kB / 284.3 MB, free: 8.195 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09146/0.09152, allocations: 50.36 MB / 334.7 MB, free: 5.742 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3669/0.4585, allocations: 80.07 MB / 414.8 MB, free: 14.23 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001933/0.4587, allocations: 74.14 kB / 414.8 MB, free: 14.19 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008691/0.4675, allocations: 2.267 MB / 417.1 MB, free: 12.25 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.87e-06/0.4675, allocations: 0 / 417.1 MB, free: 12.25 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.691e-06/0.4675, allocations: 0 / 417.1 MB, free: 12.25 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.0005725/0.4681, allocations: 409 kB / 417.5 MB, free: 11.81 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.704e-05/0.4682, allocations: 11.97 kB / 417.5 MB, free: 11.8 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.766e-05/0.4682, allocations: 17.78 kB / 417.5 MB, free: 11.79 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002239/0.4685, allocations: 196.4 kB / 417.7 MB, free: 11.56 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.984e-05/0.4685, allocations: 15.52 kB / 417.7 MB, free: 11.55 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.122e-05/0.4685, allocations: 14.12 kB / 417.8 MB, free: 11.54 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004426/0.469, allocations: 219.5 kB / 418 MB, free: 11.34 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.792e-05/0.469, allocations: 3.984 kB / 418 MB, free: 11.34 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.555e-05/0.4691, allocations: 3.375 kB / 418 MB, free: 11.34 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.548e-06/0.4691, allocations: 4 kB / 418 MB, free: 11.34 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001605/0.4692, allocations: 57.81 kB / 418 MB, free: 11.3 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007529/0.47, allocations: 0.5854 MB / 418.6 MB, free: 10.68 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002515/0.4703, allocations: 130.9 kB / 418.7 MB, free: 10.55 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001206/0.4704, allocations: 56.58 kB / 418.8 MB, free: 10.5 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.388e-05/0.4705, allocations: 3.938 kB / 418.8 MB, free: 10.49 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.043e-05/0.4705, allocations: 49.89 kB / 418.9 MB, free: 10.44 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 2.573e-06/0.4705, allocations: 3.938 kB / 418.9 MB, free: 10.43 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003175/0.4709, allocations: 107 kB / 419 MB, free: 10.34 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.553e-05/0.471, allocations: 122.1 kB / 419.1 MB, free: 10.2 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001174/0.4711, allocations: 112.8 kB / 419.2 MB, free: 10.09 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.865e-05/0.4711, allocations: 29.14 kB / 419.2 MB, free: 10.05 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.969e-05/0.4712, allocations: 114.6 kB / 419.3 MB, free: 9.945 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.577e-05/0.4713, allocations: 30.58 kB / 419.4 MB, free: 9.922 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.824e-06/0.4713, allocations: 3.5 kB / 419.4 MB, free: 9.922 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001576/0.4715, allocations: 322.4 kB / 419.7 MB, free: 9.602 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.256e-05/0.4715, allocations: 18.5 kB / 419.7 MB, free: 9.59 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001417/0.4717, allocations: 118.3 kB / 419.8 MB, free: 9.441 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001001/0.4718, allocations: 42.3 kB / 419.9 MB, free: 9.41 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.42e-06/0.4718, allocations: 0 / 419.9 MB, free: 9.41 MB / 346.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003484/0.4722, allocations: 154.8 kB / 420 MB, free: 9.27 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.4722, allocations: 4 kB / 420 MB, free: 9.266 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.69e-06/0.4722, allocations: 4 kB / 420 MB, free: 9.262 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.113e-05/0.4723, allocations: 8.188 kB / 420 MB, free: 9.254 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002324/0.4725, allocations: 55.7 kB / 420.1 MB, free: 9.203 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.395e-05/0.4725, allocations: 8.438 kB / 420.1 MB, free: 9.195 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001532/0.4727, allocations: 23.83 kB / 420.1 MB, free: 9.172 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.279e-05/0.4727, allocations: 15.69 kB / 420.1 MB, free: 9.16 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 9.511e-05/0.4728, allocations: 112.3 kB / 420.2 MB, free: 9.047 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002034/0.4731, allocations: 87.36 kB / 420.3 MB, free: 8.969 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.436e-05/0.4731, allocations: 15.69 kB / 420.3 MB, free: 8.961 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.143e-06/0.4731, allocations: 0 / 420.3 MB, free: 8.961 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.04e-06/0.4731, allocations: 4 kB / 420.3 MB, free: 8.957 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.4732, allocations: 7.984 kB / 420.3 MB, free: 8.949 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003591/0.4735, allocations: 206.5 kB / 420.5 MB, free: 8.715 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.4735, allocations: 0 / 420.5 MB, free: 8.715 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002428/0.4738, allocations: 35.97 kB / 420.6 MB, free: 8.68 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.282e-06/0.4738, allocations: 7.953 kB / 420.6 MB, free: 8.672 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.45e-05/0.4739, allocations: 3.188 kB / 420.6 MB, free: 8.672 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.587e-06/0.4739, allocations: 3.938 kB / 420.6 MB, free: 8.668 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.187e-06/0.4739, allocations: 4 kB / 420.6 MB, free: 8.664 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004578/0.4743, allocations: 352 kB / 420.9 MB, free: 8.328 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.993e-05/0.4744, allocations: 89.03 kB / 421 MB, free: 8.223 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.875e-05/0.4745, allocations: 11.25 kB / 421 MB, free: 8.215 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001934/0.4747, allocations: 4 kB / 421 MB, free: 8.211 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.327e-05/0.4747, allocations: 15.86 kB / 421.1 MB, free: 8.199 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.515e-05/0.4748, allocations: 4 kB / 421.1 MB, free: 8.195 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.351e-05/0.4749, allocations: 98.02 kB / 421.2 MB, free: 8.105 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.41e-07/0.4749, allocations: 0 / 421.2 MB, free: 8.105 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004558/0.4753, allocations: 34.72 kB / 421.2 MB, free: 8.074 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.0001265/0.4755, allocations: 102.6 kB / 421.3 MB, free: 7.969 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002312/0.4757, allocations: 85.8 kB / 421.4 MB, free: 7.902 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.909e-06/0.4757, allocations: 4.062 kB / 421.4 MB, free: 7.898 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.403e-05/0.4758, allocations: 15.56 kB / 421.4 MB, free: 7.887 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004128/0.4762, allocations: 51.56 kB / 421.4 MB, free: 7.848 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006812/0.4769, allocations: 288.1 kB / 421.7 MB, free: 7.559 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003927/0.4773, allocations: 0.7165 MB / 422.4 MB, free: 6.816 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 6.937e-05/0.4774, allocations: 20.72 kB / 422.5 MB, free: 6.797 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.305e-05/0.4775, allocations: 11.44 kB / 422.5 MB, free: 6.785 MB / 346.7 MB Notification: Performance of SimCode: time 1.329e-06/0.4775, allocations: 0 / 422.5 MB, free: 6.785 MB / 346.7 MB Notification: Performance of Templates: time 0.004408/0.4819, allocations: 1.007 MB / 423.5 MB, free: 5.793 MB / 346.7 MB