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.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadModel(Modelica): time 2.016/2.016, allocations: 205.8 MB / 218.9 MB, free: 9.27 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.861e-05/3.884e-05, allocations: 0 / 269.4 MB, free: 6.406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0923/0.09238, allocations: 47.58 MB / 316.9 MB, free: 6.746 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3722/0.4647, allocations: 78.76 MB / 395.7 MB, free: 9.367 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002152/0.4649, allocations: 71.03 kB / 395.8 MB, free: 9.332 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03886/0.5038, allocations: 9.131 MB / 404.9 MB, free: 1.441 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.493e-06/0.5038, allocations: 0 / 404.9 MB, free: 1.441 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.001e-05/0.5039, allocations: 12 kB / 404.9 MB, free: 1.43 MB / 314.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.001929/0.5058, allocations: 0.7694 MB / 405.7 MB, free: 0.6406 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.5059, allocations: 12.03 kB / 405.7 MB, free: 0.6289 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001796/0.5061, allocations: 67.23 kB / 405.8 MB, free: 0.5625 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005901/0.5067, allocations: 323.2 kB / 406.1 MB, free: 244 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.247e-05/0.5067, allocations: 38.08 kB / 406.1 MB, free: 220 kB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001289/0.5069, allocations: 43.81 kB / 406.1 MB, free: 192 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001279/0.5082, allocations: 0.5512 MB / 406.7 MB, free: 15.79 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.708e-05/0.5082, allocations: 11.89 kB / 406.7 MB, free: 15.78 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.069e-05/0.5083, allocations: 16.06 kB / 406.7 MB, free: 15.78 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.539e-05/0.5084, allocations: 11.94 kB / 406.7 MB, free: 15.77 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001256/0.5096, allocations: 494.9 kB / 407.2 MB, free: 15.44 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0034/0.5131, allocations: 1.353 MB / 408.6 MB, free: 14.29 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001175/0.5143, allocations: 445 kB / 409 MB, free: 13.98 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006093/0.5149, allocations: 261.9 kB / 409.3 MB, free: 13.83 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.095e-05/0.515, allocations: 4.562 kB / 409.3 MB, free: 13.82 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.66e-05/0.515, allocations: 42.88 kB / 409.3 MB, free: 13.78 MB / 330.7 MB Notification: Performance of pre-optimization done (n=61): time 4.126e-06/0.5151, allocations: 0 / 409.3 MB, free: 13.78 MB / 330.7 MB Notification: Performance of matching and sorting (n=67): time 0.005109/0.5202, allocations: 1.923 MB / 411.2 MB, free: 12.2 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.126e-05/0.5203, allocations: 63.91 kB / 411.3 MB, free: 12.12 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004031/0.5207, allocations: 255 kB / 411.5 MB, free: 11.91 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001055/0.5208, allocations: 49.7 kB / 411.6 MB, free: 11.86 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000176/0.521, allocations: 194.1 kB / 411.8 MB, free: 11.71 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000267/0.5213, allocations: 225.6 kB / 412 MB, free: 11.53 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.64e-05/0.5214, allocations: 12.62 kB / 412 MB, free: 11.52 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002133/0.5216, allocations: 366.8 kB / 412.4 MB, free: 11.18 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006472/0.5222, allocations: 256.5 kB / 412.6 MB, free: 11.03 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006902/0.523, allocations: 306.8 kB / 412.9 MB, free: 10.84 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005189/0.5235, allocations: 203.9 kB / 413.1 MB, free: 10.7 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.5235, allocations: 0 / 413.1 MB, free: 10.7 MB / 330.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002037/0.5256, allocations: 0.7912 MB / 413.9 MB, free: 10.14 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.186e-05/0.5256, allocations: 4 kB / 413.9 MB, free: 10.13 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.185e-05/0.5256, allocations: 4 kB / 413.9 MB, free: 10.13 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001488/0.5271, allocations: 0.5515 MB / 414.5 MB, free: 9.707 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005621/0.5277, allocations: 103.1 kB / 414.6 MB, free: 9.609 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001795/0.5295, allocations: 0.9733 MB / 415.6 MB, free: 8.785 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009952/0.5306, allocations: 154.8 kB / 415.7 MB, free: 8.645 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001178/0.5307, allocations: 30.11 kB / 415.7 MB, free: 8.621 MB / 330.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): 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.0002665/0.531, allocations: 148.8 kB / 415.9 MB, free: 8.492 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001619/0.5311, allocations: 47.44 kB / 415.9 MB, free: 8.445 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002367/0.5335, allocations: 0.8631 MB / 416.8 MB, free: 7.832 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.18e-05/0.5336, allocations: 4 kB / 416.8 MB, free: 7.828 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.575e-06/0.5336, allocations: 0 / 416.8 MB, free: 7.828 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.385e-05/0.5336, allocations: 7.984 kB / 416.8 MB, free: 7.82 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003402/0.537, allocations: 1.426 MB / 418.2 MB, free: 6.703 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.729e-06/0.5371, allocations: 0 / 418.2 MB, free: 6.703 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006368/0.5377, allocations: 99 kB / 418.3 MB, free: 6.609 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001384/0.5391, allocations: 0.5244 MB / 418.8 MB, free: 6.199 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.081e-05/0.5392, allocations: 28.58 kB / 418.9 MB, free: 6.18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001675/0.5409, allocations: 0.9485 MB / 419.8 MB, free: 5.363 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.301e-06/0.541, allocations: 0 / 419.8 MB, free: 5.363 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002801/0.5438, allocations: 1.121 MB / 420.9 MB, free: 4.559 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003939/0.5442, allocations: 192.9 kB / 421.1 MB, free: 4.379 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001504/0.5444, allocations: 22.06 kB / 421.2 MB, free: 4.371 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008831/0.5453, allocations: 142.7 kB / 421.3 MB, free: 4.238 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003824/0.5457, allocations: 150.2 kB / 421.4 MB, free: 4.105 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001059/0.5458, allocations: 31.02 kB / 421.5 MB, free: 4.078 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003103/0.5461, allocations: 209.7 kB / 421.7 MB, free: 3.906 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.79e-07/0.5461, allocations: 4 kB / 421.7 MB, free: 3.902 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007388/0.5469, allocations: 160.8 kB / 421.8 MB, free: 3.766 MB / 330.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.0003298/0.5472, allocations: 150.3 kB / 422 MB, free: 3.625 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001776/0.549, allocations: 0.7379 MB / 422.7 MB, free: 3.09 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.385e-06/0.549, allocations: 4.062 kB / 422.7 MB, free: 3.086 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009453/0.55, allocations: 380.3 kB / 423.1 MB, free: 2.832 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006976/0.5507, allocations: 79.47 kB / 423.2 MB, free: 2.777 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003102/0.5538, allocations: 1.214 MB / 424.4 MB, free: 1.66 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006142/0.5545, allocations: 0.8557 MB / 425.2 MB, free: 0.7734 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000282/0.5548, allocations: 40.17 kB / 425.3 MB, free: 0.7305 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001535/0.5549, allocations: 31.42 kB / 425.3 MB, free: 0.6992 MB / 330.7 MB Notification: Performance of SimCode: time 1.907e-06/0.5549, allocations: 4 kB / 425.3 MB, free: 0.6953 MB / 330.7 MB Notification: Performance of Templates: time 0.02658/0.5815, allocations: 11.45 MB / 436.8 MB, free: 5.262 MB / 346.7 MB