Running command: translateModel(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotionScalarInit1.r_rel_a_1|freeMotionScalarInit1.r_rel_a_2|freeMotionScalarInit1.r_rel_a_3|freeMotionScalarInit1.v_rel_a_1|freeMotionScalarInit1.v_rel_a_2|freeMotionScalarInit1.v_rel_a_3|freeMotionScalarInit2.angle_1|freeMotionScalarInit2.angle_2|freeMotionScalarInit2.angle_3|freeMotionScalarInit2.angle_d_1|freeMotionScalarInit2.angle_d_2|freeMotionScalarInit2.angle_d_3",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5") Notification: Performance of loadModel(ModelicaTest): time 2.044/2.044, allocations: 209.3 MB / 224.4 MB, free: 0.5156 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.388e-05/3.387e-05, allocations: 4 kB / 276.1 MB, free: 15.87 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3616/0.3616, allocations: 48.71 MB / 324.9 MB, free: 2.895 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5): time 0.05861/0.4203, allocations: 36.65 MB / 361.5 MB, free: 9.703 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02855/0.4489, allocations: 8.551 MB / 370 MB, free: 2.289 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01091/0.4599, allocations: 203.5 kB / 370.2 MB, free: 2.09 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007896/0.4678, allocations: 1.972 MB / 372.2 MB, free: 112 kB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02197/0.4898, allocations: 5.388 MB / 377.6 MB, free: 10.71 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003985/0.4938, allocations: 495.2 kB / 378.1 MB, free: 10.22 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.00552/0.4994, allocations: 1.586 MB / 379.7 MB, free: 8.637 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007857/0.5073, allocations: 3.668 MB / 383.3 MB, free: 4.938 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001831/0.5092, allocations: 0.7597 MB / 384.1 MB, free: 4.176 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002737/0.512, allocations: 1.251 MB / 385.4 MB, free: 2.922 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003046/0.5151, allocations: 0.8309 MB / 386.2 MB, free: 2.09 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001064/0.5162, allocations: 128 kB / 386.3 MB, free: 1.965 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00241/0.5186, allocations: 1.554 MB / 387.9 MB, free: 416 kB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001068/0.5197, allocations: 252 kB / 388.1 MB, free: 164 kB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01015/0.5299, allocations: 6.06 MB / 394.2 MB, free: 10.09 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.53, allocations: 0 / 394.2 MB, free: 10.09 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.53, allocations: 0 / 394.2 MB, free: 10.09 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002533/0.5302, allocations: 0 / 394.2 MB, free: 10.09 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: 1784 * Number of variables: 1784 Notification: Performance of Generate backend data structure: time 0.01566/0.5459, allocations: 4.384 MB / 398.6 MB, free: 5.637 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.38e-05/0.546, allocations: 12.03 kB / 398.6 MB, free: 5.625 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02397/0.57, allocations: 3.827 MB / 402.4 MB, free: 1.785 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007651/0.5777, allocations: 2.477 MB / 404.9 MB, free: 15.26 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000375/0.5781, allocations: 254.3 kB / 405.1 MB, free: 15.01 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001942/0.5801, allocations: 327.7 kB / 405.4 MB, free: 14.69 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03172/0.6118, allocations: 11.91 MB / 417.3 MB, free: 2.336 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001655/0.612, allocations: 31.72 kB / 417.4 MB, free: 2.305 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001317/0.6134, allocations: 147.8 kB / 417.5 MB, free: 2.16 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007768/0.6212, allocations: 2.652 MB / 420.2 MB, free: 15.5 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03437/0.6556, allocations: 11.01 MB / 431.2 MB, free: 4.477 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08804/0.7437, allocations: 37.55 MB / 468.7 MB, free: 14.08 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01426/0.758, allocations: 4.405 MB / 473.1 MB, free: 9.441 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002017/0.7601, allocations: 1.319 MB / 474.5 MB, free: 7.902 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.324e-05/0.7602, allocations: 56.56 kB / 474.5 MB, free: 7.84 MB / 410.7 MB Notification: Performance of pre-optimization done (n=244): time 7.083e-06/0.7602, allocations: 0 / 474.5 MB, free: 7.84 MB / 410.7 MB Notification: Performance of matching and sorting (n=265): time 0.3694/1.13, allocations: 14.43 MB / 488.9 MB, free: 124.5 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.786e-05/1.13, allocations: 73.81 kB / 489 MB, free: 124.4 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008762/1.139, allocations: 2.742 MB / 491.8 MB, free: 123.4 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005498/1.139, allocations: 64.86 kB / 491.8 MB, free: 123.3 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002948/1.142, allocations: 3.085 MB / 494.9 MB, free: 120.9 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001675/1.144, allocations: 0.9837 MB / 495.9 MB, free: 120.2 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000616/1.144, allocations: 113.9 kB / 496 MB, free: 120.1 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005753/1.145, allocations: 0.5665 MB / 496.6 MB, free: 119.7 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006864/1.152, allocations: 2.376 MB / 498.9 MB, free: 118.9 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009282/1.161, allocations: 5.62 MB / 0.4927 GB, free: 113.8 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009387/1.171, allocations: 3.657 MB / 0.4963 GB, free: 112.4 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002/1.171, allocations: 36.72 kB / 0.4963 GB, free: 112.4 MB / 410.7 MB Notification: Performance of matching and sorting (n=794) (initialization): time 0.02607/1.197, allocations: 8.652 MB / 0.5048 GB, free: 109.3 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.421e-05/1.197, allocations: 54.66 kB / 0.5048 GB, free: 109.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001759/1.197, allocations: 112.1 kB / 0.505 GB, free: 109.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00648/1.204, allocations: 1.064 MB / 0.506 GB, free: 109.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008493/1.212, allocations: 1.373 MB / 0.5073 GB, free: 109.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003971/1.216, allocations: 2.496 MB / 0.5098 GB, free: 107.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006023/1.223, allocations: 334.2 kB / 0.5101 GB, free: 106.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001246/1.224, allocations: 345.2 kB / 0.5104 GB, free: 106.6 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 520 * Number of states: 0 () * Number of discrete variables: 24 (freeMotionScalarInit2.arrowColor[3],freeMotionScalarInit2.arrowColor[2],freeMotionScalarInit2.arrowColor[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],freeMotionScalarInit1.arrowColor[3],freeMotionScalarInit1.arrowColor[2],freeMotionScalarInit1.arrowColor[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 (741): * Single equations (assignments): 732 * 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): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005975/1.23, allocations: 2.325 MB / 0.5127 GB, free: 104.6 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008647/1.231, allocations: 296.2 kB / 0.513 GB, free: 104.3 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01578/1.246, allocations: 5.083 MB / 0.5179 GB, free: 99.12 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001056/1.247, allocations: 47.98 kB / 0.518 GB, free: 99.08 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.432e-05/1.247, allocations: 0.875 kB / 0.518 GB, free: 99.08 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.983e-05/1.247, allocations: 7.969 kB / 0.518 GB, free: 99.07 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03358/1.28, allocations: 11.77 MB / 0.5295 GB, free: 87.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.51e-05/1.28, allocations: 8.875 kB / 0.5295 GB, free: 87.19 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003801/1.284, allocations: 435.3 kB / 0.5299 GB, free: 86.77 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006003/1.29, allocations: 0.9047 MB / 0.5308 GB, free: 85.85 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000563/1.291, allocations: 59.19 kB / 0.5308 GB, free: 85.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00345/1.294, allocations: 2.305 MB / 0.5331 GB, free: 83.36 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.458e-06/1.294, allocations: 11.94 kB / 0.5331 GB, free: 83.35 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01952/1.314, allocations: 8.192 MB / 0.5411 GB, free: 74.72 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001007/1.315, allocations: 353.1 kB / 0.5414 GB, free: 74.35 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001086/1.316, allocations: 49.39 kB / 0.5415 GB, free: 74.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002654/1.319, allocations: 140.5 kB / 0.5416 GB, free: 74.17 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005724/1.319, allocations: 161.7 kB / 0.5418 GB, free: 74.01 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002617/1.32, allocations: 76.77 kB / 0.5419 GB, free: 73.94 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003912/1.324, allocations: 1.882 MB / 0.5437 GB, free: 72.05 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.91e-07/1.324, allocations: 3.938 kB / 0.5437 GB, free: 72.05 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00649/1.33, allocations: 1.056 MB / 0.5447 GB, free: 71 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 12 (freeMotionScalarInit1.r_rel_a_1,freeMotionScalarInit1.r_rel_a_2,freeMotionScalarInit1.r_rel_a_3,freeMotionScalarInit1.v_rel_a_1,freeMotionScalarInit1.v_rel_a_2,freeMotionScalarInit1.v_rel_a_3,freeMotionScalarInit2.angle_1,freeMotionScalarInit2.angle_2,freeMotionScalarInit2.angle_3,freeMotionScalarInit2.angle_d_1,freeMotionScalarInit2.angle_d_2,freeMotionScalarInit2.angle_d_3) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (216): * Single equations (assignments): 207 * 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): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009894/1.331, allocations: 207.1 kB / 0.5449 GB, free: 70.8 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01531/1.346, allocations: 6.22 MB / 0.551 GB, free: 64.55 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.377e-05/1.347, allocations: 4 kB / 0.551 GB, free: 64.55 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00746/1.354, allocations: 2.597 MB / 0.5535 GB, free: 61.89 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003951/1.358, allocations: 464.8 kB / 0.554 GB, free: 61.45 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02893/1.387, allocations: 14 MB / 0.5677 GB, free: 47.32 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006829/1.394, allocations: 3.756 MB / 0.5713 GB, free: 43.54 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001912/1.396, allocations: 299.4 kB / 0.5716 GB, free: 43.24 MB / 410.7 MB Notification: Performance of SimCode: time 1.884e-06/1.396, allocations: 0 / 0.5716 GB, free: 43.24 MB / 410.7 MB Notification: Performance of Templates: time 0.5287/1.925, allocations: 120.5 MB / 0.6893 GB, free: 85.48 MB / 426.7 MB