Running command: translateModel(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") Notification: Performance of loadModel(Modelica): time 1.992/1.992, allocations: 225.8 MB / 239.3 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.979e-05/2.991e-05, allocations: 4 kB / 292.1 MB, free: 8.816 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09083/0.09089, allocations: 50.42 MB / 342.5 MB, free: 6.379 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3665/0.4574, allocations: 81.58 MB / 424.1 MB, free: 12.59 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003139/0.4578, allocations: 68.09 kB / 424.2 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04958/0.5074, allocations: 6.753 MB / 430.9 MB, free: 6.684 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.286e-06/0.5075, allocations: 0 / 430.9 MB, free: 6.684 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.058e-05/0.5075, allocations: 8 kB / 430.9 MB, free: 6.676 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.002632/0.5102, allocations: 0.653 MB / 431.6 MB, free: 6 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.327e-05/0.5103, allocations: 12.03 kB / 431.6 MB, free: 5.988 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002111/0.5105, allocations: 39.53 kB / 431.7 MB, free: 5.949 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007634/0.5113, allocations: 292 kB / 431.9 MB, free: 5.652 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.011e-05/0.5114, allocations: 28.16 kB / 432 MB, free: 5.637 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001637/0.5116, allocations: 35.56 kB / 432 MB, free: 5.613 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001566/0.5132, allocations: 389.1 kB / 432.4 MB, free: 5.344 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.872e-05/0.5132, allocations: 0 / 432.4 MB, free: 5.344 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001039/0.5134, allocations: 13.94 kB / 432.4 MB, free: 5.34 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.148e-05/0.5134, allocations: 15.89 kB / 432.4 MB, free: 5.324 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001609/0.515, allocations: 368.2 kB / 432.8 MB, free: 5.082 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005888/0.521, allocations: 1.29 MB / 434.1 MB, free: 3.984 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001521/0.5225, allocations: 352.6 kB / 434.4 MB, free: 3.746 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008444/0.5234, allocations: 210.5 kB / 434.6 MB, free: 3.621 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001013/0.5236, allocations: 4.438 kB / 434.6 MB, free: 3.617 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.836e-05/0.5237, allocations: 46.8 kB / 434.7 MB, free: 3.566 MB / 346.7 MB Notification: Performance of pre-optimization done (n=47): time 7.59e-06/0.5237, allocations: 0 / 434.7 MB, free: 3.566 MB / 346.7 MB Notification: Performance of matching and sorting (n=51): time 0.007474/0.5312, allocations: 1.57 MB / 436.2 MB, free: 2.23 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.613e-05/0.5313, allocations: 55.84 kB / 436.3 MB, free: 2.164 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004667/0.5318, allocations: 205.2 kB / 436.5 MB, free: 1.992 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001419/0.532, allocations: 48.19 kB / 436.5 MB, free: 1.949 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002237/0.5322, allocations: 223.9 kB / 436.7 MB, free: 1.746 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003225/0.5326, allocations: 177.1 kB / 436.9 MB, free: 1.598 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.502e-05/0.5327, allocations: 6.5 kB / 436.9 MB, free: 1.598 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002352/0.5329, allocations: 341 kB / 437.3 MB, free: 1.266 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008414/0.5338, allocations: 183.2 kB / 437.4 MB, free: 1.16 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009572/0.5348, allocations: 253.8 kB / 437.7 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007163/0.5355, allocations: 148.4 kB / 437.8 MB, free: 0.8828 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.341e-06/0.5355, allocations: 0 / 437.8 MB, free: 0.8828 MB / 346.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00378/0.5393, allocations: 0.6854 MB / 438.5 MB, free: 372 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.391e-05/0.5394, allocations: 4 kB / 438.5 MB, free: 368 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.669e-05/0.5395, allocations: 4 kB / 438.5 MB, free: 364 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002321/0.5418, allocations: 438.5 kB / 439 MB, free: 16 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004729/0.5423, allocations: 74.64 kB / 439 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003978/0.5463, allocations: 3.381 MB / 442.4 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007402/0.5471, allocations: 107.3 kB / 442.5 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.112e-05/0.5472, allocations: 27.03 kB / 442.5 MB, free: 12.37 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 16 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of prepare postOptimizeDAE: time 0.0002169/0.5475, allocations: 131.8 kB / 442.7 MB, free: 12.25 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000125/0.5476, allocations: 35.53 kB / 442.7 MB, free: 12.21 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002001/0.5496, allocations: 0.71 MB / 443.4 MB, free: 11.69 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.354e-05/0.5497, allocations: 8 kB / 443.4 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.757e-06/0.5497, allocations: 0 / 443.4 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.941e-06/0.5497, allocations: 0 / 443.4 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002631/0.5523, allocations: 1.163 MB / 444.6 MB, free: 10.74 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.959e-06/0.5524, allocations: 0 / 444.6 MB, free: 10.74 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004327/0.5528, allocations: 55.91 kB / 444.6 MB, free: 10.69 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001267/0.5541, allocations: 434.6 kB / 445.1 MB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.627e-05/0.5542, allocations: 15.05 kB / 445.1 MB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003781/0.558, allocations: 3.352 MB / 448.4 MB, free: 6.891 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.681e-06/0.558, allocations: 0 / 448.4 MB, free: 6.891 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002106/0.5601, allocations: 0.8885 MB / 449.3 MB, free: 6.242 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002972/0.5605, allocations: 151.1 kB / 449.5 MB, free: 6.094 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000104/0.5606, allocations: 14.5 kB / 449.5 MB, free: 6.09 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006688/0.5613, allocations: 106.8 kB / 449.6 MB, free: 5.992 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002837/0.5616, allocations: 106 kB / 449.7 MB, free: 5.902 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.452e-05/0.5617, allocations: 23.78 kB / 449.7 MB, free: 5.883 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000258/0.5619, allocations: 168.1 kB / 449.9 MB, free: 5.742 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.08e-07/0.562, allocations: 3.938 kB / 449.9 MB, free: 5.738 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007018/0.5627, allocations: 125.5 kB / 450 MB, free: 5.629 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (load.w,quadraticSpeedDependentTorque.phi,clutch.phi_rel,clutch.w_rel) * Number of discrete variables: 10 (clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 6 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startBackward,clutch.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 28 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003137/0.563, allocations: 153.4 kB / 450.1 MB, free: 5.477 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001701/0.5647, allocations: 0.7492 MB / 450.9 MB, free: 4.863 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.188e-06/0.5647, allocations: 8 kB / 450.9 MB, free: 4.855 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001025/0.5658, allocations: 496.6 kB / 451.4 MB, free: 4.438 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005524/0.5664, allocations: 50.73 kB / 451.4 MB, free: 4.402 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002344/0.5687, allocations: 0.8217 MB / 452.3 MB, free: 3.648 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005428/0.5693, allocations: 0.8036 MB / 453.1 MB, free: 2.82 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001323/0.5694, allocations: 27.42 kB / 453.1 MB, free: 2.793 MB / 362.7 MB Notification: Performance of SimCode: time 1.843e-06/0.5694, allocations: 4 kB / 453.1 MB, free: 2.789 MB / 362.7 MB Notification: Performance of Templates: time 0.02522/0.5947, allocations: 8.498 MB / 461.6 MB, free: 10.34 MB / 378.7 MB