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_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2") Notification: Performance of loadModel(ModelicaTest): time 2.471/2.471, allocations: 269 MB / 284.1 MB, free: 3.641 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.626e-05/3.64e-05, allocations: 8 kB / 349 MB, free: 10.75 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1465/0.1465, allocations: 61.89 MB / 410.9 MB, free: 12.85 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.4782/0.6248, allocations: 61.15 MB / 472.1 MB, free: 7.617 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.04298/0.6678, allocations: 13.51 MB / 485.6 MB, free: 12.82 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01663/0.6845, allocations: 335.2 kB / 485.9 MB, free: 12.49 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01262/0.6972, allocations: 3.181 MB / 489.1 MB, free: 9.297 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04115/0.7384, allocations: 8.737 MB / 497.8 MB, free: 0.5391 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006239/0.7447, allocations: 0.866 MB / 498.7 MB, free: 15.67 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.1225/0.8672, allocations: 47.61 MB / 0.5335 GB, free: 24 kB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01433/0.8816, allocations: 5.649 MB / 0.539 GB, free: 10.33 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003823/0.8855, allocations: 1.18 MB / 0.5402 GB, free: 9.148 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005773/0.8914, allocations: 1.847 MB / 0.542 GB, free: 7.297 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004347/0.8958, allocations: 0.9286 MB / 0.5429 GB, free: 6.367 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00176/0.8976, allocations: 176 kB / 0.5431 GB, free: 6.195 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004756/0.9024, allocations: 2.155 MB / 0.5452 GB, free: 4.035 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002532/0.905, allocations: 388 kB / 0.5455 GB, free: 3.656 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01744/0.9224, allocations: 7.994 MB / 0.5533 GB, free: 11.64 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.732e-06/0.9225, allocations: 0 / 0.5533 GB, free: 11.64 MB / 474.7 MB Notification: Performance of FrontEnd: time 4.348e-06/0.9225, allocations: 0 / 0.5533 GB, free: 11.64 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0004026/0.9229, allocations: 0 / 0.5533 GB, free: 11.64 MB / 474.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.02711/0.9501, allocations: 5.726 MB / 0.5589 GB, free: 5.844 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.13e-05/0.9502, allocations: 8.031 kB / 0.5589 GB, free: 5.836 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.348/1.298, allocations: 19.03 MB / 0.5775 GB, free: 2.766 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01761/1.316, allocations: 4.616 MB / 0.582 GB, free: 14.07 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004965/1.316, allocations: 332.5 kB / 0.5823 GB, free: 13.74 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002354/1.319, allocations: 447.6 kB / 0.5828 GB, free: 13.3 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03936/1.358, allocations: 13.29 MB / 0.5958 GB, free: 15.14 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000362/1.359, allocations: 67.36 kB / 0.5958 GB, free: 15.07 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002006/1.361, allocations: 207.8 kB / 0.596 GB, free: 14.87 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008754/1.369, allocations: 2.586 MB / 0.5985 GB, free: 12.28 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03888/1.408, allocations: 11.46 MB / 0.6097 GB, free: 0.8008 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4627/1.871, allocations: 52.98 MB / 0.6615 GB, free: 131 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02272/1.894, allocations: 5.691 MB / 0.667 GB, free: 127.8 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009922/1.895, allocations: 0.6957 MB / 0.6677 GB, free: 127.2 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.565e-05/1.895, allocations: 59.66 kB / 0.6678 GB, free: 127.1 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=245): time 6.212e-06/1.895, allocations: 0 / 0.6678 GB, free: 127.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=315): time 0.1647/2.06, allocations: 36.19 MB / 0.7031 GB, free: 95.57 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001087/2.06, allocations: 265.3 kB / 0.7034 GB, free: 95.26 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01084/2.071, allocations: 5.002 MB / 0.7083 GB, free: 90.27 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009044/2.072, allocations: 73.7 kB / 0.7083 GB, free: 90.19 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003111/2.075, allocations: 3.784 MB / 0.712 GB, free: 86.41 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001931/2.077, allocations: 1.171 MB / 0.7132 GB, free: 85.25 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008962/2.078, allocations: 157 kB / 0.7133 GB, free: 85.09 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004809/2.078, allocations: 0.6251 MB / 0.7139 GB, free: 84.46 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008207/2.086, allocations: 3.38 MB / 0.7172 GB, free: 81.08 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01101/2.097, allocations: 7.521 MB / 0.7246 GB, free: 71.52 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01115/2.109, allocations: 4.962 MB / 0.7294 GB, free: 66.54 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001093/2.109, allocations: 47.95 kB / 0.7295 GB, free: 66.49 MB / 0.5105 GB Notification: Performance of matching and sorting (n=985) (initialization): time 0.03487/2.144, allocations: 12.5 MB / 0.7417 GB, free: 53.93 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.985e-05/2.144, allocations: 64 kB / 0.7417 GB, free: 53.87 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001625/2.144, allocations: 144 kB / 0.7419 GB, free: 53.73 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009453/2.154, allocations: 2.27 MB / 0.7441 GB, free: 51.46 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01081/2.164, allocations: 1.719 MB / 0.7458 GB, free: 49.73 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03033/2.195, allocations: 15.76 MB / 0.7612 GB, free: 33.73 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00862/2.203, allocations: 455.2 kB / 0.7616 GB, free: 33.28 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001611/2.205, allocations: 445.6 kB / 0.762 GB, free: 32.85 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 659 * Number of states: 0 () * Number of discrete variables: 44 (freeMotion.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,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.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.006838/2.212, allocations: 2.724 MB / 0.7647 GB, free: 30.11 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001417/2.213, allocations: 497.7 kB / 0.7651 GB, free: 29.61 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02215/2.236, allocations: 7.296 MB / 0.7723 GB, free: 22.25 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.673e-05/2.236, allocations: 32.7 kB / 0.7723 GB, free: 22.22 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.127e-05/2.236, allocations: 8 kB / 0.7723 GB, free: 22.21 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.553e-05/2.236, allocations: 19.94 kB / 0.7723 GB, free: 22.2 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04703/2.283, allocations: 16.41 MB / 0.7884 GB, free: 5.699 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.351e-05/2.283, allocations: 8 kB / 0.7884 GB, free: 5.691 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004893/2.288, allocations: 0.4999 MB / 0.7889 GB, free: 5.191 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008991/2.297, allocations: 2.003 MB / 0.7908 GB, free: 3.184 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008267/2.298, allocations: 63.98 kB / 0.7909 GB, free: 3.121 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03461/2.332, allocations: 14.23 MB / 0.8048 GB, free: 4.629 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-05/2.332, allocations: 11.94 kB / 0.8048 GB, free: 4.617 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3874/2.72, allocations: 12.49 MB / 0.817 GB, free: 167.8 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001757/2.722, allocations: 0.5586 MB / 0.8175 GB, free: 167.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002364/2.724, allocations: 58.28 kB / 0.8176 GB, free: 167.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005568/2.73, allocations: 215.2 kB / 0.8178 GB, free: 167.5 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001345/2.731, allocations: 207.8 kB / 0.818 GB, free: 167.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006544/2.732, allocations: 94.78 kB / 0.8181 GB, free: 167.5 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0101/2.742, allocations: 3.582 MB / 0.8216 GB, free: 166.3 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.032e-06/2.742, allocations: 1.344 kB / 0.8216 GB, free: 166.3 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01008/2.752, allocations: 1.508 MB / 0.823 GB, free: 166.1 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 (253): * Single equations (assignments): 248 * 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.001465/2.754, allocations: 229.3 kB / 0.8233 GB, free: 166 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02222/2.776, allocations: 8.409 MB / 0.8315 GB, free: 162.8 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.4e-05/2.776, allocations: 3.938 kB / 0.8315 GB, free: 162.8 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.01369/2.79, allocations: 4.036 MB / 0.8354 GB, free: 161.3 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005855/2.795, allocations: 0.6239 MB / 0.836 GB, free: 161.1 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03861/2.834, allocations: 17.35 MB / 0.853 GB, free: 152.2 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00903/2.843, allocations: 4.457 MB / 0.8573 GB, free: 149.2 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002833/2.846, allocations: 409.8 kB / 0.8577 GB, free: 148.8 MB / 0.5261 GB Notification: Performance of SimCode: time 1.683e-06/2.846, allocations: 0 / 0.8577 GB, free: 148.8 MB / 0.5261 GB Notification: Performance of Templates: time 0.2224/3.069, allocations: 130.4 MB / 0.985 GB, free: 19.9 MB / 0.5261 GB