Running command: translateModel(ModelicaTest.MultiBody.Joints.FreeMotion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.Q.1.|freeMotion.Q.2.|freeMotion.Q.3.|freeMotion.Q.4.|freeMotion.r_rel_a.1.|freeMotion.r_rel_a.2.|freeMotion.r_rel_a.3.|freeMotion.v_rel_a.1.|freeMotion.v_rel_a.2.|freeMotion.v_rel_a.3.|freeMotion.w_rel_b.1.|freeMotion.w_rel_b.2.|freeMotion.w_rel_b.3.",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion") Notification: Performance of loadModel(ModelicaTest): time 2.484/2.484, allocations: 269 MB / 284.1 MB, free: 3.562 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.033e-05/4.035e-05, allocations: 4 kB / 349 MB, free: 10.75 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1344/0.1345, allocations: 61.89 MB / 410.9 MB, free: 12.85 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion): time 0.4156/0.5501, allocations: 24.12 MB / 435 MB, free: 1.734 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0193/0.5695, allocations: 6.143 MB / 441.2 MB, free: 13.76 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006868/0.5764, allocations: 116.9 kB / 441.3 MB, free: 13.74 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005353/0.5818, allocations: 1.285 MB / 442.6 MB, free: 13.34 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01635/0.5982, allocations: 3.739 MB / 446.3 MB, free: 11.64 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002631/0.6009, allocations: 377.8 kB / 446.7 MB, free: 11.52 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.005118/0.6061, allocations: 1.552 MB / 448.2 MB, free: 10.8 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004194/0.6103, allocations: 1.817 MB / 450.1 MB, free: 9.934 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001967/0.6124, allocations: 0.6829 MB / 450.7 MB, free: 9.625 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002876/0.6153, allocations: 1.118 MB / 451.9 MB, free: 9.07 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003305/0.6186, allocations: 0.8776 MB / 452.7 MB, free: 8.684 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001205/0.6199, allocations: 114 kB / 452.8 MB, free: 8.684 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002671/0.6226, allocations: 1.362 MB / 454.2 MB, free: 8.023 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001331/0.624, allocations: 216.5 kB / 454.4 MB, free: 8.023 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009172/0.6332, allocations: 4.764 MB / 459.2 MB, free: 4.906 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.6332, allocations: 0 / 459.2 MB, free: 4.906 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.747e-06/0.6333, allocations: 1.312 kB / 459.2 MB, free: 4.906 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002892/0.6336, allocations: 0 / 459.2 MB, free: 4.906 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1512 * Number of variables: 1512 Notification: Performance of Generate backend data structure: time 0.01218/0.6457, allocations: 3.595 MB / 462.8 MB, free: 2.395 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.717e-05/0.6458, allocations: 9.188 kB / 462.8 MB, free: 2.395 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02462/0.6704, allocations: 3.837 MB / 466.6 MB, free: 15.75 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00725/0.6777, allocations: 2.247 MB / 468.9 MB, free: 13.46 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002683/0.6781, allocations: 188.5 kB / 469.1 MB, free: 13.27 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002369/0.6804, allocations: 327.5 kB / 469.4 MB, free: 12.95 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02845/0.7089, allocations: 10.53 MB / 479.9 MB, free: 1.961 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001321/0.7091, allocations: 32.55 kB / 479.9 MB, free: 1.93 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008143/0.7099, allocations: 123.8 kB / 480.1 MB, free: 1.809 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007181/0.7171, allocations: 2.498 MB / 482.6 MB, free: 15.3 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03132/0.7485, allocations: 10.04 MB / 492.6 MB, free: 5.25 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08278/0.8313, allocations: 35.13 MB / 0.5154 GB, free: 1.262 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01371/0.8451, allocations: 4.307 MB / 0.5196 GB, free: 12.72 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002035/0.8472, allocations: 1.319 MB / 0.5209 GB, free: 11.19 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.094e-05/0.8473, allocations: 48.56 kB / 0.5209 GB, free: 11.13 MB / 442.7 MB Notification: Performance of pre-optimization done (n=236): time 6.502e-06/0.8473, allocations: 0 / 0.5209 GB, free: 11.13 MB / 442.7 MB Notification: Performance of matching and sorting (n=252): time 0.07428/0.9216, allocations: 17.3 MB / 0.5378 GB, free: 9.609 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001885/0.9236, allocations: 1.531 MB / 0.5393 GB, free: 7.922 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00613/0.9297, allocations: 2.635 MB / 0.5419 GB, free: 5.273 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006661/0.9304, allocations: 65.69 kB / 0.5419 GB, free: 5.203 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003037/0.9335, allocations: 2.657 MB / 0.5445 GB, free: 2.508 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001837/0.9354, allocations: 0.9173 MB / 0.5454 GB, free: 1.578 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006967/0.9361, allocations: 112 kB / 0.5455 GB, free: 1.469 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0006036/0.9367, allocations: 0.5502 MB / 0.5461 GB, free: 0.9062 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007039/0.9438, allocations: 2.4 MB / 0.5484 GB, free: 14.5 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01044/0.9543, allocations: 5.344 MB / 0.5536 GB, free: 7.707 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009731/0.9641, allocations: 3.591 MB / 0.5571 GB, free: 4.113 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000102/0.9642, allocations: 35.94 kB / 0.5572 GB, free: 4.078 MB / 474.7 MB Notification: Performance of matching and sorting (n=732) (initialization): time 0.04054/1.005, allocations: 9.556 MB / 0.5665 GB, free: 10.5 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001033/1.005, allocations: 50.5 kB / 0.5665 GB, free: 10.45 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02558/1.031, allocations: 4.817 MB / 0.5712 GB, free: 5.625 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02202/1.053, allocations: 2.39 MB / 0.5736 GB, free: 3.219 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008242/1.061, allocations: 1.248 MB / 0.5748 GB, free: 1.969 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01572/1.077, allocations: 6.149 MB / 0.5808 GB, free: 11.55 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00669/1.083, allocations: 391.6 kB / 0.5812 GB, free: 11.16 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001453/1.085, allocations: 320 kB / 0.5815 GB, free: 10.85 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 468 * Number of states: 0 () * Number of discrete variables: 26 (freeMotion.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,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],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[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 (670): * Single equations (assignments): 658 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * 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.006292/1.091, allocations: 2.033 MB / 0.5835 GB, free: 8.805 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007846/1.092, allocations: 272.4 kB / 0.5837 GB, free: 8.535 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01899/1.111, allocations: 5.318 MB / 0.5889 GB, free: 3.176 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01707/1.128, allocations: 4.589 MB / 0.5934 GB, free: 14.56 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.627e-05/1.128, allocations: 0 / 0.5934 GB, free: 14.56 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.7e-05/1.128, allocations: 7.969 kB / 0.5934 GB, free: 14.55 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3874/1.516, allocations: 14.45 MB / 0.6075 GB, free: 163.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.467e-05/1.516, allocations: 11.27 kB / 0.6075 GB, free: 163.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003845/1.52, allocations: 404.4 kB / 0.6079 GB, free: 163.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009009/1.529, allocations: 1.238 MB / 0.6091 GB, free: 163.2 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007851/1.53, allocations: 64.33 kB / 0.6092 GB, free: 163.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008494/1.538, allocations: 4.524 MB / 0.6136 GB, free: 160.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001336/1.539, allocations: 1.477 MB / 0.615 GB, free: 159.3 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02507/1.565, allocations: 8.786 MB / 0.6236 GB, free: 156.5 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001076/1.566, allocations: 345.4 kB / 0.624 GB, free: 156.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001244/1.567, allocations: 50.22 kB / 0.624 GB, free: 156.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003187/1.57, allocations: 194.1 kB / 0.6242 GB, free: 156.4 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007492/1.571, allocations: 167.9 kB / 0.6243 GB, free: 156.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003022/1.571, allocations: 77.77 kB / 0.6244 GB, free: 156.3 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.004948/1.576, allocations: 1.825 MB / 0.6262 GB, free: 155.7 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.71e-07/1.576, allocations: 0 / 0.6262 GB, free: 155.7 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007153/1.583, allocations: 1.067 MB / 0.6272 GB, free: 155.6 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],freeMotion.r_rel_a[1],freeMotion.r_rel_a[2],freeMotion.r_rel_a[3],freeMotion.v_rel_a[1],freeMotion.v_rel_a[2],freeMotion.v_rel_a[3],freeMotion.w_rel_b[1],freeMotion.w_rel_b[2],freeMotion.w_rel_b[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (192): * Single equations (assignments): 182 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * 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.00121/1.585, allocations: 222.8 kB / 0.6275 GB, free: 155.4 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01707/1.602, allocations: 6.371 MB / 0.6337 GB, free: 153.2 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.577e-05/1.602, allocations: 3.219 kB / 0.6337 GB, free: 153.2 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.008238/1.61, allocations: 2.841 MB / 0.6365 GB, free: 152.1 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003135/1.613, allocations: 366.1 kB / 0.6368 GB, free: 152 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02735/1.641, allocations: 12.62 MB / 0.6491 GB, free: 145.4 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006899/1.648, allocations: 3.32 MB / 0.6524 GB, free: 143.8 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001917/1.65, allocations: 270.5 kB / 0.6526 GB, free: 143.6 MB / 0.5105 GB Notification: Performance of SimCode: time 1.293e-06/1.65, allocations: 0 / 0.6526 GB, free: 143.6 MB / 0.5105 GB Notification: Performance of Templates: time 0.1948/1.844, allocations: 123.6 MB / 0.7734 GB, free: 21.6 MB / 0.5105 GB