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_3.2.1_cpp_ModelicaTest.MultiBody.Joints.Spherical") Notification: Performance of loadModel(ModelicaTest): time 1.934/1.934, allocations: 209.3 MB / 224.4 MB, free: 0.8438 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.365e-05/3.361e-05, allocations: 11.59 kB / 276.2 MB, free: 15.88 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3838/0.3839, allocations: 48.69 MB / 324.8 MB, free: 2.895 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.0313/0.4153, allocations: 20.4 MB / 345.2 MB, free: 5.156 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01658/0.4319, allocations: 5.495 MB / 350.7 MB, free: 1.59 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005332/0.4373, allocations: 99.97 kB / 350.8 MB, free: 1.574 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004367/0.4417, allocations: 1.102 MB / 351.9 MB, free: 1.188 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01251/0.4543, allocations: 3.176 MB / 355.1 MB, free: 14.9 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002437/0.4567, allocations: 445.6 kB / 355.5 MB, free: 14.62 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004655/0.4614, allocations: 1.536 MB / 357.1 MB, free: 13.66 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003835/0.4653, allocations: 1.798 MB / 358.9 MB, free: 12.52 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001793/0.4672, allocations: 0.6676 MB / 359.6 MB, free: 12.22 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00265/0.4699, allocations: 1.122 MB / 360.7 MB, free: 11.65 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00338/0.4733, allocations: 1.026 MB / 361.7 MB, free: 10.62 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001085/0.4744, allocations: 124 kB / 361.8 MB, free: 10.5 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00231/0.4768, allocations: 1.321 MB / 363.1 MB, free: 9.18 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001017/0.4778, allocations: 208 kB / 363.3 MB, free: 8.977 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007764/0.4856, allocations: 4.747 MB / 368.1 MB, free: 4.223 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.4856, allocations: 0 / 368.1 MB, free: 4.223 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.236e-06/0.4857, allocations: 0 / 368.1 MB, free: 4.223 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001841/0.4859, allocations: 0 / 368.1 MB, free: 4.223 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1479 * Number of variables: 1479 Notification: Performance of Generate backend data structure: time 0.01034/0.4962, allocations: 3.473 MB / 371.6 MB, free: 0.6836 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.944e-05/0.4963, allocations: 8.031 kB / 371.6 MB, free: 0.6758 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03926/0.5356, allocations: 6.413 MB / 378 MB, free: 10.25 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008039/0.5436, allocations: 2.501 MB / 380.5 MB, free: 7.695 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002544/0.5439, allocations: 176.4 kB / 380.7 MB, free: 7.52 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002113/0.5461, allocations: 315.5 kB / 381 MB, free: 7.211 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02856/0.5747, allocations: 10.78 MB / 391.7 MB, free: 11.96 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001233/0.5748, allocations: 27.81 kB / 391.8 MB, free: 11.94 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008258/0.5757, allocations: 111.8 kB / 391.9 MB, free: 11.83 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006991/0.5827, allocations: 2.455 MB / 394.3 MB, free: 9.367 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03541/0.6181, allocations: 10.23 MB / 404.6 MB, free: 15.13 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09286/0.7111, allocations: 35.7 MB / 440.3 MB, free: 10.57 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02049/0.7316, allocations: 5.607 MB / 445.9 MB, free: 4.73 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002753/0.7344, allocations: 1.876 MB / 447.8 MB, free: 2.523 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.125e-05/0.7346, allocations: 52.56 kB / 447.8 MB, free: 2.465 MB / 378.7 MB Notification: Performance of pre-optimization done (n=224): time 6.903e-06/0.7346, allocations: 0 / 447.8 MB, free: 2.465 MB / 378.7 MB Notification: Performance of matching and sorting (n=231): time 0.06497/0.7996, allocations: 15.53 MB / 463.3 MB, free: 2.703 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001845/0.8015, allocations: 1.535 MB / 464.9 MB, free: 1.02 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005803/0.8073, allocations: 2.699 MB / 467.6 MB, free: 14.31 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005993/0.808, allocations: 57.7 kB / 467.6 MB, free: 14.25 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002727/0.8107, allocations: 2.661 MB / 470.3 MB, free: 11.55 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001555/0.8123, allocations: 0.848 MB / 471.1 MB, free: 10.69 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006449/0.813, allocations: 108 kB / 471.2 MB, free: 10.58 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005015/0.8135, allocations: 0.5502 MB / 471.8 MB, free: 10.02 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007115/0.8206, allocations: 2.603 MB / 474.4 MB, free: 7.414 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01045/0.8311, allocations: 5.566 MB / 480 MB, free: 392 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2931/1.124, allocations: 3.785 MB / 483.7 MB, free: 121.1 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001309/1.124, allocations: 29.72 kB / 483.8 MB, free: 121.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.1369/1.261, allocations: 18.88 MB / 0.4909 GB, free: 117.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.118e-05/1.262, allocations: 46.75 kB / 0.4909 GB, free: 117.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.08305/1.345, allocations: 12.02 MB / 0.5027 GB, free: 110.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1044/1.449, allocations: 10.29 MB / 0.5127 GB, free: 100 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01102/1.46, allocations: 1.294 MB / 0.514 GB, free: 98.74 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05481/1.515, allocations: 17.28 MB / 0.5309 GB, free: 81.26 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006321/1.521, allocations: 435.5 kB / 0.5313 GB, free: 80.83 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001196/1.523, allocations: 313.2 kB / 0.5316 GB, free: 80.53 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 473 * Number of states: 0 () * Number of discrete variables: 21 (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.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 (650): * Single equations (assignments): 639 * 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.004857/1.528, allocations: 1.993 MB / 0.5335 GB, free: 78.57 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006802/1.528, allocations: 272.4 kB / 0.5338 GB, free: 78.45 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01385/1.542, allocations: 5.102 MB / 0.5388 GB, free: 73.32 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01254/1.555, allocations: 4.395 MB / 0.5431 GB, free: 68.91 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.584e-05/1.555, allocations: 4 kB / 0.5431 GB, free: 68.91 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.892e-05/1.555, allocations: 7.969 kB / 0.5431 GB, free: 68.9 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03256/1.587, allocations: 12.92 MB / 0.5557 GB, free: 55.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.818e-05/1.587, allocations: 8 kB / 0.5557 GB, free: 55.88 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004109/1.592, allocations: 459.2 kB / 0.5561 GB, free: 55.43 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00524/1.597, allocations: 0.9393 MB / 0.5571 GB, free: 54.48 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005486/1.597, allocations: 51.97 kB / 0.5571 GB, free: 54.43 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009674/1.607, allocations: 5.576 MB / 0.5625 GB, free: 48.62 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001185/1.608, allocations: 1.474 MB / 0.564 GB, free: 47.01 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01863/1.627, allocations: 8.36 MB / 0.5722 GB, free: 38.47 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008257/1.628, allocations: 337.7 kB / 0.5725 GB, free: 38.12 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001053/1.629, allocations: 50.41 kB / 0.5725 GB, free: 38.07 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003095/1.632, allocations: 199.7 kB / 0.5727 GB, free: 37.88 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006313/1.633, allocations: 140.9 kB / 0.5728 GB, free: 37.74 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002591/1.633, allocations: 75.03 kB / 0.5729 GB, free: 37.67 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003831/1.637, allocations: 1.869 MB / 0.5747 GB, free: 35.79 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.092e-06/1.637, allocations: 0 / 0.5747 GB, free: 35.79 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006204/1.643, allocations: 1.116 MB / 0.5758 GB, free: 34.68 MB / 410.7 MB 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.0009244/1.644, allocations: 199.3 kB / 0.576 GB, free: 34.48 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01656/1.661, allocations: 6.539 MB / 0.5824 GB, free: 27.93 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.14e-05/1.661, allocations: 4 kB / 0.5824 GB, free: 27.92 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006154/1.667, allocations: 2.525 MB / 0.5849 GB, free: 25.36 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002729/1.67, allocations: 344.8 kB / 0.5852 GB, free: 25.02 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02352/1.693, allocations: 11.97 MB / 0.5969 GB, free: 12.92 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005571/1.699, allocations: 3.248 MB / 0.6001 GB, free: 9.641 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001912/1.701, allocations: 255.4 kB / 0.6003 GB, free: 9.391 MB / 410.7 MB Notification: Performance of SimCode: time 1.573e-06/1.701, allocations: 3.938 kB / 0.6003 GB, free: 9.387 MB / 410.7 MB Notification: Performance of Templates: time 0.5708/2.272, allocations: 107.2 MB / 0.705 GB, free: 70.77 MB / 426.7 MB