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_trunk_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") Notification: Performance of loadModel(Modelica): time 2.072/2.072, allocations: 224.7 MB / 241.1 MB, free: 1.695 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.815e-05/2.809e-05, allocations: 4 kB / 294.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1249/0.125, allocations: 50.41 MB / 345 MB, free: 8.949 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003863/0.1289, allocations: 2.245 MB / 347.2 MB, free: 6.688 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002021/0.131, allocations: 0.7717 MB / 348 MB, free: 5.91 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002188/0.1313, allocations: 15.88 kB / 348 MB, free: 5.895 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000156/0.1314, allocations: 35.7 kB / 348 MB, free: 5.859 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003643/0.1318, allocations: 111.7 kB / 348.2 MB, free: 5.75 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000526/0.1323, allocations: 159.7 kB / 348.3 MB, free: 5.594 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000492/0.1329, allocations: 268.6 kB / 348.6 MB, free: 5.332 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001785/0.133, allocations: 48.88 kB / 348.6 MB, free: 5.285 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003372/0.1334, allocations: 195.5 kB / 348.8 MB, free: 5.094 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004333/0.1338, allocations: 223.4 kB / 349 MB, free: 4.875 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002291/0.1341, allocations: 59.95 kB / 349.1 MB, free: 4.816 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 9.272e-05/0.1342, allocations: 24 kB / 349.1 MB, free: 4.793 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000139/0.1343, allocations: 87.66 kB / 349.2 MB, free: 4.707 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001223/0.1345, allocations: 32 kB / 349.2 MB, free: 4.676 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006052/0.1351, allocations: 383.3 kB / 349.6 MB, free: 4.301 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.1351, allocations: 0 / 349.6 MB, free: 4.301 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.324e-06/0.1351, allocations: 0 / 349.6 MB, free: 4.301 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.319e-05/0.1352, allocations: 0 / 349.6 MB, free: 4.301 MB / 282.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.001966/0.1371, allocations: 0.6516 MB / 350.3 MB, free: 3.602 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.868e-05/0.1372, allocations: 12.03 kB / 350.3 MB, free: 3.59 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001515/0.1373, allocations: 47.47 kB / 350.3 MB, free: 3.543 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005502/0.1379, allocations: 297.4 kB / 350.6 MB, free: 3.215 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.4e-05/0.138, allocations: 25 kB / 350.6 MB, free: 3.188 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001256/0.1381, allocations: 39.91 kB / 350.7 MB, free: 3.148 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00137/0.1395, allocations: 438.3 kB / 351.1 MB, free: 2.715 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.519e-05/0.1396, allocations: 8 kB / 351.1 MB, free: 2.707 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.413e-05/0.1396, allocations: 19.86 kB / 351.1 MB, free: 2.688 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.278e-05/0.1396, allocations: 8 kB / 351.1 MB, free: 2.68 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001643/0.1413, allocations: 475.7 kB / 351.6 MB, free: 2.219 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003766/0.1451, allocations: 1.293 MB / 352.9 MB, free: 0.8477 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001336/0.1465, allocations: 371.5 kB / 353.2 MB, free: 488 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.325e-05/0.1466, allocations: 4.375 kB / 353.3 MB, free: 484 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.228e-05/0.1466, allocations: 38.89 kB / 353.3 MB, free: 436 kB / 282.7 MB Notification: Performance of pre-optimization done (n=45): time 3.337e-06/0.1466, allocations: 4 kB / 353.3 MB, free: 432 kB / 282.7 MB Notification: Performance of matching and sorting (n=49): time 0.009152/0.1558, allocations: 2.369 MB / 355.7 MB, free: 13.92 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.137e-05/0.1559, allocations: 59.84 kB / 355.7 MB, free: 13.85 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003613/0.1563, allocations: 225.7 kB / 355.9 MB, free: 13.62 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.769e-05/0.1564, allocations: 45.7 kB / 356 MB, free: 13.57 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001536/0.1565, allocations: 223.1 kB / 356.2 MB, free: 13.36 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002146/0.1568, allocations: 165.7 kB / 356.4 MB, free: 13.19 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.592e-05/0.1568, allocations: 12 kB / 356.4 MB, free: 13.18 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001542/0.157, allocations: 334.8 kB / 356.7 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008598/0.1579, allocations: 241 kB / 356.9 MB, free: 12.61 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009111/0.1588, allocations: 299.2 kB / 357.2 MB, free: 12.3 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007567/0.1596, allocations: 206.1 kB / 357.4 MB, free: 12.1 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.414e-06/0.1596, allocations: 3.953 kB / 357.4 MB, free: 12.1 MB / 298.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002747/0.1623, allocations: 0.751 MB / 358.2 MB, free: 11.33 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.296e-05/0.1624, allocations: 4 kB / 358.2 MB, free: 11.33 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.268e-05/0.1624, allocations: 8.125 kB / 358.2 MB, free: 11.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001815/0.1642, allocations: 0.5412 MB / 358.7 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005735/0.1648, allocations: 79.84 kB / 358.8 MB, free: 10.69 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004291/0.1692, allocations: 3.466 MB / 362.3 MB, free: 6.934 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001042/0.1703, allocations: 108.2 kB / 362.4 MB, free: 6.828 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.579e-05/0.1703, allocations: 23.98 kB / 362.4 MB, free: 6.805 MB / 298.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.0003329/0.1707, allocations: 165.5 kB / 362.6 MB, free: 6.633 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001189/0.1708, allocations: 35.62 kB / 362.6 MB, free: 6.598 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002606/0.1734, allocations: 0.7364 MB / 363.3 MB, free: 5.848 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.189e-05/0.1735, allocations: 8 kB / 363.4 MB, free: 5.84 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.1735, allocations: 0 / 363.4 MB, free: 5.84 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.1735, allocations: 0 / 363.4 MB, free: 5.84 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003638/0.1772, allocations: 1.282 MB / 364.6 MB, free: 4.488 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-06/0.1772, allocations: 0 / 364.6 MB, free: 4.488 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005536/0.1778, allocations: 63.89 kB / 364.7 MB, free: 4.426 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001711/0.1795, allocations: 0.5177 MB / 365.2 MB, free: 3.898 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.986e-05/0.1796, allocations: 19.98 kB / 365.2 MB, free: 3.879 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004249/0.1839, allocations: 3.448 MB / 368.7 MB, free: 144 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.1839, allocations: 0 / 368.7 MB, free: 144 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003471/0.1874, allocations: 1.048 MB / 369.7 MB, free: 15.07 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003218/0.1878, allocations: 156.6 kB / 369.9 MB, free: 14.89 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001471/0.188, allocations: 23.98 kB / 369.9 MB, free: 14.87 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009017/0.1889, allocations: 95.91 kB / 370 MB, free: 14.78 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000342/0.1892, allocations: 104.2 kB / 370.1 MB, free: 14.68 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.393e-05/0.1893, allocations: 27.91 kB / 370.1 MB, free: 14.65 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002649/0.1896, allocations: 178 kB / 370.3 MB, free: 14.47 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.1896, allocations: 0 / 370.3 MB, free: 14.47 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007215/0.1903, allocations: 124 kB / 370.4 MB, free: 14.35 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 (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.000328/0.1907, allocations: 142.9 kB / 370.6 MB, free: 14.2 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002512/0.1932, allocations: 0.8099 MB / 371.4 MB, free: 13.37 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.332e-06/0.1932, allocations: 4 kB / 371.4 MB, free: 13.37 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001542/0.1948, allocations: 0.5448 MB / 371.9 MB, free: 12.8 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006184/0.1954, allocations: 52.61 kB / 372 MB, free: 12.75 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003312/0.1988, allocations: 1.196 MB / 373.2 MB, free: 11.52 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005066/0.1993, allocations: 0.8074 MB / 374 MB, free: 10.68 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001803/0.1995, allocations: 27.42 kB / 374 MB, free: 10.66 MB / 314.7 MB Notification: Performance of SimCode: time 1.263e-06/0.1995, allocations: 0 / 374 MB, free: 10.66 MB / 314.7 MB Notification: Performance of Templates: time 0.01725/0.2168, allocations: 8.465 MB / 382.5 MB, free: 2.188 MB / 314.7 MB