Running command: translateModel(PlanarMechanics.Examples.CounterSpin,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.CounterSpin") Notification: Performance of loadModel(PlanarMechanics): time 1.966/1.966, allocations: 234.8 MB / 247 MB, free: 2.043 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.565e-05/4.567e-05, allocations: 4 kB / 302.2 MB, free: 14.58 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1309/0.131, allocations: 52.38 MB / 354.6 MB, free: 10.15 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4696/0.6006, allocations: 85.59 MB / 440.2 MB, free: 11.47 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002062/0.6009, allocations: 81.47 kB / 440.3 MB, free: 11.39 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.202/0.8029, allocations: 52.12 MB / 492.4 MB, free: 6.816 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.007e-06/0.8029, allocations: 0 / 492.4 MB, free: 6.816 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.931e-05/0.803, allocations: 40 kB / 492.4 MB, free: 6.777 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 981 * Number of variables: 981 Notification: Performance of Generate backend data structure: time 0.01453/0.8176, allocations: 2.569 MB / 495 MB, free: 4.152 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.806e-05/0.8177, allocations: 12.03 kB / 495 MB, free: 4.141 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01229/0.83, allocations: 1.864 MB / 496.9 MB, free: 2.27 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004299/0.8343, allocations: 1.473 MB / 498.3 MB, free: 0.7539 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002633/0.8346, allocations: 188.7 kB / 498.5 MB, free: 0.5664 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001064/0.8357, allocations: 235.8 kB / 498.7 MB, free: 344 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01631/0.852, allocations: 6.558 MB / 0.4935 GB, free: 9.477 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.263e-05/0.8522, allocations: 11.88 kB / 0.4935 GB, free: 9.465 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006065/0.8528, allocations: 119.8 kB / 0.4936 GB, free: 9.348 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001634/0.8545, allocations: 0.7818 MB / 0.4944 GB, free: 8.562 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01622/0.8707, allocations: 6.191 MB / 0.5004 GB, free: 2.363 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2938/1.165, allocations: 20.95 MB / 0.5209 GB, free: 102.4 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005112/1.17, allocations: 1.889 MB / 0.5227 GB, free: 101.8 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001212/1.171, allocations: 0.5761 MB / 0.5233 GB, free: 101.8 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005954/1.177, allocations: 3.356 MB / 0.5265 GB, free: 100.1 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.879e-05/1.177, allocations: 44.27 kB / 0.5266 GB, free: 100 MB / 442.7 MB Notification: Performance of pre-optimization done (n=93): time 4.736e-06/1.177, allocations: 0 / 0.5266 GB, free: 100 MB / 442.7 MB Notification: Performance of matching and sorting (n=93): time 0.004496/1.182, allocations: 1.329 MB / 0.5279 GB, free: 99.89 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.383e-05/1.182, allocations: 62.16 kB / 0.5279 GB, free: 99.82 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004062/1.186, allocations: 1.948 MB / 0.5298 GB, free: 99.62 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000122/1.186, allocations: 36.83 kB / 0.5299 GB, free: 99.59 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001263/1.187, allocations: 1.827 MB / 0.5317 GB, free: 98.72 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004049/1.188, allocations: 367.5 kB / 0.532 GB, free: 98.52 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001975/1.188, allocations: 61.58 kB / 0.5321 GB, free: 98.52 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000254/1.188, allocations: 447.9 kB / 0.5325 GB, free: 98.21 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002096/1.19, allocations: 0.9526 MB / 0.5334 GB, free: 98.2 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003055/1.193, allocations: 2.814 MB / 0.5362 GB, free: 95.78 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004014/1.197, allocations: 1.686 MB / 0.5378 GB, free: 95.77 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.707e-05/1.197, allocations: 18.84 kB / 0.5378 GB, free: 95.77 MB / 442.7 MB Notification: Performance of matching and sorting (n=412) (initialization): time 0.008701/1.206, allocations: 3.527 MB / 0.5413 GB, free: 95.6 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.035e-05/1.206, allocations: 33.62 kB / 0.5413 GB, free: 95.6 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001031/1.206, allocations: 66.53 kB / 0.5414 GB, free: 95.6 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001512/1.206, allocations: 98.69 kB / 0.5415 GB, free: 95.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003098/1.21, allocations: 0.7155 MB / 0.5422 GB, free: 95.53 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001389/1.21, allocations: 127.3 kB / 0.5423 GB, free: 95.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003188/1.213, allocations: 464.5 kB / 0.5427 GB, free: 95.27 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005686/1.214, allocations: 197.8 kB / 0.5429 GB, free: 95.27 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 305 * Number of states: 0 () * Number of discrete variables: 3 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (386): * Single equations (assignments): 382 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00054/1.214, allocations: 335.9 kB / 0.5433 GB, free: 95.05 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003354/1.214, allocations: 174.1 kB / 0.5434 GB, free: 94.96 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002226/1.217, allocations: 1.14 MB / 0.5445 GB, free: 94.88 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000131/1.217, allocations: 27.39 kB / 0.5446 GB, free: 94.88 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.639e-06/1.217, allocations: 0 / 0.5446 GB, free: 94.88 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.08e-05/1.217, allocations: 6.422 kB / 0.5446 GB, free: 94.88 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007769/1.225, allocations: 3.87 MB / 0.5483 GB, free: 94.41 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.978e-06/1.225, allocations: 3.906 kB / 0.5483 GB, free: 94.41 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008406/1.226, allocations: 136.9 kB / 0.5485 GB, free: 94.41 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.3e-05/1.226, allocations: 11.83 kB / 0.5485 GB, free: 94.4 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.618e-05/1.226, allocations: 18.98 kB / 0.5485 GB, free: 94.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.991e-06/1.226, allocations: 4.594 kB / 0.5485 GB, free: 94.4 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.963e-06/1.226, allocations: 3.938 kB / 0.5485 GB, free: 94.4 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003039/1.229, allocations: 2.018 MB / 0.5505 GB, free: 93.68 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005149/1.229, allocations: 277.5 kB / 0.5507 GB, free: 93.45 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002927/1.23, allocations: 20.31 kB / 0.5508 GB, free: 93.45 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009015/1.231, allocations: 36.45 kB / 0.5508 GB, free: 93.44 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001044/1.231, allocations: 59.16 kB / 0.5509 GB, free: 93.42 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.089e-05/1.231, allocations: 27.06 kB / 0.5509 GB, free: 93.42 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002436/1.233, allocations: 1.382 MB / 0.5522 GB, free: 92.89 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.95e-07/1.233, allocations: 0 / 0.5522 GB, free: 92.89 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003282/1.237, allocations: 0.7151 MB / 0.5529 GB, free: 92.69 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (body.r[1],body.v[1],body.phi,slipBasedRolling.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (68): * Single equations (assignments): 64 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00036/1.237, allocations: 166.4 kB / 0.5531 GB, free: 92.58 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003932/1.241, allocations: 2.068 MB / 0.5551 GB, free: 91.9 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.616e-06/1.241, allocations: 0 / 0.5551 GB, free: 91.9 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007842/1.242, allocations: 0.4921 MB / 0.5556 GB, free: 91.73 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001615/1.243, allocations: 293.7 kB / 0.5559 GB, free: 91.63 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009198/1.253, allocations: 4.304 MB / 0.5601 GB, free: 89.94 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002949/1.256, allocations: 2.335 MB / 0.5624 GB, free: 88.8 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003641/1.259, allocations: 0.998 MB / 0.5633 GB, free: 88.73 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004834/1.26, allocations: 139.2 kB / 0.5635 GB, free: 88.71 MB / 442.7 MB Notification: Performance of SimCode: time 1.611e-06/1.26, allocations: 0 / 0.5635 GB, free: 88.71 MB / 442.7 MB Notification: Performance of Templates: time 0.04931/1.309, allocations: 17.42 MB / 0.5805 GB, free: 86.45 MB / 442.7 MB