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_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadModel(Modelica): time 1.674/1.674, allocations: 171.1 MB / 186.3 MB, free: 1.332 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.266e-05/3.265e-05, allocations: 4 kB / 228.1 MB, free: 7.984 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08701/0.08707, allocations: 38.78 MB / 266.9 MB, free: 1.133 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.003964/0.09109, allocations: 2.427 MB / 269.3 MB, free: 14.68 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002448/0.09359, allocations: 0.916 MB / 270.2 MB, free: 13.76 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003038/0.09395, allocations: 11.94 kB / 270.2 MB, free: 13.75 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002184/0.09419, allocations: 59.61 kB / 270.3 MB, free: 13.69 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004464/0.09465, allocations: 159.5 kB / 270.5 MB, free: 13.54 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006597/0.09532, allocations: 187.7 kB / 270.6 MB, free: 13.35 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006584/0.096, allocations: 372.9 kB / 271 MB, free: 12.99 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000194/0.0962, allocations: 69.3 kB / 271.1 MB, free: 12.92 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005/0.09672, allocations: 283.2 kB / 271.4 MB, free: 12.64 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005154/0.09725, allocations: 295.2 kB / 271.6 MB, free: 12.36 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003527/0.09762, allocations: 119.8 kB / 271.8 MB, free: 12.24 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001147/0.09775, allocations: 36 kB / 271.8 MB, free: 12.2 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001721/0.09793, allocations: 111.6 kB / 271.9 MB, free: 12.09 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001762/0.09812, allocations: 44 kB / 271.9 MB, free: 12.05 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007758/0.09891, allocations: 495 kB / 272.4 MB, free: 11.57 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.09893, allocations: 0 / 272.4 MB, free: 11.57 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.605e-06/0.09894, allocations: 0 / 272.4 MB, free: 11.57 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.389e-05/0.09896, allocations: 0 / 272.4 MB, free: 11.57 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.002397/0.1014, allocations: 0.7917 MB / 273.2 MB, free: 10.73 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.821e-05/0.1014, allocations: 8.031 kB / 273.2 MB, free: 10.72 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001791/0.1016, allocations: 59.25 kB / 273.3 MB, free: 10.66 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006539/0.1023, allocations: 342.6 kB / 273.6 MB, free: 10.29 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.244e-05/0.1024, allocations: 32.95 kB / 273.7 MB, free: 10.26 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001457/0.1025, allocations: 44 kB / 273.7 MB, free: 10.21 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001743/0.1043, allocations: 0.5995 MB / 274.3 MB, free: 9.605 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.404e-05/0.1043, allocations: 7.906 kB / 274.3 MB, free: 9.598 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.371e-05/0.1044, allocations: 20 kB / 274.3 MB, free: 9.578 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.55e-05/0.1044, allocations: 8 kB / 274.3 MB, free: 9.57 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002062/0.1065, allocations: 0.5933 MB / 274.9 MB, free: 8.973 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004048/0.1106, allocations: 1.344 MB / 276.3 MB, free: 7.566 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001679/0.1123, allocations: 449.3 kB / 276.7 MB, free: 7.121 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000102/0.1125, allocations: 12.55 kB / 276.7 MB, free: 7.109 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.704e-05/0.1125, allocations: 51.05 kB / 276.8 MB, free: 7.051 MB / 234.7 MB Notification: Performance of pre-optimization done (n=58): time 3.417e-06/0.1126, allocations: 0 / 276.8 MB, free: 7.051 MB / 234.7 MB Notification: Performance of matching and sorting (n=64): time 0.01176/0.1243, allocations: 3.026 MB / 279.8 MB, free: 3.887 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.677e-05/0.1244, allocations: 63.91 kB / 279.9 MB, free: 3.812 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004872/0.1249, allocations: 288.8 kB / 280.1 MB, free: 3.523 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001183/0.1251, allocations: 53.69 kB / 280.2 MB, free: 3.465 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001783/0.1252, allocations: 239.8 kB / 280.4 MB, free: 3.23 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002786/0.1255, allocations: 220.9 kB / 280.6 MB, free: 3.012 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.904e-05/0.1256, allocations: 20 kB / 280.7 MB, free: 2.992 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.1258, allocations: 346.8 kB / 281 MB, free: 2.645 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001091/0.1269, allocations: 305.9 kB / 281.3 MB, free: 2.344 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00113/0.128, allocations: 377.1 kB / 281.7 MB, free: 1.965 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008921/0.1289, allocations: 247.2 kB / 281.9 MB, free: 1.727 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.107e-06/0.129, allocations: 0 / 281.9 MB, free: 1.727 MB / 234.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.003039/0.132, allocations: 0.885 MB / 282.8 MB, free: 0.832 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.936e-05/0.1321, allocations: 4.031 kB / 282.8 MB, free: 0.8281 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.467e-05/0.1321, allocations: 4 kB / 282.8 MB, free: 0.8242 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001668/0.1338, allocations: 0.5445 MB / 283.3 MB, free: 284 kB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000852/0.1347, allocations: 103.9 kB / 283.4 MB, free: 180 kB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002307/0.137, allocations: 1.055 MB / 284.5 MB, free: 15.1 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0014/0.1384, allocations: 147.9 kB / 284.6 MB, free: 14.95 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.684e-05/0.1385, allocations: 27.98 kB / 284.7 MB, free: 14.93 MB / 250.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.0003791/0.1389, allocations: 176 kB / 284.8 MB, free: 14.74 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001408/0.1391, allocations: 47.44 kB / 284.9 MB, free: 14.7 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002116/0.1393, allocations: 68.75 kB / 285 MB, free: 14.62 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.171e-05/0.1393, allocations: 8 kB / 285 MB, free: 14.61 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.055e-05/0.1394, allocations: 3.953 kB / 285 MB, free: 14.61 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.319e-05/0.1394, allocations: 3.984 kB / 285 MB, free: 14.61 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004587/0.144, allocations: 1.618 MB / 286.6 MB, free: 12.93 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.332e-06/0.144, allocations: 0 / 286.6 MB, free: 12.93 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008605/0.1449, allocations: 99.83 kB / 286.7 MB, free: 12.83 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001513/0.1464, allocations: 0.5083 MB / 287.2 MB, free: 12.32 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.1e-05/0.1465, allocations: 19.97 kB / 287.2 MB, free: 12.3 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002092/0.1486, allocations: 1.032 MB / 288.2 MB, free: 11.24 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.1487, allocations: 0 / 288.2 MB, free: 11.24 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004503/0.1532, allocations: 1.359 MB / 289.6 MB, free: 9.852 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004147/0.1537, allocations: 184.4 kB / 289.8 MB, free: 9.652 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001889/0.1539, allocations: 31.92 kB / 289.8 MB, free: 9.621 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001275/0.1552, allocations: 139.9 kB / 290 MB, free: 9.484 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004586/0.1556, allocations: 144.2 kB / 290.1 MB, free: 9.344 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.119e-05/0.1557, allocations: 31.91 kB / 290.1 MB, free: 9.312 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0003587/0.1561, allocations: 235.2 kB / 290.4 MB, free: 9.086 MB / 250.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.1561, allocations: 0 / 290.4 MB, free: 9.086 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0007168/0.1568, allocations: 156 kB / 290.5 MB, free: 8.934 MB / 250.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.0003282/0.1572, allocations: 151.2 kB / 290.7 MB, free: 8.777 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.002694/0.1599, allocations: 0.7607 MB / 291.4 MB, free: 8.023 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.1599, allocations: 0 / 291.4 MB, free: 8.023 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001442/0.1614, allocations: 421.9 kB / 291.8 MB, free: 7.613 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009269/0.1624, allocations: 73.5 kB / 291.9 MB, free: 7.539 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004469/0.1668, allocations: 1.685 MB / 293.6 MB, free: 5.816 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005459/0.1674, allocations: 0.852 MB / 294.4 MB, free: 4.941 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002553/0.1677, allocations: 47.41 kB / 294.5 MB, free: 4.895 MB / 250.7 MB Notification: Performance of SimCode: time 1.102e-06/0.1677, allocations: 0 / 294.5 MB, free: 4.895 MB / 250.7 MB Notification: Performance of Templates: time 0.2524/0.4201, allocations: 7.741 MB / 302.2 MB, free: 30.47 MB / 250.7 MB