Running command: translateModel(ModelicaTest.MultiBody.Joints.FreeMotion2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2") Notification: Performance of loadModel(ModelicaTest): time 2.402/2.402, allocations: 270 MB / 282.7 MB, free: 1.785 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.965e-05/2.976e-05, allocations: 4 kB / 347 MB, free: 3.125 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3286/0.3286, allocations: 61.89 MB / 408.9 MB, free: 10.72 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1673/0.496, allocations: 110.3 MB / 0.507 GB, free: 12.29 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002192/0.4963, allocations: 71.97 kB / 0.507 GB, free: 12.22 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6641/1.16, allocations: 118.2 MB / 0.6225 GB, free: 17.41 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.493e-06/1.16, allocations: 4 kB / 0.6225 GB, free: 17.41 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003534/1.161, allocations: 127.9 kB / 0.6226 GB, free: 17.28 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1982 * Number of variables: 1982 Notification: Performance of Generate backend data structure: time 0.01792/1.179, allocations: 5.839 MB / 0.6283 GB, free: 11.37 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/1.179, allocations: 8.031 kB / 0.6283 GB, free: 11.36 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03293/1.212, allocations: 6.973 MB / 0.6351 GB, free: 4.371 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02147/1.233, allocations: 7.443 MB / 0.6424 GB, free: 12.84 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006287/1.234, allocations: 427.3 kB / 0.6428 GB, free: 12.43 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002451/1.236, allocations: 0.5699 MB / 0.6434 GB, free: 11.86 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03394/1.27, allocations: 13.51 MB / 0.6566 GB, free: 13.17 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000331/1.271, allocations: 87.23 kB / 0.6566 GB, free: 13.08 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001361/1.272, allocations: 275.8 kB / 0.6569 GB, free: 12.81 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002285/1.274, allocations: 1.279 MB / 0.6582 GB, free: 11.54 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03009/1.305, allocations: 11.05 MB / 0.669 GB, free: 484 kB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4284/1.733, allocations: 61.27 MB / 0.7288 GB, free: 72.12 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01855/1.752, allocations: 5.584 MB / 0.7342 GB, free: 71.45 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004928/1.756, allocations: 3.236 MB / 0.7374 GB, free: 71.41 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007546/1.757, allocations: 0.6812 MB / 0.7381 GB, free: 70.84 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.297e-05/1.757, allocations: 64.56 kB / 0.7381 GB, free: 70.8 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=245): time 7.54e-06/1.757, allocations: 2.156 kB / 0.7381 GB, free: 70.8 MB / 0.5105 GB Notification: Performance of matching and sorting (n=311): time 0.1468/1.904, allocations: 28.73 MB / 0.7662 GB, free: 67.06 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.912e-05/1.904, allocations: 271.7 kB / 0.7664 GB, free: 66.78 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00898/1.913, allocations: 4.547 MB / 0.7709 GB, free: 66.36 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006304/1.914, allocations: 79.3 kB / 0.771 GB, free: 66.33 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002594/1.917, allocations: 3.797 MB / 0.7747 GB, free: 64.48 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.00138/1.918, allocations: 1.155 MB / 0.7758 GB, free: 63.8 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006702/1.919, allocations: 151.3 kB / 0.7759 GB, free: 63.8 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004445/1.919, allocations: 0.6318 MB / 0.7766 GB, free: 63.47 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006471/1.926, allocations: 3.207 MB / 0.7797 GB, free: 63.14 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008647/1.934, allocations: 7.325 MB / 0.7868 GB, free: 56.45 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009139/1.943, allocations: 4.825 MB / 0.7916 GB, free: 54.91 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001097/1.944, allocations: 44.44 kB / 0.7916 GB, free: 54.91 MB / 0.5105 GB Notification: Performance of matching and sorting (n=985) (initialization): time 0.02858/1.972, allocations: 11.69 MB / 0.803 GB, free: 51.65 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001227/1.972, allocations: 67.34 kB / 0.8031 GB, free: 51.65 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001702/1.973, allocations: 145 kB / 0.8032 GB, free: 51.65 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007302/1.98, allocations: 2.134 MB / 0.8053 GB, free: 51.17 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007999/1.988, allocations: 1.718 MB / 0.807 GB, free: 49.77 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02325/2.011, allocations: 14.33 MB / 0.821 GB, free: 36.96 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00771/2.019, allocations: 451.9 kB / 0.8214 GB, free: 36.59 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001565/2.021, allocations: 445 kB / 0.8218 GB, free: 36.18 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 663 * Number of states: 0 () * Number of discrete variables: 44 (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.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,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.groundColor[3],world.groundColor[2],world.groundColor[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 (909): * Single equations (assignments): 904 * 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.00151/2.022, allocations: 0.6632 MB / 0.8225 GB, free: 35.51 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00111/2.023, allocations: 497 kB / 0.8229 GB, free: 35.02 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0149/2.038, allocations: 6.906 MB / 0.8297 GB, free: 29.39 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.877e-05/2.038, allocations: 36 kB / 0.8297 GB, free: 29.35 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.55e-05/2.038, allocations: 8 kB / 0.8297 GB, free: 29.34 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.078e-05/2.038, allocations: 18.53 kB / 0.8298 GB, free: 29.34 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03402/2.072, allocations: 15.74 MB / 0.8451 GB, free: 16.51 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.774e-05/2.072, allocations: 8 kB / 0.8451 GB, free: 16.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003049/2.076, allocations: 498.2 kB / 0.8456 GB, free: 16.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005979/2.082, allocations: 1.872 MB / 0.8474 GB, free: 14.75 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006254/2.082, allocations: 63.84 kB / 0.8475 GB, free: 14.69 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02056/2.103, allocations: 12.82 MB / 0.86 GB, free: 3.395 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.722e-06/2.103, allocations: 8 kB / 0.86 GB, free: 3.387 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02541/2.128, allocations: 11.97 MB / 0.8717 GB, free: 8.848 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0018/2.13, allocations: 0.5391 MB / 0.8722 GB, free: 8.305 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001494/2.132, allocations: 59.7 kB / 0.8723 GB, free: 8.25 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003838/2.135, allocations: 201.6 kB / 0.8725 GB, free: 8.121 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009845/2.137, allocations: 216.3 kB / 0.8727 GB, free: 7.98 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003859/2.137, allocations: 87.86 kB / 0.8728 GB, free: 7.898 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.007852/2.145, allocations: 3.212 MB / 0.8759 GB, free: 5.07 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.382e-06/2.145, allocations: 0 / 0.8759 GB, free: 5.07 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.009008/2.154, allocations: 1.47 MB / 0.8774 GB, free: 3.613 MB / 0.5261 GB 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 (249): * Single equations (assignments): 244 * 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.0008489/2.155, allocations: 215.2 kB / 0.8776 GB, free: 3.402 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01739/2.172, allocations: 7.802 MB / 0.8852 GB, free: 11.86 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.09e-05/2.172, allocations: 0 / 0.8852 GB, free: 11.86 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01001/2.182, allocations: 3.768 MB / 0.8889 GB, free: 8.082 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00435/2.187, allocations: 0.6322 MB / 0.8895 GB, free: 7.473 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03201/2.219, allocations: 12.62 MB / 0.9018 GB, free: 10.79 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01016/2.229, allocations: 4.449 MB / 0.9061 GB, free: 6.32 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002196/2.231, allocations: 399.3 kB / 0.9065 GB, free: 5.93 MB / 0.5573 GB Notification: Performance of SimCode: time 1.865e-06/2.231, allocations: 0 / 0.9065 GB, free: 5.93 MB / 0.5573 GB Notification: Performance of Templates: time 0.5002/2.731, allocations: 127.4 MB / 1.031 GB, free: 116 MB / 0.573 GB