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_trunk_cpp_ModelicaTest.Rotational.TestFriction") Notification: Performance of loadModel(ModelicaTest): time 2.362/2.362, allocations: 269 MB / 284.1 MB, free: 3.629 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.504e-05/2.487e-05, allocations: 4 kB / 349 MB, free: 10.76 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1361/0.1362, allocations: 61.88 MB / 410.9 MB, free: 12.87 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.005366/0.1416, allocations: 3.096 MB / 414 MB, free: 9.754 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002992/0.1446, allocations: 1.091 MB / 415.1 MB, free: 8.66 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005397/0.1452, allocations: 19.94 kB / 415.1 MB, free: 8.641 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002633/0.1455, allocations: 79.39 kB / 415.2 MB, free: 8.562 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007736/0.1463, allocations: 227.3 kB / 415.4 MB, free: 8.34 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008324/0.1472, allocations: 247.6 kB / 415.7 MB, free: 8.098 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.001015/0.1482, allocations: 485.4 kB / 416.1 MB, free: 7.617 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002477/0.1485, allocations: 95.06 kB / 416.2 MB, free: 7.52 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006402/0.1491, allocations: 355.1 kB / 416.6 MB, free: 7.172 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000747/0.1499, allocations: 398.8 kB / 417 MB, free: 6.781 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000307/0.1502, allocations: 79.95 kB / 417 MB, free: 6.703 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001689/0.1504, allocations: 40 kB / 417.1 MB, free: 6.664 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002211/0.1506, allocations: 151.5 kB / 417.2 MB, free: 6.516 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002097/0.1508, allocations: 60 kB / 417.3 MB, free: 6.457 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001026/0.1519, allocations: 0.6392 MB / 417.9 MB, free: 5.816 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.1519, allocations: 0 / 417.9 MB, free: 5.816 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.109e-06/0.1519, allocations: 0 / 417.9 MB, free: 5.816 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.116e-05/0.1519, allocations: 3.938 kB / 417.9 MB, free: 5.812 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.003167/0.1551, allocations: 0.9361 MB / 418.9 MB, free: 4.824 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.953e-05/0.1552, allocations: 12.03 kB / 418.9 MB, free: 4.812 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002496/0.1555, allocations: 79.06 kB / 419 MB, free: 4.734 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008281/0.1563, allocations: 416.6 kB / 419.4 MB, free: 4.285 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.569e-05/0.1564, allocations: 45.31 kB / 419.4 MB, free: 4.242 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00019/0.1566, allocations: 60 kB / 419.5 MB, free: 4.184 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002408/0.159, allocations: 0.8412 MB / 420.3 MB, free: 3.309 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.409e-05/0.1591, allocations: 11.89 kB / 420.3 MB, free: 3.297 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001056/0.1592, allocations: 24 kB / 420.3 MB, free: 3.273 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.367e-05/0.1592, allocations: 16 kB / 420.4 MB, free: 3.258 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002728/0.162, allocations: 0.7893 MB / 421.1 MB, free: 2.469 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3218/0.4838, allocations: 2.623 MB / 423.8 MB, free: 12.02 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002744/0.4866, allocations: 0.6457 MB / 424.4 MB, free: 11.93 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001632/0.4868, allocations: 12.39 kB / 424.4 MB, free: 11.93 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.792e-05/0.4868, allocations: 47.59 kB / 424.5 MB, free: 11.89 MB / 346.7 MB Notification: Performance of pre-optimization done (n=72): time 3.967e-06/0.4868, allocations: 4.328 kB / 424.5 MB, free: 11.89 MB / 346.7 MB Notification: Performance of matching and sorting (n=76): time 0.01394/0.5008, allocations: 3.715 MB / 428.2 MB, free: 10.29 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.751e-05/0.5009, allocations: 144.5 kB / 428.3 MB, free: 10.12 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007448/0.5017, allocations: 374.2 kB / 428.7 MB, free: 9.945 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001949/0.5019, allocations: 52.22 kB / 428.7 MB, free: 9.898 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002022/0.5021, allocations: 338.2 kB / 429.1 MB, free: 9.602 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003116/0.5024, allocations: 267 kB / 429.3 MB, free: 9.406 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.488e-05/0.5025, allocations: 16.69 kB / 429.4 MB, free: 9.395 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.568e-05/0.5026, allocations: 346.4 kB / 429.7 MB, free: 9.066 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001411/0.504, allocations: 401.7 kB / 430.1 MB, free: 8.934 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001528/0.5056, allocations: 0.5483 MB / 430.6 MB, free: 8.625 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001342/0.507, allocations: 343.8 kB / 431 MB, free: 8.508 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.899e-06/0.507, allocations: 1.156 kB / 431 MB, free: 8.508 MB / 346.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.004976/0.512, allocations: 1.264 MB / 432.2 MB, free: 8.035 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.629e-05/0.5121, allocations: 6.609 kB / 432.2 MB, free: 8.035 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.339e-05/0.5121, allocations: 4.906 kB / 432.2 MB, free: 8.035 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003127/0.5153, allocations: 0.7593 MB / 433 MB, free: 7.809 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001486/0.5168, allocations: 158.3 kB / 433.2 MB, free: 7.793 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004097/0.5209, allocations: 2.693 MB / 435.9 MB, free: 5.465 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002513/0.5235, allocations: 199.4 kB / 436 MB, free: 5.434 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001976/0.5237, allocations: 37.59 kB / 436.1 MB, free: 5.426 MB / 346.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.0006582/0.5244, allocations: 215.5 kB / 436.3 MB, free: 5.246 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003894/0.5248, allocations: 66.58 kB / 436.4 MB, free: 5.211 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003324/0.5251, allocations: 88.27 kB / 436.4 MB, free: 5.145 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.678e-05/0.5252, allocations: 12.34 kB / 436.5 MB, free: 5.141 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.704e-05/0.5252, allocations: 1.094 kB / 436.5 MB, free: 5.141 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.889e-05/0.5252, allocations: 5.422 kB / 436.5 MB, free: 5.141 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009494/0.5347, allocations: 2.195 MB / 438.7 MB, free: 4.043 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.536e-05/0.5348, allocations: 3.594 kB / 438.7 MB, free: 4.043 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001486/0.5363, allocations: 117.9 kB / 438.8 MB, free: 4.035 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002884/0.5392, allocations: 0.7185 MB / 439.5 MB, free: 3.82 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002082/0.5395, allocations: 33.56 kB / 439.5 MB, free: 3.805 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004099/0.5436, allocations: 2.642 MB / 442.2 MB, free: 1.512 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.701e-06/0.5436, allocations: 1.594 kB / 442.2 MB, free: 1.512 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007923/0.5516, allocations: 1.843 MB / 444 MB, free: 0.5742 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007212/0.5524, allocations: 218.3 kB / 444.2 MB, free: 424 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003309/0.5527, allocations: 32.3 kB / 444.3 MB, free: 404 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002316/0.555, allocations: 174.9 kB / 444.4 MB, free: 384 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008008/0.5559, allocations: 171.2 kB / 444.6 MB, free: 360 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001643/0.5561, allocations: 34.38 kB / 444.6 MB, free: 352 kB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0006992/0.5568, allocations: 287.1 kB / 444.9 MB, free: 212 kB / 346.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.5568, allocations: 0 / 444.9 MB, free: 212 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.001907/0.5587, allocations: 200.4 kB / 445.1 MB, free: 188 kB / 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.000469/0.5592, allocations: 157.9 kB / 445.3 MB, free: 64 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.005313/0.5645, allocations: 0.9736 MB / 446.2 MB, free: 15.77 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.971e-06/0.5646, allocations: 5.062 kB / 446.2 MB, free: 15.77 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002887/0.5675, allocations: 0.5062 MB / 446.7 MB, free: 15.62 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001667/0.5692, allocations: 99.31 kB / 446.8 MB, free: 15.58 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01221/0.5814, allocations: 2.586 MB / 449.4 MB, free: 14.07 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009664/0.5825, allocations: 0.925 MB / 450.4 MB, free: 13.36 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000466/0.5829, allocations: 51.14 kB / 450.4 MB, free: 13.35 MB / 362.7 MB Notification: Performance of SimCode: time 1.302e-06/0.583, allocations: 7.875 kB / 450.4 MB, free: 13.34 MB / 362.7 MB Notification: Performance of Templates: time 0.03362/0.6166, allocations: 16.29 MB / 466.7 MB, free: 1.309 MB / 362.7 MB