Running command: translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,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.OneWayClutchDisengaged") Notification: Performance of loadModel(Modelica): time 1.999/1.999, allocations: 225.8 MB / 238.8 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.172e-05/3.185e-05, allocations: 4 kB / 292.1 MB, free: 8.363 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08913/0.08918, allocations: 50.41 MB / 342.6 MB, free: 5.93 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.436/0.5253, allocations: 79.24 MB / 421.8 MB, free: 14.97 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002175/0.5255, allocations: 75.08 kB / 421.9 MB, free: 14.93 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01611/0.5417, allocations: 3.977 MB / 425.8 MB, free: 11.54 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.26e-06/0.5417, allocations: 0 / 425.8 MB, free: 11.54 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.682e-05/0.5417, allocations: 4 kB / 425.9 MB, free: 11.54 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.0007816/0.5425, allocations: 475.1 kB / 426.3 MB, free: 11.04 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.136e-05/0.5426, allocations: 12.03 kB / 426.3 MB, free: 11.02 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.486e-05/0.5427, allocations: 23.72 kB / 426.4 MB, free: 11 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003292/0.543, allocations: 224.2 kB / 426.6 MB, free: 10.75 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.947e-05/0.5431, allocations: 15.31 kB / 426.6 MB, free: 10.75 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.173e-05/0.5431, allocations: 18.81 kB / 426.6 MB, free: 10.73 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004469/0.5436, allocations: 203.4 kB / 426.8 MB, free: 10.58 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.949e-05/0.5436, allocations: 4 kB / 426.8 MB, free: 10.57 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.028e-05/0.5437, allocations: 10.83 kB / 426.8 MB, free: 10.57 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.273e-05/0.5437, allocations: 8 kB / 426.8 MB, free: 10.56 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003683/0.5441, allocations: 143.4 kB / 427 MB, free: 10.46 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001575/0.5457, allocations: 0.776 MB / 427.7 MB, free: 9.742 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004058/0.5461, allocations: 143.6 kB / 427.9 MB, free: 9.633 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001592/0.5463, allocations: 69.47 kB / 427.9 MB, free: 9.586 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.238e-05/0.5463, allocations: 4 kB / 428 MB, free: 9.582 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.077e-05/0.5463, allocations: 30.56 kB / 428 MB, free: 9.543 MB / 346.7 MB Notification: Performance of pre-optimization done (n=20): time 2.56e-06/0.5464, allocations: 4 kB / 428 MB, free: 9.539 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.001827/0.5482, allocations: 0.8067 MB / 428.8 MB, free: 8.762 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.525e-05/0.5483, allocations: 55.41 kB / 428.8 MB, free: 8.695 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002255/0.5485, allocations: 167.1 kB / 429 MB, free: 8.547 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.635e-05/0.5486, allocations: 29.02 kB / 429 MB, free: 8.516 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001073/0.5487, allocations: 140 kB / 429.2 MB, free: 8.395 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.539e-05/0.5488, allocations: 76.83 kB / 429.2 MB, free: 8.328 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.643e-05/0.5488, allocations: 3.375 kB / 429.3 MB, free: 8.328 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001716/0.549, allocations: 328.3 kB / 429.6 MB, free: 8.008 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001772/0.5492, allocations: 68.42 kB / 429.6 MB, free: 7.965 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002112/0.5494, allocations: 106.9 kB / 429.7 MB, free: 7.871 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001821/0.5496, allocations: 76.16 kB / 429.8 MB, free: 7.824 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.35e-06/0.5496, allocations: 0 / 429.8 MB, free: 7.824 MB / 346.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006037/0.5502, allocations: 263.5 kB / 430.1 MB, free: 7.621 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.043e-05/0.5503, allocations: 4 kB / 430.1 MB, free: 7.617 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.541e-05/0.5503, allocations: 3.953 kB / 430.1 MB, free: 7.613 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002812/0.5506, allocations: 63.52 kB / 430.1 MB, free: 7.562 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002154/0.5508, allocations: 47.11 kB / 430.2 MB, free: 7.52 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006559/0.5515, allocations: 0.5978 MB / 430.8 MB, free: 6.934 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002543/0.5518, allocations: 31.09 kB / 430.8 MB, free: 6.906 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.895e-05/0.5518, allocations: 11.94 kB / 430.8 MB, free: 6.898 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: 6 ($PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * 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.0001322/0.5519, allocations: 121 kB / 431 MB, free: 6.781 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.244e-05/0.552, allocations: 23.72 kB / 431 MB, free: 6.758 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006814/0.5527, allocations: 249.2 kB / 431.2 MB, free: 6.562 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.592e-06/0.5528, allocations: 4 kB / 431.2 MB, free: 6.559 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.099e-06/0.5528, allocations: 3.953 kB / 431.2 MB, free: 6.555 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.468e-06/0.5528, allocations: 4 kB / 431.2 MB, free: 6.551 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001117/0.5539, allocations: 0.6055 MB / 431.8 MB, free: 5.977 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/0.5539, allocations: 4.094 kB / 431.8 MB, free: 5.973 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002511/0.5542, allocations: 35.92 kB / 431.9 MB, free: 5.938 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002272/0.5544, allocations: 58.75 kB / 431.9 MB, free: 5.891 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.636e-05/0.5545, allocations: 7.5 kB / 431.9 MB, free: 5.887 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006358/0.5551, allocations: 0.6011 MB / 432.5 MB, free: 5.293 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.052e-06/0.5552, allocations: 4.062 kB / 432.5 MB, free: 5.289 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007853/0.556, allocations: 446.8 kB / 433 MB, free: 4.895 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001414/0.5561, allocations: 107.8 kB / 433.1 MB, free: 4.777 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.592e-05/0.5562, allocations: 3.688 kB / 433.1 MB, free: 4.777 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002661/0.5565, allocations: 31.75 kB / 433.1 MB, free: 4.75 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.2e-05/0.5566, allocations: 27.2 kB / 433.1 MB, free: 4.727 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.524e-05/0.5566, allocations: 11.94 kB / 433.2 MB, free: 4.715 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001715/0.5568, allocations: 143.8 kB / 433.3 MB, free: 4.594 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.47e-07/0.5568, allocations: 0 / 433.3 MB, free: 4.594 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004754/0.5573, allocations: 66.94 kB / 433.4 MB, free: 4.535 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,torqueLoad.phi) * Number of discrete variables: 3 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck) * Number of discrete states: 2 (oneWayClutch.stuck,oneWayClutch.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * 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: 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.0002337/0.5575, allocations: 130.7 kB / 433.5 MB, free: 4.402 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005705/0.5581, allocations: 202.6 kB / 433.7 MB, free: 4.246 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.097e-06/0.5581, allocations: 8.062 kB / 433.7 MB, free: 4.238 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000303/0.5585, allocations: 105 kB / 433.8 MB, free: 4.16 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003651/0.5588, allocations: 26.61 kB / 433.8 MB, free: 4.141 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001375/0.5602, allocations: 0.5554 MB / 434.4 MB, free: 3.59 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004374/0.5607, allocations: 0.7446 MB / 435.1 MB, free: 2.82 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001169/0.5608, allocations: 22.06 kB / 435.1 MB, free: 2.793 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.052e-05/0.5609, allocations: 19.44 kB / 435.2 MB, free: 2.773 MB / 346.7 MB Notification: Performance of SimCode: time 4.847e-06/0.5609, allocations: 0 / 435.2 MB, free: 2.773 MB / 346.7 MB Notification: Performance of Templates: time 0.008656/0.5696, allocations: 2.77 MB / 437.9 MB, free: 36 kB / 346.7 MB