Running command: translateModel(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotionScalarInit.angle_1|freeMotionScalarInit.angle_2|freeMotionScalarInit.angle_3|freeMotionScalarInit.angle_d_1|freeMotionScalarInit.angle_d_2|freeMotionScalarInit.angle_d_3|freeMotionScalarInit.r_rel_a_1|freeMotionScalarInit.r_rel_a_2|freeMotionScalarInit.r_rel_a_3|freeMotionScalarInit.v_rel_a_1|freeMotionScalarInit.v_rel_a_2|freeMotionScalarInit.v_rel_a_3",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit") Notification: Performance of loadModel(ModelicaTest): time 2.285/2.285, allocations: 235 MB / 247.6 MB, free: 14.39 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.262e-05/3.267e-05, allocations: 4 kB / 304.9 MB, free: 5.664 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3219/0.3219, allocations: 54.86 MB / 359.8 MB, free: 2.645 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1509/0.4728, allocations: 97.9 MB / 457.7 MB, free: 15.1 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002511/0.4731, allocations: 72.75 kB / 457.7 MB, free: 15.03 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5968/1.07, allocations: 90.61 MB / 0.5355 GB, free: 104.8 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.345e-06/1.07, allocations: 0 / 0.5355 GB, free: 104.8 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000199/1.07, allocations: 81.95 kB / 0.5356 GB, free: 104.8 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: 1696 * Number of variables: 1696 Notification: Performance of Generate backend data structure: time 0.01706/1.087, allocations: 4.267 MB / 0.5397 GB, free: 103 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/1.087, allocations: 8.344 kB / 0.5397 GB, free: 103 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01963/1.107, allocations: 3.557 MB / 0.5432 GB, free: 102.7 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0148/1.122, allocations: 4.669 MB / 0.5478 GB, free: 102.2 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004434/1.122, allocations: 329.2 kB / 0.5481 GB, free: 102.2 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002279/1.125, allocations: 438.1 kB / 0.5485 GB, free: 102.1 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02397/1.149, allocations: 10.9 MB / 0.5592 GB, free: 100.8 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001445/1.149, allocations: 34.67 kB / 0.5592 GB, free: 100.8 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000889/1.15, allocations: 198.1 kB / 0.5594 GB, free: 100.8 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001746/1.152, allocations: 1.225 MB / 0.5606 GB, free: 100.8 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02339/1.175, allocations: 10.4 MB / 0.5707 GB, free: 98.5 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05774/1.233, allocations: 37.33 MB / 0.6072 GB, free: 75.03 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008959/1.242, allocations: 4.339 MB / 0.6114 GB, free: 70.95 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00335/1.245, allocations: 2.136 MB / 0.6135 GB, free: 69 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00115/1.246, allocations: 1.319 MB / 0.6148 GB, free: 67.57 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.095e-05/1.246, allocations: 52.56 kB / 0.6148 GB, free: 67.5 MB / 458.7 MB Notification: Performance of pre-optimization done (n=244): time 7.408e-06/1.246, allocations: 0 / 0.6148 GB, free: 67.5 MB / 458.7 MB Notification: Performance of matching and sorting (n=265): time 0.04159/1.288, allocations: 11.16 MB / 0.6257 GB, free: 58.29 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.261e-05/1.288, allocations: 80.73 kB / 0.6258 GB, free: 58.2 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004628/1.293, allocations: 2.479 MB / 0.6282 GB, free: 56 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004167/1.293, allocations: 57.7 kB / 0.6283 GB, free: 55.93 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001753/1.295, allocations: 2.923 MB / 0.6311 GB, free: 53.31 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001089/1.296, allocations: 0.9742 MB / 0.6321 GB, free: 52.45 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004794/1.297, allocations: 115.6 kB / 0.6322 GB, free: 52.34 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003683/1.297, allocations: 0.562 MB / 0.6328 GB, free: 51.84 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004277/1.301, allocations: 2.282 MB / 0.635 GB, free: 49.77 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006242/1.307, allocations: 5.384 MB / 0.6402 GB, free: 43.02 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006107/1.314, allocations: 3.574 MB / 0.6437 GB, free: 39.45 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.905e-05/1.314, allocations: 32 kB / 0.6438 GB, free: 39.41 MB / 458.7 MB Notification: Performance of matching and sorting (n=772) (initialization): time 0.0187/1.332, allocations: 8.062 MB / 0.6516 GB, free: 31.33 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.555e-05/1.333, allocations: 57.67 kB / 0.6517 GB, free: 31.27 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001091/1.333, allocations: 112.9 kB / 0.6518 GB, free: 31.16 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004042/1.337, allocations: 1.059 MB / 0.6528 GB, free: 30.1 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005595/1.342, allocations: 1.33 MB / 0.6541 GB, free: 28.77 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002969/1.345, allocations: 2.47 MB / 0.6565 GB, free: 26.16 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005002/1.35, allocations: 315.7 kB / 0.6568 GB, free: 25.86 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00108/1.352, allocations: 336 kB / 0.6572 GB, free: 25.53 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 500 * 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],freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.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 (719): * Single equations (assignments): 710 * 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.001011/1.353, allocations: 0.5234 MB / 0.6577 GB, free: 25 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000561/1.353, allocations: 296.1 kB / 0.658 GB, free: 24.71 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01066/1.364, allocations: 5.012 MB / 0.6629 GB, free: 19.63 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.94e-05/1.364, allocations: 47.44 kB / 0.6629 GB, free: 19.59 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.404e-05/1.364, allocations: 7.188 kB / 0.6629 GB, free: 19.58 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.641e-05/1.364, allocations: 11.95 kB / 0.6629 GB, free: 19.57 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02506/1.389, allocations: 11.55 MB / 0.6742 GB, free: 7.902 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.404e-05/1.389, allocations: 8 kB / 0.6742 GB, free: 7.895 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002498/1.392, allocations: 427.3 kB / 0.6746 GB, free: 7.477 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003757/1.396, allocations: 0.8997 MB / 0.6755 GB, free: 6.566 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005082/1.396, allocations: 59.97 kB / 0.6755 GB, free: 6.508 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002648/1.399, allocations: 2.283 MB / 0.6778 GB, free: 4.094 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.024e-05/1.399, allocations: 11.75 kB / 0.6778 GB, free: 4.086 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0158/1.415, allocations: 8.091 MB / 0.6857 GB, free: 11.66 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009755/1.416, allocations: 333.3 kB / 0.686 GB, free: 11.31 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008113/1.416, allocations: 48 kB / 0.6861 GB, free: 11.26 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001955/1.418, allocations: 143.8 kB / 0.6862 GB, free: 11.12 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004805/1.419, allocations: 153.8 kB / 0.6863 GB, free: 10.97 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000282/1.419, allocations: 83.75 kB / 0.6864 GB, free: 10.89 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003786/1.423, allocations: 1.686 MB / 0.6881 GB, free: 9.195 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.08e-06/1.423, allocations: 0 / 0.6881 GB, free: 9.195 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006425/1.43, allocations: 1.008 MB / 0.689 GB, free: 8.188 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 12 (freeMotionScalarInit.r_rel_a_1,freeMotionScalarInit.r_rel_a_2,freeMotionScalarInit.r_rel_a_3,freeMotionScalarInit.v_rel_a_1,freeMotionScalarInit.v_rel_a_2,freeMotionScalarInit.v_rel_a_3,freeMotionScalarInit.angle_1,freeMotionScalarInit.angle_2,freeMotionScalarInit.angle_3,freeMotionScalarInit.angle_d_1,freeMotionScalarInit.angle_d_2,freeMotionScalarInit.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.0007795/1.43, allocations: 200.2 kB / 0.6892 GB, free: 7.988 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01371/1.444, allocations: 5.89 MB / 0.695 GB, free: 2.066 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.933e-06/1.444, allocations: 0 / 0.695 GB, free: 2.066 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2656/1.71, allocations: 2.54 MB / 0.6975 GB, free: 109.1 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002809/1.713, allocations: 386.6 kB / 0.6978 GB, free: 109.1 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02406/1.737, allocations: 9.799 MB / 0.7074 GB, free: 107.3 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007783/1.745, allocations: 3.598 MB / 0.7109 GB, free: 106.5 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00167/1.746, allocations: 286.9 kB / 0.7112 GB, free: 106.5 MB / 474.7 MB Notification: Performance of SimCode: time 1.972e-06/1.746, allocations: 0 / 0.7112 GB, free: 106.5 MB / 474.7 MB Notification: Performance of Templates: time 0.1416/1.888, allocations: 113.3 MB / 0.8219 GB, free: 38.51 MB / 474.7 MB