Running command: translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadModel(Modelica): time 1.563/1.563, allocations: 171.2 MB / 185.7 MB, free: 1.391 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.587e-05/3.546e-05, allocations: 7.984 kB / 228.1 MB, free: 7.328 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1351/0.1351, allocations: 38.77 MB / 266.9 MB, free: 496 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003979/0.1392, allocations: 2.383 MB / 269.3 MB, free: 14.07 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002204/0.1414, allocations: 0.8459 MB / 270.1 MB, free: 13.23 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002462/0.1417, allocations: 8 kB / 270.2 MB, free: 13.22 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001682/0.1419, allocations: 43.62 kB / 270.2 MB, free: 13.18 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003888/0.1423, allocations: 139.6 kB / 270.3 MB, free: 13.04 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004953/0.1428, allocations: 147.7 kB / 270.5 MB, free: 12.89 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005619/0.1434, allocations: 300.5 kB / 270.8 MB, free: 12.6 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001827/0.1436, allocations: 77.09 kB / 270.8 MB, free: 12.53 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003993/0.144, allocations: 203.4 kB / 271 MB, free: 12.33 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004181/0.1444, allocations: 239.3 kB / 271.3 MB, free: 12.09 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003219/0.1448, allocations: 107.9 kB / 271.4 MB, free: 11.99 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001033/0.1449, allocations: 28 kB / 271.4 MB, free: 11.96 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001412/0.1451, allocations: 87.66 kB / 271.5 MB, free: 11.88 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000129/0.1452, allocations: 36 kB / 271.5 MB, free: 11.84 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006737/0.1459, allocations: 419.1 kB / 271.9 MB, free: 11.43 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.1459, allocations: 0 / 271.9 MB, free: 11.43 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.535e-06/0.1459, allocations: 0 / 271.9 MB, free: 11.43 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.245e-05/0.1459, allocations: 4 kB / 271.9 MB, free: 11.43 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.002/0.1479, allocations: 0.6982 MB / 272.6 MB, free: 10.68 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.548e-05/0.148, allocations: 12.03 kB / 272.7 MB, free: 10.67 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001478/0.1482, allocations: 47.44 kB / 272.7 MB, free: 10.62 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005424/0.1487, allocations: 318 kB / 273 MB, free: 10.27 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.67e-05/0.1488, allocations: 33 kB / 273 MB, free: 10.24 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00012/0.1489, allocations: 40 kB / 273.1 MB, free: 10.2 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00134/0.1503, allocations: 466.2 kB / 273.5 MB, free: 9.738 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.014e-05/0.1503, allocations: 7.906 kB / 273.5 MB, free: 9.73 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.575e-05/0.1504, allocations: 16 kB / 273.6 MB, free: 9.715 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.487e-05/0.1504, allocations: 12 kB / 273.6 MB, free: 9.703 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001556/0.152, allocations: 467.7 kB / 274 MB, free: 9.246 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003187/0.1552, allocations: 1.125 MB / 275.2 MB, free: 8.07 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001264/0.1565, allocations: 392.9 kB / 275.5 MB, free: 7.68 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.768e-05/0.1566, allocations: 4.438 kB / 275.5 MB, free: 7.676 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.965e-05/0.1566, allocations: 42.94 kB / 275.6 MB, free: 7.625 MB / 234.7 MB Notification: Performance of pre-optimization done (n=50): time 3.246e-06/0.1566, allocations: 0 / 275.6 MB, free: 7.625 MB / 234.7 MB Notification: Performance of matching and sorting (n=56): time 0.008578/0.1652, allocations: 2.453 MB / 278 MB, free: 5.039 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.742e-05/0.1653, allocations: 59.97 kB / 278.1 MB, free: 4.969 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004137/0.1657, allocations: 254.5 kB / 278.3 MB, free: 4.715 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 9.129e-05/0.1658, allocations: 45.69 kB / 278.4 MB, free: 4.664 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000168/0.166, allocations: 189.2 kB / 278.6 MB, free: 4.473 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002374/0.1663, allocations: 197.3 kB / 278.8 MB, free: 4.277 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.234e-05/0.1663, allocations: 16 kB / 278.8 MB, free: 4.262 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001648/0.1665, allocations: 346.8 kB / 279.1 MB, free: 3.914 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008158/0.1673, allocations: 237.2 kB / 279.4 MB, free: 3.684 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008485/0.1682, allocations: 284.8 kB / 279.6 MB, free: 3.398 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006978/0.1689, allocations: 203.2 kB / 279.8 MB, free: 3.203 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.1689, allocations: 0 / 279.8 MB, free: 3.203 MB / 234.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00238/0.1713, allocations: 0.7211 MB / 280.5 MB, free: 2.469 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.401e-05/0.1714, allocations: 8 kB / 280.6 MB, free: 2.461 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.1714, allocations: 0 / 280.6 MB, free: 2.461 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001204/0.1726, allocations: 377.5 kB / 280.9 MB, free: 2.086 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009054/0.1735, allocations: 91.89 kB / 281 MB, free: 1.996 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002532/0.1761, allocations: 1.37 MB / 282.4 MB, free: 0.5742 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001277/0.1774, allocations: 104 kB / 282.5 MB, free: 484 kB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.391e-05/0.1775, allocations: 20 kB / 282.5 MB, free: 464 kB / 234.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 56 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0004151/0.1779, allocations: 165.7 kB / 282.7 MB, free: 288 kB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001635/0.1781, allocations: 43.53 kB / 282.7 MB, free: 244 kB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002064/0.1783, allocations: 59.73 kB / 282.8 MB, free: 188 kB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.381e-05/0.1784, allocations: 7.953 kB / 282.8 MB, free: 180 kB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.882e-05/0.1784, allocations: 4 kB / 282.8 MB, free: 176 kB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.387e-05/0.1784, allocations: 7.984 kB / 282.8 MB, free: 168 kB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006298/0.1847, allocations: 1.595 MB / 284.4 MB, free: 14.49 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.027e-06/0.1848, allocations: 0 / 284.4 MB, free: 14.49 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000962/0.1858, allocations: 91.83 kB / 284.5 MB, free: 14.4 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001334/0.1871, allocations: 353.8 kB / 284.8 MB, free: 14.05 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000101/0.1872, allocations: 15.98 kB / 284.8 MB, free: 14.04 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002261/0.1895, allocations: 1.347 MB / 286.2 MB, free: 12.64 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.1895, allocations: 4.062 kB / 286.2 MB, free: 12.63 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005122/0.1947, allocations: 1.202 MB / 287.4 MB, free: 11.36 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005305/0.1953, allocations: 160.5 kB / 287.5 MB, free: 11.18 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002384/0.1955, allocations: 20 kB / 287.6 MB, free: 11.16 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001221/0.1968, allocations: 83.92 kB / 287.6 MB, free: 11.08 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005092/0.1973, allocations: 108.2 kB / 287.7 MB, free: 10.98 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001112/0.1974, allocations: 23.97 kB / 287.8 MB, free: 10.95 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0004796/0.1979, allocations: 198 kB / 288 MB, free: 10.76 MB / 250.7 MB Notification: Performance of sort global known variables: time 6.61e-07/0.1979, allocations: 3.938 kB / 288 MB, free: 10.76 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.001014/0.199, allocations: 136 kB / 288.1 MB, free: 10.62 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003812/0.1994, allocations: 139.1 kB / 288.2 MB, free: 10.48 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.002642/0.202, allocations: 0.5889 MB / 288.8 MB, free: 9.887 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.135e-06/0.202, allocations: 0 / 288.8 MB, free: 9.887 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001549/0.2036, allocations: 330.7 kB / 289.2 MB, free: 9.562 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009312/0.2046, allocations: 68.55 kB / 289.2 MB, free: 9.492 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008992/0.2136, allocations: 1.746 MB / 291 MB, free: 7.703 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006586/0.2143, allocations: 0.8287 MB / 291.8 MB, free: 6.848 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0003965/0.2147, allocations: 43.25 kB / 291.8 MB, free: 6.809 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002146/0.2149, allocations: 35.44 kB / 291.9 MB, free: 6.773 MB / 250.7 MB Notification: Performance of SimCode: time 1.042e-06/0.2149, allocations: 0 / 291.9 MB, free: 6.773 MB / 250.7 MB Notification: Performance of Templates: time 0.2278/0.4428, allocations: 8.034 MB / 299.9 MB, free: 31.35 MB / 250.7 MB