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.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") Notification: Performance of loadModel(Modelica): time 1.702/1.702, allocations: 171.2 MB / 183.3 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.384e-05/3.401e-05, allocations: 4 kB / 225 MB, free: 2.344 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2114/0.2115, allocations: 38.76 MB / 263.8 MB, free: 9.84 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1133/0.3248, allocations: 70.6 MB / 334.4 MB, free: 3.133 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002077/0.3251, allocations: 71.95 kB / 334.4 MB, free: 3.062 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02724/0.3523, allocations: 6.434 MB / 340.9 MB, free: 12.61 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.008e-06/0.3524, allocations: 4 kB / 340.9 MB, free: 12.61 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.781e-05/0.3524, allocations: 11.98 kB / 340.9 MB, free: 12.59 MB / 298.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.001502/0.3539, allocations: 0.6621 MB / 341.6 MB, free: 11.89 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.354e-05/0.354, allocations: 8.031 kB / 341.6 MB, free: 11.88 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001243/0.3541, allocations: 43.53 kB / 341.6 MB, free: 11.84 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004916/0.3546, allocations: 293.4 kB / 341.9 MB, free: 11.51 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.833e-05/0.3547, allocations: 24.78 kB / 341.9 MB, free: 11.48 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001083/0.3548, allocations: 39.91 kB / 342 MB, free: 11.45 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009724/0.3558, allocations: 406 kB / 342.4 MB, free: 11.04 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.712e-05/0.3558, allocations: 4 kB / 342.4 MB, free: 11.04 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.148e-05/0.3559, allocations: 16 kB / 342.4 MB, free: 11.02 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.336e-05/0.3559, allocations: 8 kB / 342.4 MB, free: 11.02 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001012/0.357, allocations: 413.3 kB / 342.8 MB, free: 10.61 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003254/0.3602, allocations: 1.292 MB / 344.1 MB, free: 9.242 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009163/0.3612, allocations: 339.6 kB / 344.4 MB, free: 8.902 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005247/0.3617, allocations: 237.5 kB / 344.6 MB, free: 8.668 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.93e-05/0.3618, allocations: 8.359 kB / 344.7 MB, free: 8.66 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.534e-05/0.3618, allocations: 38.94 kB / 344.7 MB, free: 8.613 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 3.681e-06/0.3618, allocations: 0 / 344.7 MB, free: 8.613 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.004436/0.3663, allocations: 1.639 MB / 346.3 MB, free: 6.879 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.606e-05/0.3664, allocations: 55.84 kB / 346.4 MB, free: 6.812 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003301/0.3667, allocations: 211 kB / 346.6 MB, free: 6.594 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.6e-05/0.3668, allocations: 45.69 kB / 346.6 MB, free: 6.543 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000146/0.367, allocations: 168.6 kB / 346.8 MB, free: 6.371 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002044/0.3672, allocations: 169.8 kB / 347 MB, free: 6.203 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.864e-05/0.3673, allocations: 8 kB / 347 MB, free: 6.195 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001933/0.3675, allocations: 346.8 kB / 347.3 MB, free: 5.848 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000526/0.368, allocations: 213 kB / 347.5 MB, free: 5.641 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005827/0.3686, allocations: 270.2 kB / 347.8 MB, free: 5.359 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004471/0.3691, allocations: 175.2 kB / 348 MB, free: 5.188 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.175e-06/0.3691, allocations: 0 / 348 MB, free: 5.188 MB / 298.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00252/0.3716, allocations: 0.8477 MB / 348.8 MB, free: 4.328 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.214e-05/0.3717, allocations: 4 kB / 348.8 MB, free: 4.324 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.3717, allocations: 4 kB / 348.8 MB, free: 4.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001527/0.3732, allocations: 0.5646 MB / 349.4 MB, free: 3.746 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004244/0.3737, allocations: 75.89 kB / 349.4 MB, free: 3.672 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004066/0.3777, allocations: 3.446 MB / 352.9 MB, free: 15.93 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007069/0.3785, allocations: 104.1 kB / 353 MB, free: 15.83 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.031e-05/0.3786, allocations: 24 kB / 353 MB, free: 15.81 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): 43 * 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 prepare postOptimizeDAE: time 0.0002137/0.3788, allocations: 136.8 kB / 353.2 MB, free: 15.67 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001241/0.379, allocations: 35.62 kB / 353.2 MB, free: 15.63 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002152/0.3811, allocations: 0.7479 MB / 353.9 MB, free: 14.87 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.267e-06/0.3812, allocations: 4 kB / 353.9 MB, free: 14.87 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.153e-06/0.3812, allocations: 0 / 353.9 MB, free: 14.87 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.043e-05/0.3812, allocations: 3.984 kB / 353.9 MB, free: 14.86 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002842/0.3841, allocations: 1.231 MB / 355.2 MB, free: 13.57 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.079e-06/0.3841, allocations: 0 / 355.2 MB, free: 13.57 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004072/0.3845, allocations: 51.97 kB / 355.2 MB, free: 13.52 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001457/0.386, allocations: 0.5508 MB / 355.8 MB, free: 12.96 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.148e-05/0.3861, allocations: 27.97 kB / 355.8 MB, free: 12.93 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003965/0.3901, allocations: 3.422 MB / 359.2 MB, free: 9.219 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.817e-06/0.3901, allocations: 0 / 359.2 MB, free: 9.219 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002317/0.3924, allocations: 0.9614 MB / 360.2 MB, free: 8.23 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003114/0.3928, allocations: 164.6 kB / 360.3 MB, free: 8.051 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001073/0.3929, allocations: 12 kB / 360.4 MB, free: 8.039 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006413/0.3935, allocations: 104 kB / 360.5 MB, free: 7.938 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002876/0.3939, allocations: 104.2 kB / 360.6 MB, free: 7.836 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.578e-05/0.3939, allocations: 27.91 kB / 360.6 MB, free: 7.809 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002395/0.3942, allocations: 167.1 kB / 360.8 MB, free: 7.645 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.48e-07/0.3942, allocations: 0 / 360.8 MB, free: 7.645 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006694/0.3949, allocations: 128 kB / 360.9 MB, free: 7.52 MB / 314.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.0002903/0.3952, allocations: 143.1 kB / 361 MB, free: 7.367 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00166/0.3969, allocations: 0.7202 MB / 361.7 MB, free: 6.629 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.86e-06/0.3969, allocations: 4.25 kB / 361.7 MB, free: 6.625 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001047/0.398, allocations: 499.3 kB / 362.2 MB, free: 6.113 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005187/0.3985, allocations: 48.67 kB / 362.3 MB, free: 6.066 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002279/0.4008, allocations: 0.8118 MB / 363.1 MB, free: 5.234 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005562/0.4014, allocations: 0.8073 MB / 363.9 MB, free: 4.398 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001975/0.4016, allocations: 31.28 kB / 363.9 MB, free: 4.367 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001174/0.4017, allocations: 27.42 kB / 364 MB, free: 4.34 MB / 314.7 MB Notification: Performance of SimCode: time 2.128e-06/0.4017, allocations: 0 / 364 MB, free: 4.34 MB / 314.7 MB Notification: Performance of Templates: time 0.2133/0.615, allocations: 8.166 MB / 372.1 MB, free: 93.6 MB / 314.7 MB