Running command: translateModel(ModelicaTest.MultiBody.Joints.Revolute2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|revolute1.phi|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute2") Notification: Performance of loadModel(ModelicaTest): time 2.602/2.602, allocations: 269 MB / 284.1 MB, free: 3.562 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.096e-05/3.093e-05, allocations: 4 kB / 349 MB, free: 10.74 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1317/0.1317, allocations: 61.89 MB / 410.9 MB, free: 12.86 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.4076/0.5394, allocations: 52.31 MB / 463.2 MB, free: 13.91 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.04337/0.5828, allocations: 11.62 MB / 474.8 MB, free: 6.262 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01755/0.6004, allocations: 278.9 kB / 475.1 MB, free: 6.219 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01344/0.614, allocations: 2.741 MB / 477.9 MB, free: 4.398 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0366/0.6506, allocations: 7.674 MB / 485.5 MB, free: 12.9 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00597/0.6566, allocations: 0.866 MB / 486.4 MB, free: 12.04 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.06663/0.7233, allocations: 25.34 MB / 0.4997 GB, free: 2.676 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009056/0.7324, allocations: 4.379 MB / 0.504 GB, free: 14.27 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003198/0.7357, allocations: 1.251 MB / 0.5052 GB, free: 13.01 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004588/0.7403, allocations: 2.112 MB / 0.5073 GB, free: 10.89 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003485/0.7439, allocations: 0.9403 MB / 0.5082 GB, free: 9.953 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001619/0.7455, allocations: 192 kB / 0.5084 GB, free: 9.766 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003854/0.7494, allocations: 2.295 MB / 0.5106 GB, free: 7.465 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001988/0.7514, allocations: 388 kB / 0.511 GB, free: 7.086 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01259/0.7641, allocations: 7.706 MB / 0.5185 GB, free: 15.36 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.7641, allocations: 0 / 0.5185 GB, free: 15.36 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.537e-06/0.7642, allocations: 4 kB / 0.5185 GB, free: 15.36 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003362/0.7645, allocations: 0 / 0.5185 GB, free: 15.36 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2169 * Number of variables: 2169 Notification: Performance of Generate backend data structure: time 0.02138/0.7859, allocations: 6.066 MB / 0.5245 GB, free: 9.219 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.162e-05/0.786, allocations: 8.031 kB / 0.5245 GB, free: 9.211 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08019/0.8662, allocations: 8.911 MB / 0.5332 GB, free: 284 kB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02002/0.8862, allocations: 4.351 MB / 0.5374 GB, free: 11.87 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004761/0.8868, allocations: 320 kB / 0.5377 GB, free: 11.55 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002438/0.8892, allocations: 431.6 kB / 0.5381 GB, free: 11.13 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04581/0.9351, allocations: 15.71 MB / 0.5535 GB, free: 10.68 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002959/0.9354, allocations: 59.5 kB / 0.5535 GB, free: 10.62 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001945/0.9374, allocations: 195.8 kB / 0.5537 GB, free: 10.43 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01158/0.949, allocations: 3.376 MB / 0.557 GB, free: 7.055 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04895/0.998, allocations: 14.88 MB / 0.5716 GB, free: 8.156 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5146/1.513, allocations: 55.25 MB / 0.6255 GB, free: 137.4 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03181/1.544, allocations: 8.184 MB / 0.6335 GB, free: 136 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002926/1.547, allocations: 2.207 MB / 0.6357 GB, free: 133.9 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.651e-05/1.548, allocations: 71.39 kB / 0.6357 GB, free: 133.8 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=367): time 8.986e-06/1.548, allocations: 1.375 kB / 0.6357 GB, free: 133.8 MB / 0.5105 GB Notification: Performance of matching and sorting (n=419): time 0.1838/1.731, allocations: 40.54 MB / 0.6753 GB, free: 114 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001016/1.732, allocations: 119.6 kB / 0.6754 GB, free: 113.9 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008219/1.74, allocations: 4.26 MB / 0.6796 GB, free: 109.6 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001046/1.741, allocations: 88.75 kB / 0.6797 GB, free: 109.5 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002538/1.743, allocations: 3.692 MB / 0.6833 GB, free: 105.8 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002211/1.746, allocations: 1.494 MB / 0.6847 GB, free: 104.3 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007637/1.746, allocations: 144.9 kB / 0.6849 GB, free: 104.2 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000415/1.747, allocations: 0.6412 MB / 0.6855 GB, free: 103.5 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009316/1.756, allocations: 3.919 MB / 0.6893 GB, free: 99.63 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01114/1.767, allocations: 7.637 MB / 0.6968 GB, free: 90.36 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01168/1.779, allocations: 5.442 MB / 0.7021 GB, free: 85 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.016e-05/1.779, allocations: 36 kB / 0.7021 GB, free: 84.96 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1008) (initialization): time 0.04006/1.819, allocations: 13.95 MB / 0.7158 GB, free: 70.96 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.479e-05/1.819, allocations: 62.5 kB / 0.7158 GB, free: 70.91 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001563/1.82, allocations: 129.9 kB / 0.716 GB, free: 70.78 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01327/1.833, allocations: 2.701 MB / 0.7186 GB, free: 68.07 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01174/1.845, allocations: 1.758 MB / 0.7203 GB, free: 66.31 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02979/1.875, allocations: 14.56 MB / 0.7345 GB, free: 51.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00879/1.883, allocations: 0.4926 MB / 0.735 GB, free: 51 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001366/1.885, allocations: 425.1 kB / 0.7354 GB, free: 50.59 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * Number of states: 0 () * Number of discrete variables: 50 (axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.color[3],axis.color[2],axis.color[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],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (911): * Single equations (assignments): 903 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,69.4%) 32,(3,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006605/1.891, allocations: 2.835 MB / 0.7382 GB, free: 47.74 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001292/1.893, allocations: 462 kB / 0.7386 GB, free: 47.29 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03027/1.923, allocations: 10.54 MB / 0.7489 GB, free: 36.69 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000114/1.923, allocations: 65 kB / 0.749 GB, free: 36.62 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.063e-05/1.923, allocations: 8 kB / 0.749 GB, free: 36.62 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.322e-05/1.923, allocations: 19.89 kB / 0.749 GB, free: 36.6 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05761/1.981, allocations: 21.33 MB / 0.7698 GB, free: 15.04 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.532e-05/1.981, allocations: 12 kB / 0.7698 GB, free: 15.02 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008082/1.989, allocations: 0.6786 MB / 0.7705 GB, free: 14.34 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01781/2.007, allocations: 2.496 MB / 0.7729 GB, free: 11.84 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001267/2.008, allocations: 73.72 kB / 0.773 GB, free: 11.77 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03602/2.044, allocations: 13.33 MB / 0.786 GB, free: 14.16 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.161e-05/2.044, allocations: 15.94 kB / 0.7861 GB, free: 14.15 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04527/2.09, allocations: 16.43 MB / 0.8021 GB, free: 13.02 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001644/2.091, allocations: 0.5147 MB / 0.8026 GB, free: 12.48 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002036/2.094, allocations: 70.66 kB / 0.8027 GB, free: 12.41 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005751/2.099, allocations: 319.5 kB / 0.803 GB, free: 12.1 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001324/2.101, allocations: 266 kB / 0.8032 GB, free: 11.84 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005053/2.101, allocations: 108 kB / 0.8033 GB, free: 11.73 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.007058/2.108, allocations: 3.03 MB / 0.8063 GB, free: 8.699 MB / 0.5417 GB Notification: Performance of sort global known variables: time 7.91e-07/2.108, allocations: 4 kB / 0.8063 GB, free: 8.695 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.009497/2.118, allocations: 1.662 MB / 0.8079 GB, free: 7.043 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 7 (revolute.phi,revolute.w,constantSpeed.phi,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (334): * Single equations (assignments): 326 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 9,(6,69.4%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00157/2.119, allocations: 260.1 kB / 0.8082 GB, free: 6.789 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.3683/2.488, allocations: 9.761 MB / 0.8177 GB, free: 183.8 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.441e-05/2.488, allocations: 1.75 kB / 0.8177 GB, free: 183.8 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01178/2.5, allocations: 4.3 MB / 0.8219 GB, free: 183.4 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005789/2.505, allocations: 0.6463 MB / 0.8225 GB, free: 183.4 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04606/2.552, allocations: 18.83 MB / 0.8409 GB, free: 174.2 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01062/2.562, allocations: 4.685 MB / 0.8455 GB, free: 172.7 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003434/2.566, allocations: 414.8 kB / 0.8459 GB, free: 172.6 MB / 0.5417 GB Notification: Performance of SimCode: time 3.236e-06/2.566, allocations: 0 / 0.8459 GB, free: 172.6 MB / 0.5417 GB Notification: Performance of Templates: time 0.2396/2.805, allocations: 135.8 MB / 0.9785 GB, free: 49.89 MB / 0.5417 GB