Running command: translateModel(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|clutch.phi_rel|clutch.w_rel|engine.phi|engine.w|load.phi|load.w|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") Notification: Performance of loadModel(Modelica): time 1.884/1.884, allocations: 194.9 MB / 208.4 MB, free: 3.238 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.723e-05/2.742e-05, allocations: 2.438 kB / 255.4 MB, free: 3.176 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07787/0.07792, allocations: 44.5 MB / 299.9 MB, free: 6.633 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3659/0.4439, allocations: 75.93 MB / 375.8 MB, free: 22.45 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002134/0.4441, allocations: 71.28 kB / 375.9 MB, free: 22.45 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02552/0.4697, allocations: 6.508 MB / 382.4 MB, free: 21.73 MB / 314.7 MB Notification: Performance of FrontEnd: time 4.406e-06/0.4697, allocations: 0 / 382.4 MB, free: 21.73 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.571e-05/0.4698, allocations: 16.22 kB / 382.4 MB, free: 21.73 MB / 314.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.001347/0.4711, allocations: 0.6498 MB / 383 MB, free: 21.28 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.027e-05/0.4712, allocations: 10.06 kB / 383 MB, free: 21.28 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001225/0.4713, allocations: 40.94 kB / 383.1 MB, free: 21.26 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004064/0.4717, allocations: 300 kB / 383.4 MB, free: 21.02 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.439e-05/0.4718, allocations: 22.72 kB / 383.4 MB, free: 21.02 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001028/0.4719, allocations: 36.03 kB / 383.4 MB, free: 21.02 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009194/0.4728, allocations: 385.6 kB / 383.8 MB, free: 20.98 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.78e-05/0.4729, allocations: 5.375 kB / 383.8 MB, free: 20.98 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.163e-05/0.4729, allocations: 17.86 kB / 383.8 MB, free: 20.98 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.422e-05/0.473, allocations: 8.25 kB / 383.8 MB, free: 20.98 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008848/0.4739, allocations: 367.8 kB / 384.2 MB, free: 20.98 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003071/0.477, allocations: 1.289 MB / 385.5 MB, free: 20.52 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008277/0.4778, allocations: 347.6 kB / 385.8 MB, free: 20.49 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004433/0.4783, allocations: 212.3 kB / 386 MB, free: 20.48 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.403e-05/0.4784, allocations: 9.312 kB / 386 MB, free: 20.48 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.955e-05/0.4784, allocations: 37.94 kB / 386.1 MB, free: 20.44 MB / 314.7 MB Notification: Performance of pre-optimization done (n=47): time 4.209e-06/0.4784, allocations: 7.938 kB / 386.1 MB, free: 20.43 MB / 314.7 MB Notification: Performance of matching and sorting (n=51): time 0.003965/0.4824, allocations: 1.58 MB / 387.7 MB, free: 19.85 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.577e-05/0.4825, allocations: 62.89 kB / 387.7 MB, free: 19.78 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002394/0.4827, allocations: 201.4 kB / 387.9 MB, free: 19.68 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.375e-05/0.4828, allocations: 43.7 kB / 388 MB, free: 19.65 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.648e-05/0.4829, allocations: 222.2 kB / 388.2 MB, free: 19.47 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000137/0.4831, allocations: 169.5 kB / 388.3 MB, free: 19.37 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.693e-05/0.4831, allocations: 14.84 kB / 388.4 MB, free: 19.36 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.484e-05/0.4832, allocations: 332 kB / 388.7 MB, free: 19.05 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004437/0.4837, allocations: 185.4 kB / 388.9 MB, free: 19.05 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004906/0.4842, allocations: 253.4 kB / 389.1 MB, free: 19 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003649/0.4845, allocations: 154.4 kB / 389.3 MB, free: 18.99 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.14e-06/0.4846, allocations: 3.906 kB / 389.3 MB, free: 18.99 MB / 314.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001981/0.4865, allocations: 0.6782 MB / 389.9 MB, free: 18.88 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.164e-05/0.4866, allocations: 7.359 kB / 390 MB, free: 18.88 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.192e-05/0.4866, allocations: 7.844 kB / 390 MB, free: 18.88 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001215/0.4878, allocations: 437.2 kB / 390.4 MB, free: 18.84 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003922/0.4883, allocations: 72.53 kB / 390.5 MB, free: 18.83 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002738/0.491, allocations: 3.375 MB / 393.8 MB, free: 15.77 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007439/0.4918, allocations: 104.6 kB / 393.9 MB, free: 15.77 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.856e-05/0.4919, allocations: 22.16 kB / 394 MB, free: 15.77 MB / 314.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.000187/0.4921, allocations: 142.1 kB / 394.1 MB, free: 15.65 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001177/0.4922, allocations: 38.97 kB / 394.1 MB, free: 15.63 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001932/0.4942, allocations: 0.7031 MB / 394.8 MB, free: 15.52 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.94e-06/0.4942, allocations: 7.906 kB / 394.8 MB, free: 15.52 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.222e-06/0.4942, allocations: 3.938 kB / 394.9 MB, free: 15.51 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.475e-06/0.4942, allocations: 2.719 kB / 394.9 MB, free: 15.51 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002419/0.4967, allocations: 1.155 MB / 396 MB, free: 15.16 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.098e-06/0.4967, allocations: 0 / 396 MB, free: 15.16 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004307/0.4972, allocations: 59.5 kB / 396.1 MB, free: 15.16 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001159/0.4983, allocations: 419.7 kB / 396.5 MB, free: 15.11 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.028e-05/0.4984, allocations: 21.59 kB / 396.5 MB, free: 15.11 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003773/0.5022, allocations: 3.352 MB / 399.9 MB, free: 28.05 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.618e-06/0.5023, allocations: 3.938 kB / 399.9 MB, free: 28.05 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00191/0.5042, allocations: 0.886 MB / 400.7 MB, free: 27.86 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002924/0.5045, allocations: 159.5 kB / 400.9 MB, free: 27.75 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001058/0.5046, allocations: 11.59 kB / 400.9 MB, free: 27.75 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005905/0.5053, allocations: 104.8 kB / 401 MB, free: 27.73 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002478/0.5055, allocations: 105 kB / 401.1 MB, free: 27.73 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.79e-05/0.5056, allocations: 28.84 kB / 401.1 MB, free: 27.73 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002174/0.5058, allocations: 164.2 kB / 401.3 MB, free: 27.66 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.91e-07/0.5059, allocations: 0 / 401.3 MB, free: 27.66 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006748/0.5065, allocations: 131.9 kB / 401.4 MB, free: 27.64 MB / 330.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.0002842/0.5068, allocations: 142.9 kB / 401.6 MB, free: 27.55 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001514/0.5084, allocations: 0.7575 MB / 402.3 MB, free: 27.25 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.5084, allocations: 0 / 402.3 MB, free: 27.25 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009088/0.5093, allocations: 494.5 kB / 402.8 MB, free: 27.04 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005356/0.5099, allocations: 44.2 kB / 402.9 MB, free: 27.03 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002089/0.512, allocations: 0.8327 MB / 403.7 MB, free: 26.62 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004857/0.5125, allocations: 0.8038 MB / 404.5 MB, free: 25.93 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001307/0.5126, allocations: 26.83 kB / 404.5 MB, free: 25.92 MB / 330.7 MB Notification: Performance of SimCode: time 1.827e-06/0.5127, allocations: 0 / 404.5 MB, free: 25.92 MB / 330.7 MB Notification: Performance of Templates: time 0.01203/0.5247, allocations: 8.488 MB / 413 MB, free: 25.02 MB / 330.7 MB