Running command: translateModel(ModelicaTest.MultiBody.Joints.FreeMotion2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.r_rel_a.1.|freeMotion.v_rel_a.1.|prismatic1.s|prismatic1.v|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b|universal1.phi_a|universal1.phi_b|universal1.w_a|universal1.w_b",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2") Notification: Performance of loadModel(ModelicaTest): time 2.135/2.135, allocations: 235 MB / 247.6 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.398e-05/3.413e-05, allocations: 0 / 304.9 MB, free: 5.664 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4062/0.4063, allocations: 54.86 MB / 359.8 MB, free: 2.258 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1557/0.5621, allocations: 102.8 MB / 462.6 MB, free: 10.02 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002387/0.5624, allocations: 71.97 kB / 462.6 MB, free: 9.953 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6805/1.243, allocations: 118.4 MB / 0.5675 GB, free: 101.6 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.244e-06/1.243, allocations: 0 / 0.5675 GB, free: 101.6 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003678/1.243, allocations: 119.4 kB / 0.5676 GB, free: 101.6 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: 2027 * Number of variables: 2027 Notification: Performance of Generate backend data structure: time 0.01905/1.262, allocations: 5.943 MB / 0.5734 GB, free: 99.23 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.383e-05/1.262, allocations: 10.53 kB / 0.5734 GB, free: 99.23 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03539/1.298, allocations: 7.005 MB / 0.5802 GB, free: 98.25 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02281/1.321, allocations: 7.796 MB / 0.5878 GB, free: 95.45 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005028/1.321, allocations: 443.8 kB / 0.5883 GB, free: 95.28 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002581/1.324, allocations: 0.5813 MB / 0.5888 GB, free: 95.1 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03464/1.359, allocations: 13.75 MB / 0.6023 GB, free: 84.71 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003908/1.359, allocations: 87.23 kB / 0.6023 GB, free: 84.62 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002182/1.361, allocations: 285.9 kB / 0.6026 GB, free: 84.38 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0021/1.363, allocations: 1.312 MB / 0.6039 GB, free: 83.07 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02707/1.39, allocations: 11.3 MB / 0.6149 GB, free: 71.75 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07523/1.466, allocations: 62.06 MB / 0.6755 GB, free: 8.141 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01752/1.483, allocations: 5.691 MB / 0.6811 GB, free: 2.312 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005347/1.489, allocations: 3.282 MB / 0.6843 GB, free: 15.03 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001071/1.49, allocations: 0.6969 MB / 0.685 GB, free: 14.24 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.415e-05/1.49, allocations: 72.39 kB / 0.6851 GB, free: 14.16 MB / 474.7 MB Notification: Performance of pre-optimization done (n=254): time 7.826e-06/1.49, allocations: 0 / 0.6851 GB, free: 14.16 MB / 474.7 MB Notification: Performance of matching and sorting (n=320): time 0.3865/1.876, allocations: 29.15 MB / 0.7135 GB, free: 104.8 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.909e-05/1.877, allocations: 263.8 kB / 0.7138 GB, free: 104.5 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01198/1.888, allocations: 4.625 MB / 0.7183 GB, free: 104.1 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000695/1.889, allocations: 76.23 kB / 0.7184 GB, free: 104 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003114/1.892, allocations: 3.869 MB / 0.7221 GB, free: 101.9 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001621/1.894, allocations: 1.192 MB / 0.7233 GB, free: 101.2 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008155/1.895, allocations: 151.8 kB / 0.7234 GB, free: 101.2 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005253/1.895, allocations: 0.6367 MB / 0.7241 GB, free: 100.9 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006865/1.902, allocations: 3.255 MB / 0.7272 GB, free: 100.1 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009282/1.912, allocations: 7.433 MB / 0.7345 GB, free: 93.3 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00935/1.921, allocations: 4.916 MB / 0.7393 GB, free: 91.74 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001347/1.921, allocations: 44.61 kB / 0.7393 GB, free: 91.73 MB / 474.7 MB Notification: Performance of matching and sorting (n=1004) (initialization): time 0.02901/1.95, allocations: 11.85 MB / 0.7509 GB, free: 87.91 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001212/1.95, allocations: 66.75 kB / 0.751 GB, free: 87.91 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001636/1.951, allocations: 149.7 kB / 0.7511 GB, free: 87.91 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007289/1.958, allocations: 2.13 MB / 0.7532 GB, free: 87.45 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008306/1.966, allocations: 1.754 MB / 0.7549 GB, free: 87.25 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02362/1.99, allocations: 14.33 MB / 0.7689 GB, free: 79.73 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008621/1.999, allocations: 452 kB / 0.7693 GB, free: 79.59 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001727/2, allocations: 456.2 kB / 0.7698 GB, free: 79.52 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 673 * Number of states: 0 () * Number of discrete variables: 39 (universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (928): * Single equations (assignments): 923 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 24,(3,100.0%) 24} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002112/2.002, allocations: 0.6653 MB / 0.7704 GB, free: 78.97 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00139/2.004, allocations: 0.5036 MB / 0.7709 GB, free: 78.7 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0173/2.021, allocations: 7.016 MB / 0.7778 GB, free: 76.05 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.057e-05/2.021, allocations: 35.38 kB / 0.7778 GB, free: 76.05 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.127e-05/2.021, allocations: 12.62 kB / 0.7778 GB, free: 76.05 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.789e-05/2.021, allocations: 15.47 kB / 0.7778 GB, free: 76.05 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03838/2.06, allocations: 15.99 MB / 0.7934 GB, free: 65.46 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.112e-05/2.06, allocations: 4.75 kB / 0.7935 GB, free: 65.46 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003436/2.063, allocations: 0.5045 MB / 0.7939 GB, free: 65.04 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006127/2.07, allocations: 1.888 MB / 0.7958 GB, free: 63.66 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006712/2.07, allocations: 59.42 kB / 0.7958 GB, free: 63.61 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02081/2.091, allocations: 12.81 MB / 0.8084 GB, free: 52.27 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.033e-05/2.091, allocations: 7.938 kB / 0.8084 GB, free: 52.27 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0215/2.113, allocations: 12.08 MB / 0.8202 GB, free: 41.34 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00348/2.116, allocations: 1.054 MB / 0.8212 GB, free: 40.35 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001718/2.118, allocations: 59.86 kB / 0.8212 GB, free: 40.3 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004191/2.122, allocations: 218.5 kB / 0.8215 GB, free: 40.16 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001002/2.123, allocations: 205.3 kB / 0.8216 GB, free: 40.02 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004352/2.124, allocations: 88.11 kB / 0.8217 GB, free: 39.94 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.007452/2.131, allocations: 3.266 MB / 0.8249 GB, free: 37.07 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.276e-06/2.131, allocations: 0.5625 kB / 0.8249 GB, free: 37.07 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009148/2.14, allocations: 1.49 MB / 0.8264 GB, free: 35.58 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 12 (freeMotion.r_rel_a[1],freeMotion.v_rel_a[1],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,prismatic1.s,prismatic1.v,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (259): * Single equations (assignments): 254 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,46.9%) 17,(7,46.9%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009326/2.141, allocations: 210.7 kB / 0.8266 GB, free: 35.38 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01491/2.156, allocations: 7.929 MB / 0.8343 GB, free: 28.15 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.009e-05/2.156, allocations: 1.5 kB / 0.8343 GB, free: 28.15 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00891/2.165, allocations: 3.826 MB / 0.8381 GB, free: 24.78 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00461/2.17, allocations: 0.6233 MB / 0.8387 GB, free: 24.18 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02957/2.199, allocations: 12.87 MB / 0.8512 GB, free: 11.25 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009674/2.209, allocations: 4.523 MB / 0.8557 GB, free: 6.711 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002294/2.211, allocations: 411.3 kB / 0.856 GB, free: 6.309 MB / 474.7 MB Notification: Performance of SimCode: time 1.863e-06/2.212, allocations: 0 / 0.856 GB, free: 6.309 MB / 474.7 MB Notification: Performance of Templates: time 0.4841/2.696, allocations: 129.7 MB / 0.9827 GB, free: 57.05 MB / 490.7 MB