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.2_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadModel(Modelica): time 2.022/2.022, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.488e-05/2.494e-05, allocations: 0 / 249.6 MB, free: 15.29 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3072/0.3073, allocations: 44.5 MB / 294.1 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1216/0.429, allocations: 73.73 MB / 367.8 MB, free: 8.246 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002478/0.4293, allocations: 79.89 kB / 367.9 MB, free: 8.168 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04054/0.4698, allocations: 8.874 MB / 376.8 MB, free: 15.28 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.61e-06/0.4699, allocations: 0 / 376.8 MB, free: 15.28 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.892e-05/0.4699, allocations: 8 kB / 376.8 MB, free: 15.27 MB / 330.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.00218/0.4721, allocations: 0.7832 MB / 377.6 MB, free: 14.45 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.468e-05/0.4722, allocations: 8.031 kB / 377.6 MB, free: 14.44 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001937/0.4724, allocations: 55.34 kB / 377.7 MB, free: 14.38 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006608/0.4731, allocations: 347.5 kB / 378 MB, free: 14 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.778e-05/0.4731, allocations: 16 kB / 378 MB, free: 13.98 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001239/0.4733, allocations: 24 kB / 378 MB, free: 13.96 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001267/0.4745, allocations: 474.4 kB / 378.5 MB, free: 13.5 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001256/0.4758, allocations: 0.5079 MB / 379 MB, free: 12.98 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.43e-05/0.4759, allocations: 7.844 kB / 379 MB, free: 12.97 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.082e-05/0.476, allocations: 3.984 kB / 379 MB, free: 12.96 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.874e-05/0.476, allocations: 12 kB / 379 MB, free: 12.95 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003529/0.4795, allocations: 1.25 MB / 380.3 MB, free: 11.66 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001147/0.4807, allocations: 415.6 kB / 380.7 MB, free: 11.25 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005764/0.4813, allocations: 254.5 kB / 380.9 MB, free: 11 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.564e-05/0.4814, allocations: 16.5 kB / 380.9 MB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.725e-05/0.4815, allocations: 43.11 kB / 381 MB, free: 10.93 MB / 330.7 MB Notification: Performance of pre-optimization done (n=61): time 4.064e-06/0.4815, allocations: 0 / 381 MB, free: 10.93 MB / 330.7 MB Notification: Performance of matching and sorting (n=67): time 0.006972/0.4885, allocations: 1.857 MB / 382.8 MB, free: 8.984 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.333e-05/0.4886, allocations: 59.97 kB / 382.9 MB, free: 8.914 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003906/0.489, allocations: 237.2 kB / 383.1 MB, free: 8.676 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001034/0.4891, allocations: 41.64 kB / 383.2 MB, free: 8.629 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000202/0.4893, allocations: 239.8 kB / 383.4 MB, free: 8.391 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002874/0.4896, allocations: 228.8 kB / 383.6 MB, free: 8.164 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.111e-05/0.4897, allocations: 0 / 383.6 MB, free: 8.164 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001915/0.4899, allocations: 338.8 kB / 384 MB, free: 7.824 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006357/0.4906, allocations: 253.5 kB / 384.2 MB, free: 7.578 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006756/0.4913, allocations: 297.5 kB / 384.5 MB, free: 7.281 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008184/0.4921, allocations: 204.5 kB / 384.7 MB, free: 7.082 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.4921, allocations: 0 / 384.7 MB, free: 7.082 MB / 330.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002271/0.4944, allocations: 0.7317 MB / 385.4 MB, free: 6.34 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.606e-05/0.4945, allocations: 6.031 kB / 385.4 MB, free: 6.336 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.613e-05/0.4945, allocations: 4 kB / 385.4 MB, free: 6.332 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001513/0.496, allocations: 0.5415 MB / 386 MB, free: 5.789 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005589/0.4966, allocations: 107.8 kB / 386.1 MB, free: 5.684 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002947/0.4996, allocations: 1.064 MB / 387.2 MB, free: 4.594 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001021/0.5006, allocations: 135.9 kB / 387.3 MB, free: 4.461 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001323/0.5008, allocations: 31.98 kB / 387.3 MB, free: 4.43 MB / 330.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch3.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real clutch2.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real clutch1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.000331/0.5011, allocations: 131.4 kB / 387.4 MB, free: 4.293 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001738/0.5013, allocations: 47.44 kB / 387.5 MB, free: 4.246 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002499/0.5038, allocations: 0.8199 MB / 388.3 MB, free: 3.402 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.36e-05/0.5039, allocations: 8 kB / 388.3 MB, free: 3.395 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.888e-06/0.5039, allocations: 0 / 388.3 MB, free: 3.395 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.302e-05/0.5039, allocations: 7.922 kB / 388.3 MB, free: 3.387 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003541/0.5075, allocations: 1.341 MB / 389.7 MB, free: 1.996 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.64e-06/0.5075, allocations: 4 kB / 389.7 MB, free: 1.992 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006196/0.5082, allocations: 91.88 kB / 389.8 MB, free: 1.902 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001409/0.5096, allocations: 0.5239 MB / 390.3 MB, free: 1.375 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.832e-05/0.5097, allocations: 19.95 kB / 390.3 MB, free: 1.355 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002064/0.5118, allocations: 1.028 MB / 391.3 MB, free: 308 kB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.415e-06/0.5118, allocations: 0 / 391.3 MB, free: 308 kB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002999/0.5148, allocations: 1.082 MB / 392.4 MB, free: 15.2 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000424/0.5153, allocations: 184.4 kB / 392.6 MB, free: 15 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002012/0.5155, allocations: 20 kB / 392.6 MB, free: 14.98 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001585/0.5171, allocations: 131.9 kB / 392.7 MB, free: 14.85 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004395/0.5176, allocations: 148.2 kB / 392.9 MB, free: 14.71 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001129/0.5177, allocations: 35.95 kB / 392.9 MB, free: 14.67 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002908/0.518, allocations: 188.6 kB / 393.1 MB, free: 14.48 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.74e-07/0.518, allocations: 0 / 393.1 MB, free: 14.48 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000805/0.5189, allocations: 139.9 kB / 393.2 MB, free: 14.35 MB / 346.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,clutch2.mode,clutch1.mode,clutch1.startForward,clutch1.startBackward,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.0003479/0.5192, allocations: 145.9 kB / 393.4 MB, free: 14.2 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001835/0.5211, allocations: 0.7091 MB / 394.1 MB, free: 13.47 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.5211, allocations: 0 / 394.1 MB, free: 13.47 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009633/0.5221, allocations: 356.8 kB / 394.4 MB, free: 13.12 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007346/0.5228, allocations: 73.73 kB / 394.5 MB, free: 13.05 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003228/0.5261, allocations: 1.216 MB / 395.7 MB, free: 11.8 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006193/0.5268, allocations: 0.8476 MB / 396.6 MB, free: 10.93 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002161/0.527, allocations: 39.42 kB / 396.6 MB, free: 10.89 MB / 346.7 MB Notification: Performance of SimCode: time 1.786e-06/0.527, allocations: 7.938 kB / 396.6 MB, free: 10.88 MB / 346.7 MB Notification: Performance of Templates: time 0.01771/0.5447, allocations: 8.255 MB / 404.9 MB, free: 2.633 MB / 346.7 MB