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 1.827/1.827, allocations: 194.9 MB / 210.6 MB, free: 8.352 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.014e-05/2.999e-05, allocations: 7.906 kB / 258.8 MB, free: 8.059 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2821/0.2822, allocations: 44.51 MB / 303.3 MB, free: 12.95 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.00349/0.2857, allocations: 2.212 MB / 305.5 MB, free: 11.17 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00177/0.2875, allocations: 0.7943 MB / 306.3 MB, free: 10.53 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001682/0.2877, allocations: 11.44 kB / 306.3 MB, free: 10.52 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001445/0.2879, allocations: 35.42 kB / 306.4 MB, free: 10.5 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003449/0.2882, allocations: 113.2 kB / 306.5 MB, free: 10.39 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004419/0.2887, allocations: 154.4 kB / 306.6 MB, free: 10.27 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004515/0.2892, allocations: 268.9 kB / 306.9 MB, free: 10.02 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001589/0.2893, allocations: 64.88 kB / 307 MB, free: 9.957 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000306/0.2896, allocations: 191.5 kB / 307.1 MB, free: 9.77 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003792/0.29, allocations: 215.4 kB / 307.4 MB, free: 9.559 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000207/0.2903, allocations: 71.83 kB / 307.4 MB, free: 9.488 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 8.583e-05/0.2904, allocations: 24 kB / 307.5 MB, free: 9.465 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001333/0.2905, allocations: 91.64 kB / 307.5 MB, free: 9.375 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001103/0.2906, allocations: 36 kB / 307.6 MB, free: 9.34 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005458/0.2912, allocations: 377.4 kB / 307.9 MB, free: 8.973 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.2912, allocations: 0 / 307.9 MB, free: 8.973 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.814e-06/0.2912, allocations: 0 / 307.9 MB, free: 8.973 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.102e-05/0.2912, allocations: 0 / 307.9 MB, free: 8.973 MB / 250.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.001853/0.2931, allocations: 0.6516 MB / 308.6 MB, free: 8.273 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.945e-05/0.2931, allocations: 8.031 kB / 308.6 MB, free: 8.266 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001239/0.2933, allocations: 43.44 kB / 308.6 MB, free: 8.223 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004772/0.2938, allocations: 301.4 kB / 308.9 MB, free: 7.891 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.13e-05/0.2938, allocations: 29 kB / 309 MB, free: 7.859 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001121/0.294, allocations: 32 kB / 309 MB, free: 7.828 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00131/0.2953, allocations: 442.3 kB / 309.4 MB, free: 7.391 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.979e-05/0.2953, allocations: 11.83 kB / 309.4 MB, free: 7.379 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.948e-05/0.2954, allocations: 12 kB / 309.5 MB, free: 7.367 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.229e-05/0.2954, allocations: 8 kB / 309.5 MB, free: 7.359 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001617/0.2971, allocations: 467.7 kB / 309.9 MB, free: 6.906 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003443/0.3005, allocations: 1.293 MB / 311.2 MB, free: 5.535 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001259/0.3018, allocations: 376.5 kB / 311.6 MB, free: 5.16 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.832e-05/0.3019, allocations: 4.375 kB / 311.6 MB, free: 5.156 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.668e-05/0.3019, allocations: 38.94 kB / 311.6 MB, free: 5.109 MB / 250.7 MB Notification: Performance of pre-optimization done (n=45): time 2.384e-06/0.3019, allocations: 4 kB / 311.6 MB, free: 5.105 MB / 250.7 MB Notification: Performance of matching and sorting (n=49): time 0.00867/0.3106, allocations: 2.374 MB / 314 MB, free: 2.598 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.387e-05/0.3107, allocations: 55.84 kB / 314.1 MB, free: 2.527 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003108/0.311, allocations: 229.7 kB / 314.3 MB, free: 2.297 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 7.318e-05/0.3111, allocations: 37.7 kB / 314.3 MB, free: 2.254 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001246/0.3112, allocations: 168.6 kB / 314.5 MB, free: 2.086 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002096/0.3114, allocations: 173.7 kB / 314.7 MB, free: 1.914 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.285e-05/0.3115, allocations: 8 kB / 314.7 MB, free: 1.906 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.3116, allocations: 338.8 kB / 315 MB, free: 1.566 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008298/0.3125, allocations: 245 kB / 315.2 MB, free: 1.324 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008833/0.3134, allocations: 299.2 kB / 315.5 MB, free: 1.02 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007203/0.3141, allocations: 206.1 kB / 315.7 MB, free: 0.8164 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.3141, allocations: 0 / 315.7 MB, free: 0.8164 MB / 250.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002619/0.3168, allocations: 0.7626 MB / 316.5 MB, free: 36 kB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.417e-05/0.3168, allocations: 9.062 kB / 316.5 MB, free: 28 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.764e-06/0.3168, allocations: 7.938 kB / 316.5 MB, free: 20 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001749/0.3186, allocations: 0.5412 MB / 317 MB, free: 15.47 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005341/0.3191, allocations: 83.83 kB / 317.1 MB, free: 15.39 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006071/0.3252, allocations: 3.465 MB / 320.6 MB, free: 11.63 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001631/0.3269, allocations: 108 kB / 320.7 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001165/0.327, allocations: 23.98 kB / 320.7 MB, free: 11.5 MB / 266.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.000453/0.3275, allocations: 157.8 kB / 320.9 MB, free: 11.34 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001873/0.3277, allocations: 39.58 kB / 320.9 MB, free: 11.3 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004317/0.3321, allocations: 0.7365 MB / 321.6 MB, free: 10.54 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.313e-05/0.3321, allocations: 4 kB / 321.7 MB, free: 10.54 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.947e-06/0.3321, allocations: 3.984 kB / 321.7 MB, free: 10.54 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.107e-05/0.3322, allocations: 0 / 321.7 MB, free: 10.54 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0051/0.3373, allocations: 1.278 MB / 322.9 MB, free: 9.195 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.3373, allocations: 0 / 322.9 MB, free: 9.195 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005408/0.3378, allocations: 67.86 kB / 323 MB, free: 9.129 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001633/0.3395, allocations: 0.5238 MB / 323.5 MB, free: 8.598 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.267e-05/0.3396, allocations: 19.98 kB / 323.5 MB, free: 8.578 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003553/0.3431, allocations: 3.44 MB / 327 MB, free: 4.844 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.3432, allocations: 0 / 327 MB, free: 4.844 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003192/0.3464, allocations: 1.048 MB / 328 MB, free: 3.77 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002655/0.3466, allocations: 160.7 kB / 328.2 MB, free: 3.594 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001294/0.3468, allocations: 12 kB / 328.2 MB, free: 3.582 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008971/0.3477, allocations: 107.9 kB / 328.3 MB, free: 3.477 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003114/0.348, allocations: 104.2 kB / 328.4 MB, free: 3.375 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.791e-05/0.3481, allocations: 23.97 kB / 328.4 MB, free: 3.352 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002277/0.3483, allocations: 174 kB / 328.6 MB, free: 3.184 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.5e-07/0.3484, allocations: 0 / 328.6 MB, free: 3.184 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006432/0.349, allocations: 124 kB / 328.7 MB, free: 3.062 MB / 266.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 (clutch.mode,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward,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.0002835/0.3493, allocations: 143.2 kB / 328.9 MB, free: 2.914 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002343/0.3517, allocations: 0.8176 MB / 329.7 MB, free: 2.066 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.3517, allocations: 0 / 329.7 MB, free: 2.066 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001416/0.3531, allocations: 0.5526 MB / 330.2 MB, free: 1.488 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005605/0.3537, allocations: 52.64 kB / 330.3 MB, free: 1.438 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003008/0.3567, allocations: 1.14 MB / 331.4 MB, free: 272 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000412/0.3571, allocations: 0.8113 MB / 332.2 MB, free: 15.43 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002177/0.3574, allocations: 27.3 kB / 332.3 MB, free: 15.4 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001242/0.3575, allocations: 27.42 kB / 332.3 MB, free: 15.38 MB / 282.7 MB Notification: Performance of SimCode: time 6.01e-07/0.3575, allocations: 0 / 332.3 MB, free: 15.38 MB / 282.7 MB Notification: Performance of Templates: time 0.02205/0.3796, allocations: 8.971 MB / 341.3 MB, free: 6.414 MB / 282.7 MB