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_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadModel(Modelica): time 1.684/1.684, allocations: 171.2 MB / 185.7 MB, free: 1.395 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.524e-05/2.537e-05, allocations: 0 / 228.1 MB, free: 7.336 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07917/0.07922, allocations: 38.77 MB / 266.9 MB, free: 500 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.003994/0.08327, allocations: 2.424 MB / 269.3 MB, free: 14.04 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002215/0.08553, allocations: 0.9277 MB / 270.3 MB, free: 13.11 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000221/0.08578, allocations: 8 kB / 270.3 MB, free: 13.1 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000208/0.086, allocations: 55.61 kB / 270.3 MB, free: 13.05 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004299/0.08645, allocations: 155.5 kB / 270.5 MB, free: 12.89 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006224/0.08709, allocations: 191.7 kB / 270.7 MB, free: 12.71 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006231/0.08772, allocations: 376.8 kB / 271 MB, free: 12.34 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001876/0.08793, allocations: 65.31 kB / 271.1 MB, free: 12.28 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000513/0.08845, allocations: 275.3 kB / 271.4 MB, free: 12.01 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005399/0.08901, allocations: 303.1 kB / 271.7 MB, free: 11.71 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003543/0.08938, allocations: 111.9 kB / 271.8 MB, free: 11.6 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001223/0.08952, allocations: 32 kB / 271.8 MB, free: 11.57 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001811/0.08971, allocations: 107.6 kB / 271.9 MB, free: 11.46 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001803/0.0899, allocations: 48 kB / 272 MB, free: 11.42 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008062/0.09072, allocations: 0.4989 MB / 272.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.09074, allocations: 0 / 272.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.434e-06/0.09075, allocations: 3.938 kB / 272.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.198e-05/0.09078, allocations: 0 / 272.5 MB, free: 10.91 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.002394/0.09318, allocations: 0.7762 MB / 273.2 MB, free: 10.09 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.644e-05/0.09324, allocations: 12.03 kB / 273.2 MB, free: 10.08 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001679/0.09342, allocations: 67.19 kB / 273.3 MB, free: 10.01 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000637/0.09407, allocations: 334.7 kB / 273.6 MB, free: 9.648 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.496e-05/0.09414, allocations: 36.95 kB / 273.7 MB, free: 9.613 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001424/0.09429, allocations: 44 kB / 273.7 MB, free: 9.57 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001733/0.09603, allocations: 0.5995 MB / 274.3 MB, free: 8.961 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.058e-05/0.09608, allocations: 3.906 kB / 274.3 MB, free: 8.957 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.79e-05/0.09617, allocations: 19.94 kB / 274.3 MB, free: 8.938 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.614e-05/0.0962, allocations: 12 kB / 274.4 MB, free: 8.926 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00205/0.09826, allocations: 0.5894 MB / 274.9 MB, free: 8.332 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003755/0.102, allocations: 1.336 MB / 276.3 MB, free: 6.934 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001601/0.1037, allocations: 461.3 kB / 276.7 MB, free: 6.477 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.041e-05/0.1038, allocations: 12.55 kB / 276.7 MB, free: 6.465 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.132e-05/0.1038, allocations: 35.12 kB / 276.8 MB, free: 6.422 MB / 234.7 MB Notification: Performance of pre-optimization done (n=58): time 3.546e-06/0.1038, allocations: 0 / 276.8 MB, free: 6.422 MB / 234.7 MB Notification: Performance of matching and sorting (n=64): time 0.01118/0.115, allocations: 3.045 MB / 279.8 MB, free: 3.238 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.989e-05/0.1151, allocations: 55.97 kB / 279.9 MB, free: 3.172 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004948/0.1156, allocations: 296.8 kB / 280.2 MB, free: 2.875 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001163/0.1158, allocations: 49.69 kB / 280.2 MB, free: 2.82 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001847/0.116, allocations: 193.3 kB / 280.4 MB, free: 2.629 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000283/0.1163, allocations: 220.9 kB / 280.6 MB, free: 2.41 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.883e-05/0.1163, allocations: 15.98 kB / 280.6 MB, free: 2.395 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001802/0.1165, allocations: 354.8 kB / 281 MB, free: 2.039 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001068/0.1176, allocations: 321.9 kB / 281.3 MB, free: 1.723 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001154/0.1188, allocations: 373.1 kB / 281.7 MB, free: 1.348 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008863/0.1197, allocations: 247.1 kB / 281.9 MB, free: 1.109 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.347e-06/0.1197, allocations: 0 / 281.9 MB, free: 1.109 MB / 234.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002979/0.1227, allocations: 0.9081 MB / 282.8 MB, free: 196 kB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.642e-05/0.1228, allocations: 4 kB / 282.8 MB, free: 192 kB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.849e-06/0.1228, allocations: 0 / 282.8 MB, free: 192 kB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001638/0.1244, allocations: 0.5368 MB / 283.3 MB, free: 15.65 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007811/0.1252, allocations: 103.9 kB / 283.4 MB, free: 15.55 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00223/0.1275, allocations: 1.055 MB / 284.5 MB, free: 14.47 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001392/0.1289, allocations: 151.9 kB / 284.7 MB, free: 14.32 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.6e-05/0.129, allocations: 24.09 kB / 284.7 MB, free: 14.3 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.000394/0.1294, allocations: 195.9 kB / 284.9 MB, free: 14.09 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001451/0.1296, allocations: 47.44 kB / 284.9 MB, free: 14.05 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002128/0.1298, allocations: 68.75 kB / 285 MB, free: 13.97 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.164e-05/0.1298, allocations: 8 kB / 285 MB, free: 13.96 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.249e-05/0.1298, allocations: 7.953 kB / 285 MB, free: 13.96 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.108e-05/0.1299, allocations: 3.984 kB / 285 MB, free: 13.95 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004538/0.1344, allocations: 1.598 MB / 286.6 MB, free: 12.29 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.143e-06/0.1345, allocations: 0 / 286.6 MB, free: 12.29 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008647/0.1353, allocations: 103.8 kB / 286.7 MB, free: 12.19 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001509/0.1369, allocations: 0.5005 MB / 287.2 MB, free: 11.69 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.912e-05/0.137, allocations: 31.95 kB / 287.2 MB, free: 11.66 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002054/0.139, allocations: 1.021 MB / 288.3 MB, free: 10.61 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.1391, allocations: 4.016 kB / 288.3 MB, free: 10.61 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004361/0.1434, allocations: 1.374 MB / 289.6 MB, free: 9.203 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004349/0.1439, allocations: 184.4 kB / 289.8 MB, free: 9.004 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000188/0.1441, allocations: 20 kB / 289.8 MB, free: 8.984 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001279/0.1454, allocations: 143.9 kB / 290 MB, free: 8.844 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004982/0.1459, allocations: 148.2 kB / 290.1 MB, free: 8.699 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.156e-05/0.146, allocations: 23.97 kB / 290.1 MB, free: 8.676 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.000392/0.1464, allocations: 231.2 kB / 290.4 MB, free: 8.453 MB / 250.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.1464, allocations: 0 / 290.4 MB, free: 8.453 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0007439/0.1472, allocations: 156 kB / 290.5 MB, free: 8.301 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.0003434/0.1476, allocations: 151.2 kB / 290.7 MB, free: 8.145 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.00268/0.1503, allocations: 0.7606 MB / 291.4 MB, free: 7.391 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.1503, allocations: 0 / 291.4 MB, free: 7.391 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001494/0.1518, allocations: 425.9 kB / 291.8 MB, free: 6.977 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008908/0.1527, allocations: 81.27 kB / 291.9 MB, free: 6.895 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004471/0.1572, allocations: 1.649 MB / 293.6 MB, free: 5.211 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005623/0.1578, allocations: 0.8559 MB / 294.4 MB, free: 4.332 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0003997/0.1582, allocations: 48.17 kB / 294.5 MB, free: 4.281 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001831/0.1584, allocations: 35.42 kB / 294.5 MB, free: 4.246 MB / 250.7 MB Notification: Performance of SimCode: time 1.563e-06/0.1584, allocations: 0 / 294.5 MB, free: 4.246 MB / 250.7 MB Notification: Performance of Templates: time 0.2318/0.3903, allocations: 10.91 MB / 305.4 MB, free: 29.5 MB / 250.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