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_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") Notification: Performance of loadModel(Modelica): time 2.009/2.009, allocations: 194.9 MB / 208 MB, free: 3.27 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.602e-05/2.612e-05, allocations: 4 kB / 255.4 MB, free: 2.727 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08317/0.08322, allocations: 44.5 MB / 299.9 MB, free: 6.172 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3902/0.4734, allocations: 75.93 MB / 375.8 MB, free: 22.52 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004227/0.4739, allocations: 70.16 kB / 375.9 MB, free: 22.52 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04318/0.5172, allocations: 6.508 MB / 382.4 MB, free: 21.82 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.832e-06/0.5172, allocations: 4 kB / 382.4 MB, free: 21.81 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.312e-05/0.5173, allocations: 7.375 kB / 382.4 MB, free: 21.81 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.002352/0.5197, allocations: 0.6564 MB / 383.1 MB, free: 21.36 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.7e-05/0.5197, allocations: 9.625 kB / 383.1 MB, free: 21.36 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002067/0.52, allocations: 42.45 kB / 383.1 MB, free: 21.34 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006548/0.5206, allocations: 300.8 kB / 383.4 MB, free: 21.1 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.899e-05/0.5208, allocations: 25.66 kB / 383.4 MB, free: 21.1 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001679/0.5209, allocations: 36.47 kB / 383.5 MB, free: 21.1 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001486/0.5225, allocations: 383.4 kB / 383.8 MB, free: 21.06 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.274e-05/0.5225, allocations: 1.375 kB / 383.8 MB, free: 21.06 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000103/0.5227, allocations: 18 kB / 383.9 MB, free: 21.06 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.052e-05/0.5227, allocations: 8.25 kB / 383.9 MB, free: 21.06 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001567/0.5243, allocations: 367.2 kB / 384.2 MB, free: 21.06 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005275/0.5296, allocations: 1.291 MB / 385.5 MB, free: 20.61 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001422/0.5311, allocations: 344.2 kB / 385.8 MB, free: 20.57 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007901/0.5319, allocations: 213.5 kB / 386.1 MB, free: 20.56 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.235e-05/0.532, allocations: 4.5 kB / 386.1 MB, free: 20.56 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.011e-05/0.5321, allocations: 45.83 kB / 386.1 MB, free: 20.52 MB / 314.7 MB Notification: Performance of pre-optimization done (n=47): time 6.773e-06/0.5321, allocations: 4 kB / 386.1 MB, free: 20.52 MB / 314.7 MB Notification: Performance of matching and sorting (n=51): time 0.006726/0.5388, allocations: 1.578 MB / 387.7 MB, free: 19.94 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.964e-05/0.5389, allocations: 55.75 kB / 387.7 MB, free: 19.87 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003814/0.5393, allocations: 202.7 kB / 387.9 MB, free: 19.77 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001141/0.5395, allocations: 41.92 kB / 388 MB, free: 19.74 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001353/0.5396, allocations: 166.4 kB / 388.1 MB, free: 19.62 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002334/0.5399, allocations: 172.8 kB / 388.3 MB, free: 19.52 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.859e-05/0.54, allocations: 8.688 kB / 388.3 MB, free: 19.52 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.5401, allocations: 346.6 kB / 388.7 MB, free: 19.21 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008147/0.5409, allocations: 187.4 kB / 388.8 MB, free: 19.21 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008456/0.5418, allocations: 255 kB / 389.1 MB, free: 19.15 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006562/0.5425, allocations: 154.2 kB / 389.2 MB, free: 19.14 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.087e-06/0.5425, allocations: 0 / 389.2 MB, free: 19.14 MB / 314.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.003452/0.546, allocations: 0.6912 MB / 389.9 MB, free: 19.03 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.901e-05/0.5461, allocations: 9.844 kB / 389.9 MB, free: 19.03 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.067e-05/0.5461, allocations: 3.906 kB / 389.9 MB, free: 19.03 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002048/0.5482, allocations: 435.6 kB / 390.4 MB, free: 18.98 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006528/0.5489, allocations: 76.86 kB / 390.4 MB, free: 18.97 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004334/0.5532, allocations: 3.375 MB / 393.8 MB, free: 15.92 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001195/0.5545, allocations: 108.1 kB / 393.9 MB, free: 15.91 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001386/0.5546, allocations: 26.09 kB / 394 MB, free: 15.91 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.0002782/0.5549, allocations: 135.3 kB / 394.1 MB, free: 15.79 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002009/0.5552, allocations: 35.06 kB / 394.1 MB, free: 15.78 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003194/0.5584, allocations: 0.7049 MB / 394.8 MB, free: 15.66 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.204e-05/0.5584, allocations: 7.938 kB / 394.8 MB, free: 15.66 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.117e-05/0.5585, allocations: 7.094 kB / 394.8 MB, free: 15.66 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.215e-05/0.5585, allocations: 3.938 kB / 394.8 MB, free: 15.66 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003846/0.5623, allocations: 1.149 MB / 396 MB, free: 15.31 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.733e-06/0.5624, allocations: 4 kB / 396 MB, free: 15.3 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006949/0.5631, allocations: 55.53 kB / 396.1 MB, free: 15.3 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001971/0.5651, allocations: 427.3 kB / 396.5 MB, free: 15.25 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001066/0.5652, allocations: 19.2 kB / 396.5 MB, free: 15.25 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005575/0.5708, allocations: 3.353 MB / 399.8 MB, free: 28.2 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.47e-06/0.5709, allocations: 0 / 399.8 MB, free: 28.2 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003285/0.5742, allocations: 0.8881 MB / 400.7 MB, free: 28 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004258/0.5747, allocations: 153 kB / 400.9 MB, free: 27.89 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001813/0.5749, allocations: 15.41 kB / 400.9 MB, free: 27.89 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001121/0.576, allocations: 104.7 kB / 401 MB, free: 27.88 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000409/0.5764, allocations: 109.8 kB / 401.1 MB, free: 27.88 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000119/0.5766, allocations: 21.73 kB / 401.1 MB, free: 27.88 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000325/0.5769, allocations: 170.7 kB / 401.3 MB, free: 27.8 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.461e-06/0.577, allocations: 0 / 401.3 MB, free: 27.8 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001184/0.5782, allocations: 124.8 kB / 401.4 MB, free: 27.79 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.0004068/0.5786, allocations: 145.9 kB / 401.6 MB, free: 27.7 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002525/0.5812, allocations: 0.7525 MB / 402.3 MB, free: 27.4 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.294e-06/0.5812, allocations: 3.938 kB / 402.3 MB, free: 27.4 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001518/0.5827, allocations: 491.3 kB / 402.8 MB, free: 27.18 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008508/0.5836, allocations: 58.81 kB / 402.8 MB, free: 27.17 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003446/0.5871, allocations: 0.7996 MB / 403.6 MB, free: 26.8 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006435/0.5878, allocations: 0.8045 MB / 404.5 MB, free: 26.1 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003271/0.5881, allocations: 30.34 kB / 404.5 MB, free: 26.09 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001593/0.5883, allocations: 30.05 kB / 404.5 MB, free: 26.09 MB / 330.7 MB Notification: Performance of SimCode: time 2.653e-06/0.5883, allocations: 0 / 404.5 MB, free: 26.09 MB / 330.7 MB Notification: Performance of Templates: time 0.02951/0.6179, allocations: 8.458 MB / 413 MB, free: 25.08 MB / 330.7 MB