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.151/2.151, allocations: 235 MB / 247.6 MB, free: 14.39 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.788e-05/5.82e-05, allocations: 4 kB / 304.9 MB, free: 5.668 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3653/0.3654, allocations: 54.86 MB / 359.8 MB, free: 2.668 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1472/0.5127, allocations: 95.24 MB / 455 MB, free: 1.73 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002395/0.513, allocations: 72.75 kB / 455.1 MB, free: 1.66 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5755/1.089, allocations: 82.66 MB / 0.5251 GB, free: 107.7 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.479e-06/1.089, allocations: 1.125 kB / 0.5251 GB, free: 107.7 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001907/1.089, allocations: 70.33 kB / 0.5252 GB, free: 107.7 MB / 458.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.01648/1.105, allocations: 3.844 MB / 0.5289 GB, free: 107 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/1.105, allocations: 8.656 kB / 0.5289 GB, free: 107 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02954/1.135, allocations: 5.883 MB / 0.5347 GB, free: 106.8 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01643/1.151, allocations: 5.295 MB / 0.5399 GB, free: 106.3 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000403/1.152, allocations: 281.6 kB / 0.5401 GB, free: 106.3 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001984/1.154, allocations: 371.7 kB / 0.5405 GB, free: 106.3 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0262/1.18, allocations: 10.3 MB / 0.5505 GB, free: 104.8 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001597/1.18, allocations: 31.06 kB / 0.5506 GB, free: 104.8 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001188/1.181, allocations: 169.1 kB / 0.5507 GB, free: 104.8 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001812/1.183, allocations: 1.145 MB / 0.5519 GB, free: 104.8 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02355/1.207, allocations: 9.857 MB / 0.5615 GB, free: 104.1 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05833/1.265, allocations: 37.33 MB / 0.5979 GB, free: 81.1 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01402/1.279, allocations: 5.558 MB / 0.6034 GB, free: 77.8 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003615/1.283, allocations: 2.302 MB / 0.6056 GB, free: 75.7 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001664/1.285, allocations: 1.876 MB / 0.6074 GB, free: 73.61 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.245e-05/1.285, allocations: 52.56 kB / 0.6075 GB, free: 73.55 MB / 458.7 MB Notification: Performance of pre-optimization done (n=224): time 8.021e-06/1.285, allocations: 0 / 0.6075 GB, free: 73.55 MB / 458.7 MB Notification: Performance of matching and sorting (n=231): time 0.03654/1.321, allocations: 12.4 MB / 0.6196 GB, free: 63.28 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001148/1.322, allocations: 1.529 MB / 0.6211 GB, free: 61.66 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004243/1.327, allocations: 2.464 MB / 0.6235 GB, free: 59.47 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004578/1.327, allocations: 56.91 kB / 0.6235 GB, free: 59.41 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00163/1.329, allocations: 2.663 MB / 0.6261 GB, free: 57.01 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000987/1.33, allocations: 0.8515 MB / 0.627 GB, free: 56.26 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004612/1.33, allocations: 104 kB / 0.6271 GB, free: 56.16 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003323/1.331, allocations: 0.5509 MB / 0.6276 GB, free: 55.66 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004594/1.335, allocations: 2.557 MB / 0.6301 GB, free: 53.36 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006341/1.342, allocations: 5.493 MB / 0.6355 GB, free: 46.65 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006394/1.348, allocations: 3.767 MB / 0.6392 GB, free: 42.88 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.773e-05/1.348, allocations: 32 kB / 0.6392 GB, free: 42.85 MB / 458.7 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.07083/1.419, allocations: 18.51 MB / 0.6573 GB, free: 24.3 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.281e-05/1.419, allocations: 48 kB / 0.6573 GB, free: 24.26 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04865/1.468, allocations: 11.96 MB / 0.669 GB, free: 12.27 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0525/1.52, allocations: 10.3 MB / 0.6791 GB, free: 1.941 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005244/1.526, allocations: 1.244 MB / 0.6803 GB, free: 0.6953 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0998/1.626, allocations: 15.88 MB / 0.6958 GB, free: 0.5586 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00554/1.631, allocations: 435.5 kB / 0.6962 GB, free: 136 kB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.2628/1.894, allocations: 311.6 kB / 0.6965 GB, free: 112 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 474 * 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 (649): * Single equations (assignments): 638 * 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.001358/1.895, allocations: 498.2 kB / 0.697 GB, free: 111.9 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006121/1.896, allocations: 272.4 kB / 0.6972 GB, free: 111.9 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01285/1.909, allocations: 5.071 MB / 0.7022 GB, free: 111.7 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01065/1.92, allocations: 4.355 MB / 0.7064 GB, free: 111.6 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.84e-05/1.92, allocations: 7.453 kB / 0.7064 GB, free: 111.6 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-05/1.92, allocations: 8.156 kB / 0.7064 GB, free: 111.6 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02919/1.949, allocations: 12.91 MB / 0.719 GB, free: 110.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.589e-05/1.949, allocations: 18.59 kB / 0.7191 GB, free: 110.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002346/1.951, allocations: 406.7 kB / 0.7194 GB, free: 110.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003681/1.955, allocations: 0.9368 MB / 0.7204 GB, free: 110.8 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004758/1.956, allocations: 52.77 kB / 0.7204 GB, free: 110.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007365/1.963, allocations: 5.421 MB / 0.7257 GB, free: 108.2 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0009818/1.964, allocations: 1.456 MB / 0.7271 GB, free: 106.8 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01497/1.979, allocations: 8.28 MB / 0.7352 GB, free: 103.4 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008509/1.98, allocations: 328.7 kB / 0.7355 GB, free: 103.2 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006638/1.981, allocations: 49.59 kB / 0.7356 GB, free: 103.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002137/1.983, allocations: 197.2 kB / 0.7358 GB, free: 103.2 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000497/1.983, allocations: 149.5 kB / 0.7359 GB, free: 103.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002507/1.983, allocations: 69.64 kB / 0.736 GB, free: 103.1 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003004/1.987, allocations: 1.68 MB / 0.7376 GB, free: 102.5 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.329e-06/1.987, allocations: 0 / 0.7376 GB, free: 102.5 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006285/1.993, allocations: 1.103 MB / 0.7387 GB, free: 102.4 MB / 474.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.0006637/1.994, allocations: 175.6 kB / 0.7389 GB, free: 102.3 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01295/2.007, allocations: 6.307 MB / 0.745 GB, free: 100.4 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.624e-06/2.007, allocations: 0 / 0.745 GB, free: 100.4 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004677/2.011, allocations: 2.478 MB / 0.7474 GB, free: 99.41 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002282/2.014, allocations: 341.9 kB / 0.7478 GB, free: 99.27 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01939/2.033, allocations: 8.974 MB / 0.7565 GB, free: 95.97 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004835/2.038, allocations: 3.246 MB / 0.7597 GB, free: 94.74 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001485/2.039, allocations: 255.8 kB / 0.7599 GB, free: 94.73 MB / 474.7 MB Notification: Performance of SimCode: time 2.094e-06/2.039, allocations: 3.531 kB / 0.7599 GB, free: 94.73 MB / 474.7 MB Notification: Performance of Templates: time 0.1291/2.169, allocations: 105.7 MB / 0.8632 GB, free: 15.98 MB / 490.7 MB