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.878/1.878, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.529e-05/2.545e-05, allocations: 4 kB / 255.3 MB, free: 3.195 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0781/0.07815, allocations: 44.5 MB / 299.8 MB, free: 6.625 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3336/0.4118, allocations: 75.93 MB / 375.8 MB, free: 22.49 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002465/0.4121, allocations: 71.17 kB / 375.8 MB, free: 22.49 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02585/0.438, allocations: 6.506 MB / 382.3 MB, free: 21.78 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.679e-06/0.438, allocations: 0 / 382.3 MB, free: 21.78 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.462e-05/0.4381, allocations: 10.12 kB / 382.3 MB, free: 21.77 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.001428/0.4395, allocations: 0.6518 MB / 383 MB, free: 21.33 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.347e-05/0.4396, allocations: 13.56 kB / 383 MB, free: 21.33 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001443/0.4397, allocations: 43.66 kB / 383.1 MB, free: 21.31 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004223/0.4402, allocations: 293.9 kB / 383.3 MB, free: 21.07 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.366e-05/0.4402, allocations: 24.78 kB / 383.4 MB, free: 21.07 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.938e-05/0.4403, allocations: 37.69 kB / 383.4 MB, free: 21.07 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009223/0.4413, allocations: 391.9 kB / 383.8 MB, free: 21.02 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.976e-05/0.4413, allocations: 3.125 kB / 383.8 MB, free: 21.02 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.201e-05/0.4414, allocations: 13.44 kB / 383.8 MB, free: 21.02 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.475e-05/0.4414, allocations: 7.938 kB / 383.8 MB, free: 21.02 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009098/0.4423, allocations: 373.6 kB / 384.2 MB, free: 21.02 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003118/0.4455, allocations: 1.285 MB / 385.5 MB, free: 20.56 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008673/0.4464, allocations: 348.2 kB / 385.8 MB, free: 20.53 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004443/0.4468, allocations: 217.2 kB / 386 MB, free: 20.52 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.668e-05/0.4469, allocations: 14.81 kB / 386 MB, free: 20.52 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.131e-05/0.447, allocations: 39.94 kB / 386.1 MB, free: 20.47 MB / 314.7 MB Notification: Performance of pre-optimization done (n=47): time 4.304e-06/0.447, allocations: 0 / 386.1 MB, free: 20.47 MB / 314.7 MB Notification: Performance of matching and sorting (n=51): time 0.00413/0.4511, allocations: 1.58 MB / 387.6 MB, free: 19.88 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.91e-05/0.4512, allocations: 56.06 kB / 387.7 MB, free: 19.82 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000292/0.4515, allocations: 202.6 kB / 387.9 MB, free: 19.72 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.929e-05/0.4516, allocations: 44.19 kB / 387.9 MB, free: 19.69 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001013/0.4517, allocations: 224.5 kB / 388.2 MB, free: 19.5 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001562/0.4519, allocations: 183.2 kB / 388.3 MB, free: 19.4 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.746e-05/0.4519, allocations: 11.53 kB / 388.4 MB, free: 19.4 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.577e-05/0.452, allocations: 329 kB / 388.7 MB, free: 19.09 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004282/0.4525, allocations: 185.5 kB / 388.9 MB, free: 19.09 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004709/0.4529, allocations: 257.5 kB / 389.1 MB, free: 19.04 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003789/0.4533, allocations: 151.5 kB / 389.3 MB, free: 19.03 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.145e-06/0.4534, allocations: 0 / 389.3 MB, free: 19.03 MB / 314.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002088/0.4555, allocations: 0.6814 MB / 389.9 MB, free: 18.92 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.166e-05/0.4555, allocations: 7.812 kB / 389.9 MB, free: 18.92 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.166e-05/0.4555, allocations: 3.906 kB / 389.9 MB, free: 18.92 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001192/0.4567, allocations: 439.9 kB / 390.4 MB, free: 18.87 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003814/0.4571, allocations: 73.23 kB / 390.4 MB, free: 18.86 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002735/0.4599, allocations: 3.386 MB / 393.8 MB, free: 15.8 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007982/0.4607, allocations: 106.2 kB / 393.9 MB, free: 15.8 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.154e-05/0.4609, allocations: 22.52 kB / 394 MB, free: 15.8 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.000188/0.4611, allocations: 138.2 kB / 394.1 MB, free: 15.68 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001135/0.4612, allocations: 34.88 kB / 394.1 MB, free: 15.66 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001954/0.4632, allocations: 0.712 MB / 394.8 MB, free: 15.55 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.465e-06/0.4632, allocations: 7.906 kB / 394.8 MB, free: 15.55 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.8e-06/0.4632, allocations: 3.938 kB / 394.9 MB, free: 15.55 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.525e-06/0.4632, allocations: 3.938 kB / 394.9 MB, free: 15.55 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002426/0.4657, allocations: 1.144 MB / 396 MB, free: 15.2 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.373e-06/0.4657, allocations: 7.328 kB / 396 MB, free: 15.2 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003973/0.4661, allocations: 57.19 kB / 396.1 MB, free: 15.19 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00116/0.4673, allocations: 423 kB / 396.5 MB, free: 15.14 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.232e-05/0.4674, allocations: 21.42 kB / 396.5 MB, free: 15.14 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003824/0.4712, allocations: 3.358 MB / 399.9 MB, free: 28.09 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.751e-06/0.4713, allocations: 4.219 kB / 399.9 MB, free: 28.08 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001915/0.4732, allocations: 0.8853 MB / 400.7 MB, free: 27.89 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002756/0.4735, allocations: 152.5 kB / 400.9 MB, free: 27.78 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001041/0.4736, allocations: 18.88 kB / 400.9 MB, free: 27.78 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006053/0.4742, allocations: 105.9 kB / 401 MB, free: 27.77 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002452/0.4745, allocations: 102 kB / 401.1 MB, free: 27.77 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.816e-05/0.4746, allocations: 26.41 kB / 401.1 MB, free: 27.77 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002138/0.4748, allocations: 173.2 kB / 401.3 MB, free: 27.68 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.51e-07/0.4748, allocations: 0 / 401.3 MB, free: 27.68 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000655/0.4755, allocations: 130.6 kB / 401.4 MB, free: 27.67 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.0002799/0.4758, allocations: 142.4 kB / 401.6 MB, free: 27.57 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001552/0.4774, allocations: 0.7721 MB / 402.3 MB, free: 27.27 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.469e-06/0.4774, allocations: 0 / 402.3 MB, free: 27.27 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009444/0.4783, allocations: 0.5009 MB / 402.8 MB, free: 27.03 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005157/0.4789, allocations: 46.08 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.002128/0.481, allocations: 0.8275 MB / 403.7 MB, free: 26.62 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004902/0.4815, allocations: 0.8169 MB / 404.5 MB, free: 25.92 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001188/0.4817, allocations: 26.58 kB / 404.6 MB, free: 25.91 MB / 330.7 MB Notification: Performance of SimCode: time 1.692e-06/0.4817, allocations: 0 / 404.6 MB, free: 25.91 MB / 330.7 MB Notification: Performance of Templates: time 0.01204/0.4937, allocations: 8.498 MB / 413.1 MB, free: 25.01 MB / 330.7 MB