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_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") Notification: Performance of loadModel(Modelica): time 1.67/1.67, allocations: 171.2 MB / 185.7 MB, free: 1.406 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.044e-05/3.051e-05, allocations: 7.984 kB / 228.1 MB, free: 7.328 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07882/0.07887, allocations: 38.77 MB / 266.9 MB, free: 484 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003715/0.08264, allocations: 2.204 MB / 269.1 MB, free: 14.24 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002016/0.08471, allocations: 0.8069 MB / 269.9 MB, free: 13.43 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002272/0.08498, allocations: 8 kB / 269.9 MB, free: 13.43 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001571/0.08515, allocations: 39.69 kB / 270 MB, free: 13.39 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003572/0.08552, allocations: 111.6 kB / 270.1 MB, free: 13.28 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005128/0.08604, allocations: 147.8 kB / 270.2 MB, free: 13.13 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004886/0.08655, allocations: 272.5 kB / 270.5 MB, free: 12.87 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001772/0.08674, allocations: 52.94 kB / 270.5 MB, free: 12.82 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003267/0.08708, allocations: 179.6 kB / 270.7 MB, free: 12.64 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003929/0.08749, allocations: 219.3 kB / 270.9 MB, free: 12.43 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003264/0.08783, allocations: 107.9 kB / 271 MB, free: 12.32 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 9.768e-05/0.08794, allocations: 24 kB / 271.1 MB, free: 12.3 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000139/0.08809, allocations: 79.72 kB / 271.1 MB, free: 12.22 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001203/0.08823, allocations: 36 kB / 271.2 MB, free: 12.18 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006538/0.08889, allocations: 383.3 kB / 271.6 MB, free: 11.81 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.08892, allocations: 4 kB / 271.6 MB, free: 11.8 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.555e-06/0.08893, allocations: 0 / 271.6 MB, free: 11.8 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.628e-05/0.08896, allocations: 0 / 271.6 MB, free: 11.8 MB / 234.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.002045/0.09101, allocations: 0.6594 MB / 272.2 MB, free: 11.1 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.905e-05/0.09108, allocations: 8.031 kB / 272.2 MB, free: 11.09 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001672/0.09126, allocations: 39.53 kB / 272.3 MB, free: 11.05 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005391/0.09181, allocations: 289.4 kB / 272.5 MB, free: 10.73 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.553e-05/0.09188, allocations: 32.95 kB / 272.6 MB, free: 10.7 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001277/0.09202, allocations: 47.89 kB / 272.6 MB, free: 10.65 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001405/0.09344, allocations: 430.2 kB / 273 MB, free: 10.23 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.234e-05/0.09351, allocations: 4 kB / 273 MB, free: 10.22 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.872e-05/0.09359, allocations: 15.98 kB / 273.1 MB, free: 10.21 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.38e-05/0.09362, allocations: 12 kB / 273.1 MB, free: 10.2 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001635/0.09526, allocations: 451.7 kB / 273.5 MB, free: 9.754 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003945/0.09925, allocations: 1.257 MB / 274.8 MB, free: 8.422 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001381/0.1007, allocations: 363.5 kB / 275.1 MB, free: 8.062 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.516e-05/0.1008, allocations: 8.375 kB / 275.1 MB, free: 8.055 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.61e-05/0.1009, allocations: 42.92 kB / 275.2 MB, free: 8.004 MB / 234.7 MB Notification: Performance of pre-optimization done (n=45): time 3.346e-06/0.1009, allocations: 0 / 275.2 MB, free: 8.004 MB / 234.7 MB Notification: Performance of matching and sorting (n=49): time 0.009398/0.1103, allocations: 2.322 MB / 277.5 MB, free: 5.551 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.52e-05/0.1104, allocations: 59.84 kB / 277.6 MB, free: 5.48 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003869/0.1108, allocations: 225.7 kB / 277.8 MB, free: 5.254 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001178/0.1109, allocations: 41.7 kB / 277.8 MB, free: 5.207 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000157/0.1111, allocations: 164.7 kB / 278 MB, free: 5.039 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002707/0.1114, allocations: 169.7 kB / 278.1 MB, free: 4.871 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.552e-05/0.1114, allocations: 15.98 kB / 278.2 MB, free: 4.855 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001777/0.1116, allocations: 338.8 kB / 278.5 MB, free: 4.516 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009349/0.1126, allocations: 233 kB / 278.7 MB, free: 4.289 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009749/0.1136, allocations: 295.2 kB / 279 MB, free: 3.984 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007862/0.1144, allocations: 194.1 kB / 279.2 MB, free: 3.793 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.139e-06/0.1145, allocations: 0 / 279.2 MB, free: 3.793 MB / 234.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.003231/0.1177, allocations: 0.8211 MB / 280 MB, free: 2.957 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.827e-05/0.1178, allocations: 8 kB / 280 MB, free: 2.949 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.184e-05/0.1178, allocations: 0 / 280 MB, free: 2.949 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001635/0.1194, allocations: 430.4 kB / 280.4 MB, free: 2.52 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005965/0.1201, allocations: 71.91 kB / 280.5 MB, free: 2.449 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004551/0.1247, allocations: 3.451 MB / 284 MB, free: 14.71 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001053/0.1258, allocations: 104.2 kB / 284.1 MB, free: 14.61 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.758e-05/0.1259, allocations: 19.98 kB / 284.1 MB, free: 14.59 MB / 250.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.000362/0.1263, allocations: 157.8 kB / 284.2 MB, free: 14.42 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001381/0.1264, allocations: 31.62 kB / 284.3 MB, free: 14.39 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002802/0.1292, allocations: 0.7209 MB / 285 MB, free: 13.65 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.481e-05/0.1293, allocations: 4 kB / 285 MB, free: 13.65 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.077e-05/0.1293, allocations: 4 kB / 285 MB, free: 13.64 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.501e-05/0.1294, allocations: 3.984 kB / 285 MB, free: 13.64 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003927/0.1333, allocations: 1.228 MB / 286.2 MB, free: 12.35 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.118e-06/0.1333, allocations: 0 / 286.2 MB, free: 12.35 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000621/0.134, allocations: 71.89 kB / 286.3 MB, free: 12.28 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001525/0.1355, allocations: 406.3 kB / 286.7 MB, free: 11.87 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001243/0.1357, allocations: 23.91 kB / 286.7 MB, free: 11.85 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004586/0.1403, allocations: 3.421 MB / 290.1 MB, free: 8.137 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.1404, allocations: 320 / 290.1 MB, free: 8.137 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003568/0.1439, allocations: 1.028 MB / 291.2 MB, free: 7.086 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005995/0.1446, allocations: 144.7 kB / 291.3 MB, free: 6.926 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002603/0.1449, allocations: 20 kB / 291.3 MB, free: 6.906 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001558/0.1465, allocations: 103.9 kB / 291.4 MB, free: 6.805 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005425/0.1471, allocations: 108.2 kB / 291.5 MB, free: 6.699 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001054/0.1472, allocations: 15.98 kB / 291.6 MB, free: 6.684 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0004111/0.1476, allocations: 178 kB / 291.7 MB, free: 6.508 MB / 250.7 MB Notification: Performance of sort global known variables: time 7.21e-07/0.1476, allocations: 0 / 291.7 MB, free: 6.508 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.001087/0.1487, allocations: 120 kB / 291.8 MB, free: 6.391 MB / 250.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.0004453/0.1492, allocations: 136.8 kB / 292 MB, free: 6.246 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.004018/0.1532, allocations: 0.7982 MB / 292.8 MB, free: 5.422 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.1533, allocations: 0 / 292.8 MB, free: 5.422 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00242/0.1557, allocations: 0.5371 MB / 293.3 MB, free: 4.859 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00105/0.1568, allocations: 44.53 kB / 293.4 MB, free: 4.816 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003321/0.1602, allocations: 1.157 MB / 294.5 MB, free: 3.633 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004838/0.1607, allocations: 0.8113 MB / 295.3 MB, free: 2.793 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.000234/0.1609, allocations: 27.3 kB / 295.4 MB, free: 2.77 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001269/0.1611, allocations: 31.42 kB / 295.4 MB, free: 2.738 MB / 250.7 MB Notification: Performance of SimCode: time 1.162e-06/0.1611, allocations: 0 / 295.4 MB, free: 2.738 MB / 250.7 MB Notification: Performance of Templates: time 0.2239/0.385, allocations: 8.1 MB / 303.5 MB, free: 29.8 MB / 250.7 MB