Running command: translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch") Notification: Performance of loadModel(Modelica): time 1.92/1.92, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.66e-05/2.671e-05, allocations: 4 kB / 292.1 MB, free: 8.836 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09155/0.0916, allocations: 50.41 MB / 342.5 MB, free: 6.402 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.36/0.4517, allocations: 79.4 MB / 421.9 MB, free: 14.74 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002151/0.4519, allocations: 68.97 kB / 422 MB, free: 14.71 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01741/0.4693, allocations: 4.09 MB / 426.1 MB, free: 11.2 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.4694, allocations: 0 / 426.1 MB, free: 11.2 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.326e-05/0.4694, allocations: 4 kB / 426.1 MB, free: 11.2 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.0009968/0.4704, allocations: 0.5182 MB / 426.6 MB, free: 10.64 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.4705, allocations: 8.031 kB / 426.6 MB, free: 10.64 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.408e-05/0.4706, allocations: 27.7 kB / 426.7 MB, free: 10.61 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00034/0.4709, allocations: 221.7 kB / 426.9 MB, free: 10.36 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.276e-05/0.471, allocations: 19.38 kB / 426.9 MB, free: 10.35 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.892e-05/0.4711, allocations: 18.38 kB / 426.9 MB, free: 10.34 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000476/0.4715, allocations: 209.7 kB / 427.1 MB, free: 10.18 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.777e-05/0.4716, allocations: 0 / 427.1 MB, free: 10.18 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.329e-05/0.4716, allocations: 10.7 kB / 427.1 MB, free: 10.17 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.194e-05/0.4716, allocations: 8 kB / 427.1 MB, free: 10.16 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003805/0.472, allocations: 136.5 kB / 427.3 MB, free: 10.07 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00134/0.4734, allocations: 0.6636 MB / 427.9 MB, free: 9.453 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004807/0.4739, allocations: 163.9 kB / 428.1 MB, free: 9.332 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002037/0.4741, allocations: 90.16 kB / 428.2 MB, free: 9.273 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.685e-05/0.4742, allocations: 4 kB / 428.2 MB, free: 9.27 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003428/0.4745, allocations: 145.3 kB / 428.3 MB, free: 9.148 MB / 346.7 MB Notification: Performance of pre-optimization done (n=26): time 3.147e-06/0.4745, allocations: 0 / 428.3 MB, free: 9.148 MB / 346.7 MB Notification: Performance of matching and sorting (n=28): time 0.001983/0.4765, allocations: 0.89 MB / 429.2 MB, free: 8.305 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.852e-05/0.4766, allocations: 51.41 kB / 429.3 MB, free: 8.242 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002133/0.4768, allocations: 160.2 kB / 429.4 MB, free: 8.094 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.429e-05/0.4769, allocations: 37.52 kB / 429.5 MB, free: 8.055 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001245/0.477, allocations: 190.4 kB / 429.6 MB, free: 7.879 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001153/0.4772, allocations: 93.97 kB / 429.7 MB, free: 7.801 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.431e-05/0.4772, allocations: 7.5 kB / 429.7 MB, free: 7.797 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001671/0.4774, allocations: 322.8 kB / 430.1 MB, free: 7.477 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002219/0.4776, allocations: 77.83 kB / 430.1 MB, free: 7.43 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002656/0.4779, allocations: 126.5 kB / 430.3 MB, free: 7.328 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002543/0.4782, allocations: 106.9 kB / 430.4 MB, free: 7.242 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.686e-06/0.4782, allocations: 0 / 430.4 MB, free: 7.242 MB / 346.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008776/0.4791, allocations: 342.1 kB / 430.7 MB, free: 6.969 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.119e-05/0.4791, allocations: 33.7 kB / 430.7 MB, free: 6.93 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.044e-05/0.4792, allocations: 3.984 kB / 430.7 MB, free: 6.926 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002821/0.4795, allocations: 64 kB / 430.8 MB, free: 6.875 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002967/0.4798, allocations: 55.78 kB / 430.9 MB, free: 6.824 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006619/0.4805, allocations: 0.598 MB / 431.5 MB, free: 6.234 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003404/0.4808, allocations: 51.8 kB / 431.5 MB, free: 6.188 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.623e-05/0.4809, allocations: 15.88 kB / 431.5 MB, free: 6.176 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.0001467/0.4811, allocations: 119.8 kB / 431.6 MB, free: 6.062 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.47e-05/0.4811, allocations: 19.84 kB / 431.7 MB, free: 6.043 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007096/0.4818, allocations: 281.6 kB / 431.9 MB, free: 5.832 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.913e-06/0.4819, allocations: 3.984 kB / 431.9 MB, free: 5.828 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.384e-06/0.4819, allocations: 4 kB / 431.9 MB, free: 5.824 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.956e-06/0.4819, allocations: 3.953 kB / 431.9 MB, free: 5.82 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001326/0.4832, allocations: 0.6531 MB / 432.6 MB, free: 5.223 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.725e-06/0.4833, allocations: 0 / 432.6 MB, free: 5.223 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003213/0.4836, allocations: 43.09 kB / 432.6 MB, free: 5.184 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002347/0.4839, allocations: 63.17 kB / 432.7 MB, free: 5.133 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.85e-05/0.4839, allocations: 3.188 kB / 432.7 MB, free: 5.133 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000634/0.4846, allocations: 0.6065 MB / 433.3 MB, free: 4.535 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.568e-06/0.4846, allocations: 0 / 433.3 MB, free: 4.535 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009975/0.4856, allocations: 476.8 kB / 433.8 MB, free: 4.145 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001602/0.4858, allocations: 111.5 kB / 433.9 MB, free: 4.023 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.609e-05/0.4858, allocations: 7.5 kB / 433.9 MB, free: 4.02 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003283/0.4862, allocations: 43.72 kB / 433.9 MB, free: 3.98 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001191/0.4863, allocations: 34 kB / 434 MB, free: 3.953 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.732e-05/0.4864, allocations: 11.98 kB / 434 MB, free: 3.941 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001584/0.4865, allocations: 133.4 kB / 434.1 MB, free: 3.828 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.07e-07/0.4865, allocations: 0 / 434.1 MB, free: 3.828 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005109/0.4871, allocations: 70.88 kB / 434.2 MB, free: 3.766 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.0002635/0.4873, allocations: 142.8 kB / 434.3 MB, free: 3.621 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007451/0.4881, allocations: 314.5 kB / 434.6 MB, free: 3.359 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.24e-06/0.4881, allocations: 0 / 434.6 MB, free: 3.359 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003526/0.4885, allocations: 117 kB / 434.7 MB, free: 3.277 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003859/0.4889, allocations: 31.16 kB / 434.8 MB, free: 3.25 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00128/0.4902, allocations: 0.5308 MB / 435.3 MB, free: 2.727 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004665/0.4907, allocations: 0.7517 MB / 436 MB, free: 1.949 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.18e-05/0.4908, allocations: 26.69 kB / 436.1 MB, free: 1.926 MB / 346.7 MB Notification: Performance of SimCode: time 1.63e-06/0.4908, allocations: 0 / 436.1 MB, free: 1.926 MB / 346.7 MB Notification: Performance of Templates: time 0.008027/0.4988, allocations: 3.673 MB / 439.7 MB, free: 14.29 MB / 362.7 MB