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_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadModel(Modelica): time 1.806/1.806, allocations: 194.9 MB / 210.6 MB, free: 8.352 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.951e-05/2.9e-05, allocations: 7.906 kB / 258.8 MB, free: 8.047 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2888/0.2889, allocations: 44.5 MB / 303.3 MB, free: 12.95 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.003856/0.2928, allocations: 2.409 MB / 305.7 MB, free: 11.02 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002385/0.2952, allocations: 0.9338 MB / 306.7 MB, free: 10.24 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00027/0.2955, allocations: 8 kB / 306.7 MB, free: 10.23 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001748/0.2957, allocations: 51.55 kB / 306.7 MB, free: 10.18 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004469/0.2962, allocations: 163.5 kB / 306.9 MB, free: 10.02 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000637/0.2968, allocations: 195.6 kB / 307.1 MB, free: 9.832 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006519/0.2975, allocations: 376.9 kB / 307.4 MB, free: 9.461 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001878/0.2977, allocations: 61.34 kB / 307.5 MB, free: 9.398 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005528/0.2983, allocations: 287.2 kB / 307.8 MB, free: 9.117 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005365/0.2988, allocations: 311.2 kB / 308.1 MB, free: 8.812 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002674/0.2991, allocations: 75.89 kB / 308.2 MB, free: 8.738 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001198/0.2992, allocations: 32 kB / 308.2 MB, free: 8.707 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001668/0.2994, allocations: 107.6 kB / 308.3 MB, free: 8.602 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001612/0.2996, allocations: 52 kB / 308.3 MB, free: 8.551 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007366/0.3003, allocations: 0.4932 MB / 308.8 MB, free: 8.059 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.3004, allocations: 0 / 308.8 MB, free: 8.059 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.625e-06/0.3004, allocations: 0 / 308.8 MB, free: 8.059 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.701e-05/0.3004, allocations: 0 / 308.8 MB, free: 8.059 MB / 250.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.002395/0.3028, allocations: 0.7761 MB / 309.6 MB, free: 7.234 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.319e-05/0.3029, allocations: 8.031 kB / 309.6 MB, free: 7.227 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001798/0.303, allocations: 59.25 kB / 309.7 MB, free: 7.168 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006285/0.3037, allocations: 358.6 kB / 310 MB, free: 6.777 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.571e-05/0.3038, allocations: 36.94 kB / 310.1 MB, free: 6.738 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001439/0.3039, allocations: 43.91 kB / 310.1 MB, free: 6.695 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001785/0.3057, allocations: 0.6151 MB / 310.7 MB, free: 6.07 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.516e-05/0.3058, allocations: 8 kB / 310.7 MB, free: 6.062 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.225e-05/0.3059, allocations: 19.94 kB / 310.7 MB, free: 6.043 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.461e-05/0.3059, allocations: 8 kB / 310.8 MB, free: 6.035 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002117/0.308, allocations: 0.6207 MB / 311.4 MB, free: 5.41 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003744/0.3118, allocations: 1.36 MB / 312.7 MB, free: 3.992 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001702/0.3135, allocations: 481.2 kB / 313.2 MB, free: 3.512 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.073e-05/0.3136, allocations: 4.562 kB / 313.2 MB, free: 3.508 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.369e-05/0.3137, allocations: 43.06 kB / 313.3 MB, free: 3.457 MB / 250.7 MB Notification: Performance of pre-optimization done (n=58): time 3.186e-06/0.3137, allocations: 4 kB / 313.3 MB, free: 3.453 MB / 250.7 MB Notification: Performance of matching and sorting (n=64): time 0.01102/0.3247, allocations: 3.01 MB / 316.3 MB, free: 312 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.855e-05/0.3248, allocations: 59.97 kB / 316.3 MB, free: 240 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004724/0.3253, allocations: 292.8 kB / 316.6 MB, free: 15.94 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001153/0.3255, allocations: 45.7 kB / 316.7 MB, free: 15.89 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001694/0.3256, allocations: 209.2 kB / 316.9 MB, free: 15.68 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002624/0.3259, allocations: 224.9 kB / 317.1 MB, free: 15.46 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.884e-05/0.326, allocations: 12 kB / 317.1 MB, free: 15.45 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001514/0.3262, allocations: 358.8 kB / 317.4 MB, free: 15.09 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001102/0.3273, allocations: 325.8 kB / 317.8 MB, free: 14.77 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001162/0.3284, allocations: 389 kB / 318.1 MB, free: 14.39 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009458/0.3294, allocations: 255.2 kB / 318.4 MB, free: 14.13 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.3294, allocations: 3.938 kB / 318.4 MB, free: 14.13 MB / 266.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.003099/0.3325, allocations: 0.9433 MB / 319.3 MB, free: 13.18 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.01e-05/0.3326, allocations: 8.922 kB / 319.3 MB, free: 13.17 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.342e-05/0.3326, allocations: 4 kB / 319.4 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002123/0.3348, allocations: 0.7279 MB / 320.1 MB, free: 12.43 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008067/0.3356, allocations: 103.8 kB / 320.2 MB, free: 12.33 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002258/0.3379, allocations: 1.09 MB / 321.3 MB, free: 11.22 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001384/0.3393, allocations: 151.9 kB / 321.4 MB, free: 11.07 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.158e-05/0.3394, allocations: 23.98 kB / 321.4 MB, free: 11.05 MB / 266.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.0003681/0.3398, allocations: 188 kB / 321.6 MB, free: 10.85 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001406/0.3399, allocations: 51.39 kB / 321.7 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001966/0.3401, allocations: 72.75 kB / 321.7 MB, free: 10.73 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.568e-06/0.3401, allocations: 4 kB / 321.8 MB, free: 10.72 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.832e-06/0.3402, allocations: 0 / 321.8 MB, free: 10.72 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.018e-05/0.3402, allocations: 7.984 kB / 321.8 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004448/0.3446, allocations: 1.583 MB / 323.3 MB, free: 9.07 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.623e-06/0.3447, allocations: 0 / 323.3 MB, free: 9.07 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008662/0.3456, allocations: 95.89 kB / 323.4 MB, free: 8.977 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001919/0.3475, allocations: 0.6917 MB / 324.1 MB, free: 8.281 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001012/0.3476, allocations: 39.89 kB / 324.2 MB, free: 8.242 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002148/0.3498, allocations: 1.06 MB / 325.2 MB, free: 7.156 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.3498, allocations: 0 / 325.2 MB, free: 7.156 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004375/0.3542, allocations: 1.32 MB / 326.5 MB, free: 5.82 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004087/0.3547, allocations: 196.4 kB / 326.7 MB, free: 5.609 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001911/0.3549, allocations: 24 kB / 326.8 MB, free: 5.586 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001233/0.3561, allocations: 143.9 kB / 326.9 MB, free: 5.445 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004391/0.3566, allocations: 144.2 kB / 327 MB, free: 5.305 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.293e-05/0.3567, allocations: 31.97 kB / 327.1 MB, free: 5.273 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000343/0.357, allocations: 231.2 kB / 327.3 MB, free: 5.051 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.357, allocations: 4 kB / 327.3 MB, free: 5.047 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007224/0.3578, allocations: 164 kB / 327.5 MB, free: 4.887 MB / 266.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.0003368/0.3581, allocations: 150.2 kB / 327.6 MB, free: 4.73 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002703/0.3608, allocations: 0.7878 MB / 328.4 MB, free: 3.938 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.3609, allocations: 0 / 328.4 MB, free: 3.938 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00145/0.3623, allocations: 429.9 kB / 328.8 MB, free: 3.52 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008558/0.3632, allocations: 88.58 kB / 328.9 MB, free: 3.438 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004254/0.3675, allocations: 1.652 MB / 330.6 MB, free: 1.766 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004605/0.368, allocations: 0.852 MB / 331.4 MB, free: 0.8867 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000365/0.3684, allocations: 52.17 kB / 331.5 MB, free: 0.832 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001938/0.3686, allocations: 35.42 kB / 331.5 MB, free: 0.7969 MB / 266.7 MB Notification: Performance of SimCode: time 9.72e-07/0.3686, allocations: 0 / 331.5 MB, free: 0.7969 MB / 266.7 MB Notification: Performance of Templates: time 0.03036/0.3989, allocations: 12.17 MB / 343.7 MB, free: 4.637 MB / 282.7 MB "" Variables in the reference: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 Variables in the result:J1.J,J1.phi,J1.w,J2.J,J3.J,J4.J,T2,T3,clutch1.cgeo,clutch1.fn_max,clutch1.mode,clutch1.mue_pos[1,1],clutch1.mue_pos[1,2],clutch1.peak,clutch1.phi_nominal,clutch1.phi_rel,clutch1.startBackward,clutch1.startForward,clutch1.w_rel,clutch1.w_small,clutch2.cgeo,clutch2.fn_max,clutch2.mode,clutch2.mue_pos[1,1],clutch2.mue_pos[1,2],clutch2.peak,clutch2.phi_nominal,clutch2.phi_rel,clutch2.startBackward,clutch2.startForward,clutch2.w_rel,clutch2.w_small,clutch3.cgeo,clutch3.fn_max,clutch3.mode,clutch3.mue_pos[1,1],clutch3.mue_pos[1,2],clutch3.peak,clutch3.phi_nominal,clutch3.phi_rel,clutch3.startBackward,clutch3.startForward,clutch3.w_rel,clutch3.w_small,fixed.flange.phi,fixed.phi0,freqHz,sin1.amplitude,sin1.freqHz,sin1.offset,sin1.phase,sin1.startTime,sin2.amplitude,sin2.freqHz,sin2.offset,sin2.phase,sin2.startTime,step1.height,step1.offset,step1.startTime,step2.height,step2.offset,step2.startTime,time,torque.phi_support,torque.support.phi