Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|position1.w|position2.w|r1.phi|r2.phi|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive") Notification: Performance of loadModel(Modelica): time 2.148/2.148, allocations: 224.7 MB / 241.1 MB, free: 1.695 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.169e-05/3.19e-05, allocations: 7.984 kB / 294.6 MB, free: 11.4 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1096, allocations: 50.41 MB / 345 MB, free: 8.941 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive): time 0.08373/0.1934, allocations: 54.04 MB / 399 MB, free: 2.75 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.3312/0.5246, allocations: 11.76 MB / 410.8 MB, free: 2.898 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01453/0.5392, allocations: 288.4 kB / 411.1 MB, free: 2.898 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01019/0.5495, allocations: 2.801 MB / 413.9 MB, free: 2.895 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03021/0.5797, allocations: 7.704 MB / 421.6 MB, free: 1.422 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004772/0.5845, allocations: 0.5975 MB / 422.2 MB, free: 1.25 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.005334/0.5899, allocations: 1.734 MB / 423.9 MB, free: 0.9766 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01083/0.6008, allocations: 5.205 MB / 429.1 MB, free: 15.46 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002734/0.6036, allocations: 0.9025 MB / 430 MB, free: 15.36 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003539/0.6072, allocations: 1.398 MB / 431.4 MB, free: 14.99 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003277/0.6105, allocations: 0.7439 MB / 432.2 MB, free: 14.81 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001349/0.612, allocations: 122.7 kB / 432.3 MB, free: 14.81 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003095/0.6151, allocations: 1.698 MB / 434 MB, free: 14.25 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001828/0.617, allocations: 309.1 kB / 434.3 MB, free: 14.25 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01056/0.6276, allocations: 6.352 MB / 440.6 MB, free: 10.75 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.6276, allocations: 2.625 kB / 440.6 MB, free: 10.75 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.176e-06/0.6277, allocations: 7.938 kB / 440.6 MB, free: 10.74 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003567/0.628, allocations: 2.469 kB / 440.6 MB, free: 10.74 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: 1765 * Number of variables: 1765 Notification: Performance of Generate backend data structure: time 0.0323/0.6603, allocations: 5.224 MB / 445.9 MB, free: 7.07 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.174e-05/0.6604, allocations: 8.031 kB / 445.9 MB, free: 7.062 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01504/0.6755, allocations: 2.293 MB / 448.2 MB, free: 4.867 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00879/0.6843, allocations: 2.704 MB / 450.9 MB, free: 2.738 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003912/0.6847, allocations: 292.6 kB / 451.2 MB, free: 2.578 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002375/0.6871, allocations: 387.4 kB / 451.5 MB, free: 2.332 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04064/0.7278, allocations: 12.46 MB / 464 MB, free: 8.473 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002626/0.7281, allocations: 55.45 kB / 464 MB, free: 8.418 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001809/0.7299, allocations: 189.5 kB / 464.2 MB, free: 8.363 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00804/0.738, allocations: 2.25 MB / 466.5 MB, free: 6.441 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04055/0.7786, allocations: 11.41 MB / 477.9 MB, free: 13.32 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09824/0.8769, allocations: 46.98 MB / 0.5126 GB, free: 13.4 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03439/0.9114, allocations: 5.457 MB / 0.5179 GB, free: 7.801 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00116/0.9126, allocations: 384.1 kB / 0.5183 GB, free: 7.387 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.107e-05/0.9127, allocations: 63.83 kB / 0.5183 GB, free: 7.316 MB / 426.7 MB Notification: Performance of pre-optimization done (n=200): time 6.112e-06/0.9127, allocations: 0 / 0.5183 GB, free: 7.316 MB / 426.7 MB Notification: Performance of matching and sorting (n=231): time 0.1434/1.056, allocations: 27.5 MB / 0.5452 GB, free: 11.64 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001154/1.056, allocations: 162.7 kB / 0.5453 GB, free: 11.45 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01104/1.067, allocations: 4.128 MB / 0.5494 GB, free: 7.305 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008955/1.068, allocations: 61.64 kB / 0.5494 GB, free: 7.238 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003893/1.072, allocations: 3.358 MB / 0.5527 GB, free: 3.883 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001901/1.074, allocations: 0.8799 MB / 0.5536 GB, free: 3.012 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001149/1.075, allocations: 128 kB / 0.5537 GB, free: 2.887 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0007467/1.076, allocations: 0.5957 MB / 0.5543 GB, free: 2.281 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009299/1.085, allocations: 3.261 MB / 0.5575 GB, free: 15.02 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01348/1.099, allocations: 7.182 MB / 0.5645 GB, free: 5.879 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01264/1.112, allocations: 4.723 MB / 0.5691 GB, free: 1.16 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001317/1.112, allocations: 40 kB / 0.5691 GB, free: 1.121 MB / 474.7 MB Notification: Performance of matching and sorting (n=872) (initialization): time 0.3358/1.448, allocations: 11.21 MB / 0.5801 GB, free: 168.3 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001456/1.448, allocations: 64.59 kB / 0.5801 GB, free: 168.3 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002846/1.448, allocations: 140.4 kB / 0.5803 GB, free: 168.3 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005457/1.454, allocations: 1.142 MB / 0.5814 GB, free: 168.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01188/1.466, allocations: 1.723 MB / 0.5831 GB, free: 168 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01304/1.479, allocations: 6.115 MB / 0.589 GB, free: 165 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008591/1.487, allocations: 406.4 kB / 0.5894 GB, free: 164.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00181/1.489, allocations: 454.6 kB / 0.5899 GB, free: 164.8 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 634 * Number of states: 0 () * Number of discrete variables: 44 (torque.torqueArrow.arrowLine.twoHeadedArrow,torque.torqueArrow.headAtOrigin,fixed.color[3],fixed.color[2],fixed.color[1],r2.cylinderColor[3],r2.cylinderColor[2],r2.cylinderColor[1],r1.cylinderColor[3],r1.cylinderColor[2],r1.cylinderColor[1],rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[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.groundColor[3],world.groundColor[2],world.groundColor[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 (833): * Single equations (assignments): 829 * 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.006604/1.496, allocations: 2.316 MB / 0.5921 GB, free: 163.7 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001141/1.497, allocations: 402 kB / 0.5925 GB, free: 163.7 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01832/1.515, allocations: 6.14 MB / 0.5985 GB, free: 161.7 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.31e-05/1.515, allocations: 23.41 kB / 0.5985 GB, free: 161.7 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.557e-05/1.515, allocations: 3.938 kB / 0.5985 GB, free: 161.7 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.883e-05/1.515, allocations: 10.88 kB / 0.5985 GB, free: 161.7 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03457/1.55, allocations: 12.85 MB / 0.6111 GB, free: 152.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.229e-05/1.55, allocations: 4 kB / 0.6111 GB, free: 152.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00549/1.556, allocations: 0.541 MB / 0.6116 GB, free: 152.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004455/1.56, allocations: 0.9426 MB / 0.6125 GB, free: 151.1 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007168/1.561, allocations: 91.84 kB / 0.6126 GB, free: 151 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01135/1.572, allocations: 5.825 MB / 0.6183 GB, free: 145.1 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.811e-06/1.572, allocations: 4 kB / 0.6183 GB, free: 145.1 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02434/1.597, allocations: 10.79 MB / 0.6288 GB, free: 134.4 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00327/1.6, allocations: 0.9017 MB / 0.6297 GB, free: 133.4 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001591/1.602, allocations: 46.73 kB / 0.6298 GB, free: 133.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00475/1.606, allocations: 163.8 kB / 0.6299 GB, free: 133.2 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001056/1.608, allocations: 189.6 kB / 0.6301 GB, free: 133.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004384/1.608, allocations: 106.6 kB / 0.6302 GB, free: 132.9 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.006595/1.615, allocations: 2.905 MB / 0.633 GB, free: 130 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.51e-07/1.615, allocations: 0 / 0.633 GB, free: 130 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008148/1.623, allocations: 1.221 MB / 0.6342 GB, free: 128.8 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 8 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w,position1.phi,position1.w,position2.phi,position2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (205): * Single equations (assignments): 201 * 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 Backend phase and start with SimCode phase: time 0.001362/1.624, allocations: 216.4 kB / 0.6344 GB, free: 128.6 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01767/1.642, allocations: 7.681 MB / 0.6419 GB, free: 121 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.537e-06/1.642, allocations: 0 / 0.6419 GB, free: 121 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007094/1.649, allocations: 2.976 MB / 0.6449 GB, free: 118 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004059/1.653, allocations: 464.5 kB / 0.6453 GB, free: 117.6 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03236/1.686, allocations: 14.47 MB / 0.6594 GB, free: 103 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007745/1.693, allocations: 3.78 MB / 0.6631 GB, free: 99.22 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003169/1.697, allocations: 471.1 kB / 0.6636 GB, free: 98.76 MB / 474.7 MB Notification: Performance of SimCode: time 1.683e-06/1.697, allocations: 0 / 0.6636 GB, free: 98.76 MB / 474.7 MB Notification: Performance of Templates: time 0.4767/2.173, allocations: 91.1 MB / 0.7525 GB, free: 158.6 MB / 474.7 MB