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.3_ModelicaTest.Rotational.TestFriction") Notification: Performance of loadModel(ModelicaTest): time 2.366/2.366, allocations: 249.5 MB / 261.6 MB, free: 2.168 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 4.344e-05/4.356e-05, allocations: 7.938 kB / 323.4 MB, free: 4.324 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3228/0.3229, allocations: 58.82 MB / 382.2 MB, free: 10.32 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.143/0.466, allocations: 91.46 MB / 473.7 MB, free: 1.066 MB / 394.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001892/0.4662, allocations: 67.97 kB / 473.7 MB, free: 1 MB / 394.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.05109/0.5173, allocations: 11.87 MB / 485.6 MB, free: 5.082 MB / 410.8 MB Notification: Performance of FrontEnd: time 2.408e-06/0.5174, allocations: 4 kB / 485.6 MB, free: 5.078 MB / 410.8 MB Notification: Performance of Transformations before backend: time 4.388e-05/0.5174, allocations: 12 kB / 485.6 MB, free: 5.066 MB / 410.8 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.002712/0.5201, allocations: 0.9416 MB / 486.5 MB, free: 4.078 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.432e-05/0.5202, allocations: 8.031 kB / 486.6 MB, free: 4.07 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000256/0.5205, allocations: 79.06 kB / 486.6 MB, free: 3.992 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008253/0.5213, allocations: 400.7 kB / 487 MB, free: 3.562 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.701e-05/0.5214, allocations: 49.31 kB / 487.1 MB, free: 3.516 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001789/0.5216, allocations: 67.91 kB / 487.1 MB, free: 3.449 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001778/0.5234, allocations: 0.7346 MB / 487.9 MB, free: 2.68 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.238e-05/0.5234, allocations: 3.906 kB / 487.9 MB, free: 2.676 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001106/0.5236, allocations: 31.98 kB / 487.9 MB, free: 2.645 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.655e-05/0.5236, allocations: 23.89 kB / 487.9 MB, free: 2.621 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001594/0.5252, allocations: 0.5941 MB / 488.5 MB, free: 2.027 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006175/0.5314, allocations: 2.582 MB / 491.1 MB, free: 15.32 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001491/0.5329, allocations: 0.5647 MB / 491.7 MB, free: 14.72 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007781/0.5338, allocations: 331.4 kB / 492 MB, free: 14.39 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001047/0.5339, allocations: 19.97 kB / 492 MB, free: 14.37 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.883e-05/0.5339, allocations: 46.5 kB / 492.1 MB, free: 14.31 MB / 426.8 MB Notification: Performance of pre-optimization done (n=78): time 4.695e-06/0.534, allocations: 0 / 492.1 MB, free: 14.31 MB / 426.8 MB Notification: Performance of matching and sorting (n=82): time 0.006116/0.5401, allocations: 2.39 MB / 494.5 MB, free: 11.73 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000101/0.5402, allocations: 144.5 kB / 494.6 MB, free: 11.56 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005475/0.5408, allocations: 331 kB / 494.9 MB, free: 11.23 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001681/0.541, allocations: 53.69 kB / 495 MB, free: 11.17 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002643/0.5412, allocations: 252.7 kB / 495.2 MB, free: 10.91 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003624/0.5416, allocations: 288.1 kB / 495.5 MB, free: 10.63 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.3e-05/0.5417, allocations: 16 kB / 495.5 MB, free: 10.61 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0002334/0.542, allocations: 366.8 kB / 495.9 MB, free: 10.25 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008326/0.5428, allocations: 310 kB / 496.2 MB, free: 9.941 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009765/0.5438, allocations: 472.6 kB / 496.6 MB, free: 9.426 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007057/0.5445, allocations: 265.9 kB / 496.9 MB, free: 9.168 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.121e-06/0.5446, allocations: 4 kB / 496.9 MB, free: 9.164 MB / 426.8 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.00335/0.5479, allocations: 1.092 MB / 498 MB, free: 8.059 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.328e-05/0.548, allocations: 12.61 kB / 498 MB, free: 8.047 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.238e-05/0.548, allocations: 8 kB / 498 MB, free: 8.039 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001735/0.5498, allocations: 0.5893 MB / 498.6 MB, free: 7.438 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007936/0.5506, allocations: 155.7 kB / 498.8 MB, free: 7.285 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003156/0.5538, allocations: 2.565 MB / 0.4896 GB, free: 4.617 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001252/0.555, allocations: 191.8 kB / 0.4898 GB, free: 4.43 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000145/0.5552, allocations: 55.91 kB / 0.4898 GB, free: 4.375 MB / 426.8 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.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,bearingFriction.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 6,1 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0003199/0.5555, allocations: 155.9 kB / 0.49 GB, free: 4.215 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002584/0.5558, allocations: 67.2 kB / 0.49 GB, free: 4.148 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003095/0.5589, allocations: 1.028 MB / 0.491 GB, free: 3.09 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.51e-05/0.559, allocations: 8 kB / 0.491 GB, free: 3.082 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.069e-05/0.559, allocations: 4 kB / 0.491 GB, free: 3.078 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.53e-05/0.559, allocations: 7.938 kB / 0.491 GB, free: 3.07 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005041/0.5641, allocations: 2.019 MB / 0.493 GB, free: 0.9727 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.23e-05/0.5641, allocations: 8 kB / 0.493 GB, free: 0.9648 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008271/0.5649, allocations: 119.9 kB / 0.4931 GB, free: 0.8477 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001542/0.5665, allocations: 0.5537 MB / 0.4937 GB, free: 288 kB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000119/0.5666, allocations: 31.95 kB / 0.4937 GB, free: 256 kB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003063/0.5697, allocations: 2.522 MB / 0.4962 GB, free: 13.62 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.469e-06/0.5698, allocations: 12.03 kB / 0.4962 GB, free: 13.61 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003928/0.5737, allocations: 1.628 MB / 0.4978 GB, free: 11.92 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005833/0.5744, allocations: 216.2 kB / 0.498 GB, free: 11.69 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000196/0.5746, allocations: 28 kB / 0.498 GB, free: 11.66 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001219/0.5758, allocations: 167.8 kB / 0.4982 GB, free: 11.5 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004798/0.5763, allocations: 191.4 kB / 0.4983 GB, free: 11.31 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000124/0.5764, allocations: 39.95 kB / 0.4984 GB, free: 11.27 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.0004411/0.5769, allocations: 261.2 kB / 0.4986 GB, free: 11.02 MB / 442.8 MB Notification: Performance of sort global known variables: time 7.86e-07/0.5769, allocations: 0 / 0.4986 GB, free: 11.02 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.001151/0.5781, allocations: 195.9 kB / 0.4988 GB, free: 10.83 MB / 442.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (55): * Single equations (assignments): 51 * 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.0003651/0.5785, allocations: 163.1 kB / 0.499 GB, free: 10.66 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.002481/0.581, allocations: 0.902 MB / 0.4999 GB, free: 9.73 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 4.255e-06/0.581, allocations: 0 / 0.4999 GB, free: 9.73 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001572/0.5826, allocations: 472.7 kB / 0.5003 GB, free: 9.27 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009932/0.5836, allocations: 89.98 kB / 0.5004 GB, free: 9.184 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006087/0.5897, allocations: 2.008 MB / 0.5024 GB, free: 7.129 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007424/0.5905, allocations: 0.926 MB / 0.5033 GB, free: 6.176 MB / 442.8 MB Notification: Performance of simCode: alias equations: time 0.0004059/0.5909, allocations: 52.83 kB / 0.5033 GB, free: 6.121 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001873/0.5911, allocations: 43.42 kB / 0.5033 GB, free: 6.078 MB / 442.8 MB Notification: Performance of SimCode: time 1.669e-06/0.5911, allocations: 0 / 0.5033 GB, free: 6.078 MB / 442.8 MB Notification: Performance of Templates: time 0.03255/0.6237, allocations: 13.23 MB / 0.5163 GB, free: 8.879 MB / 458.8 MB