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_4.0.0_ModelicaTest.Rotational.TestFriction") Notification: Performance of loadModel(ModelicaTest): time 2.53/2.53, allocations: 270 MB / 283.6 MB, free: 1.879 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.042e-05/4.048e-05, allocations: 7.938 kB / 348.4 MB, free: 2.762 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3202/0.3203, allocations: 61.87 MB / 410.3 MB, free: 10.71 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1631/0.4835, allocations: 92.65 MB / 0.4911 GB, free: 13.94 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003374/0.4839, allocations: 63.97 kB / 0.4912 GB, free: 13.88 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07582/0.5598, allocations: 12.08 MB / 0.503 GB, free: 1.754 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.976e-06/0.5598, allocations: 0 / 0.503 GB, free: 1.754 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.531e-05/0.5599, allocations: 16 kB / 0.503 GB, free: 1.738 MB / 426.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.002372/0.5622, allocations: 0.9349 MB / 0.5039 GB, free: 0.7539 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/0.5623, allocations: 8.031 kB / 0.5039 GB, free: 0.7461 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00023/0.5625, allocations: 79.06 kB / 0.504 GB, free: 0.668 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008036/0.5634, allocations: 400.8 kB / 0.5044 GB, free: 244 kB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.02e-05/0.5635, allocations: 53.25 kB / 0.5044 GB, free: 192 kB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000177/0.5636, allocations: 67.84 kB / 0.5045 GB, free: 124 kB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001793/0.5654, allocations: 0.7341 MB / 0.5052 GB, free: 15.35 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.345e-05/0.5655, allocations: 11.84 kB / 0.5052 GB, free: 15.34 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000106/0.5656, allocations: 24 kB / 0.5052 GB, free: 15.31 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.286e-05/0.5657, allocations: 16 kB / 0.5053 GB, free: 15.3 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001652/0.5673, allocations: 0.5978 MB / 0.5058 GB, free: 14.7 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0062/0.5736, allocations: 2.579 MB / 0.5084 GB, free: 12 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001542/0.5751, allocations: 0.5739 MB / 0.5089 GB, free: 11.39 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00083/0.576, allocations: 335.7 kB / 0.5092 GB, free: 11.05 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.927e-05/0.5761, allocations: 11.91 kB / 0.5092 GB, free: 11.04 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.826e-05/0.5762, allocations: 46.5 kB / 0.5093 GB, free: 10.99 MB / 442.7 MB Notification: Performance of pre-optimization done (n=78): time 4.44e-06/0.5762, allocations: 0 / 0.5093 GB, free: 10.99 MB / 442.7 MB Notification: Performance of matching and sorting (n=82): time 0.006037/0.5822, allocations: 2.402 MB / 0.5116 GB, free: 8.398 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001031/0.5824, allocations: 136.5 kB / 0.5118 GB, free: 8.234 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005322/0.5829, allocations: 323.1 kB / 0.5121 GB, free: 7.914 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001437/0.5831, allocations: 53.69 kB / 0.5121 GB, free: 7.855 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002822/0.5834, allocations: 264.7 kB / 0.5124 GB, free: 7.59 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003489/0.5837, allocations: 276.2 kB / 0.5126 GB, free: 7.316 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.567e-05/0.5838, allocations: 23.98 kB / 0.5127 GB, free: 7.293 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002358/0.5841, allocations: 366.8 kB / 0.513 GB, free: 6.926 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008546/0.5849, allocations: 310 kB / 0.5133 GB, free: 6.621 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009977/0.586, allocations: 472.6 kB / 0.5138 GB, free: 6.105 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007227/0.5867, allocations: 268.9 kB / 0.514 GB, free: 5.852 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.487e-06/0.5867, allocations: 4 kB / 0.514 GB, free: 5.848 MB / 442.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.003474/0.5902, allocations: 1.105 MB / 0.5151 GB, free: 4.73 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.769e-05/0.5903, allocations: 11.94 kB / 0.5151 GB, free: 4.719 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.006e-05/0.5903, allocations: 4 kB / 0.5151 GB, free: 4.715 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001701/0.592, allocations: 0.5854 MB / 0.5157 GB, free: 4.117 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007854/0.5928, allocations: 155.7 kB / 0.5158 GB, free: 3.965 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003194/0.596, allocations: 2.569 MB / 0.5183 GB, free: 1.293 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001239/0.5973, allocations: 191.8 kB / 0.5185 GB, free: 1.105 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001571/0.5975, allocations: 47.97 kB / 0.5186 GB, free: 1.059 MB / 442.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.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.0003225/0.5978, allocations: 164 kB / 0.5187 GB, free: 0.8906 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002644/0.5981, allocations: 59.25 kB / 0.5188 GB, free: 0.832 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2797/0.8778, allocations: 1.025 MB / 0.5198 GB, free: 107.1 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-05/0.8779, allocations: 8.984 kB / 0.5198 GB, free: 107.1 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.011e-05/0.8779, allocations: 2.969 kB / 0.5198 GB, free: 107.1 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.297e-05/0.8779, allocations: 8.516 kB / 0.5198 GB, free: 107.1 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005407/0.8834, allocations: 2.01 MB / 0.5218 GB, free: 106.6 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.048e-05/0.8834, allocations: 1.656 kB / 0.5218 GB, free: 106.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009339/0.8844, allocations: 127.4 kB / 0.5219 GB, free: 106.6 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001517/0.8859, allocations: 0.5551 MB / 0.5224 GB, free: 106.5 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001162/0.886, allocations: 33.73 kB / 0.5225 GB, free: 106.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002312/0.8884, allocations: 2.513 MB / 0.5249 GB, free: 104.4 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.538e-06/0.8884, allocations: 2.25 kB / 0.5249 GB, free: 104.4 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003654/0.8921, allocations: 1.635 MB / 0.5265 GB, free: 103.9 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004721/0.8926, allocations: 218.5 kB / 0.5267 GB, free: 103.8 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001843/0.8928, allocations: 26.48 kB / 0.5268 GB, free: 103.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001198/0.894, allocations: 176 kB / 0.5269 GB, free: 103.8 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004268/0.8944, allocations: 176 kB / 0.5271 GB, free: 103.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001154/0.8946, allocations: 41.53 kB / 0.5271 GB, free: 103.8 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0003753/0.895, allocations: 262.2 kB / 0.5274 GB, free: 103.8 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.09e-07/0.895, allocations: 0 / 0.5274 GB, free: 103.8 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001037/0.896, allocations: 201.1 kB / 0.5276 GB, free: 103.8 MB / 442.7 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.0003131/0.8964, allocations: 160.1 kB / 0.5277 GB, free: 103.7 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00212/0.8985, allocations: 0.9077 MB / 0.5286 GB, free: 103.5 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.161e-06/0.8985, allocations: 0 / 0.5286 GB, free: 103.5 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001474/0.9, allocations: 475.3 kB / 0.5291 GB, free: 103.4 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00103/0.9011, allocations: 93.02 kB / 0.5292 GB, free: 103.4 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005681/0.9068, allocations: 2.003 MB / 0.5311 GB, free: 102.5 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004113/0.9072, allocations: 0.9211 MB / 0.532 GB, free: 101.8 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0003907/0.9076, allocations: 56.09 kB / 0.5321 GB, free: 101.8 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001704/0.9078, allocations: 45.86 kB / 0.5321 GB, free: 101.8 MB / 442.7 MB Notification: Performance of SimCode: time 1.753e-06/0.9078, allocations: 3.938 kB / 0.5321 GB, free: 101.8 MB / 442.7 MB Notification: Performance of Templates: time 0.02776/0.9356, allocations: 13.22 MB / 0.545 GB, free: 94.84 MB / 442.7 MB