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_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") Notification: Performance of loadModel(Modelica): time 1.646/1.646, allocations: 171.2 MB / 183.8 MB, free: 11.94 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.582e-05/3.585e-05, allocations: 7.938 kB / 225 MB, free: 2.703 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.213/0.213, allocations: 38.77 MB / 263.8 MB, free: 9.879 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1081/0.3212, allocations: 70.6 MB / 334.4 MB, free: 3.172 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002307/0.3214, allocations: 67.97 kB / 334.4 MB, free: 3.105 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02957/0.351, allocations: 6.441 MB / 340.9 MB, free: 12.65 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.848e-06/0.3511, allocations: 0 / 340.9 MB, free: 12.65 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.965e-05/0.3512, allocations: 8 kB / 340.9 MB, free: 12.64 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.002582/0.3538, allocations: 0.662 MB / 341.5 MB, free: 11.93 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.99e-05/0.3538, allocations: 8.031 kB / 341.5 MB, free: 11.93 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002376/0.3541, allocations: 43.53 kB / 341.6 MB, free: 11.88 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000826/0.355, allocations: 293.5 kB / 341.9 MB, free: 11.55 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.734e-05/0.3551, allocations: 28.78 kB / 341.9 MB, free: 11.53 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001771/0.3553, allocations: 39.91 kB / 341.9 MB, free: 11.49 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00171/0.357, allocations: 410 kB / 342.3 MB, free: 11.08 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.829e-05/0.3571, allocations: 4 kB / 342.3 MB, free: 11.08 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001102/0.3572, allocations: 16 kB / 342.4 MB, free: 11.06 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.073e-05/0.3572, allocations: 8 kB / 342.4 MB, free: 11.05 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001803/0.359, allocations: 409.4 kB / 342.8 MB, free: 10.65 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005636/0.3647, allocations: 1.295 MB / 344.1 MB, free: 9.281 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001557/0.3663, allocations: 336 kB / 344.4 MB, free: 8.941 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000891/0.3673, allocations: 229.6 kB / 344.6 MB, free: 8.715 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.454e-05/0.3674, allocations: 8.375 kB / 344.6 MB, free: 8.707 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.756e-05/0.3674, allocations: 34.94 kB / 344.7 MB, free: 8.664 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 6.291e-06/0.3675, allocations: 0 / 344.7 MB, free: 8.664 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.007419/0.3749, allocations: 1.635 MB / 346.3 MB, free: 6.934 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.074e-05/0.375, allocations: 55.84 kB / 346.3 MB, free: 6.867 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005395/0.3756, allocations: 222.9 kB / 346.6 MB, free: 6.637 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000134/0.3758, allocations: 37.7 kB / 346.6 MB, free: 6.594 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002438/0.376, allocations: 238.9 kB / 346.8 MB, free: 6.355 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003874/0.3764, allocations: 161.8 kB / 347 MB, free: 6.195 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.903e-05/0.3765, allocations: 12 kB / 347 MB, free: 6.184 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002344/0.3768, allocations: 326.8 kB / 347.3 MB, free: 5.855 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009373/0.3778, allocations: 209.1 kB / 347.5 MB, free: 5.652 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001066/0.3788, allocations: 278.1 kB / 347.8 MB, free: 5.363 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007906/0.3797, allocations: 179.2 kB / 348 MB, free: 5.188 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.3797, allocations: 0 / 348 MB, free: 5.188 MB / 298.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.004281/0.384, allocations: 0.829 MB / 348.8 MB, free: 4.344 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.248e-05/0.3841, allocations: 4 kB / 348.8 MB, free: 4.34 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.829e-05/0.3841, allocations: 4 kB / 348.8 MB, free: 4.336 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00266/0.3868, allocations: 0.5607 MB / 349.4 MB, free: 3.766 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007467/0.3876, allocations: 83.83 kB / 349.5 MB, free: 3.684 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006288/0.3939, allocations: 3.439 MB / 352.9 MB, free: 15.95 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00125/0.3952, allocations: 104 kB / 353 MB, free: 15.85 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000147/0.3954, allocations: 23.98 kB / 353 MB, free: 15.83 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.000325/0.3957, allocations: 136.9 kB / 353.2 MB, free: 15.69 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002282/0.396, allocations: 35.53 kB / 353.2 MB, free: 15.65 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003701/0.3997, allocations: 0.7608 MB / 353.9 MB, free: 14.88 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.12e-05/0.3997, allocations: 8 kB / 354 MB, free: 14.87 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.555e-06/0.3998, allocations: 0 / 354 MB, free: 14.87 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.768e-05/0.3998, allocations: 3.984 kB / 354 MB, free: 14.86 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004796/0.4046, allocations: 1.216 MB / 355.2 MB, free: 13.59 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.348e-05/0.4047, allocations: 4 kB / 355.2 MB, free: 13.58 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007924/0.4055, allocations: 63.89 kB / 355.2 MB, free: 13.52 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003533/0.4091, allocations: 0.549 MB / 355.8 MB, free: 12.96 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002076/0.4093, allocations: 15.98 kB / 355.8 MB, free: 12.95 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007493/0.4169, allocations: 3.409 MB / 359.2 MB, free: 9.246 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.438e-06/0.4169, allocations: 8.016 kB / 359.2 MB, free: 9.238 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002736/0.4197, allocations: 0.9694 MB / 360.2 MB, free: 8.242 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003629/0.4201, allocations: 152.7 kB / 360.3 MB, free: 8.074 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001308/0.4202, allocations: 20 kB / 360.4 MB, free: 8.055 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000747/0.421, allocations: 95.91 kB / 360.5 MB, free: 7.961 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003279/0.4213, allocations: 108.2 kB / 360.6 MB, free: 7.855 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.821e-05/0.4215, allocations: 27.97 kB / 360.6 MB, free: 7.828 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000294/0.4218, allocations: 175.1 kB / 360.8 MB, free: 7.656 MB / 314.7 MB Notification: Performance of sort global known variables: time 9.05e-07/0.4218, allocations: 3.938 kB / 360.8 MB, free: 7.652 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007917/0.4226, allocations: 120 kB / 360.9 MB, free: 7.535 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.0003493/0.4229, allocations: 155.1 kB / 361 MB, free: 7.371 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001959/0.4249, allocations: 0.7201 MB / 361.8 MB, free: 6.633 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.64e-06/0.425, allocations: 0 / 361.8 MB, free: 6.633 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001202/0.4262, allocations: 0.4917 MB / 362.2 MB, free: 6.117 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000625/0.4268, allocations: 50.88 kB / 362.3 MB, free: 6.07 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002444/0.4293, allocations: 0.8332 MB / 363.1 MB, free: 5.211 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005566/0.4299, allocations: 0.8112 MB / 363.9 MB, free: 4.371 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001528/0.43, allocations: 27.42 kB / 364 MB, free: 4.344 MB / 314.7 MB Notification: Performance of SimCode: time 1.833e-06/0.4301, allocations: 0 / 364 MB, free: 4.344 MB / 314.7 MB Notification: Performance of Templates: time 0.2014/0.6314, allocations: 8.141 MB / 372.1 MB, free: 93.75 MB / 314.7 MB