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.066/2.066, allocations: 194.9 MB / 211.2 MB, free: 7.863 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.045e-05/3.047e-05, allocations: 4 kB / 258.8 MB, free: 8.219 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3041/0.3042, allocations: 44.51 MB / 303.3 MB, free: 12.81 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004429/0.3087, allocations: 2.422 MB / 305.7 MB, free: 10.87 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002675/0.3114, allocations: 0.9264 MB / 306.6 MB, free: 10.12 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004352/0.3119, allocations: 8.094 kB / 306.7 MB, free: 10.12 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002209/0.3121, allocations: 54.2 kB / 306.7 MB, free: 10.08 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005679/0.3127, allocations: 157.3 kB / 306.9 MB, free: 9.938 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000789/0.3135, allocations: 193.2 kB / 307 MB, free: 9.777 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009448/0.3145, allocations: 374.1 kB / 307.4 MB, free: 9.488 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002277/0.3148, allocations: 69.34 kB / 307.5 MB, free: 9.418 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006466/0.3154, allocations: 287.2 kB / 307.8 MB, free: 9.137 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006384/0.3161, allocations: 311.2 kB / 308.1 MB, free: 8.832 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002918/0.3164, allocations: 71.89 kB / 308.1 MB, free: 8.762 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001298/0.3165, allocations: 28 kB / 308.2 MB, free: 8.734 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001885/0.3167, allocations: 115.6 kB / 308.3 MB, free: 8.621 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001718/0.3169, allocations: 44 kB / 308.3 MB, free: 8.578 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008404/0.3178, allocations: 0.4966 MB / 308.8 MB, free: 8.082 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.3178, allocations: 0 / 308.8 MB, free: 8.082 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.025e-06/0.3178, allocations: 0 / 308.8 MB, free: 8.082 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.688e-05/0.3178, allocations: 0 / 308.8 MB, free: 8.082 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.002644/0.3205, allocations: 0.7722 MB / 309.6 MB, free: 7.262 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.346e-05/0.3206, allocations: 12.03 kB / 309.6 MB, free: 7.25 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002386/0.3208, allocations: 63.25 kB / 309.7 MB, free: 7.188 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007471/0.3216, allocations: 346.7 kB / 310 MB, free: 6.809 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.068e-05/0.3217, allocations: 40.94 kB / 310 MB, free: 6.766 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001595/0.3218, allocations: 51.84 kB / 310.1 MB, free: 6.715 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001924/0.3238, allocations: 0.6151 MB / 310.7 MB, free: 6.09 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.403e-05/0.3238, allocations: 4 kB / 310.7 MB, free: 6.086 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.517e-05/0.3239, allocations: 15.94 kB / 310.7 MB, free: 6.07 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.248e-05/0.324, allocations: 12 kB / 310.7 MB, free: 6.059 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002274/0.3263, allocations: 0.6168 MB / 311.4 MB, free: 5.438 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004248/0.3306, allocations: 1.364 MB / 312.7 MB, free: 4.016 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001781/0.3324, allocations: 473.3 kB / 313.2 MB, free: 3.543 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.954e-05/0.3325, allocations: 8.562 kB / 313.2 MB, free: 3.535 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.755e-05/0.3326, allocations: 43.06 kB / 313.2 MB, free: 3.484 MB / 250.7 MB Notification: Performance of pre-optimization done (n=58): time 3.516e-06/0.3326, allocations: 0 / 313.2 MB, free: 3.484 MB / 250.7 MB Notification: Performance of matching and sorting (n=64): time 0.01194/0.3445, allocations: 3.014 MB / 316.2 MB, free: 340 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.207e-05/0.3447, allocations: 59.97 kB / 316.3 MB, free: 268 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005609/0.3452, allocations: 292.8 kB / 316.6 MB, free: 15.97 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001704/0.3454, allocations: 45.7 kB / 316.6 MB, free: 15.92 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002031/0.3456, allocations: 255.6 kB / 316.9 MB, free: 15.67 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003595/0.346, allocations: 232.9 kB / 317.1 MB, free: 15.44 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.464e-05/0.3461, allocations: 12 kB / 317.1 MB, free: 15.43 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001708/0.3463, allocations: 334.8 kB / 317.4 MB, free: 15.09 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001188/0.3475, allocations: 325.8 kB / 317.8 MB, free: 14.77 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00127/0.3488, allocations: 393 kB / 318.1 MB, free: 14.38 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009931/0.3498, allocations: 259.2 kB / 318.4 MB, free: 14.12 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.3498, allocations: 4 kB / 318.4 MB, free: 14.12 MB / 266.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.00321/0.3531, allocations: 0.9162 MB / 319.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.312e-05/0.3531, allocations: 8 kB / 319.3 MB, free: 13.19 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/0.3532, allocations: 0 / 319.3 MB, free: 13.19 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002246/0.3554, allocations: 0.7351 MB / 320.1 MB, free: 12.45 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008705/0.3563, allocations: 107.8 kB / 320.2 MB, free: 12.35 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002455/0.3588, allocations: 1.087 MB / 321.3 MB, free: 11.23 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001429/0.3603, allocations: 147.9 kB / 321.4 MB, free: 11.09 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001042/0.3604, allocations: 28 kB / 321.4 MB, free: 11.06 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.0004129/0.3608, allocations: 180 kB / 321.6 MB, free: 10.88 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001703/0.361, allocations: 51.39 kB / 321.7 MB, free: 10.82 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000203/0.3612, allocations: 68.75 kB / 321.7 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.75e-05/0.3613, allocations: 8 kB / 321.7 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.3613, allocations: 0 / 321.7 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.088e-05/0.3613, allocations: 3.984 kB / 321.7 MB, free: 10.74 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004673/0.366, allocations: 1.59 MB / 323.3 MB, free: 9.09 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.388e-06/0.3661, allocations: 96 / 323.3 MB, free: 9.09 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000878/0.367, allocations: 91.83 kB / 323.4 MB, free: 9 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002074/0.369, allocations: 0.7073 MB / 324.1 MB, free: 8.289 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001465/0.3692, allocations: 23.91 kB / 324.1 MB, free: 8.266 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002228/0.3715, allocations: 1.067 MB / 325.2 MB, free: 7.176 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.3715, allocations: 0 / 325.2 MB, free: 7.176 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004473/0.376, allocations: 1.331 MB / 326.5 MB, free: 5.828 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004388/0.3765, allocations: 188.4 kB / 326.7 MB, free: 5.625 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002028/0.3767, allocations: 24 kB / 326.7 MB, free: 5.602 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001271/0.378, allocations: 143.9 kB / 326.9 MB, free: 5.461 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004984/0.3785, allocations: 148.2 kB / 327 MB, free: 5.316 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.672e-05/0.3786, allocations: 31.95 kB / 327.1 MB, free: 5.285 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000391/0.379, allocations: 227.2 kB / 327.3 MB, free: 5.066 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.3791, allocations: 0 / 327.3 MB, free: 5.066 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0008174/0.3799, allocations: 167.9 kB / 327.5 MB, free: 4.902 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.0003739/0.3803, allocations: 151.2 kB / 327.6 MB, free: 4.742 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002883/0.3832, allocations: 0.784 MB / 328.4 MB, free: 3.953 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.531e-06/0.3832, allocations: 0 / 328.4 MB, free: 3.953 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001547/0.3848, allocations: 429.9 kB / 328.8 MB, free: 3.535 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009021/0.3857, allocations: 85.7 kB / 328.9 MB, free: 3.453 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004765/0.3905, allocations: 1.679 MB / 330.6 MB, free: 1.75 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005762/0.3911, allocations: 0.852 MB / 331.4 MB, free: 0.8711 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002706/0.3914, allocations: 43.41 kB / 331.5 MB, free: 0.8281 MB / 266.7 MB Notification: Performance of SimCode: time 1.093e-06/0.3914, allocations: 4 kB / 331.5 MB, free: 0.8242 MB / 266.7 MB Notification: Performance of Templates: time 0.01945/0.4109, allocations: 8.243 MB / 339.7 MB, free: 8.59 MB / 282.7 MB