Running command: translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadModel(Modelica): time 2.197/2.197, allocations: 224.7 MB / 241.1 MB, free: 1.699 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.244e-05/3.243e-05, allocations: 7.984 kB / 294.6 MB, free: 11.43 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1107, allocations: 50.41 MB / 345 MB, free: 8.973 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.00408/0.1149, allocations: 2.424 MB / 347.4 MB, free: 6.531 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002122/0.117, allocations: 0.8066 MB / 348.2 MB, free: 5.719 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002816/0.1174, allocations: 11.94 kB / 348.2 MB, free: 5.707 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001797/0.1176, allocations: 39.69 kB / 348.3 MB, free: 5.668 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004641/0.118, allocations: 143.5 kB / 348.4 MB, free: 5.527 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005767/0.1186, allocations: 155.6 kB / 348.5 MB, free: 5.375 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006308/0.1193, allocations: 300.5 kB / 348.8 MB, free: 5.082 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002031/0.1195, allocations: 65.14 kB / 348.9 MB, free: 5.016 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004413/0.12, allocations: 215.5 kB / 349.1 MB, free: 4.805 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004665/0.1204, allocations: 247.3 kB / 349.4 MB, free: 4.562 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000241/0.1207, allocations: 63.91 kB / 349.4 MB, free: 4.5 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001063/0.1208, allocations: 24 kB / 349.4 MB, free: 4.477 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001384/0.121, allocations: 91.64 kB / 349.5 MB, free: 4.387 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001387/0.1211, allocations: 40 kB / 349.6 MB, free: 4.348 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007204/0.1219, allocations: 415.1 kB / 350 MB, free: 3.941 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.1219, allocations: 0 / 350 MB, free: 3.941 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.216e-06/0.1219, allocations: 0 / 350 MB, free: 3.941 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.839e-05/0.1219, allocations: 0 / 350 MB, free: 3.941 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.002054/0.124, allocations: 0.6943 MB / 350.7 MB, free: 3.199 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.286e-05/0.1241, allocations: 12.03 kB / 350.7 MB, free: 3.188 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001725/0.1242, allocations: 47.44 kB / 350.7 MB, free: 3.141 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006053/0.1249, allocations: 326.1 kB / 351 MB, free: 2.781 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.856e-05/0.1249, allocations: 32.94 kB / 351.1 MB, free: 2.746 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001272/0.1251, allocations: 36 kB / 351.1 MB, free: 2.711 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001503/0.1266, allocations: 478.2 kB / 351.6 MB, free: 2.238 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.298e-05/0.1266, allocations: 7.906 kB / 351.6 MB, free: 2.23 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.878e-05/0.1267, allocations: 16 kB / 351.6 MB, free: 2.215 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.737e-05/0.1268, allocations: 11.95 kB / 351.6 MB, free: 2.203 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001722/0.1285, allocations: 491.7 kB / 352.1 MB, free: 1.727 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003573/0.1321, allocations: 1.149 MB / 353.2 MB, free: 0.5234 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001387/0.1335, allocations: 396.9 kB / 353.6 MB, free: 128 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.877e-05/0.1337, allocations: 8.438 kB / 353.6 MB, free: 120 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.842e-05/0.1337, allocations: 35 kB / 353.7 MB, free: 76 kB / 282.7 MB Notification: Performance of pre-optimization done (n=50): time 4.077e-06/0.1337, allocations: 4 kB / 353.7 MB, free: 72 kB / 282.7 MB Notification: Performance of matching and sorting (n=56): time 0.009281/0.143, allocations: 2.429 MB / 356.1 MB, free: 13.52 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.577e-05/0.1431, allocations: 55.97 kB / 356.2 MB, free: 13.45 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004452/0.1436, allocations: 250.5 kB / 356.4 MB, free: 13.2 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001199/0.1437, allocations: 41.69 kB / 356.4 MB, free: 13.16 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002003/0.1439, allocations: 243.8 kB / 356.7 MB, free: 12.91 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002608/0.1442, allocations: 197.2 kB / 356.9 MB, free: 12.72 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.663e-05/0.1443, allocations: 8 kB / 356.9 MB, free: 12.71 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000173/0.1445, allocations: 338.8 kB / 357.2 MB, free: 12.37 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008979/0.1454, allocations: 241.2 kB / 357.5 MB, free: 12.14 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009686/0.1464, allocations: 296.8 kB / 357.7 MB, free: 11.84 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000781/0.1472, allocations: 211.1 kB / 357.9 MB, free: 11.64 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.908e-06/0.1472, allocations: 0 / 357.9 MB, free: 11.64 MB / 298.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002582/0.1498, allocations: 0.7368 MB / 358.7 MB, free: 10.89 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.601e-05/0.1499, allocations: 8.031 kB / 358.7 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.1499, allocations: 0 / 358.7 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001524/0.1514, allocations: 0.4896 MB / 359.2 MB, free: 10.38 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000739/0.1522, allocations: 95.83 kB / 359.3 MB, free: 10.29 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002161/0.1544, allocations: 1.405 MB / 360.7 MB, free: 8.832 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001069/0.1555, allocations: 100.1 kB / 360.8 MB, free: 8.734 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.299e-05/0.1556, allocations: 20 kB / 360.8 MB, free: 8.715 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (58): * Single equations (assignments): 56 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003624/0.156, allocations: 181.6 kB / 361 MB, free: 8.527 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001324/0.1561, allocations: 39.53 kB / 361 MB, free: 8.488 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001822/0.1563, allocations: 59.73 kB / 361.1 MB, free: 8.43 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.568e-06/0.1563, allocations: 4 kB / 361.1 MB, free: 8.426 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-05/0.1564, allocations: 4 kB / 361.1 MB, free: 8.422 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/0.1564, allocations: 0 / 361.1 MB, free: 8.422 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004885/0.1613, allocations: 1.47 MB / 362.5 MB, free: 6.871 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.076e-06/0.1613, allocations: 0 / 362.5 MB, free: 6.871 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008084/0.1621, allocations: 87.89 kB / 362.6 MB, free: 6.785 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001424/0.1636, allocations: 481.5 kB / 363.1 MB, free: 6.309 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001127/0.1637, allocations: 23.97 kB / 363.1 MB, free: 6.285 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001977/0.1657, allocations: 1.366 MB / 364.5 MB, free: 4.867 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.787e-06/0.1658, allocations: 8.031 kB / 364.5 MB, free: 4.859 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003717/0.1695, allocations: 1.155 MB / 365.7 MB, free: 3.633 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000401/0.17, allocations: 168.6 kB / 365.8 MB, free: 3.449 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001621/0.1701, allocations: 20 kB / 365.8 MB, free: 3.43 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008331/0.171, allocations: 83.92 kB / 365.9 MB, free: 3.348 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003617/0.1714, allocations: 112.2 kB / 366 MB, free: 3.238 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.613e-05/0.1715, allocations: 23.97 kB / 366.1 MB, free: 3.215 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003614/0.1718, allocations: 201.9 kB / 366.3 MB, free: 3.02 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.1718, allocations: 0 / 366.3 MB, free: 3.02 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007186/0.1726, allocations: 132 kB / 366.4 MB, free: 2.891 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003506/0.1729, allocations: 143.2 kB / 366.5 MB, free: 2.742 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002279/0.1752, allocations: 0.6044 MB / 367.1 MB, free: 2.141 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/0.1753, allocations: 0 / 367.1 MB, free: 2.141 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001265/0.1766, allocations: 338.3 kB / 367.5 MB, free: 1.809 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000774/0.1774, allocations: 75.36 kB / 367.5 MB, free: 1.738 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006998/0.1844, allocations: 1.783 MB / 369.3 MB, free: 15.91 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005581/0.185, allocations: 0.8287 MB / 370.1 MB, free: 15.04 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000243/0.1853, allocations: 39.42 kB / 370.2 MB, free: 15.01 MB / 314.7 MB Notification: Performance of SimCode: time 1.623e-06/0.1853, allocations: 4 kB / 370.2 MB, free: 15 MB / 314.7 MB Notification: Performance of Templates: time 0.01901/0.2043, allocations: 8.184 MB / 378.4 MB, free: 6.812 MB / 314.7 MB