Running command: translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch") Notification: Performance of loadModel(Modelica): time 1.939/1.939, allocations: 225.8 MB / 238.9 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.816e-05/3.825e-05, allocations: 7.234 kB / 292.1 MB, free: 8.344 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1073, allocations: 50.41 MB / 342.6 MB, free: 5.906 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3525/0.4599, allocations: 79.34 MB / 421.9 MB, free: 14.87 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002118/0.4601, allocations: 67.88 kB / 422 MB, free: 14.84 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01984/0.48, allocations: 4.082 MB / 426 MB, free: 11.34 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.895e-06/0.48, allocations: 4 kB / 426 MB, free: 11.34 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.164e-05/0.4801, allocations: 4 kB / 426.1 MB, free: 11.33 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0009792/0.481, allocations: 0.5169 MB / 426.6 MB, free: 10.78 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.4811, allocations: 8.031 kB / 426.6 MB, free: 10.77 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.844e-05/0.4812, allocations: 23.72 kB / 426.6 MB, free: 10.75 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003426/0.4815, allocations: 228 kB / 426.8 MB, free: 10.5 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.279e-05/0.4816, allocations: 19.12 kB / 426.8 MB, free: 10.49 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.861e-05/0.4817, allocations: 15.12 kB / 426.9 MB, free: 10.48 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004706/0.4821, allocations: 202.4 kB / 427.1 MB, free: 10.32 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.107e-05/0.4822, allocations: 3.188 kB / 427.1 MB, free: 10.32 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.299e-05/0.4822, allocations: 15.39 kB / 427.1 MB, free: 10.31 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.725e-06/0.4823, allocations: 4 kB / 427.1 MB, free: 10.3 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003752/0.4826, allocations: 140.1 kB / 427.2 MB, free: 10.21 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001321/0.484, allocations: 0.6647 MB / 427.9 MB, free: 9.59 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004765/0.4845, allocations: 166.1 kB / 428 MB, free: 9.469 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002037/0.4847, allocations: 88.59 kB / 428.1 MB, free: 9.41 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.294e-05/0.4847, allocations: 4 kB / 428.1 MB, free: 9.406 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003351/0.4851, allocations: 146.8 kB / 428.3 MB, free: 9.281 MB / 346.7 MB Notification: Performance of pre-optimization done (n=26): time 3.377e-06/0.4851, allocations: 0 / 428.3 MB, free: 9.281 MB / 346.7 MB Notification: Performance of matching and sorting (n=28): time 0.001914/0.487, allocations: 0.886 MB / 429.2 MB, free: 8.445 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.133e-05/0.4871, allocations: 62.78 kB / 429.2 MB, free: 8.375 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001969/0.4873, allocations: 154.8 kB / 429.4 MB, free: 8.23 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.874e-05/0.4874, allocations: 37.45 kB / 429.4 MB, free: 8.191 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001028/0.4875, allocations: 133.2 kB / 429.5 MB, free: 8.074 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001061/0.4876, allocations: 95.2 kB / 429.6 MB, free: 7.992 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.178e-05/0.4877, allocations: 4.625 kB / 429.6 MB, free: 7.992 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001886/0.4879, allocations: 333.7 kB / 430 MB, free: 7.668 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002234/0.4881, allocations: 79.62 kB / 430 MB, free: 7.617 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002598/0.4884, allocations: 115 kB / 430.2 MB, free: 7.523 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002441/0.4886, allocations: 117.2 kB / 430.3 MB, free: 7.43 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.64e-06/0.4886, allocations: 0 / 430.3 MB, free: 7.43 MB / 346.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008627/0.4895, allocations: 337.9 kB / 430.6 MB, free: 7.16 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.708e-05/0.4896, allocations: 37.69 kB / 430.6 MB, free: 7.117 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.346e-05/0.4896, allocations: 0 / 430.6 MB, free: 7.117 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00028/0.4899, allocations: 73.78 kB / 430.7 MB, free: 7.059 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002885/0.4902, allocations: 54.97 kB / 430.8 MB, free: 7.008 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000658/0.4909, allocations: 0.6087 MB / 431.4 MB, free: 6.406 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003297/0.4912, allocations: 42.84 kB / 431.4 MB, free: 6.371 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.531e-05/0.4913, allocations: 10.69 kB / 431.4 MB, free: 6.363 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,$PRE.signalEngagement.T_start,signalEngagement.T_start,$PRE.signalEngagement.count,signalEngagement.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001408/0.4914, allocations: 119.9 kB / 431.5 MB, free: 6.246 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.486e-05/0.4915, allocations: 23.42 kB / 431.6 MB, free: 6.227 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000683/0.4922, allocations: 277.1 kB / 431.8 MB, free: 6.016 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.077e-05/0.4922, allocations: 4 kB / 431.8 MB, free: 6.012 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.706e-06/0.4922, allocations: 0 / 431.8 MB, free: 6.012 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.754e-06/0.4923, allocations: 3.953 kB / 431.8 MB, free: 6.008 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001292/0.4936, allocations: 0.644 MB / 432.5 MB, free: 5.418 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.934e-06/0.4936, allocations: 0 / 432.5 MB, free: 5.418 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000324/0.4939, allocations: 46.94 kB / 432.5 MB, free: 5.375 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002245/0.4942, allocations: 62.44 kB / 432.6 MB, free: 5.324 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.169e-05/0.4942, allocations: 7.547 kB / 432.6 MB, free: 5.32 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006143/0.4949, allocations: 0.6051 MB / 433.2 MB, free: 4.723 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.743e-06/0.4949, allocations: 4.062 kB / 433.2 MB, free: 4.719 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000965/0.4958, allocations: 467.4 kB / 433.7 MB, free: 4.34 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001493/0.496, allocations: 112 kB / 433.8 MB, free: 4.219 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.598e-05/0.4961, allocations: 7.062 kB / 433.8 MB, free: 4.215 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003273/0.4964, allocations: 43.59 kB / 433.8 MB, free: 4.176 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001251/0.4966, allocations: 39.8 kB / 433.9 MB, free: 4.141 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.155e-05/0.4966, allocations: 7.812 kB / 433.9 MB, free: 4.137 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001503/0.4968, allocations: 129 kB / 434 MB, free: 4.023 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.39e-07/0.4968, allocations: 0 / 434 MB, free: 4.023 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004762/0.4973, allocations: 79.11 kB / 434.1 MB, free: 3.953 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (inertiaOut.phi,inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 7 ($whenCondition1,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,signalEngagement.T_start,signalEngagement.count) * Number of discrete states: 3 (signalEngagement.count,oneWayClutch.stuck,oneWayClutch.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002653/0.4976, allocations: 142 kB / 434.2 MB, free: 3.812 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007222/0.4983, allocations: 309.5 kB / 434.5 MB, free: 3.555 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.285e-06/0.4983, allocations: 4 kB / 434.5 MB, free: 3.551 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003619/0.4987, allocations: 119.3 kB / 434.6 MB, free: 3.465 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003703/0.4991, allocations: 38.28 kB / 434.7 MB, free: 3.434 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001193/0.5003, allocations: 0.5091 MB / 435.2 MB, free: 2.938 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004575/0.5008, allocations: 0.7518 MB / 435.9 MB, free: 2.16 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001307/0.5009, allocations: 18.08 kB / 435.9 MB, free: 2.145 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.297e-05/0.501, allocations: 23.06 kB / 436 MB, free: 2.125 MB / 346.7 MB Notification: Performance of SimCode: time 1.476e-06/0.501, allocations: 0 / 436 MB, free: 2.125 MB / 346.7 MB Notification: Performance of Templates: time 0.009857/0.5109, allocations: 3.253 MB / 439.2 MB, free: 14.91 MB / 362.7 MB