Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") Notification: Performance of loadModel(Modelica): time 2.045/2.045, allocations: 224.7 MB / 241.1 MB, free: 1.695 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.71e-05/2.717e-05, allocations: 4 kB / 294.6 MB, free: 11.42 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1157, allocations: 50.41 MB / 345 MB, free: 8.961 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.07582/0.1916, allocations: 46.94 MB / 391.9 MB, free: 9.895 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.3464/0.5381, allocations: 10.52 MB / 402.4 MB, free: 3.176 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01084/0.549, allocations: 249 kB / 402.7 MB, free: 3.172 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009004/0.5581, allocations: 2.437 MB / 405.1 MB, free: 3.172 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02613/0.5842, allocations: 6.778 MB / 411.9 MB, free: 3.055 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004082/0.5884, allocations: 0.584 MB / 412.5 MB, free: 2.965 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.05773/0.6461, allocations: 24.19 MB / 436.7 MB, free: 12.21 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009405/0.6556, allocations: 4.517 MB / 441.2 MB, free: 8.941 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002324/0.658, allocations: 0.8276 MB / 442 MB, free: 8.383 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002949/0.661, allocations: 1.232 MB / 443.2 MB, free: 7.484 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003343/0.6644, allocations: 0.8947 MB / 444.1 MB, free: 6.762 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001456/0.6659, allocations: 135.9 kB / 444.3 MB, free: 6.629 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002937/0.6689, allocations: 1.602 MB / 445.9 MB, free: 5.461 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001566/0.6705, allocations: 272 kB / 446.1 MB, free: 5.195 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01007/0.6806, allocations: 5.926 MB / 452.1 MB, free: 40 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.269e-06/0.6807, allocations: 4 kB / 452.1 MB, free: 36 kB / 346.7 MB Notification: Performance of FrontEnd: time 3.446e-06/0.6807, allocations: 0 / 452.1 MB, free: 36 kB / 346.7 MB Notification: Performance of Transformations before backend: time 0.000264/0.681, allocations: 0 / 452.1 MB, free: 36 kB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1599 * Number of variables: 1599 Notification: Performance of Generate backend data structure: time 0.01432/0.6953, allocations: 4.307 MB / 456.4 MB, free: 12.05 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.129e-05/0.6954, allocations: 8.031 kB / 456.4 MB, free: 12.05 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06689/0.7623, allocations: 6.904 MB / 463.3 MB, free: 5.535 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009176/0.7715, allocations: 2.822 MB / 466.1 MB, free: 3.449 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002977/0.7718, allocations: 244.2 kB / 466.3 MB, free: 3.316 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001566/0.7734, allocations: 328.6 kB / 466.7 MB, free: 3.109 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03115/0.8046, allocations: 10.9 MB / 477.6 MB, free: 10.58 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001863/0.8048, allocations: 43.12 kB / 477.6 MB, free: 10.55 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001212/0.8061, allocations: 155.5 kB / 477.8 MB, free: 10.51 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006795/0.8129, allocations: 2.149 MB / 479.9 MB, free: 8.73 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03141/0.8444, allocations: 9.239 MB / 489.1 MB, free: 0.6484 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08167/0.9261, allocations: 41.84 MB / 0.5185 GB, free: 6.227 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02157/0.9477, allocations: 4.567 MB / 0.523 GB, free: 1.523 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0194/0.9672, allocations: 7.292 MB / 0.5301 GB, free: 10.09 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.999e-05/0.9673, allocations: 51.56 kB / 0.5302 GB, free: 10.03 MB / 442.7 MB Notification: Performance of pre-optimization done (n=177): time 5.8e-06/0.9673, allocations: 0 / 0.5302 GB, free: 10.03 MB / 442.7 MB Notification: Performance of matching and sorting (n=198): time 0.08677/1.054, allocations: 18.64 MB / 0.5484 GB, free: 7.246 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001301/1.054, allocations: 175.6 kB / 0.5485 GB, free: 7.039 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01075/1.065, allocations: 4.243 MB / 0.5527 GB, free: 2.785 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005781/1.066, allocations: 53.7 kB / 0.5527 GB, free: 2.727 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003805/1.069, allocations: 3.118 MB / 0.5558 GB, free: 15.61 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00157/1.071, allocations: 0.749 MB / 0.5565 GB, free: 14.87 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000693/1.072, allocations: 120 kB / 0.5566 GB, free: 14.75 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006197/1.072, allocations: 0.5829 MB / 0.5572 GB, free: 14.16 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006546/1.079, allocations: 2.267 MB / 0.5594 GB, free: 11.89 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01162/1.091, allocations: 5.971 MB / 0.5652 GB, free: 4.121 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009812/1.101, allocations: 3.623 MB / 0.5688 GB, free: 0.625 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001217/1.101, allocations: 40 kB / 0.5688 GB, free: 0.5859 MB / 474.7 MB Notification: Performance of matching and sorting (n=811) (initialization): time 0.3698/1.471, allocations: 8.661 MB / 0.5773 GB, free: 172.2 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001279/1.471, allocations: 60.03 kB / 0.5773 GB, free: 172.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002744/1.471, allocations: 132 kB / 0.5775 GB, free: 172.2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004532/1.476, allocations: 0.9622 MB / 0.5784 GB, free: 172 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009137/1.485, allocations: 1.42 MB / 0.5798 GB, free: 171.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01264/1.497, allocations: 6.269 MB / 0.5859 GB, free: 168.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006809/1.504, allocations: 346.3 kB / 0.5862 GB, free: 168.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001299/1.506, allocations: 378.7 kB / 0.5866 GB, free: 168.5 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 600 * Number of states: 0 () * Number of discrete variables: 49 (forceAndTorque.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,fixed2.color[3],fixed2.color[2],fixed2.color[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],forceAndTorque.connectionLineColor[3],forceAndTorque.connectionLineColor[2],forceAndTorque.connectionLineColor[1],forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceArrow.color[3],forceAndTorque.forceArrow.color[2],forceAndTorque.forceArrow.color[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (753): * Single equations (assignments): 747 * Array equations: 5 * 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 {(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005504/1.511, allocations: 2.198 MB / 0.5888 GB, free: 167.6 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009646/1.512, allocations: 391.2 kB / 0.5891 GB, free: 167.6 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01001/1.522, allocations: 3.689 MB / 0.5927 GB, free: 166.2 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.238e-05/1.522, allocations: 23.16 kB / 0.5928 GB, free: 166.2 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.386e-05/1.522, allocations: 3.5 kB / 0.5928 GB, free: 166.2 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.81e-05/1.522, allocations: 7.266 kB / 0.5928 GB, free: 166.2 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02468/1.547, allocations: 9.269 MB / 0.6018 GB, free: 161.4 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.037e-05/1.547, allocations: 7.969 kB / 0.6018 GB, free: 161.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002914/1.55, allocations: 320.2 kB / 0.6021 GB, free: 161.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003412/1.554, allocations: 0.7655 MB / 0.6029 GB, free: 160.3 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004157/1.554, allocations: 33.17 kB / 0.6029 GB, free: 160.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0117/1.566, allocations: 5.79 MB / 0.6086 GB, free: 154.4 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.396e-06/1.566, allocations: 11.94 kB / 0.6086 GB, free: 154.4 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01471/1.58, allocations: 7.347 MB / 0.6157 GB, free: 146.9 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001468/1.582, allocations: 475.8 kB / 0.6162 GB, free: 146.4 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001086/1.583, allocations: 42.73 kB / 0.6162 GB, free: 146.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002734/1.586, allocations: 124.6 kB / 0.6164 GB, free: 146.3 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004098/1.586, allocations: 117.1 kB / 0.6165 GB, free: 146.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002121/1.586, allocations: 60.92 kB / 0.6165 GB, free: 146.1 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.005896/1.592, allocations: 3.039 MB / 0.6195 GB, free: 143.1 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.82e-07/1.592, allocations: 0 / 0.6195 GB, free: 143.1 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006511/1.599, allocations: 1.082 MB / 0.6206 GB, free: 142 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 (revolute2.phi,revolute2.w,revolute1.phi,revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (157): * Single equations (assignments): 153 * 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 {(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000691/1.6, allocations: 199.2 kB / 0.6207 GB, free: 141.8 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01173/1.611, allocations: 5.513 MB / 0.6261 GB, free: 136.3 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.839e-06/1.611, allocations: 0 / 0.6261 GB, free: 136.3 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004821/1.616, allocations: 1.963 MB / 0.628 GB, free: 134.4 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003534/1.62, allocations: 487 kB / 0.6285 GB, free: 133.9 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02563/1.646, allocations: 12.31 MB / 0.6405 GB, free: 121.5 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006211/1.652, allocations: 3.546 MB / 0.644 GB, free: 117.9 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001908/1.654, allocations: 319.4 kB / 0.6443 GB, free: 117.6 MB / 474.7 MB Notification: Performance of SimCode: time 1.323e-06/1.654, allocations: 0 / 0.6443 GB, free: 117.6 MB / 474.7 MB Notification: Performance of Templates: time 0.1403/1.794, allocations: 79.3 MB / 0.7217 GB, free: 38.31 MB / 474.7 MB