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_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") Notification: Performance of loadModel(Modelica): time 1.674/1.674, allocations: 171.1 MB / 186.3 MB, free: 1.34 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.248e-05/3.262e-05, allocations: 4 kB / 228.1 MB, free: 7.992 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08084/0.08091, allocations: 38.78 MB / 266.9 MB, free: 1.129 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.2953/0.3762, allocations: 45.72 MB / 312.6 MB, free: 3.016 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.03031/0.4066, allocations: 10.23 MB / 322.9 MB, free: 1.555 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01488/0.4216, allocations: 242.7 kB / 323.1 MB, free: 1.516 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009341/0.431, allocations: 2.4 MB / 325.5 MB, free: 232 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02891/0.4599, allocations: 6.594 MB / 332.1 MB, free: 12.67 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004567/0.4646, allocations: 0.6079 MB / 332.7 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.02761/0.4922, allocations: 9.065 MB / 341.8 MB, free: 5.75 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01054/0.5028, allocations: 4.589 MB / 346.3 MB, free: 1.117 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002677/0.5056, allocations: 0.8961 MB / 347.2 MB, free: 224 kB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003475/0.5091, allocations: 1.36 MB / 348.6 MB, free: 14.86 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003462/0.5126, allocations: 0.9441 MB / 349.5 MB, free: 13.91 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001582/0.5142, allocations: 148 kB / 349.7 MB, free: 13.77 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003446/0.5177, allocations: 1.726 MB / 351.4 MB, free: 12.04 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001815/0.5196, allocations: 292 kB / 351.7 MB, free: 11.75 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01139/0.531, allocations: 6.41 MB / 358.1 MB, free: 5.324 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.5311, allocations: 0 / 358.1 MB, free: 5.324 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.506e-06/0.5311, allocations: 0 / 358.1 MB, free: 5.324 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0003005/0.5314, allocations: 0 / 358.1 MB, free: 5.324 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1732 * Number of variables: 1732 Notification: Performance of Generate backend data structure: time 0.01714/0.5486, allocations: 4.638 MB / 362.7 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.536e-05/0.5487, allocations: 8.031 kB / 362.8 MB, free: 0.6133 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06827/0.6169, allocations: 6.959 MB / 369.7 MB, free: 9.637 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01036/0.6274, allocations: 3.093 MB / 372.8 MB, free: 6.484 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003992/0.6278, allocations: 266.7 kB / 373.1 MB, free: 6.223 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001881/0.6297, allocations: 347.7 kB / 373.4 MB, free: 5.883 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03625/0.666, allocations: 11.74 MB / 385.2 MB, free: 9.426 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002105/0.6663, allocations: 39.59 kB / 385.2 MB, free: 9.387 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001568/0.6679, allocations: 171.8 kB / 385.4 MB, free: 9.219 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006001/0.6739, allocations: 2.221 MB / 387.6 MB, free: 6.996 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03481/0.7088, allocations: 9.975 MB / 397.6 MB, free: 13 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3226/1.031, allocations: 44.3 MB / 441.8 MB, free: 117.6 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02432/1.056, allocations: 5.41 MB / 447.3 MB, free: 116.9 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02124/1.077, allocations: 8.045 MB / 455.3 MB, free: 114.4 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.188e-05/1.077, allocations: 52.09 kB / 455.4 MB, free: 114.4 MB / 362.7 MB Notification: Performance of pre-optimization done (n=216): time 6.843e-06/1.077, allocations: 3.781 kB / 455.4 MB, free: 114.4 MB / 362.7 MB Notification: Performance of matching and sorting (n=237): time 0.08626/1.164, allocations: 20.69 MB / 476 MB, free: 105.9 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.93e-05/1.164, allocations: 182.1 kB / 476.2 MB, free: 105.7 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01019/1.174, allocations: 4.352 MB / 480.6 MB, free: 102.2 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007187/1.175, allocations: 54.88 kB / 480.6 MB, free: 102.1 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002704/1.177, allocations: 3.275 MB / 483.9 MB, free: 98.83 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001561/1.179, allocations: 0.8898 MB / 484.8 MB, free: 97.95 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001261/1.18, allocations: 131.1 kB / 484.9 MB, free: 97.82 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0009281/1.181, allocations: 0.5957 MB / 485.5 MB, free: 97.22 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01061/1.192, allocations: 2.566 MB / 488.1 MB, free: 94.65 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0134/1.205, allocations: 6.429 MB / 494.5 MB, free: 86.48 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01472/1.22, allocations: 3.993 MB / 498.5 MB, free: 82.65 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001774/1.22, allocations: 40 kB / 498.5 MB, free: 82.61 MB / 362.7 MB Notification: Performance of matching and sorting (n=871) (initialization): time 0.04095/1.261, allocations: 9.452 MB / 0.4961 GB, free: 73.16 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001546/1.262, allocations: 67.94 kB / 0.4962 GB, free: 73.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002566/1.262, allocations: 136 kB / 0.4963 GB, free: 72.96 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006374/1.268, allocations: 0.9731 MB / 0.4972 GB, free: 71.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01566/1.284, allocations: 1.567 MB / 0.4988 GB, free: 70.41 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01945/1.304, allocations: 6.267 MB / 0.5049 GB, free: 64.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01201/1.316, allocations: 372 kB / 0.5052 GB, free: 63.65 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002007/1.318, allocations: 401 kB / 0.5056 GB, free: 63.26 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 621 * Number of states: 0 () * Number of discrete variables: 39 (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.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.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 (813): * Single equations (assignments): 807 * 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.008615/1.326, allocations: 2.329 MB / 0.5079 GB, free: 60.92 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001692/1.328, allocations: 423.6 kB / 0.5083 GB, free: 60.5 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0214/1.35, allocations: 4.384 MB / 0.5126 GB, free: 56.1 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.515e-05/1.35, allocations: 28 kB / 0.5126 GB, free: 56.07 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.574e-05/1.35, allocations: 8.609 kB / 0.5126 GB, free: 56.07 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.563e-05/1.35, allocations: 7.969 kB / 0.5126 GB, free: 56.06 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04125/1.391, allocations: 10.55 MB / 0.5229 GB, free: 45.44 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.964e-05/1.391, allocations: 4 kB / 0.5229 GB, free: 45.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00407/1.395, allocations: 428.3 kB / 0.5233 GB, free: 45.02 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00365/1.399, allocations: 0.7731 MB / 0.5241 GB, free: 44.24 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006347/1.4, allocations: 48 kB / 0.5241 GB, free: 44.2 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0121/1.412, allocations: 5.778 MB / 0.5298 GB, free: 38.29 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.476e-06/1.412, allocations: 4.047 kB / 0.5298 GB, free: 38.29 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01957/1.431, allocations: 8.479 MB / 0.5381 GB, free: 29.52 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002975/1.434, allocations: 0.8313 MB / 0.5389 GB, free: 28.67 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001665/1.436, allocations: 47.98 kB / 0.5389 GB, free: 28.62 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003988/1.44, allocations: 141.1 kB / 0.5391 GB, free: 28.48 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008481/1.441, allocations: 157.6 kB / 0.5392 GB, free: 28.33 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003073/1.441, allocations: 60 kB / 0.5393 GB, free: 28.27 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.007295/1.449, allocations: 3.12 MB / 0.5423 GB, free: 25.15 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.21e-07/1.449, allocations: 4.469 kB / 0.5423 GB, free: 25.15 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.007366/1.456, allocations: 1.171 MB / 0.5435 GB, free: 23.98 MB / 362.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 (198): * Single equations (assignments): 194 * 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.001096/1.457, allocations: 195.8 kB / 0.5436 GB, free: 23.79 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01458/1.472, allocations: 6.236 MB / 0.5497 GB, free: 17.57 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.608e-06/1.472, allocations: 3.938 kB / 0.5497 GB, free: 17.56 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006387/1.478, allocations: 2.307 MB / 0.552 GB, free: 15.24 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004006/1.482, allocations: 485.8 kB / 0.5524 GB, free: 14.77 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.263/1.746, allocations: 13.42 MB / 0.5656 GB, free: 111.6 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009651/1.755, allocations: 3.766 MB / 0.5692 GB, free: 110.8 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002471/1.758, allocations: 341.7 kB / 0.5696 GB, free: 110.8 MB / 362.7 MB Notification: Performance of SimCode: time 2.795e-06/1.758, allocations: 0.6562 kB / 0.5696 GB, free: 110.8 MB / 362.7 MB Notification: Performance of Templates: time 0.1699/1.928, allocations: 85.8 MB / 0.6534 GB, free: 39.58 MB / 362.7 MB