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 2.062/2.062, allocations: 194.9 MB / 211.2 MB, free: 8.348 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.102e-05/3.101e-05, allocations: 4 kB / 258.8 MB, free: 8.707 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3284/0.3284, allocations: 44.5 MB / 303.3 MB, free: 12.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003902/0.3324, allocations: 2.208 MB / 305.5 MB, free: 10.99 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002326/0.3348, allocations: 0.8102 MB / 306.3 MB, free: 10.34 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003029/0.3351, allocations: 7.188 kB / 306.3 MB, free: 10.34 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000176/0.3353, allocations: 35.77 kB / 306.3 MB, free: 10.31 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004108/0.3357, allocations: 112.7 kB / 306.5 MB, free: 10.21 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005807/0.3363, allocations: 153.7 kB / 306.6 MB, free: 10.08 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005811/0.3369, allocations: 269.7 kB / 306.9 MB, free: 9.875 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001869/0.3371, allocations: 47.83 kB / 306.9 MB, free: 9.852 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003553/0.3375, allocations: 193.7 kB / 307.1 MB, free: 9.746 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004211/0.3379, allocations: 226.2 kB / 307.3 MB, free: 9.609 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002479/0.3382, allocations: 60.08 kB / 307.4 MB, free: 9.59 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001015/0.3383, allocations: 29.72 kB / 307.4 MB, free: 9.578 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001379/0.3385, allocations: 87.66 kB / 307.5 MB, free: 9.492 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000124/0.3386, allocations: 36 kB / 307.5 MB, free: 9.457 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006335/0.3392, allocations: 380.8 kB / 307.9 MB, free: 9.086 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.3393, allocations: 0 / 307.9 MB, free: 9.086 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.775e-06/0.3393, allocations: 0 / 307.9 MB, free: 9.086 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.233e-05/0.3393, allocations: 0 / 307.9 MB, free: 9.086 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.002066/0.3414, allocations: 0.6516 MB / 308.6 MB, free: 8.387 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.229e-05/0.3414, allocations: 12.03 kB / 308.6 MB, free: 8.375 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001553/0.3416, allocations: 47.44 kB / 308.6 MB, free: 8.328 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005577/0.3422, allocations: 297.4 kB / 308.9 MB, free: 8 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.222e-05/0.3423, allocations: 25 kB / 308.9 MB, free: 7.973 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001259/0.3424, allocations: 36 kB / 309 MB, free: 7.938 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001439/0.3438, allocations: 446.2 kB / 309.4 MB, free: 7.496 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.884e-05/0.3439, allocations: 11.91 kB / 309.4 MB, free: 7.484 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.318e-05/0.344, allocations: 8 kB / 309.4 MB, free: 7.477 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.516e-05/0.344, allocations: 8 kB / 309.4 MB, free: 7.469 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001713/0.3457, allocations: 471.7 kB / 309.9 MB, free: 7.012 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004001/0.3498, allocations: 1.297 MB / 311.2 MB, free: 5.637 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001372/0.3512, allocations: 364.5 kB / 311.5 MB, free: 5.273 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.273e-05/0.3513, allocations: 8.375 kB / 311.6 MB, free: 5.266 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.653e-05/0.3514, allocations: 38.88 kB / 311.6 MB, free: 5.219 MB / 250.7 MB Notification: Performance of pre-optimization done (n=45): time 3.246e-06/0.3514, allocations: 0 / 311.6 MB, free: 5.219 MB / 250.7 MB Notification: Performance of matching and sorting (n=49): time 0.009514/0.3609, allocations: 2.374 MB / 314 MB, free: 2.711 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.542e-05/0.361, allocations: 59.84 kB / 314 MB, free: 2.637 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003774/0.3614, allocations: 225.7 kB / 314.2 MB, free: 2.41 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 9.616e-05/0.3615, allocations: 45.7 kB / 314.3 MB, free: 2.359 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001686/0.3617, allocations: 223.1 kB / 314.5 MB, free: 2.141 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002363/0.3619, allocations: 165.7 kB / 314.7 MB, free: 1.977 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.655e-05/0.362, allocations: 12 kB / 314.7 MB, free: 1.965 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001685/0.3622, allocations: 334.8 kB / 315 MB, free: 1.629 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009038/0.3631, allocations: 237 kB / 315.2 MB, free: 1.395 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009483/0.3641, allocations: 303.2 kB / 315.5 MB, free: 1.086 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007813/0.3649, allocations: 206.1 kB / 315.7 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.3649, allocations: 0 / 315.7 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002822/0.3677, allocations: 0.755 MB / 316.5 MB, free: 112 kB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.658e-05/0.3678, allocations: 12.06 kB / 316.5 MB, free: 100 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.803e-05/0.3678, allocations: 7.938 kB / 316.5 MB, free: 92 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001953/0.3698, allocations: 0.547 MB / 317.1 MB, free: 15.54 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006016/0.3705, allocations: 71.91 kB / 317.1 MB, free: 15.46 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004597/0.3751, allocations: 3.468 MB / 320.6 MB, free: 11.7 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001064/0.3762, allocations: 112 kB / 320.7 MB, free: 11.59 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.137e-05/0.3763, allocations: 20 kB / 320.7 MB, free: 11.57 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.0003668/0.3767, allocations: 165.7 kB / 320.9 MB, free: 11.4 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001281/0.3768, allocations: 39.56 kB / 320.9 MB, free: 11.36 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002708/0.3795, allocations: 0.7249 MB / 321.7 MB, free: 10.62 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.798e-05/0.3796, allocations: 8 kB / 321.7 MB, free: 10.61 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.3796, allocations: 3.938 kB / 321.7 MB, free: 10.61 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.276e-05/0.3797, allocations: 3.984 kB / 321.7 MB, free: 10.61 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003816/0.3835, allocations: 1.275 MB / 322.9 MB, free: 9.27 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.528e-06/0.3835, allocations: 3.984 kB / 322.9 MB, free: 9.266 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005627/0.3841, allocations: 63.86 kB / 323 MB, free: 9.203 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001749/0.3859, allocations: 0.5255 MB / 323.5 MB, free: 8.668 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.918e-05/0.386, allocations: 19.97 kB / 323.6 MB, free: 8.648 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004298/0.3903, allocations: 3.442 MB / 327 MB, free: 4.914 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.049e-06/0.3904, allocations: 4 kB / 327 MB, free: 4.91 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003496/0.3939, allocations: 1.04 MB / 328 MB, free: 3.844 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003431/0.3943, allocations: 164.5 kB / 328.2 MB, free: 3.664 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001491/0.3944, allocations: 20 kB / 328.2 MB, free: 3.645 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000893/0.3953, allocations: 99.91 kB / 328.3 MB, free: 3.547 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003347/0.3957, allocations: 108.2 kB / 328.4 MB, free: 3.441 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.367e-05/0.3958, allocations: 19.97 kB / 328.4 MB, free: 3.422 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002684/0.3961, allocations: 182 kB / 328.6 MB, free: 3.246 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.3961, allocations: 0 / 328.6 MB, free: 3.246 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007223/0.3968, allocations: 120 kB / 328.7 MB, free: 3.129 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.0003327/0.3972, allocations: 143.2 kB / 328.9 MB, free: 2.98 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002566/0.3997, allocations: 0.8098 MB / 329.7 MB, free: 2.141 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.3998, allocations: 0 / 329.7 MB, free: 2.141 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001578/0.4014, allocations: 0.5411 MB / 330.2 MB, free: 1.574 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006628/0.4021, allocations: 60.47 kB / 330.3 MB, free: 1.516 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003425/0.4055, allocations: 1.177 MB / 331.5 MB, free: 308 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005189/0.4061, allocations: 0.8035 MB / 332.3 MB, free: 15.47 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001824/0.4063, allocations: 31.42 kB / 332.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of SimCode: time 1.222e-06/0.4063, allocations: 0 / 332.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of Templates: time 0.01825/0.4245, allocations: 8.464 MB / 340.8 MB, free: 6.969 MB / 282.7 MB