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_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadModel(Modelica): time 1.914/1.914, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.869e-05/2.869e-05, allocations: 8 kB / 292.1 MB, free: 8.344 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09076/0.0908, allocations: 50.41 MB / 342.6 MB, free: 5.914 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3683/0.4592, allocations: 79.9 MB / 422.5 MB, free: 14.36 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002322/0.4594, allocations: 66.34 kB / 422.5 MB, free: 14.32 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03814/0.4976, allocations: 9.278 MB / 431.8 MB, free: 6.301 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.18e-06/0.4976, allocations: 0 / 431.8 MB, free: 6.301 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.84e-05/0.4977, allocations: 12 kB / 431.8 MB, free: 6.289 MB / 346.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.001837/0.4995, allocations: 0.7672 MB / 432.6 MB, free: 5.504 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.4996, allocations: 12.03 kB / 432.6 MB, free: 5.492 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001707/0.4998, allocations: 59.34 kB / 432.6 MB, free: 5.434 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005895/0.5004, allocations: 339.3 kB / 433 MB, free: 5.098 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.569e-05/0.5004, allocations: 31.81 kB / 433 MB, free: 5.078 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001341/0.5006, allocations: 43.56 kB / 433 MB, free: 5.051 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001244/0.5018, allocations: 0.55 MB / 433.6 MB, free: 4.66 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.636e-05/0.5019, allocations: 11.78 kB / 433.6 MB, free: 4.652 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.794e-05/0.502, allocations: 20.77 kB / 433.6 MB, free: 4.645 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.724e-05/0.502, allocations: 11.98 kB / 433.6 MB, free: 4.633 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001238/0.5032, allocations: 498.3 kB / 434.1 MB, free: 4.305 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003184/0.5064, allocations: 1.338 MB / 435.5 MB, free: 3.16 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001183/0.5077, allocations: 445.4 kB / 435.9 MB, free: 2.863 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006009/0.5083, allocations: 270.1 kB / 436.2 MB, free: 2.703 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.054e-05/0.5084, allocations: 11.67 kB / 436.2 MB, free: 2.695 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.288e-05/0.5084, allocations: 38.5 kB / 436.2 MB, free: 2.652 MB / 346.7 MB Notification: Performance of pre-optimization done (n=61): time 6.315e-06/0.5084, allocations: 0 / 436.2 MB, free: 2.652 MB / 346.7 MB Notification: Performance of matching and sorting (n=67): time 0.00498/0.5134, allocations: 1.929 MB / 438.1 MB, free: 1.07 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.744e-05/0.5135, allocations: 59.97 kB / 438.2 MB, free: 0.9961 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003876/0.5139, allocations: 264.1 kB / 438.5 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.956e-05/0.514, allocations: 48.45 kB / 438.5 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001548/0.5142, allocations: 184.2 kB / 438.7 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002563/0.5145, allocations: 225.5 kB / 438.9 MB, free: 408 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.179e-05/0.5145, allocations: 14.88 kB / 438.9 MB, free: 404 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002047/0.5148, allocations: 357.6 kB / 439.3 MB, free: 56 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006575/0.5154, allocations: 258.5 kB / 439.5 MB, free: 15.91 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006978/0.5161, allocations: 315.5 kB / 439.8 MB, free: 15.71 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005153/0.5167, allocations: 200.6 kB / 440 MB, free: 15.57 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.324e-06/0.5167, allocations: 0 / 440 MB, free: 15.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001971/0.5187, allocations: 0.7898 MB / 440.8 MB, free: 15.01 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.303e-05/0.5187, allocations: 7.953 kB / 440.8 MB, free: 15 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.466e-05/0.5187, allocations: 4 kB / 440.8 MB, free: 15 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00145/0.5202, allocations: 0.5503 MB / 441.4 MB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005191/0.5208, allocations: 107 kB / 441.5 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001712/0.5225, allocations: 0.9725 MB / 442.5 MB, free: 13.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009045/0.5234, allocations: 150.2 kB / 442.6 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001211/0.5235, allocations: 38.34 kB / 442.6 MB, free: 13.49 MB / 362.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.0002521/0.5238, allocations: 149.5 kB / 442.8 MB, free: 13.36 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001583/0.524, allocations: 51.44 kB / 442.8 MB, free: 13.31 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00223/0.5262, allocations: 0.856 MB / 443.7 MB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.005e-05/0.5263, allocations: 4 kB / 443.7 MB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.445e-06/0.5263, allocations: 0 / 443.7 MB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.166e-05/0.5263, allocations: 7.984 kB / 443.7 MB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003274/0.5296, allocations: 1.425 MB / 445.1 MB, free: 11.58 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.846e-06/0.5296, allocations: 0 / 445.1 MB, free: 11.58 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006357/0.5303, allocations: 99.25 kB / 445.2 MB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001365/0.5317, allocations: 0.5291 MB / 445.8 MB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.193e-05/0.5318, allocations: 30.58 kB / 445.8 MB, free: 11.05 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001668/0.5334, allocations: 0.9463 MB / 446.7 MB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.997e-06/0.5335, allocations: 0 / 446.7 MB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00293/0.5364, allocations: 1.121 MB / 447.9 MB, free: 9.086 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004178/0.5369, allocations: 188.4 kB / 448 MB, free: 8.883 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000158/0.537, allocations: 23.95 kB / 448.1 MB, free: 8.859 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008459/0.5379, allocations: 143.9 kB / 448.2 MB, free: 8.719 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004022/0.5383, allocations: 144.2 kB / 448.3 MB, free: 8.574 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001043/0.5384, allocations: 39.97 kB / 448.4 MB, free: 8.535 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003374/0.5388, allocations: 218.2 kB / 448.6 MB, free: 8.32 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.35e-07/0.5388, allocations: 0 / 448.6 MB, free: 8.32 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007376/0.5395, allocations: 156 kB / 448.7 MB, free: 8.168 MB / 362.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.0003423/0.5399, allocations: 155.9 kB / 448.9 MB, free: 8.004 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001876/0.5418, allocations: 0.7442 MB / 449.6 MB, free: 7.246 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.5418, allocations: 3.938 kB / 449.6 MB, free: 7.242 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009737/0.5428, allocations: 376.8 kB / 450 MB, free: 6.875 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006879/0.5435, allocations: 81.64 kB / 450.1 MB, free: 6.797 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003113/0.5466, allocations: 1.186 MB / 451.3 MB, free: 5.586 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006117/0.5473, allocations: 0.8596 MB / 452.1 MB, free: 4.699 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000282/0.5476, allocations: 36.19 kB / 452.2 MB, free: 4.66 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001584/0.5478, allocations: 43.36 kB / 452.2 MB, free: 4.617 MB / 362.7 MB Notification: Performance of SimCode: time 1.749e-06/0.5478, allocations: 0 / 452.2 MB, free: 4.617 MB / 362.7 MB Notification: Performance of Templates: time 0.02632/0.5741, allocations: 11.46 MB / 463.7 MB, free: 9.207 MB / 378.7 MB