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.2_cpp_ModelicaTest.MultiBody.Joints.Spherical") Notification: Performance of loadModel(ModelicaTest): time 2.341/2.341, allocations: 234.9 MB / 250.1 MB, free: 9.93 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.809e-05/3.801e-05, allocations: 8 kB / 308 MB, free: 15.91 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3799/0.3799, allocations: 54.86 MB / 362.8 MB, free: 12.08 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.03211/0.4121, allocations: 20.41 MB / 383.3 MB, free: 9.395 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01594/0.4281, allocations: 5.519 MB / 388.8 MB, free: 3.852 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004607/0.4328, allocations: 99.75 kB / 388.9 MB, free: 3.754 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00407/0.4369, allocations: 1.089 MB / 390 MB, free: 2.66 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01199/0.449, allocations: 3.175 MB / 393.1 MB, free: 15.48 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002315/0.4513, allocations: 439.2 kB / 393.6 MB, free: 15.05 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004562/0.4559, allocations: 1.532 MB / 395.1 MB, free: 13.51 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00345/0.4594, allocations: 1.81 MB / 396.9 MB, free: 11.67 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001176/0.4607, allocations: 0.6701 MB / 397.6 MB, free: 11 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001937/0.4626, allocations: 1.114 MB / 398.7 MB, free: 9.879 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002687/0.4653, allocations: 1.018 MB / 399.7 MB, free: 8.859 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007368/0.4661, allocations: 124 kB / 399.8 MB, free: 8.738 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001717/0.4678, allocations: 1.329 MB / 401.2 MB, free: 7.406 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008201/0.4687, allocations: 208 kB / 401.4 MB, free: 7.203 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008007/0.4767, allocations: 4.744 MB / 406.1 MB, free: 2.449 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.4767, allocations: 0 / 406.1 MB, free: 2.449 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.236e-06/0.4768, allocations: 0 / 406.1 MB, free: 2.449 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002169/0.477, allocations: 0 / 406.1 MB, free: 2.449 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: 1479 * Number of variables: 1479 Notification: Performance of Generate backend data structure: time 0.01113/0.4881, allocations: 3.473 MB / 409.6 MB, free: 14.91 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.654e-05/0.4882, allocations: 8.031 kB / 409.6 MB, free: 14.9 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04071/0.5289, allocations: 6.406 MB / 416 MB, free: 8.48 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008431/0.5374, allocations: 2.509 MB / 418.5 MB, free: 5.922 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002696/0.5377, allocations: 176.4 kB / 418.7 MB, free: 5.746 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002204/0.54, allocations: 315.6 kB / 419 MB, free: 5.438 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02967/0.5697, allocations: 10.78 MB / 429.8 MB, free: 10.2 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000113/0.5698, allocations: 19.81 kB / 429.8 MB, free: 10.18 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006556/0.5705, allocations: 119.7 kB / 429.9 MB, free: 10.06 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007034/0.5775, allocations: 2.459 MB / 432.4 MB, free: 7.602 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03285/0.6104, allocations: 10.23 MB / 442.6 MB, free: 13.36 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1364/0.7469, allocations: 35.71 MB / 478.3 MB, free: 8.793 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02033/0.7673, allocations: 5.596 MB / 483.9 MB, free: 2.969 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002726/0.7701, allocations: 1.88 MB / 485.8 MB, free: 0.7578 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.536e-05/0.7702, allocations: 56.5 kB / 485.8 MB, free: 0.6953 MB / 410.7 MB Notification: Performance of pre-optimization done (n=224): time 6.963e-06/0.7702, allocations: 0 / 485.8 MB, free: 0.6953 MB / 410.7 MB Notification: Performance of matching and sorting (n=231): time 0.06374/0.834, allocations: 15.53 MB / 0.4896 GB, free: 0.9336 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.322/1.156, allocations: 1.522 MB / 0.4911 GB, free: 119.2 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006312/1.162, allocations: 2.703 MB / 0.4937 GB, free: 118.9 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005914/1.163, allocations: 51.95 kB / 0.4938 GB, free: 118.8 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00192/1.165, allocations: 2.673 MB / 0.4964 GB, free: 117.1 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001277/1.166, allocations: 0.8483 MB / 0.4972 GB, free: 116.5 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000481/1.167, allocations: 106.8 kB / 0.4973 GB, free: 116.4 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003422/1.167, allocations: 0.5467 MB / 0.4979 GB, free: 116 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006065/1.173, allocations: 2.605 MB / 0.5004 GB, free: 115.2 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007629/1.181, allocations: 5.57 MB / 0.5058 GB, free: 110.4 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008084/1.189, allocations: 3.798 MB / 0.5095 GB, free: 108.9 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.351e-05/1.189, allocations: 31.16 kB / 0.5096 GB, free: 108.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.1135/1.303, allocations: 18.88 MB / 0.528 GB, free: 93.96 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.74e-05/1.303, allocations: 53.56 kB / 0.5281 GB, free: 93.91 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0818/1.385, allocations: 12 MB / 0.5398 GB, free: 81.89 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.09099/1.476, allocations: 10.3 MB / 0.5498 GB, free: 71.57 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008106/1.484, allocations: 1.298 MB / 0.5511 GB, free: 70.27 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04681/1.531, allocations: 17.27 MB / 0.568 GB, free: 52.74 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00642/1.537, allocations: 447.1 kB / 0.5684 GB, free: 52.31 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001146/1.538, allocations: 320 kB / 0.5687 GB, free: 52 MB / 426.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.004946/1.543, allocations: 1.989 MB / 0.5706 GB, free: 50 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007141/1.544, allocations: 268.4 kB / 0.5709 GB, free: 49.73 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01405/1.558, allocations: 5.102 MB / 0.5759 GB, free: 44.6 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01284/1.571, allocations: 4.396 MB / 0.5802 GB, free: 40.19 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.45e-05/1.571, allocations: 7.172 kB / 0.5802 GB, free: 40.19 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.872e-05/1.571, allocations: 12.34 kB / 0.5802 GB, free: 40.18 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03319/1.604, allocations: 12.92 MB / 0.5928 GB, free: 27.12 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.267e-05/1.604, allocations: 12.03 kB / 0.5928 GB, free: 27.11 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004069/1.608, allocations: 463.2 kB / 0.5933 GB, free: 26.65 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005138/1.614, allocations: 0.9386 MB / 0.5942 GB, free: 25.7 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005595/1.614, allocations: 43.98 kB / 0.5942 GB, free: 25.66 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009704/1.624, allocations: 5.577 MB / 0.5997 GB, free: 19.81 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001233/1.625, allocations: 1.472 MB / 0.6011 GB, free: 18.2 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01906/1.644, allocations: 8.358 MB / 0.6093 GB, free: 9.543 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009603/1.645, allocations: 337.6 kB / 0.6096 GB, free: 9.191 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001237/1.647, allocations: 41.41 kB / 0.6096 GB, free: 9.152 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003283/1.65, allocations: 195.7 kB / 0.6098 GB, free: 8.961 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007331/1.651, allocations: 142.8 kB / 0.61 GB, free: 8.824 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002692/1.651, allocations: 67.97 kB / 0.61 GB, free: 8.758 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003844/1.655, allocations: 1.869 MB / 0.6118 GB, free: 6.883 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.91e-07/1.655, allocations: 0 / 0.6118 GB, free: 6.883 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006745/1.662, allocations: 1.118 MB / 0.6129 GB, free: 5.77 MB / 426.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.001073/1.663, allocations: 196.6 kB / 0.6131 GB, free: 5.578 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01725/1.68, allocations: 6.548 MB / 0.6195 GB, free: 15.01 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.245e-05/1.68, allocations: 0 / 0.6195 GB, free: 15.01 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007328/1.687, allocations: 2.534 MB / 0.622 GB, free: 12.43 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003065/1.69, allocations: 351.4 kB / 0.6223 GB, free: 12.09 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03014/1.721, allocations: 11.97 MB / 0.634 GB, free: 15.98 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007329/1.728, allocations: 3.251 MB / 0.6372 GB, free: 12.7 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002085/1.73, allocations: 259.4 kB / 0.6374 GB, free: 12.44 MB / 458.7 MB Notification: Performance of SimCode: time 1.383e-06/1.73, allocations: 0 / 0.6374 GB, free: 12.44 MB / 458.7 MB Notification: Performance of Templates: time 0.5028/2.233, allocations: 107.2 MB / 0.7421 GB, free: 87.02 MB / 474.7 MB