Running command: translateModel(ModelicaTest.Rotational.TestFriction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia.phi|inertia.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.TestFriction") Notification: Performance of loadModel(ModelicaTest): time 1.847/1.847, allocations: 209.3 MB / 221.9 MB, free: 7.734 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.85e-05/2.864e-05, allocations: 4 kB / 273 MB, free: 3.66 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08494/0.08499, allocations: 48.69 MB / 321.7 MB, free: 2.871 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3462/0.4313, allocations: 80 MB / 401.7 MB, free: 6.52 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001846/0.4315, allocations: 66.28 kB / 401.8 MB, free: 6.512 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04551/0.477, allocations: 11.47 MB / 413.3 MB, free: 2.195 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.011e-06/0.4771, allocations: 0 / 413.3 MB, free: 2.195 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.84e-05/0.4771, allocations: 19.59 kB / 413.3 MB, free: 2.191 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.00212/0.4793, allocations: 0.949 MB / 414.2 MB, free: 1.535 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/0.4793, allocations: 7.812 kB / 414.3 MB, free: 1.535 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001997/0.4795, allocations: 85.08 kB / 414.3 MB, free: 1.492 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000649/0.4802, allocations: 407.6 kB / 414.7 MB, free: 1.176 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.394e-05/0.4803, allocations: 52.69 kB / 414.8 MB, free: 1.168 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001542/0.4804, allocations: 61.56 kB / 414.8 MB, free: 1.168 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001572/0.482, allocations: 0.7689 MB / 415.6 MB, free: 0.918 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.521e-05/0.4821, allocations: 11.73 kB / 415.6 MB, free: 0.9102 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.822e-05/0.4822, allocations: 28.66 kB / 415.7 MB, free: 0.9062 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.604e-05/0.4822, allocations: 15.34 kB / 415.7 MB, free: 0.9062 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001437/0.4837, allocations: 0.6652 MB / 416.3 MB, free: 0.8398 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005616/0.4893, allocations: 2.602 MB / 418.9 MB, free: 15.19 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0015/0.4909, allocations: 0.5761 MB / 419.5 MB, free: 14.96 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007491/0.4916, allocations: 341.9 kB / 419.8 MB, free: 14.74 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.726e-05/0.4917, allocations: 19.34 kB / 419.9 MB, free: 14.73 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.389e-05/0.4918, allocations: 46.81 kB / 419.9 MB, free: 14.68 MB / 330.7 MB Notification: Performance of pre-optimization done (n=72): time 4.238e-06/0.4918, allocations: 0 / 419.9 MB, free: 14.68 MB / 330.7 MB Notification: Performance of matching and sorting (n=76): time 0.006269/0.4981, allocations: 2.554 MB / 422.5 MB, free: 12.33 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001037/0.4982, allocations: 140.5 kB / 422.6 MB, free: 12.16 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000675/0.4989, allocations: 363.9 kB / 423 MB, free: 11.87 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001934/0.4991, allocations: 50.95 kB / 423 MB, free: 11.83 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002608/0.4994, allocations: 333.3 kB / 423.3 MB, free: 11.55 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003502/0.4998, allocations: 263 kB / 423.6 MB, free: 11.34 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.207e-05/0.4999, allocations: 19.75 kB / 423.6 MB, free: 11.34 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000196/0.5001, allocations: 351.8 kB / 424 MB, free: 11 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008467/0.5009, allocations: 343.1 kB / 424.3 MB, free: 10.79 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001001/0.502, allocations: 0.4898 MB / 424.8 MB, free: 10.38 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007641/0.5027, allocations: 296.3 kB / 425.1 MB, free: 10.17 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.876e-06/0.5028, allocations: 0 / 425.1 MB, free: 10.17 MB / 330.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.003396/0.5062, allocations: 1.25 MB / 426.3 MB, free: 9.227 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.004e-05/0.5062, allocations: 4 kB / 426.3 MB, free: 9.223 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.566e-05/0.5063, allocations: 8 kB / 426.3 MB, free: 9.215 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00198/0.5083, allocations: 0.7822 MB / 427.1 MB, free: 8.574 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009555/0.5092, allocations: 162.8 kB / 427.3 MB, free: 8.422 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003306/0.5126, allocations: 2.668 MB / 429.9 MB, free: 5.883 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001349/0.514, allocations: 194.4 kB / 430.1 MB, free: 5.707 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001805/0.5142, allocations: 42.8 kB / 430.2 MB, free: 5.672 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,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,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 87 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 7,1 6,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.000321/0.5145, allocations: 170.2 kB / 430.3 MB, free: 5.527 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002901/0.5148, allocations: 71.19 kB / 430.4 MB, free: 5.457 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002048/0.515, allocations: 89.58 kB / 430.5 MB, free: 5.43 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.648e-05/0.5151, allocations: 8 kB / 430.5 MB, free: 5.422 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.938e-06/0.5151, allocations: 0 / 430.5 MB, free: 5.422 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.603e-05/0.5151, allocations: 3.984 kB / 430.5 MB, free: 5.418 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005634/0.5207, allocations: 2.24 MB / 432.7 MB, free: 3.605 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.321e-05/0.5208, allocations: 0 / 432.7 MB, free: 3.605 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008988/0.5217, allocations: 127.4 kB / 432.9 MB, free: 3.484 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001879/0.5236, allocations: 0.7443 MB / 433.6 MB, free: 2.867 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001471/0.5238, allocations: 38.53 kB / 433.7 MB, free: 2.844 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003138/0.5269, allocations: 2.616 MB / 436.3 MB, free: 328 kB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.486e-06/0.527, allocations: 4.031 kB / 436.3 MB, free: 324 kB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004216/0.5312, allocations: 1.801 MB / 438.1 MB, free: 14.88 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00055/0.5318, allocations: 218.7 kB / 438.3 MB, free: 14.67 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000193/0.532, allocations: 28.73 kB / 438.3 MB, free: 14.66 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00122/0.5332, allocations: 170.4 kB / 438.5 MB, free: 14.5 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004722/0.5337, allocations: 177.4 kB / 438.7 MB, free: 14.35 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001165/0.5339, allocations: 39.77 kB / 438.7 MB, free: 14.32 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004799/0.5344, allocations: 283 kB / 439 MB, free: 14.09 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.2e-07/0.5344, allocations: 0 / 439 MB, free: 14.09 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001153/0.5356, allocations: 197.2 kB / 439.2 MB, free: 13.93 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (inertia4.phi,inertia4.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,inertia2.phi,inertia2.w,clutch.phi_rel,clutch.w_rel,inertia1.w,brake.phi,inertia.w,bearingFriction.phi) * Number of discrete variables: 18 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 49 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 7,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003547/0.5359, allocations: 152.6 kB / 439.3 MB, free: 13.79 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002339/0.5383, allocations: 0.8412 MB / 440.2 MB, free: 13.2 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.76e-06/0.5383, allocations: 0 / 440.2 MB, free: 13.2 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001374/0.5397, allocations: 453.7 kB / 440.6 MB, free: 12.88 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001014/0.5407, allocations: 94.67 kB / 440.7 MB, free: 12.81 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006265/0.547, allocations: 2.041 MB / 442.7 MB, free: 10.87 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007312/0.5478, allocations: 0.9221 MB / 443.7 MB, free: 9.922 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003091/0.5481, allocations: 55.09 kB / 443.7 MB, free: 9.871 MB / 346.7 MB Notification: Performance of SimCode: time 2.186e-06/0.5481, allocations: 0 / 443.7 MB, free: 9.871 MB / 346.7 MB Notification: Performance of Templates: time 0.0258/0.574, allocations: 15.76 MB / 459.5 MB, free: 10.18 MB / 362.7 MB