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.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") Notification: Performance of loadModel(Modelica): time 2.053/2.053, allocations: 194.9 MB / 211.2 MB, free: 8.348 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.191e-05/3.204e-05, allocations: 4 kB / 258.8 MB, free: 8.703 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3141/0.3141, allocations: 44.51 MB / 303.3 MB, free: 12.76 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.07143/0.3856, allocations: 45.74 MB / 349 MB, free: 15.85 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.03047/0.4161, allocations: 10.26 MB / 359.3 MB, free: 5.555 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0106/0.4268, allocations: 235.5 kB / 359.5 MB, free: 5.324 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008951/0.4358, allocations: 2.403 MB / 361.9 MB, free: 2.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02604/0.4619, allocations: 6.591 MB / 368.5 MB, free: 12.3 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004341/0.4663, allocations: 0.6045 MB / 369.1 MB, free: 11.7 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.02744/0.4938, allocations: 9.077 MB / 378.2 MB, free: 2.609 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009833/0.5037, allocations: 4.575 MB / 382.8 MB, free: 13.98 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002393/0.5062, allocations: 0.8922 MB / 383.7 MB, free: 13.09 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003177/0.5094, allocations: 1.368 MB / 385 MB, free: 11.72 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003092/0.5125, allocations: 0.948 MB / 386 MB, free: 10.77 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001395/0.514, allocations: 151.9 kB / 386.1 MB, free: 10.62 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003155/0.5172, allocations: 1.71 MB / 387.8 MB, free: 8.906 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001558/0.5188, allocations: 296 kB / 388.1 MB, free: 8.617 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01078/0.5296, allocations: 6.422 MB / 394.6 MB, free: 2.18 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.5297, allocations: 0 / 394.6 MB, free: 2.18 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.505e-06/0.5297, allocations: 0 / 394.6 MB, free: 2.18 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002843/0.53, allocations: 0 / 394.6 MB, free: 2.18 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1734 * Number of variables: 1734 Notification: Performance of Generate backend data structure: time 0.01651/0.5465, allocations: 4.634 MB / 399.2 MB, free: 13.48 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.837e-05/0.5466, allocations: 16.02 kB / 399.2 MB, free: 13.46 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06727/0.6139, allocations: 6.955 MB / 406.2 MB, free: 6.492 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01028/0.6242, allocations: 3.093 MB / 409.3 MB, free: 3.34 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003923/0.6246, allocations: 266.8 kB / 409.5 MB, free: 3.078 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001865/0.6265, allocations: 351.7 kB / 409.9 MB, free: 2.734 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03381/0.6604, allocations: 11.75 MB / 421.6 MB, free: 6.273 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002012/0.6606, allocations: 43.59 kB / 421.7 MB, free: 6.23 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001175/0.6618, allocations: 175.8 kB / 421.8 MB, free: 6.059 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005945/0.6678, allocations: 2.221 MB / 424 MB, free: 3.832 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2994/0.9672, allocations: 9.977 MB / 434 MB, free: 103.8 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07487/1.042, allocations: 44.31 MB / 478.3 MB, free: 63.41 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02215/1.064, allocations: 5.413 MB / 483.7 MB, free: 57.87 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01942/1.084, allocations: 8.047 MB / 491.8 MB, free: 49.7 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.033e-05/1.084, allocations: 63.77 kB / 491.9 MB, free: 49.62 MB / 362.7 MB Notification: Performance of pre-optimization done (n=216): time 6.672e-06/1.084, allocations: 0 / 491.9 MB, free: 49.62 MB / 362.7 MB Notification: Performance of matching and sorting (n=237): time 0.08757/1.172, allocations: 20.68 MB / 0.5005 GB, free: 28.75 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.307e-05/1.172, allocations: 176.2 kB / 0.5007 GB, free: 28.54 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01053/1.182, allocations: 4.35 MB / 0.5049 GB, free: 24.18 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006502/1.183, allocations: 65.64 kB / 0.505 GB, free: 24.11 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00277/1.186, allocations: 3.28 MB / 0.5082 GB, free: 20.84 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001428/1.187, allocations: 0.8892 MB / 0.5091 GB, free: 19.95 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007111/1.188, allocations: 128 kB / 0.5092 GB, free: 19.83 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0004369/1.188, allocations: 0.5957 MB / 0.5098 GB, free: 19.22 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006356/1.195, allocations: 2.562 MB / 0.5123 GB, free: 16.66 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008888/1.204, allocations: 6.426 MB / 0.5186 GB, free: 8.312 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009068/1.213, allocations: 3.991 MB / 0.5225 GB, free: 4.324 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001101/1.213, allocations: 36 kB / 0.5225 GB, free: 4.289 MB / 362.7 MB Notification: Performance of matching and sorting (n=871) (initialization): time 0.02788/1.241, allocations: 9.462 MB / 0.5317 GB, free: 10.82 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001267/1.241, allocations: 64 kB / 0.5318 GB, free: 10.76 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002269/1.241, allocations: 136 kB / 0.5319 GB, free: 10.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004367/1.246, allocations: 0.977 MB / 0.5329 GB, free: 9.645 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01079/1.257, allocations: 1.571 MB / 0.5344 GB, free: 8.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01435/1.271, allocations: 6.257 MB / 0.5405 GB, free: 1.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007508/1.278, allocations: 379.4 kB / 0.5409 GB, free: 1.309 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001456/1.28, allocations: 403.5 kB / 0.5413 GB, free: 0.918 MB / 378.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.006362/1.286, allocations: 2.323 MB / 0.5435 GB, free: 14.58 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001159/1.288, allocations: 410.7 kB / 0.5439 GB, free: 14.18 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01413/1.302, allocations: 4.405 MB / 0.5482 GB, free: 9.75 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.757e-05/1.302, allocations: 27.95 kB / 0.5483 GB, free: 9.723 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.621e-05/1.302, allocations: 8 kB / 0.5483 GB, free: 9.715 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.357e-05/1.302, allocations: 7.969 kB / 0.5483 GB, free: 9.707 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03297/1.335, allocations: 10.53 MB / 0.5585 GB, free: 15.11 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.383e-05/1.335, allocations: 4 kB / 0.5586 GB, free: 15.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004156/1.339, allocations: 431.3 kB / 0.559 GB, free: 14.68 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003894/1.343, allocations: 0.7659 MB / 0.5597 GB, free: 13.91 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006629/1.344, allocations: 51.95 kB / 0.5598 GB, free: 13.86 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01411/1.358, allocations: 5.794 MB / 0.5654 GB, free: 7.938 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.588e-06/1.358, allocations: 8 kB / 0.5654 GB, free: 7.93 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2969/1.655, allocations: 8.461 MB / 0.5737 GB, free: 135.8 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003523/1.658, allocations: 0.8288 MB / 0.5745 GB, free: 135.7 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001687/1.66, allocations: 43.23 kB / 0.5745 GB, free: 135.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004109/1.664, allocations: 141.3 kB / 0.5747 GB, free: 135.7 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008489/1.665, allocations: 149.7 kB / 0.5748 GB, free: 135.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002975/1.665, allocations: 67.3 kB / 0.5749 GB, free: 135.7 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.007969/1.673, allocations: 3.123 MB / 0.5779 GB, free: 135.3 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.042e-06/1.674, allocations: 0 / 0.5779 GB, free: 135.3 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007411/1.681, allocations: 1.176 MB / 0.5791 GB, free: 135.2 MB / 410.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.001178/1.682, allocations: 189.9 kB / 0.5793 GB, free: 135.1 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01465/1.697, allocations: 6.239 MB / 0.5854 GB, free: 132.9 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.116e-05/1.697, allocations: 0 / 0.5854 GB, free: 132.9 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00654/1.703, allocations: 2.315 MB / 0.5876 GB, free: 132 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004227/1.708, allocations: 482.5 kB / 0.5881 GB, free: 131.8 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.029/1.737, allocations: 13.44 MB / 0.6012 GB, free: 124.7 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007246/1.744, allocations: 3.767 MB / 0.6049 GB, free: 121.8 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002325/1.746, allocations: 344.4 kB / 0.6052 GB, free: 121.5 MB / 410.7 MB Notification: Performance of SimCode: time 1.573e-06/1.747, allocations: 0 / 0.6052 GB, free: 121.5 MB / 410.7 MB Notification: Performance of Templates: time 0.1743/1.921, allocations: 85.84 MB / 0.689 GB, free: 36.43 MB / 410.7 MB