Running command: translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|J1.phi|J1.w|clutch1.phi_rel|clutch1.w_rel|clutch2.phi_rel|clutch2.w_rel|clutch3.phi_rel|clutch3.w_rel|clutch1.mode|clutch1.startBackward|clutch1.startForward|clutch2.mode|clutch2.startBackward|clutch2.startForward|clutch3.mode|clutch3.startBackward|clutch3.startForward",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadModel(Modelica): time 2.092/2.092, allocations: 224.7 MB / 241.1 MB, free: 1.656 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.03e-05/3.045e-05, allocations: 4 kB / 294.6 MB, free: 11.39 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1338/0.1339, allocations: 50.41 MB / 345 MB, free: 8.934 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004463/0.1384, allocations: 2.458 MB / 347.4 MB, free: 6.461 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002584/0.141, allocations: 0.9001 MB / 348.3 MB, free: 5.555 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003888/0.1415, allocations: 8 kB / 348.3 MB, free: 5.547 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002169/0.1417, allocations: 55.55 kB / 348.4 MB, free: 5.492 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005769/0.1423, allocations: 155.5 kB / 348.6 MB, free: 5.34 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008326/0.1432, allocations: 195.6 kB / 348.7 MB, free: 5.148 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.00104/0.1442, allocations: 384.8 kB / 349.1 MB, free: 4.77 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002817/0.1446, allocations: 61.34 kB / 349.2 MB, free: 4.707 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007122/0.1453, allocations: 275.3 kB / 349.4 MB, free: 4.438 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007255/0.1461, allocations: 319.2 kB / 349.8 MB, free: 4.125 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003397/0.1464, allocations: 63.97 kB / 349.8 MB, free: 4.062 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001711/0.1466, allocations: 28 kB / 349.9 MB, free: 4.035 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002154/0.1469, allocations: 127.5 kB / 350 MB, free: 3.91 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002085/0.1471, allocations: 48 kB / 350 MB, free: 3.863 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001007/0.1481, allocations: 495 kB / 350.5 MB, free: 3.379 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.1481, allocations: 0 / 350.5 MB, free: 3.379 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.206e-06/0.1482, allocations: 0 / 350.5 MB, free: 3.379 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.805e-05/0.1482, allocations: 0 / 350.5 MB, free: 3.379 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.002769/0.151, allocations: 0.7878 MB / 351.3 MB, free: 2.543 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.243e-05/0.1511, allocations: 12.03 kB / 351.3 MB, free: 2.531 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002969/0.1514, allocations: 59.3 kB / 351.4 MB, free: 2.473 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008092/0.1522, allocations: 342.6 kB / 351.7 MB, free: 2.102 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.039e-05/0.1523, allocations: 33 kB / 351.7 MB, free: 2.066 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001901/0.1525, allocations: 47.98 kB / 351.8 MB, free: 2.02 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002125/0.1546, allocations: 0.6228 MB / 352.4 MB, free: 1.387 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.322e-05/0.1547, allocations: 7.906 kB / 352.4 MB, free: 1.379 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.862e-05/0.1548, allocations: 20 kB / 352.4 MB, free: 1.359 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.578e-05/0.1549, allocations: 8 kB / 352.4 MB, free: 1.352 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002419/0.1573, allocations: 0.6167 MB / 353.1 MB, free: 0.7344 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004669/0.162, allocations: 1.364 MB / 354.4 MB, free: 15.31 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001886/0.164, allocations: 469.3 kB / 354.9 MB, free: 14.84 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001323/0.1642, allocations: 8.562 kB / 354.9 MB, free: 14.84 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.269e-05/0.1642, allocations: 39.12 kB / 354.9 MB, free: 14.79 MB / 298.7 MB Notification: Performance of pre-optimization done (n=58): time 5.561e-06/0.1642, allocations: 0 / 354.9 MB, free: 14.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=64): time 0.01211/0.1763, allocations: 3.022 MB / 357.9 MB, free: 11.63 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.746e-05/0.1765, allocations: 67.95 kB / 358 MB, free: 11.55 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005364/0.177, allocations: 288.8 kB / 358.3 MB, free: 11.26 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001541/0.1772, allocations: 49.69 kB / 358.3 MB, free: 11.2 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001998/0.1774, allocations: 243.7 kB / 358.6 MB, free: 10.96 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003143/0.1777, allocations: 221.1 kB / 358.8 MB, free: 10.75 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.314e-05/0.1778, allocations: 23.92 kB / 358.8 MB, free: 10.72 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001661/0.178, allocations: 334.8 kB / 359.1 MB, free: 10.39 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001188/0.1792, allocations: 325.8 kB / 359.5 MB, free: 10.07 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001245/0.1805, allocations: 385 kB / 359.8 MB, free: 9.691 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001015/0.1815, allocations: 263.2 kB / 360.1 MB, free: 9.434 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.1815, allocations: 0 / 360.1 MB, free: 9.434 MB / 298.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.003215/0.1848, allocations: 0.92 MB / 361 MB, free: 8.504 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.424e-05/0.1848, allocations: 8 kB / 361 MB, free: 8.496 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.24e-05/0.1849, allocations: 0 / 361 MB, free: 8.496 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00223/0.1871, allocations: 0.7364 MB / 361.8 MB, free: 7.758 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008674/0.188, allocations: 103.8 kB / 361.9 MB, free: 7.656 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00255/0.1906, allocations: 1.091 MB / 363 MB, free: 6.539 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001494/0.1922, allocations: 147.9 kB / 363.1 MB, free: 6.395 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001384/0.1923, allocations: 23.98 kB / 363.1 MB, free: 6.371 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 24 (clutch1.free,$PRE.clutch1.startForward,clutch1.startForward,$PRE.clutch1.startBackward,clutch1.startBackward,clutch1.locked,$PRE.clutch1.mode,clutch1.mode,clutch2.free,$PRE.clutch2.startForward,clutch2.startForward,$PRE.clutch2.startBackward,clutch2.startBackward,clutch2.locked,$PRE.clutch2.mode,clutch2.mode,clutch3.free,$PRE.clutch3.startForward,clutch3.startForward,$PRE.clutch3.startBackward,clutch3.startBackward,clutch3.locked,$PRE.clutch3.mode,clutch3.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 63 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0004326/0.1928, allocations: 192.7 kB / 363.3 MB, free: 6.172 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001761/0.193, allocations: 47.53 kB / 363.4 MB, free: 6.125 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002125/0.1932, allocations: 68.75 kB / 363.4 MB, free: 6.055 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.23e-05/0.1932, allocations: 8 kB / 363.4 MB, free: 6.047 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.258e-06/0.1932, allocations: 0 / 363.4 MB, free: 6.047 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.411e-05/0.1933, allocations: 7.984 kB / 363.4 MB, free: 6.039 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004767/0.198, allocations: 1.594 MB / 365 MB, free: 4.383 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.486e-06/0.1981, allocations: 0 / 365 MB, free: 4.383 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009171/0.199, allocations: 95.88 kB / 365.1 MB, free: 4.289 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002104/0.2011, allocations: 0.7021 MB / 365.8 MB, free: 3.586 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001388/0.2013, allocations: 31.95 kB / 365.9 MB, free: 3.555 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002275/0.2036, allocations: 1.057 MB / 366.9 MB, free: 2.473 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/0.2037, allocations: 7.938 kB / 366.9 MB, free: 2.465 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004542/0.2082, allocations: 1.316 MB / 368.2 MB, free: 1.133 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000483/0.2088, allocations: 188.4 kB / 368.4 MB, free: 0.9297 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001952/0.209, allocations: 28 kB / 368.4 MB, free: 0.9023 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001295/0.2103, allocations: 143.8 kB / 368.6 MB, free: 0.7617 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004824/0.2108, allocations: 152.2 kB / 368.7 MB, free: 0.6133 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.232e-05/0.2109, allocations: 23.97 kB / 368.8 MB, free: 0.5898 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003891/0.2113, allocations: 235.2 kB / 369 MB, free: 368 kB / 298.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.2113, allocations: 0 / 369 MB, free: 368 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008002/0.2121, allocations: 160 kB / 369.1 MB, free: 208 kB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (clutch1.phi_rel,clutch1.w_rel,clutch2.phi_rel,clutch2.w_rel,J3.phi,J3.w,clutch3.phi_rel,clutch3.w_rel) * Number of discrete variables: 15 (clutch1.free,clutch1.startForward,clutch1.startBackward,clutch1.locked,clutch1.mode,clutch2.free,clutch2.startForward,clutch2.startBackward,clutch2.locked,clutch2.mode,clutch3.free,clutch3.startForward,clutch3.startBackward,clutch3.locked,clutch3.mode) * Number of discrete states: 9 (clutch3.mode,clutch3.startForward,clutch1.mode,clutch1.startForward,clutch1.startBackward,clutch2.mode,clutch2.startForward,clutch2.startBackward,clutch3.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 42 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003914/0.2125, allocations: 147.2 kB / 369.3 MB, free: 52 kB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002942/0.2155, allocations: 0.7879 MB / 370.1 MB, free: 15.26 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/0.2155, allocations: 0 / 370.1 MB, free: 15.26 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001563/0.2171, allocations: 433.8 kB / 370.5 MB, free: 14.84 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000895/0.218, allocations: 77.33 kB / 370.6 MB, free: 14.76 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004522/0.2226, allocations: 1.678 MB / 372.3 MB, free: 13.05 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005633/0.2232, allocations: 0.8559 MB / 373.1 MB, free: 12.17 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002642/0.2235, allocations: 39.42 kB / 373.1 MB, free: 12.13 MB / 314.7 MB Notification: Performance of SimCode: time 9.82e-07/0.2235, allocations: 0 / 373.1 MB, free: 12.13 MB / 314.7 MB Notification: Performance of Templates: time 0.01908/0.2426, allocations: 8.255 MB / 381.4 MB, free: 3.875 MB / 314.7 MB