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.952/1.952, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.551e-05/2.564e-05, allocations: 4 kB / 249.6 MB, free: 15.3 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2528/0.2528, allocations: 44.5 MB / 294.1 MB, free: 14.36 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1415/0.3944, allocations: 75.27 MB / 369.4 MB, free: 6.703 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002314/0.3947, allocations: 71.89 kB / 369.4 MB, free: 6.633 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02732/0.422, allocations: 6.462 MB / 375.9 MB, free: 156 kB / 314.7 MB Notification: Performance of FrontEnd: time 1.983e-06/0.4221, allocations: 0 / 375.9 MB, free: 156 kB / 314.7 MB Notification: Performance of Transformations before backend: time 2.255e-05/0.4221, allocations: 8 kB / 375.9 MB, free: 148 kB / 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.001504/0.4236, allocations: 0.6582 MB / 376.6 MB, free: 15.44 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.4237, allocations: 8.031 kB / 376.6 MB, free: 15.43 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001253/0.4238, allocations: 43.53 kB / 376.6 MB, free: 15.39 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004953/0.4243, allocations: 289.4 kB / 376.9 MB, free: 15.07 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.764e-05/0.4244, allocations: 16 kB / 376.9 MB, free: 15.05 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001006/0.4245, allocations: 20 kB / 376.9 MB, free: 15.04 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009291/0.4254, allocations: 349.4 kB / 377.3 MB, free: 14.7 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000848/0.4263, allocations: 350 kB / 377.6 MB, free: 14.34 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.823e-05/0.4263, allocations: 4 kB / 377.6 MB, free: 14.34 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.237e-05/0.4264, allocations: 0 / 377.6 MB, free: 14.34 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.787e-05/0.4264, allocations: 8 kB / 377.6 MB, free: 14.33 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003337/0.4298, allocations: 1.234 MB / 378.9 MB, free: 13.04 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008224/0.4306, allocations: 323.9 kB / 379.2 MB, free: 12.71 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004452/0.4311, allocations: 198.1 kB / 379.4 MB, free: 12.52 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.532e-05/0.4312, allocations: 4.438 kB / 379.4 MB, free: 12.51 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.804e-05/0.4312, allocations: 39 kB / 379.4 MB, free: 12.46 MB / 330.7 MB Notification: Performance of pre-optimization done (n=47): time 4.153e-06/0.4312, allocations: 0 / 379.4 MB, free: 12.46 MB / 330.7 MB Notification: Performance of matching and sorting (n=51): time 0.004895/0.4361, allocations: 1.52 MB / 380.9 MB, free: 10.85 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.175e-05/0.4362, allocations: 59.83 kB / 381 MB, free: 10.77 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002708/0.4365, allocations: 196.5 kB / 381.2 MB, free: 10.58 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.927e-05/0.4366, allocations: 25.7 kB / 381.2 MB, free: 10.55 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001719/0.4368, allocations: 231.1 kB / 381.4 MB, free: 10.32 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002053/0.437, allocations: 169.6 kB / 381.6 MB, free: 10.15 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.845e-05/0.4371, allocations: 0 / 381.6 MB, free: 10.15 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001789/0.4373, allocations: 326.8 kB / 381.9 MB, free: 9.824 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004546/0.4377, allocations: 181.1 kB / 382.1 MB, free: 9.648 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005153/0.4383, allocations: 238.2 kB / 382.3 MB, free: 9.395 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005843/0.4388, allocations: 158.1 kB / 382.5 MB, free: 9.238 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.001e-06/0.4389, allocations: 0 / 382.5 MB, free: 9.238 MB / 330.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002206/0.4411, allocations: 0.6532 MB / 383.1 MB, free: 8.57 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.57e-05/0.4411, allocations: 10.03 kB / 383.2 MB, free: 8.562 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.243e-05/0.4412, allocations: 3.984 kB / 383.2 MB, free: 8.559 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001301/0.4425, allocations: 435.7 kB / 383.6 MB, free: 8.125 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003834/0.4429, allocations: 71.89 kB / 383.7 MB, free: 8.055 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004138/0.447, allocations: 3.35 MB / 387 MB, free: 4.441 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006802/0.4478, allocations: 92.03 kB / 387.1 MB, free: 4.352 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.627e-05/0.4479, allocations: 23.98 kB / 387.1 MB, free: 4.328 MB / 330.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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.0002698/0.4482, allocations: 128.7 kB / 387.2 MB, free: 4.195 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001233/0.4483, allocations: 35.58 kB / 387.3 MB, free: 4.16 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002094/0.4504, allocations: 0.6715 MB / 388 MB, free: 3.469 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.889e-06/0.4504, allocations: 4 kB / 388 MB, free: 3.465 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.67e-06/0.4505, allocations: 4 kB / 388 MB, free: 3.461 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.113e-05/0.4505, allocations: 3.953 kB / 388 MB, free: 3.457 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002683/0.4532, allocations: 1.065 MB / 389 MB, free: 2.336 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.393e-06/0.4532, allocations: 0 / 389 MB, free: 2.336 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003962/0.4536, allocations: 67.89 kB / 389.1 MB, free: 2.27 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001215/0.4548, allocations: 410.9 kB / 389.5 MB, free: 1.859 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.75e-05/0.4549, allocations: 19.97 kB / 389.5 MB, free: 1.84 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003989/0.4589, allocations: 3.318 MB / 392.8 MB, free: 14.27 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.722e-06/0.459, allocations: 3.984 kB / 392.8 MB, free: 14.27 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002214/0.4612, allocations: 0.8484 MB / 393.7 MB, free: 13.39 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003179/0.4616, allocations: 164.7 kB / 393.8 MB, free: 13.21 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000102/0.4617, allocations: 8 kB / 393.9 MB, free: 13.21 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006122/0.4623, allocations: 87.91 kB / 393.9 MB, free: 13.12 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002954/0.4626, allocations: 108.2 kB / 394 MB, free: 13.01 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.826e-05/0.4627, allocations: 23.98 kB / 394.1 MB, free: 12.99 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000203/0.4629, allocations: 150 kB / 394.2 MB, free: 12.84 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.12e-06/0.4629, allocations: 4 kB / 394.2 MB, free: 12.84 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006888/0.4636, allocations: 115.9 kB / 394.3 MB, free: 12.73 MB / 346.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.0002987/0.464, allocations: 130.5 kB / 394.5 MB, free: 12.59 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001669/0.4656, allocations: 0.7393 MB / 395.2 MB, free: 11.82 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.043e-06/0.4657, allocations: 0 / 395.2 MB, free: 11.82 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009793/0.4667, allocations: 479.3 kB / 395.7 MB, free: 11.34 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000541/0.4672, allocations: 49.69 kB / 395.7 MB, free: 11.29 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00233/0.4696, allocations: 0.7993 MB / 396.5 MB, free: 10.46 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005572/0.4702, allocations: 0.8114 MB / 397.3 MB, free: 9.625 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001315/0.4703, allocations: 27.42 kB / 397.4 MB, free: 9.598 MB / 346.7 MB Notification: Performance of SimCode: time 1.922e-06/0.4703, allocations: 4 kB / 397.4 MB, free: 9.594 MB / 346.7 MB Notification: Performance of Templates: time 0.01535/0.4857, allocations: 8.469 MB / 405.8 MB, free: 1.125 MB / 346.7 MB