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_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch") Notification: Performance of loadModel(Modelica): time 1.964/1.964, allocations: 225.8 MB / 239.4 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.606e-05/2.61e-05, allocations: 0 / 292.7 MB, free: 8.359 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09152/0.09156, allocations: 50.42 MB / 343.1 MB, free: 5.906 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3549/0.4465, allocations: 79.34 MB / 422.4 MB, free: 14.87 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004477/0.447, allocations: 65.09 kB / 422.5 MB, free: 14.84 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02163/0.4687, allocations: 4.093 MB / 426.6 MB, free: 11.33 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.007e-06/0.4687, allocations: 0 / 426.6 MB, free: 11.33 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.81e-05/0.4688, allocations: 4 kB / 426.6 MB, free: 11.32 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.0009674/0.4697, allocations: 0.5187 MB / 427.1 MB, free: 10.77 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.962e-05/0.4698, allocations: 8.031 kB / 427.1 MB, free: 10.76 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.746e-05/0.4699, allocations: 23.72 kB / 427.1 MB, free: 10.74 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003449/0.4702, allocations: 224 kB / 427.3 MB, free: 10.49 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.199e-05/0.4703, allocations: 11.56 kB / 427.4 MB, free: 10.48 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.759e-05/0.4704, allocations: 30.48 kB / 427.4 MB, free: 10.46 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004689/0.4709, allocations: 201.9 kB / 427.6 MB, free: 10.3 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.222e-05/0.4709, allocations: 7.672 kB / 427.6 MB, free: 10.3 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.44e-05/0.4709, allocations: 15.39 kB / 427.6 MB, free: 10.29 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.839e-05/0.471, allocations: 4 kB / 427.6 MB, free: 10.29 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00039/0.4714, allocations: 135.7 kB / 427.7 MB, free: 10.2 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001315/0.4727, allocations: 0.6688 MB / 428.4 MB, free: 9.57 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000468/0.4732, allocations: 157.6 kB / 428.6 MB, free: 9.457 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002023/0.4734, allocations: 87.59 kB / 428.7 MB, free: 9.398 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.216e-05/0.4735, allocations: 0 / 428.7 MB, free: 9.398 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000341/0.4738, allocations: 150.3 kB / 428.8 MB, free: 9.27 MB / 346.7 MB Notification: Performance of pre-optimization done (n=26): time 3.144e-06/0.4738, allocations: 0 / 428.8 MB, free: 9.27 MB / 346.7 MB Notification: Performance of matching and sorting (n=28): time 0.001969/0.4758, allocations: 0.8801 MB / 429.7 MB, free: 8.438 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.41e-05/0.4759, allocations: 58.84 kB / 429.7 MB, free: 8.371 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000203/0.4761, allocations: 158.9 kB / 429.9 MB, free: 8.223 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.551e-05/0.4762, allocations: 33.33 kB / 429.9 MB, free: 8.188 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001001/0.4763, allocations: 131.2 kB / 430.1 MB, free: 8.07 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001076/0.4764, allocations: 99.08 kB / 430.2 MB, free: 7.988 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.346e-05/0.4764, allocations: 7.562 kB / 430.2 MB, free: 7.984 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001827/0.4766, allocations: 330.1 kB / 430.5 MB, free: 7.66 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002198/0.4769, allocations: 78.77 kB / 430.6 MB, free: 7.613 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002577/0.4771, allocations: 123.4 kB / 430.7 MB, free: 7.512 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002498/0.4774, allocations: 122.5 kB / 430.8 MB, free: 7.414 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.539e-06/0.4774, allocations: 0 / 430.8 MB, free: 7.414 MB / 346.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008742/0.4783, allocations: 334.8 kB / 431.1 MB, free: 7.145 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.689e-05/0.4784, allocations: 33.7 kB / 431.2 MB, free: 7.105 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.703e-05/0.4784, allocations: 4 kB / 431.2 MB, free: 7.102 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002673/0.4787, allocations: 65.95 kB / 431.2 MB, free: 7.051 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000288/0.479, allocations: 55.47 kB / 431.3 MB, free: 7 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006563/0.4797, allocations: 0.6087 MB / 431.9 MB, free: 6.398 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003234/0.48, allocations: 42.97 kB / 431.9 MB, free: 6.363 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.062e-05/0.4801, allocations: 19.48 kB / 431.9 MB, free: 6.348 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.0001367/0.4802, allocations: 115.5 kB / 432.1 MB, free: 6.234 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.124e-05/0.4803, allocations: 19.81 kB / 432.1 MB, free: 6.215 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006709/0.481, allocations: 278.2 kB / 432.4 MB, free: 6.008 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.558e-06/0.481, allocations: 4 kB / 432.4 MB, free: 6.004 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.673e-06/0.481, allocations: 0 / 432.4 MB, free: 6.004 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.233e-06/0.481, allocations: 3.953 kB / 432.4 MB, free: 6 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00132/0.4823, allocations: 0.6459 MB / 433 MB, free: 5.41 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.37e-06/0.4824, allocations: 4.031 kB / 433 MB, free: 5.406 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000318/0.4827, allocations: 43.97 kB / 433.1 MB, free: 5.363 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002154/0.4829, allocations: 55.95 kB / 433.1 MB, free: 5.32 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.457e-05/0.483, allocations: 11.73 kB / 433.1 MB, free: 5.312 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006191/0.4836, allocations: 0.6086 MB / 433.7 MB, free: 4.711 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.566e-06/0.4836, allocations: 0 / 433.7 MB, free: 4.711 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009488/0.4846, allocations: 467.2 kB / 434.2 MB, free: 4.332 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000149/0.4848, allocations: 115.5 kB / 434.3 MB, free: 4.211 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.512e-05/0.4848, allocations: 12 kB / 434.3 MB, free: 4.203 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003221/0.4852, allocations: 39.89 kB / 434.3 MB, free: 4.164 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001203/0.4853, allocations: 38.75 kB / 434.4 MB, free: 4.133 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.164e-05/0.4854, allocations: 4 kB / 434.4 MB, free: 4.129 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001508/0.4855, allocations: 137.3 kB / 434.5 MB, free: 4.012 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.38e-07/0.4855, allocations: 4 kB / 434.5 MB, free: 4.008 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004754/0.486, allocations: 71.06 kB / 434.6 MB, free: 3.945 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.00027/0.4863, allocations: 142.3 kB / 434.7 MB, free: 3.801 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007157/0.487, allocations: 312 kB / 435 MB, free: 3.543 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.134e-06/0.4871, allocations: 3.938 kB / 435 MB, free: 3.539 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003604/0.4874, allocations: 124.2 kB / 435.2 MB, free: 3.449 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003835/0.4878, allocations: 34.97 kB / 435.2 MB, free: 3.422 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001161/0.489, allocations: 0.4951 MB / 435.7 MB, free: 2.938 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004535/0.4895, allocations: 0.7518 MB / 436.4 MB, free: 2.16 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001323/0.4896, allocations: 22.06 kB / 436.5 MB, free: 2.141 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.234e-05/0.4897, allocations: 22.38 kB / 436.5 MB, free: 2.121 MB / 346.7 MB Notification: Performance of SimCode: time 1.513e-06/0.4897, allocations: 0 / 436.5 MB, free: 2.121 MB / 346.7 MB Notification: Performance of Templates: time 0.01065/0.5004, allocations: 3.257 MB / 439.7 MB, free: 14.9 MB / 362.7 MB