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 1.897/1.897, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.477e-05/2.489e-05, allocations: 4 kB / 249.6 MB, free: 15.29 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.253/0.253, allocations: 44.5 MB / 294.1 MB, free: 14.3 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1494/0.4025, allocations: 93.97 MB / 388.1 MB, free: 3.977 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002522/0.4028, allocations: 79.95 kB / 388.2 MB, free: 3.898 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5976/1, allocations: 95.01 MB / 483.2 MB, free: 66.23 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.202e-06/1, allocations: 0 / 483.2 MB, free: 66.23 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002257/1.001, allocations: 99.38 kB / 483.3 MB, free: 66.14 MB / 362.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.01463/1.015, allocations: 4.658 MB / 487.9 MB, free: 61.42 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/1.015, allocations: 12.03 kB / 487.9 MB, free: 61.41 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02395/1.039, allocations: 4.494 MB / 492.4 MB, free: 56.9 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01463/1.054, allocations: 5.047 MB / 497.5 MB, free: 51.84 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002646/1.054, allocations: 152 kB / 497.6 MB, free: 51.7 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001916/1.056, allocations: 283.9 kB / 497.9 MB, free: 51.42 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01398/1.07, allocations: 6.98 MB / 0.4931 GB, free: 44.43 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02215/1.092, allocations: 10.58 MB / 0.5034 GB, free: 32.82 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001992/1.093, allocations: 63.41 kB / 0.5035 GB, free: 32.75 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00109/1.094, allocations: 35.95 kB / 0.5035 GB, free: 32.72 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001808/1.096, allocations: 1.191 MB / 0.5047 GB, free: 31.53 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06734/1.163, allocations: 50.52 MB / 0.554 GB, free: 11.8 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00706/1.17, allocations: 4.043 MB / 0.5579 GB, free: 7.555 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004409/1.175, allocations: 2.395 MB / 0.5603 GB, free: 5.156 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001193/1.176, allocations: 0.6939 MB / 0.5609 GB, free: 4.363 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.042e-05/1.176, allocations: 55.88 kB / 0.561 GB, free: 4.301 MB / 394.7 MB Notification: Performance of pre-optimization done (n=207): time 8.959e-06/1.176, allocations: 0 / 0.561 GB, free: 4.301 MB / 394.7 MB Notification: Performance of matching and sorting (n=229): time 0.2803/1.456, allocations: 17.08 MB / 0.5777 GB, free: 91.88 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.974e-05/1.456, allocations: 176.5 kB / 0.5778 GB, free: 91.69 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006846/1.463, allocations: 3.365 MB / 0.5811 GB, free: 91.32 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004675/1.464, allocations: 25.7 kB / 0.5812 GB, free: 91.29 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002473/1.466, allocations: 3.475 MB / 0.5846 GB, free: 89.24 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001132/1.467, allocations: 0.85 MB / 0.5854 GB, free: 88.75 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005996/1.468, allocations: 0 / 0.5854 GB, free: 88.75 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0004596/1.468, allocations: 0.6028 MB / 0.586 GB, free: 88.43 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004901/1.473, allocations: 2.391 MB / 0.5883 GB, free: 88.41 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00722/1.481, allocations: 6.411 MB / 0.5946 GB, free: 83.21 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007397/1.488, allocations: 3.899 MB / 0.5984 GB, free: 83.18 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000146/1.488, allocations: 41.56 kB / 0.5984 GB, free: 83.18 MB / 394.7 MB Notification: Performance of matching and sorting (n=901) (initialization): time 0.0208/1.509, allocations: 8.602 MB / 0.6068 GB, free: 80.77 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000123/1.509, allocations: 64.91 kB / 0.6069 GB, free: 80.77 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001901/1.509, allocations: 143.2 kB / 0.607 GB, free: 80.77 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002792/1.512, allocations: 0.9284 MB / 0.6079 GB, free: 80.62 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007525/1.52, allocations: 1.663 MB / 0.6095 GB, free: 80.43 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009368/1.529, allocations: 5.488 MB / 0.6149 GB, free: 77.53 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006903/1.536, allocations: 265.1 kB / 0.6152 GB, free: 77.51 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001563/1.538, allocations: 414.4 kB / 0.6155 GB, free: 77.46 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 654 * 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 (853): * Single equations (assignments): 849 * 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%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002/1.54, allocations: 476 kB / 0.616 GB, free: 77.07 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009166/1.541, allocations: 368.3 kB / 0.6164 GB, free: 76.87 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009289/1.55, allocations: 3.946 MB / 0.6202 GB, free: 75.45 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.819e-05/1.55, allocations: 26.97 kB / 0.6202 GB, free: 75.45 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-05/1.55, allocations: 3.875 kB / 0.6202 GB, free: 75.45 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-05/1.55, allocations: 10.59 kB / 0.6202 GB, free: 75.45 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02146/1.572, allocations: 9.086 MB / 0.6291 GB, free: 69.6 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.452e-05/1.572, allocations: 4 kB / 0.6291 GB, free: 69.6 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002776/1.575, allocations: 434 kB / 0.6295 GB, free: 69.27 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002384/1.577, allocations: 0.7173 MB / 0.6302 GB, free: 68.77 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000488/1.578, allocations: 7.891 kB / 0.6302 GB, free: 68.76 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007666/1.585, allocations: 4.981 MB / 0.6351 GB, free: 64.31 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.639e-06/1.585, allocations: 4 kB / 0.6351 GB, free: 64.31 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01237/1.598, allocations: 7.32 MB / 0.6423 GB, free: 57.79 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0022/1.6, allocations: 0.7304 MB / 0.643 GB, free: 57.09 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000954/1.601, allocations: 6.906 kB / 0.643 GB, free: 57.09 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002742/1.604, allocations: 111.2 kB / 0.6431 GB, free: 57.03 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006328/1.604, allocations: 129.3 kB / 0.6432 GB, free: 56.95 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003415/1.605, allocations: 64.62 kB / 0.6433 GB, free: 56.89 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.004816/1.61, allocations: 2.247 MB / 0.6455 GB, free: 54.92 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.116e-06/1.61, allocations: 1.312 kB / 0.6455 GB, free: 54.92 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.007666/1.617, allocations: 0.9883 MB / 0.6464 GB, free: 53.94 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (190): * Single equations (assignments): 186 * 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.0007378/1.618, allocations: 151.6 kB / 0.6466 GB, free: 53.79 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0109/1.629, allocations: 5.904 MB / 0.6523 GB, free: 48.47 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.635e-06/1.629, allocations: 0 / 0.6523 GB, free: 48.47 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004055/1.633, allocations: 2.152 MB / 0.6544 GB, free: 46.54 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002574/1.636, allocations: 355 kB / 0.6548 GB, free: 46.24 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02126/1.657, allocations: 9.489 MB / 0.6641 GB, free: 37.79 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007482/1.664, allocations: 3.761 MB / 0.6677 GB, free: 34.95 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001652/1.666, allocations: 320.6 kB / 0.668 GB, free: 34.66 MB / 394.7 MB Notification: Performance of SimCode: time 1.691e-06/1.666, allocations: 0 / 0.668 GB, free: 34.66 MB / 394.7 MB Notification: Performance of Templates: time 0.3632/2.029, allocations: 81.71 MB / 0.7478 GB, free: 94.14 MB / 410.7 MB