Running command: translateModel(ModelicaTest.MultiBody.Joints.Spherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.Q.1.|body.Q.2.|body.Q.3.|body.Q.4.|body.w_a.1.|body.w_a.2.|body.w_a.3.",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Spherical") Notification: Performance of loadModel(ModelicaTest): time 2.337/2.337, allocations: 269 MB / 284.1 MB, free: 3.637 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.041e-05/3.043e-05, allocations: 4 kB / 349 MB, free: 10.78 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1292/0.1293, allocations: 61.9 MB / 410.9 MB, free: 12.87 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.3753/0.5047, allocations: 21.15 MB / 432.1 MB, free: 2.727 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.01853/0.5233, allocations: 5.696 MB / 437.8 MB, free: 44 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007362/0.5307, allocations: 104 kB / 437.9 MB, free: 28 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005911/0.5367, allocations: 1.118 MB / 439 MB, free: 15.69 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01852/0.5552, allocations: 3.315 MB / 442.3 MB, free: 14.31 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00318/0.5585, allocations: 424.4 kB / 442.7 MB, free: 14.17 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0066/0.5651, allocations: 1.547 MB / 444.3 MB, free: 13.46 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006058/0.5712, allocations: 1.797 MB / 446.1 MB, free: 12.78 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002631/0.5739, allocations: 0.671 MB / 446.7 MB, free: 12.56 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00376/0.5778, allocations: 1.123 MB / 447.9 MB, free: 12.11 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004884/0.5827, allocations: 1.033 MB / 448.9 MB, free: 11.65 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001852/0.5846, allocations: 121.9 kB / 449 MB, free: 11.65 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003546/0.5882, allocations: 1.328 MB / 450.3 MB, free: 11.01 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001844/0.5901, allocations: 208.9 kB / 450.5 MB, free: 11.01 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01129/0.6014, allocations: 4.735 MB / 455.3 MB, free: 7.93 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.6015, allocations: 0 / 455.3 MB, free: 7.93 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.346e-06/0.6015, allocations: 4 kB / 455.3 MB, free: 7.926 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002795/0.6018, allocations: 1.219 kB / 455.3 MB, free: 7.926 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: 1482 * Number of variables: 1482 Notification: Performance of Generate backend data structure: time 0.01606/0.6179, allocations: 3.474 MB / 458.8 MB, free: 5.488 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.546e-05/0.618, allocations: 13.31 kB / 458.8 MB, free: 5.484 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05274/0.6707, allocations: 6.408 MB / 465.2 MB, free: 1.246 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01114/0.6819, allocations: 2.376 MB / 467.6 MB, free: 14.82 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003766/0.6824, allocations: 177.3 kB / 467.7 MB, free: 14.64 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002901/0.6853, allocations: 311.4 kB / 468 MB, free: 14.34 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0404/0.7258, allocations: 10.8 MB / 478.8 MB, free: 3.07 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001632/0.726, allocations: 23.81 kB / 478.9 MB, free: 3.047 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001644/0.7276, allocations: 107.8 kB / 479 MB, free: 2.941 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007385/0.735, allocations: 2.463 MB / 481.4 MB, free: 488 kB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03349/0.7686, allocations: 10.23 MB / 491.6 MB, free: 6.242 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08191/0.8506, allocations: 35.81 MB / 0.5151 GB, free: 1.566 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02051/0.8711, allocations: 5.599 MB / 0.5206 GB, free: 11.73 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00275/0.8739, allocations: 1.88 MB / 0.5224 GB, free: 9.523 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.51e-05/0.874, allocations: 52.56 kB / 0.5225 GB, free: 9.465 MB / 442.7 MB Notification: Performance of pre-optimization done (n=224): time 9.438e-06/0.8741, allocations: 3.984 kB / 0.5225 GB, free: 9.461 MB / 442.7 MB Notification: Performance of matching and sorting (n=231): time 0.06468/0.9387, allocations: 15.48 MB / 0.5376 GB, free: 9.758 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001843/0.9406, allocations: 1.531 MB / 0.5391 GB, free: 8.074 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006462/0.9471, allocations: 2.716 MB / 0.5417 GB, free: 5.348 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006899/0.9479, allocations: 57.69 kB / 0.5418 GB, free: 5.285 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003184/0.9511, allocations: 2.68 MB / 0.5444 GB, free: 2.566 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001743/0.9529, allocations: 0.8442 MB / 0.5452 GB, free: 1.711 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007929/0.9537, allocations: 104 kB / 0.5453 GB, free: 1.609 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0006288/0.9543, allocations: 0.5501 MB / 0.5458 GB, free: 1.051 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007369/0.9617, allocations: 2.603 MB / 0.5484 GB, free: 14.44 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01084/0.9726, allocations: 5.596 MB / 0.5539 GB, free: 7.375 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01008/0.9828, allocations: 3.798 MB / 0.5576 GB, free: 3.574 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001033/0.9829, allocations: 28 kB / 0.5576 GB, free: 3.547 MB / 474.7 MB Notification: Performance of matching and sorting (n=725) (initialization): time 0.1216/1.105, allocations: 18.9 MB / 0.5761 GB, free: 0.6055 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001069/1.105, allocations: 52 kB / 0.5761 GB, free: 0.5547 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.08583/1.191, allocations: 12.01 MB / 0.5878 GB, free: 4.52 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0936/1.284, allocations: 10.3 MB / 0.5979 GB, free: 10.19 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008739/1.293, allocations: 1.306 MB / 0.5992 GB, free: 8.879 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4359/1.729, allocations: 17.27 MB / 0.616 GB, free: 161.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00679/1.736, allocations: 435.7 kB / 0.6164 GB, free: 161.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001478/1.737, allocations: 320.2 kB / 0.6167 GB, free: 161.2 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 476 * Number of states: 0 () * Number of discrete variables: 24 (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],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[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 (653): * Single equations (assignments): 642 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.00606/1.743, allocations: 1.987 MB / 0.6187 GB, free: 160.5 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000711/1.744, allocations: 278 kB / 0.619 GB, free: 160.5 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01684/1.761, allocations: 5.112 MB / 0.6239 GB, free: 158.8 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01421/1.775, allocations: 4.392 MB / 0.6282 GB, free: 157.5 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.226e-05/1.775, allocations: 3.906 kB / 0.6282 GB, free: 157.5 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.973e-05/1.775, allocations: 6.984 kB / 0.6282 GB, free: 157.5 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03373/1.809, allocations: 12.92 MB / 0.6409 GB, free: 153.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.014e-05/1.809, allocations: 9.719 kB / 0.6409 GB, free: 153.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004042/1.813, allocations: 464.1 kB / 0.6413 GB, free: 153.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005076/1.818, allocations: 0.9338 MB / 0.6422 GB, free: 153 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006318/1.819, allocations: 45.95 kB / 0.6423 GB, free: 152.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00971/1.829, allocations: 5.585 MB / 0.6477 GB, free: 149.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001146/1.83, allocations: 1.474 MB / 0.6492 GB, free: 148.2 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01827/1.848, allocations: 8.361 MB / 0.6573 GB, free: 140.8 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000925/1.849, allocations: 340.7 kB / 0.6577 GB, free: 140.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00106/1.85, allocations: 47.98 kB / 0.6577 GB, free: 140.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002936/1.853, allocations: 192.4 kB / 0.6579 GB, free: 140.3 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005786/1.854, allocations: 142 kB / 0.658 GB, free: 140.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002661/1.854, allocations: 69.47 kB / 0.6581 GB, free: 140.1 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.003726/1.858, allocations: 1.873 MB / 0.6599 GB, free: 138.3 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.52e-07/1.858, allocations: 0 / 0.6599 GB, free: 138.3 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006849/1.865, allocations: 1.128 MB / 0.661 GB, free: 137.1 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 6 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.w_a[1],body.w_a[2],body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (170): * Single equations (assignments): 161 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009589/1.866, allocations: 196 kB / 0.6612 GB, free: 136.9 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01606/1.882, allocations: 6.572 MB / 0.6676 GB, free: 130.4 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.198e-05/1.882, allocations: 3.188 kB / 0.6676 GB, free: 130.4 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006088/1.888, allocations: 2.528 MB / 0.6701 GB, free: 127.8 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002807/1.891, allocations: 347.7 kB / 0.6704 GB, free: 127.5 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02472/1.916, allocations: 11.98 MB / 0.6821 GB, free: 115.4 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006069/1.922, allocations: 3.248 MB / 0.6853 GB, free: 112.1 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00202/1.924, allocations: 263.4 kB / 0.6856 GB, free: 111.9 MB / 0.5105 GB Notification: Performance of SimCode: time 1.823e-06/1.924, allocations: 0 / 0.6856 GB, free: 111.9 MB / 0.5105 GB Notification: Performance of Templates: time 0.1773/2.101, allocations: 107.4 MB / 0.7904 GB, free: 4.457 MB / 0.5105 GB