Running command: translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadModel(Modelica): time 1.006/1.006, allocations: 111.2 MB / 123.8 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.398e-05/2.414e-05, allocations: 0 / 151.4 MB, free: 15.59 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1441/0.1441, allocations: 25.15 MB / 176.5 MB, free: 16 kB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.05586/0.2, allocations: 35.66 MB / 212.2 MB, free: 13.79 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002115/0.2003, allocations: 63.97 kB / 212.3 MB, free: 13.73 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0356/0.2359, allocations: 8.261 MB / 220.5 MB, free: 5.445 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.381e-06/0.236, allocations: 0 / 220.5 MB, free: 5.445 MB / 186.7 MB Notification: Performance of Transformations before backend: time 2.432e-05/0.236, allocations: 11.94 kB / 220.5 MB, free: 5.434 MB / 186.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 103 * Number of variables: 103 Notification: Performance of Generate backend data structure: time 0.001887/0.2379, allocations: 0.7558 MB / 221.3 MB, free: 4.633 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.596e-05/0.2379, allocations: 12.03 kB / 221.3 MB, free: 4.621 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001816/0.2381, allocations: 55.34 kB / 221.4 MB, free: 4.566 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006127/0.2388, allocations: 335.5 kB / 221.7 MB, free: 4.203 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.272e-05/0.2388, allocations: 37 kB / 221.7 MB, free: 4.168 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001298/0.239, allocations: 43.98 kB / 221.8 MB, free: 4.125 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001352/0.2403, allocations: 0.5664 MB / 222.3 MB, free: 3.547 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.224e-05/0.2404, allocations: 3.906 kB / 222.3 MB, free: 3.543 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.419e-05/0.2405, allocations: 23.95 kB / 222.4 MB, free: 3.52 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.563e-05/0.2405, allocations: 12 kB / 222.4 MB, free: 3.508 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001366/0.2419, allocations: 0.5329 MB / 222.9 MB, free: 2.973 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003366/0.2453, allocations: 1.332 MB / 224.2 MB, free: 1.582 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001129/0.2465, allocations: 408.7 kB / 224.6 MB, free: 1.172 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006339/0.2471, allocations: 278.4 kB / 224.9 MB, free: 0.8984 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.57e-05/0.2472, allocations: 12.55 kB / 224.9 MB, free: 0.8867 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.939e-05/0.2473, allocations: 39.12 kB / 225 MB, free: 0.8398 MB / 186.7 MB Notification: Performance of pre-optimization done (n=55): time 4.12e-06/0.2473, allocations: 0 / 225 MB, free: 0.8398 MB / 186.7 MB Notification: Performance of matching and sorting (n=61): time 0.005225/0.2525, allocations: 1.959 MB / 226.9 MB, free: 14.79 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.374e-05/0.2526, allocations: 59.97 kB / 227 MB, free: 14.72 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004638/0.2531, allocations: 283.5 kB / 227.3 MB, free: 14.43 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 9.786e-05/0.2532, allocations: 41.7 kB / 227.3 MB, free: 14.38 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001925/0.2534, allocations: 247.8 kB / 227.5 MB, free: 14.14 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000264/0.2537, allocations: 221.1 kB / 227.8 MB, free: 13.92 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.392e-05/0.2538, allocations: 12 kB / 227.8 MB, free: 13.91 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0001928/0.254, allocations: 335.3 kB / 228.1 MB, free: 13.57 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007243/0.2547, allocations: 285.5 kB / 228.4 MB, free: 13.3 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007621/0.2555, allocations: 337.5 kB / 228.7 MB, free: 12.96 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000563/0.2561, allocations: 218 kB / 228.9 MB, free: 12.75 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.76e-06/0.2561, allocations: 4 kB / 228.9 MB, free: 12.75 MB / 202.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.002158/0.2583, allocations: 0.8372 MB / 229.8 MB, free: 11.9 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.907e-05/0.2583, allocations: 8.578 kB / 229.8 MB, free: 11.89 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/0.2583, allocations: 7.938 kB / 229.8 MB, free: 11.88 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001822/0.2602, allocations: 0.7569 MB / 230.5 MB, free: 11.12 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005672/0.2608, allocations: 103.9 kB / 230.6 MB, free: 11.02 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001985/0.2628, allocations: 1.07 MB / 231.7 MB, free: 9.93 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009068/0.2637, allocations: 147.9 kB / 231.8 MB, free: 9.785 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001154/0.2638, allocations: 35.97 kB / 231.9 MB, free: 9.75 MB / 202.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 (61): * Single equations (assignments): 60 * 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.0002607/0.2641, allocations: 143.1 kB / 232 MB, free: 9.602 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001615/0.2643, allocations: 47.44 kB / 232.1 MB, free: 9.555 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001827/0.2645, allocations: 64.72 kB / 232.1 MB, free: 9.492 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-05/0.2645, allocations: 11.98 kB / 232.1 MB, free: 9.48 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.769e-06/0.2645, allocations: 3.938 kB / 232.1 MB, free: 9.477 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.456e-06/0.2645, allocations: 4 kB / 232.1 MB, free: 9.473 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003404/0.2679, allocations: 1.458 MB / 233.6 MB, free: 7.957 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.914e-06/0.268, allocations: 0 / 233.6 MB, free: 7.957 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005928/0.2686, allocations: 95.88 kB / 233.7 MB, free: 7.863 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001706/0.2703, allocations: 0.7269 MB / 234.4 MB, free: 7.133 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001036/0.2704, allocations: 23.97 kB / 234.4 MB, free: 7.109 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001869/0.2723, allocations: 1.043 MB / 235.5 MB, free: 6.043 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.882e-06/0.2724, allocations: 8 kB / 235.5 MB, free: 6.035 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002847/0.2752, allocations: 1.194 MB / 236.7 MB, free: 4.816 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004152/0.2757, allocations: 188.4 kB / 236.9 MB, free: 4.613 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001559/0.2758, allocations: 24 kB / 236.9 MB, free: 4.59 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008254/0.2767, allocations: 139.9 kB / 237 MB, free: 4.453 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003783/0.2771, allocations: 148.2 kB / 237.2 MB, free: 4.309 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001016/0.2772, allocations: 31.95 kB / 237.2 MB, free: 4.277 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0003404/0.2775, allocations: 218.2 kB / 237.4 MB, free: 4.066 MB / 202.7 MB Notification: Performance of sort global known variables: time 3.149e-06/0.2776, allocations: 0 / 237.4 MB, free: 4.066 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.0006958/0.2783, allocations: 151.9 kB / 237.6 MB, free: 3.918 MB / 202.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (J1.phi,J1.w,clutch1.phi_rel,clutch1.w_rel,clutch2.phi_rel,clutch2.w_rel,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 (40): * Single equations (assignments): 39 * 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.0003391/0.2786, allocations: 155.1 kB / 237.7 MB, free: 3.754 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.001767/0.2804, allocations: 0.669 MB / 238.4 MB, free: 3.086 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.2804, allocations: 0 / 238.4 MB, free: 3.086 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009363/0.2814, allocations: 372.8 kB / 238.8 MB, free: 2.723 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006834/0.2821, allocations: 78.45 kB / 238.8 MB, free: 2.648 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003237/0.2853, allocations: 1.229 MB / 240.1 MB, free: 1.391 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006259/0.286, allocations: 0.8554 MB / 240.9 MB, free: 0.5078 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002244/0.2862, allocations: 39.41 kB / 241 MB, free: 480 kB / 202.7 MB Notification: Performance of SimCode: time 2.023e-06/0.2863, allocations: 0 / 241 MB, free: 480 kB / 202.7 MB Notification: Performance of Templates: time 0.01463/0.3009, allocations: 7.486 MB / 248.4 MB, free: 8.988 MB / 218.7 MB