Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bodyOfConstraint.body.w_a.1.|bodyOfConstraint.body.w_a.2.|bodyOfConstraint.body.w_a.3.",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint") Notification: Performance of loadModel(Modelica): time 2.079/2.079, allocations: 224.7 MB / 241.1 MB, free: 1.68 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.672e-05/3.662e-05, allocations: 7.984 kB / 294.6 MB, free: 11.39 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1113, allocations: 50.41 MB / 345 MB, free: 8.934 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint): time 0.4471/0.5584, allocations: 70.1 MB / 415.1 MB, free: 3.07 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0449/0.6034, allocations: 15.59 MB / 430.7 MB, free: 1.602 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01993/0.6234, allocations: 406.7 kB / 431.1 MB, free: 1.539 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01332/0.6368, allocations: 3.691 MB / 434.8 MB, free: 15.76 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03933/0.6761, allocations: 9.82 MB / 444.6 MB, free: 12.45 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007379/0.6836, allocations: 1.16 MB / 445.7 MB, free: 12.09 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.008837/0.6924, allocations: 2.949 MB / 448.7 MB, free: 11.42 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01807/0.7106, allocations: 8.657 MB / 457.3 MB, free: 5.559 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00395/0.7146, allocations: 1.29 MB / 458.6 MB, free: 4.309 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004547/0.7191, allocations: 1.781 MB / 460.4 MB, free: 2.551 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004941/0.7241, allocations: 1.329 MB / 461.7 MB, free: 1.223 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001956/0.7262, allocations: 180 kB / 461.9 MB, free: 1.047 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00455/0.7307, allocations: 2.504 MB / 464.4 MB, free: 14.55 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002548/0.7334, allocations: 444 kB / 464.9 MB, free: 14.12 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01553/0.7489, allocations: 9.44 MB / 474.3 MB, free: 4.93 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.749, allocations: 0 / 474.3 MB, free: 4.93 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.246e-06/0.749, allocations: 0 / 474.3 MB, free: 4.93 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0004358/0.7494, allocations: 0 / 474.3 MB, free: 4.93 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: 2352 * Number of variables: 2352 Notification: Performance of Generate backend data structure: time 0.02592/0.7754, allocations: 6.885 MB / 481.2 MB, free: 14.01 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.532e-05/0.7754, allocations: 12.03 kB / 481.2 MB, free: 14 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0179/0.7934, allocations: 2.704 MB / 483.9 MB, free: 11.28 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01402/0.8074, allocations: 4.457 MB / 488.3 MB, free: 6.789 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006078/0.8081, allocations: 430 kB / 488.8 MB, free: 6.414 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003545/0.8116, allocations: 0.6564 MB / 489.4 MB, free: 5.809 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05481/0.8665, allocations: 16.86 MB / 0.4944 GB, free: 4.164 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003924/0.867, allocations: 55.44 kB / 0.4945 GB, free: 4.109 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00253/0.8695, allocations: 261 kB / 0.4947 GB, free: 3.898 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00713/0.8767, allocations: 2.526 MB / 0.4972 GB, free: 1.383 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05827/0.935, allocations: 14.53 MB / 0.5114 GB, free: 2.844 MB / 410.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7505/1.686, allocations: 63.4 MB / 0.5733 GB, free: 123.9 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03888/1.724, allocations: 7.453 MB / 0.5806 GB, free: 123.2 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0464/1.771, allocations: 16.58 MB / 0.5968 GB, free: 116.1 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.591e-05/1.771, allocations: 64.19 kB / 0.5968 GB, free: 116 MB / 458.8 MB Notification: Performance of pre-optimization done (n=253): time 1.004e-05/1.771, allocations: 2.062 kB / 0.5968 GB, free: 116 MB / 458.8 MB Notification: Performance of matching and sorting (n=269): time 0.1329/1.904, allocations: 27.7 MB / 0.6239 GB, free: 95.18 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001403/1.905, allocations: 1.626 MB / 0.6255 GB, free: 93.4 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01178/1.917, allocations: 5.473 MB / 0.6308 GB, free: 87.91 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007852/1.918, allocations: 66.88 kB / 0.6309 GB, free: 87.84 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00373/1.922, allocations: 4.619 MB / 0.6354 GB, free: 83.23 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001818/1.924, allocations: 1.05 MB / 0.6364 GB, free: 82.19 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001044/1.925, allocations: 179.4 kB / 0.6366 GB, free: 82.02 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.000701/1.926, allocations: 0.679 MB / 0.6372 GB, free: 81.33 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008473/1.934, allocations: 3.312 MB / 0.6405 GB, free: 78.01 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01183/1.946, allocations: 8.641 MB / 0.6489 GB, free: 66.93 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01168/1.958, allocations: 5.212 MB / 0.654 GB, free: 61.88 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001999/1.958, allocations: 52 kB / 0.654 GB, free: 61.82 MB / 458.8 MB Notification: Performance of matching and sorting (n=1158) (initialization): time 0.04826/2.006, allocations: 14.39 MB / 0.6681 GB, free: 47.36 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001303/2.006, allocations: 88 kB / 0.6682 GB, free: 47.28 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02853/2.035, allocations: 6.686 MB / 0.6747 GB, free: 40.51 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02404/2.059, allocations: 3.244 MB / 0.6779 GB, free: 37.23 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01254/2.072, allocations: 2.086 MB / 0.6799 GB, free: 35.14 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03051/2.102, allocations: 16.28 MB / 0.6958 GB, free: 18.06 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01028/2.113, allocations: 0.5707 MB / 0.6964 GB, free: 17.49 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001839/2.114, allocations: 0.5343 MB / 0.6969 GB, free: 16.96 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 862 * Number of states: 0 () * Number of discrete variables: 62 (sensorConstraintRelative.arrow.arrowLine.twoHeadedArrow,sensorConstraintRelative.arrow.headAtOrigin,freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[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],springOfConstraint.color[3],springOfConstraint.color[2],springOfConstraint.color[1],springOfConstraint.massColor[3],springOfConstraint.massColor[2],springOfConstraint.massColor[1],springOfJoint.color[3],springOfJoint.color[2],springOfJoint.color[1],springOfJoint.massColor[3],springOfJoint.massColor[2],springOfJoint.massColor[1],bodyOfConstraint.color[3],bodyOfConstraint.color[2],bodyOfConstraint.color[1],bodyOfConstraint.body.sphereColor[3],bodyOfConstraint.body.sphereColor[2],bodyOfConstraint.body.sphereColor[1],bodyOfConstraint.frameTranslation.color[3],bodyOfConstraint.frameTranslation.color[2],bodyOfConstraint.frameTranslation.color[1],bodyOfJoint.color[3],bodyOfJoint.color[2],bodyOfJoint.color[1],bodyOfJoint.body.sphereColor[3],bodyOfJoint.body.sphereColor[2],bodyOfJoint.body.sphereColor[1],bodyOfJoint.frameTranslation.color[3],bodyOfJoint.frameTranslation.color[2],bodyOfJoint.frameTranslation.color[1],sensorConstraintRelative.arrowColor[3],sensorConstraintRelative.arrowColor[2],sensorConstraintRelative.arrowColor[1],constraint.sphereColor[3],constraint.sphereColor[2],constraint.sphereColor[1],joint.sphereColor[3],joint.sphereColor[2],joint.sphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1094): * Single equations (assignments): 1078 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(3,100.0%) 3,(3,100.0%) 3,(2,100.0%) 1,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008107/2.123, allocations: 3.125 MB / 0.6999 GB, free: 13.82 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001342/2.124, allocations: 0.5129 MB / 0.7004 GB, free: 13.3 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02107/2.145, allocations: 6.436 MB / 0.7067 GB, free: 6.773 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01837/2.163, allocations: 5.537 MB / 0.7121 GB, free: 1.145 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.01927/2.183, allocations: 5.37 MB / 0.7174 GB, free: 11.69 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.399e-05/2.183, allocations: 11.95 kB / 0.7174 GB, free: 11.68 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05751/2.24, allocations: 16.79 MB / 0.7338 GB, free: 10.73 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.923e-05/2.241, allocations: 15.92 kB / 0.7338 GB, free: 10.71 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004843/2.245, allocations: 496 kB / 0.7343 GB, free: 10.23 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01099/2.256, allocations: 1.846 MB / 0.7361 GB, free: 8.359 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000799/2.257, allocations: 76.62 kB / 0.7362 GB, free: 8.285 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3444/2.602, allocations: 9.968 MB / 0.7459 GB, free: 170.5 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0015/2.603, allocations: 1.475 MB / 0.7473 GB, free: 169.2 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02966/2.633, allocations: 10.71 MB / 0.7578 GB, free: 165.4 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001916/2.635, allocations: 0.5856 MB / 0.7584 GB, free: 165.3 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002237/2.637, allocations: 55.61 kB / 0.7584 GB, free: 165.3 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005279/2.643, allocations: 212.8 kB / 0.7586 GB, free: 165.3 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001009/2.644, allocations: 184.5 kB / 0.7588 GB, free: 165.2 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003462/2.644, allocations: 84.11 kB / 0.7589 GB, free: 165.2 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.009523/2.654, allocations: 3.853 MB / 0.7626 GB, free: 163.9 MB / 490.8 MB Notification: Performance of sort global known variables: time 1.102e-06/2.654, allocations: 0 / 0.7626 GB, free: 163.9 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.01057/2.664, allocations: 1.704 MB / 0.7643 GB, free: 163.7 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],joint.w_rel[1],joint.w_rel[2],joint.w_rel[3],bodyOfConstraint.body.w_a[1],bodyOfConstraint.body.w_a[2],bodyOfConstraint.body.w_a[3],freeMotionScalarInit.derd[1].u,freeMotionScalarInit.derd[2].u,freeMotionScalarInit.derd[3].u) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (223): * Single equations (assignments): 213 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 3,(3,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001499/2.666, allocations: 274.2 kB / 0.7646 GB, free: 163.6 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.0223/2.688, allocations: 8.911 MB / 0.7733 GB, free: 160.1 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.642e-05/2.688, allocations: 3.781 kB / 0.7733 GB, free: 160.1 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.009548/2.698, allocations: 3.331 MB / 0.7765 GB, free: 158.6 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007128/2.705, allocations: 0.7766 MB / 0.7773 GB, free: 158.3 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04174/2.747, allocations: 18.34 MB / 0.7952 GB, free: 144.9 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01054/2.757, allocations: 4.926 MB / 0.8 GB, free: 141.3 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002568/2.76, allocations: 434.7 kB / 0.8004 GB, free: 140.9 MB / 490.8 MB Notification: Performance of SimCode: time 1.342e-06/2.76, allocations: 0 / 0.8004 GB, free: 140.9 MB / 490.8 MB Notification: Performance of Templates: time 0.7622/3.522, allocations: 275.3 MB / 1.069 GB, free: 28.14 MB / 490.8 MB