Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive") Notification: Performance of loadModel(Modelica): time 1.651/1.651, allocations: 171.2 MB / 183.8 MB, free: 12.06 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.984e-05/3.002e-05, allocations: 3.984 kB / 225 MB, free: 2.816 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2141/0.2142, allocations: 38.78 MB / 263.8 MB, free: 9.875 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.131/0.3452, allocations: 86.56 MB / 350.3 MB, free: 3.18 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002819/0.3455, allocations: 87.94 kB / 350.4 MB, free: 3.094 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4852/0.8308, allocations: 83.75 MB / 434.2 MB, free: 39.52 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.889e-06/0.8308, allocations: 0 / 434.2 MB, free: 39.52 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002286/0.8311, allocations: 84 kB / 434.3 MB, free: 39.44 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: 1524 * Number of variables: 1524 Notification: Performance of Generate backend data structure: time 0.01716/0.8483, allocations: 4.479 MB / 438.7 MB, free: 34.9 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.532e-05/0.8483, allocations: 8.031 kB / 438.7 MB, free: 34.89 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01204/0.8604, allocations: 2.214 MB / 441 MB, free: 32.67 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01304/0.8735, allocations: 4.454 MB / 445.4 MB, free: 28.15 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003687/0.8739, allocations: 324.4 kB / 445.7 MB, free: 27.83 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001865/0.8758, allocations: 427.8 kB / 446.1 MB, free: 27.41 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0242/0.9, allocations: 10.64 MB / 456.8 MB, free: 15.71 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002201/0.9003, allocations: 63.41 kB / 456.8 MB, free: 15.65 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001475/0.9018, allocations: 211.8 kB / 457.1 MB, free: 15.44 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001737/0.9035, allocations: 0.9983 MB / 458.1 MB, free: 14.44 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02031/0.9238, allocations: 8.655 MB / 466.7 MB, free: 5.766 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3008/1.225, allocations: 48.87 MB / 0.5035 GB, free: 42.14 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01236/1.237, allocations: 3.464 MB / 0.5069 GB, free: 41.49 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003093/1.24, allocations: 1.767 MB / 0.5086 GB, free: 41.45 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009436/1.25, allocations: 4.371 MB / 0.5129 GB, free: 40.21 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.367e-05/1.25, allocations: 42.47 kB / 0.5129 GB, free: 40.18 MB / 346.7 MB Notification: Performance of pre-optimization done (n=139): time 5.955e-06/1.25, allocations: 0 / 0.5129 GB, free: 40.18 MB / 346.7 MB Notification: Performance of matching and sorting (n=145): time 0.02997/1.28, allocations: 9.734 MB / 0.5224 GB, free: 37.55 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.132e-05/1.28, allocations: 150 kB / 0.5226 GB, free: 37.39 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007983/1.288, allocations: 3.676 MB / 0.5262 GB, free: 37 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003142/1.288, allocations: 50.3 kB / 0.5262 GB, free: 36.97 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002328/1.291, allocations: 3.107 MB / 0.5292 GB, free: 35.14 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007998/1.291, allocations: 0.5829 MB / 0.5298 GB, free: 34.83 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006044/1.292, allocations: 123.6 kB / 0.5299 GB, free: 34.83 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0004167/1.292, allocations: 0.5569 MB / 0.5305 GB, free: 34.5 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004195/1.297, allocations: 1.91 MB / 0.5323 GB, free: 34.49 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006314/1.303, allocations: 5.672 MB / 0.5379 GB, free: 29.56 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006297/1.309, allocations: 3.287 MB / 0.5411 GB, free: 29.12 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001461/1.31, allocations: 36.78 kB / 0.5411 GB, free: 29.12 MB / 346.7 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01888/1.328, allocations: 7.572 MB / 0.5485 GB, free: 27.3 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001213/1.329, allocations: 71.22 kB / 0.5486 GB, free: 27.3 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001677/1.329, allocations: 134.4 kB / 0.5487 GB, free: 27.3 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00318/1.332, allocations: 0.9164 MB / 0.5496 GB, free: 27.18 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006706/1.339, allocations: 1.386 MB / 0.551 GB, free: 27.01 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007827/1.347, allocations: 4.771 MB / 0.5556 GB, free: 24.43 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006126/1.353, allocations: 330.2 kB / 0.5559 GB, free: 24.32 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001203/1.354, allocations: 372.1 kB / 0.5563 GB, free: 24.27 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 619 * Number of states: 0 () * Number of discrete variables: 33 (rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],fixed.color[3],fixed.color[2],fixed.color[1],torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueColor[3],torque.torqueColor[2],torque.torqueColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],bodyCylinder.frameTranslation.color[3],bodyCylinder.frameTranslation.color[2],bodyCylinder.frameTranslation.color[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (729): * Single equations (assignments): 725 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001246/1.355, allocations: 0.5703 MB / 0.5568 GB, free: 23.8 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008001/1.356, allocations: 340.8 kB / 0.5572 GB, free: 23.61 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00668/1.363, allocations: 2.808 MB / 0.5599 GB, free: 22 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.668e-05/1.363, allocations: 20 kB / 0.5599 GB, free: 21.98 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.336e-05/1.363, allocations: 4 kB / 0.5599 GB, free: 21.98 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.964e-05/1.363, allocations: 11.5 kB / 0.5599 GB, free: 21.97 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01718/1.38, allocations: 6.948 MB / 0.5667 GB, free: 16.43 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-05/1.38, allocations: 7.562 kB / 0.5667 GB, free: 16.43 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001713/1.382, allocations: 243.3 kB / 0.567 GB, free: 16.23 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002623/1.385, allocations: 0.6927 MB / 0.5676 GB, free: 15.79 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003029/1.385, allocations: 28 kB / 0.5677 GB, free: 15.76 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00669/1.392, allocations: 4.339 MB / 0.5719 GB, free: 11.86 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.854e-06/1.392, allocations: 7.938 kB / 0.5719 GB, free: 11.86 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009455/1.401, allocations: 5.083 MB / 0.5769 GB, free: 7.461 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001928/1.403, allocations: 0.6195 MB / 0.5775 GB, free: 6.867 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009528/1.404, allocations: 23.38 kB / 0.5775 GB, free: 6.848 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002263/1.406, allocations: 88.44 kB / 0.5776 GB, free: 6.793 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004366/1.407, allocations: 87.05 kB / 0.5777 GB, free: 6.734 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001611/1.407, allocations: 42.3 kB / 0.5777 GB, free: 6.699 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.005899/1.413, allocations: 2.553 MB / 0.5802 GB, free: 4.422 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.183e-06/1.413, allocations: 0 / 0.5802 GB, free: 4.422 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.006836/1.42, allocations: 0.965 MB / 0.5811 GB, free: 3.465 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 110 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005748/1.421, allocations: 156.3 kB / 0.5813 GB, free: 3.312 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01193/1.433, allocations: 4.608 MB / 0.5858 GB, free: 15.63 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.297e-06/1.433, allocations: 4 kB / 0.5858 GB, free: 15.62 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002872/1.435, allocations: 1.305 MB / 0.5871 GB, free: 14.44 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002932/1.438, allocations: 407.9 kB / 0.5875 GB, free: 14.1 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02069/1.459, allocations: 7.637 MB / 0.5949 GB, free: 7.328 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007362/1.467, allocations: 3.315 MB / 0.5982 GB, free: 4.812 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001414/1.468, allocations: 282.2 kB / 0.5984 GB, free: 4.547 MB / 362.7 MB Notification: Performance of SimCode: time 1.921e-06/1.468, allocations: 0 / 0.5984 GB, free: 4.547 MB / 362.7 MB Notification: Performance of Templates: time 0.3316/1.8, allocations: 70.68 MB / 0.6675 GB, free: 106.6 MB / 394.7 MB