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_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint") Notification: Performance of loadModel(Modelica): time 1.847/1.847, allocations: 194.9 MB / 208.4 MB, free: 3.156 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.01e-05/3.06e-05, allocations: 4 kB / 255.4 MB, free: 3.176 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07903/0.07908, allocations: 44.5 MB / 299.9 MB, free: 6.617 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3725/0.4516, allocations: 106.3 MB / 406.2 MB, free: 15.94 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002215/0.4519, allocations: 84.89 kB / 406.3 MB, free: 15.93 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7022/1.154, allocations: 127.5 MB / 0.5212 GB, free: 56.85 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.866e-06/1.154, allocations: 0 / 0.5212 GB, free: 56.85 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004503/1.155, allocations: 147.5 kB / 0.5214 GB, free: 56.84 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2366 * Number of variables: 2366 Notification: Performance of Generate backend data structure: time 0.02657/1.181, allocations: 7.057 MB / 0.5283 GB, free: 54.3 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/1.181, allocations: 11.12 kB / 0.5283 GB, free: 54.3 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01843/1.2, allocations: 2.906 MB / 0.5311 GB, free: 53.85 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02393/1.224, allocations: 8.145 MB / 0.5391 GB, free: 53.01 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005712/1.224, allocations: 0.5205 MB / 0.5396 GB, free: 52.99 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003212/1.228, allocations: 0.6898 MB / 0.5403 GB, free: 52.98 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0448/1.272, allocations: 17.13 MB / 0.557 GB, free: 49.34 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004162/1.273, allocations: 86.64 kB / 0.5571 GB, free: 49.34 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002953/1.276, allocations: 327.1 kB / 0.5574 GB, free: 49.34 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002828/1.279, allocations: 1.493 MB / 0.5588 GB, free: 49.32 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03746/1.316, allocations: 14.12 MB / 0.5726 GB, free: 47.88 MB / 394.7 MB Warning: The model contains alias variables with conflicting start and/or 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.1048/1.421, allocations: 74.71 MB / 0.6456 GB, free: 4.527 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03099/1.452, allocations: 7.439 MB / 0.6529 GB, free: 15.13 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007245/1.459, allocations: 3.661 MB / 0.6564 GB, free: 11.76 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2862/1.746, allocations: 15.99 MB / 0.6721 GB, free: 83.3 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.723e-05/1.746, allocations: 60.78 kB / 0.6721 GB, free: 83.26 MB / 426.7 MB Notification: Performance of pre-optimization done (n=248): time 7.097e-06/1.746, allocations: 0 / 0.6721 GB, free: 83.26 MB / 426.7 MB Notification: Performance of matching and sorting (n=264): time 0.08906/1.835, allocations: 23.41 MB / 0.695 GB, free: 79.13 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001116/1.836, allocations: 1.602 MB / 0.6965 GB, free: 77.61 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01101/1.847, allocations: 5.147 MB / 0.7016 GB, free: 77.1 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006028/1.848, allocations: 68.14 kB / 0.7016 GB, free: 77.07 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003415/1.851, allocations: 4.681 MB / 0.7062 GB, free: 74.66 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001488/1.853, allocations: 1.041 MB / 0.7072 GB, free: 74.08 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009718/1.854, allocations: 177.2 kB / 0.7074 GB, free: 74.08 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006433/1.854, allocations: 0.6886 MB / 0.7081 GB, free: 73.75 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006899/1.861, allocations: 3.208 MB / 0.7112 GB, free: 73.72 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009828/1.871, allocations: 8.548 MB / 0.7195 GB, free: 66.78 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009997/1.881, allocations: 5.195 MB / 0.7246 GB, free: 66.74 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001798/1.881, allocations: 53.62 kB / 0.7247 GB, free: 66.74 MB / 426.7 MB Notification: Performance of matching and sorting (n=1156) (initialization): time 0.03234/1.914, allocations: 12.75 MB / 0.7371 GB, free: 64.57 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001458/1.914, allocations: 90.19 kB / 0.7372 GB, free: 64.57 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0144/1.928, allocations: 5.639 MB / 0.7427 GB, free: 62.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008527/1.937, allocations: 2.102 MB / 0.7448 GB, free: 62.34 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009634/1.946, allocations: 2.104 MB / 0.7468 GB, free: 62.09 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01827/1.965, allocations: 14.09 MB / 0.7606 GB, free: 52.15 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01018/1.975, allocations: 0.5604 MB / 0.7611 GB, free: 52 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001961/1.977, allocations: 0.5367 MB / 0.7616 GB, free: 51.92 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 875 * Number of states: 0 () * Number of discrete variables: 57 (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.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 (1102): * Single equations (assignments): 1088 * 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: 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.002631/1.98, allocations: 0.7903 MB / 0.7624 GB, free: 51.28 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001245/1.981, allocations: 0.5172 MB / 0.7629 GB, free: 50.99 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0167/1.998, allocations: 6.373 MB / 0.7691 GB, free: 48.32 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01284/2.011, allocations: 5.473 MB / 0.7745 GB, free: 43.84 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.01348/2.024, allocations: 5.851 MB / 0.7802 GB, free: 38.98 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.719e-05/2.024, allocations: 10.17 kB / 0.7802 GB, free: 38.98 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04137/2.066, allocations: 17.04 MB / 0.7969 GB, free: 25.33 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-05/2.066, allocations: 8 kB / 0.7969 GB, free: 25.32 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00316/2.069, allocations: 0.4952 MB / 0.7973 GB, free: 24.94 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006705/2.076, allocations: 1.797 MB / 0.7991 GB, free: 23.76 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006571/2.076, allocations: 67.22 kB / 0.7992 GB, free: 23.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01399/2.09, allocations: 9.732 MB / 0.8087 GB, free: 14.92 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0009977/2.091, allocations: 1.472 MB / 0.8101 GB, free: 13.36 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01937/2.111, allocations: 10.74 MB / 0.8206 GB, free: 3.387 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001805/2.113, allocations: 0.5739 MB / 0.8212 GB, free: 2.809 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001757/2.114, allocations: 63.41 kB / 0.8212 GB, free: 2.754 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00415/2.119, allocations: 214.5 kB / 0.8214 GB, free: 2.625 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009346/2.12, allocations: 192.6 kB / 0.8216 GB, free: 2.496 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004561/2.12, allocations: 88.8 kB / 0.8217 GB, free: 2.418 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.2701/2.39, allocations: 4.06 MB / 0.8257 GB, free: 71.27 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.332e-06/2.39, allocations: 0 / 0.8257 GB, free: 71.27 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01129/2.402, allocations: 1.678 MB / 0.8273 GB, free: 71.27 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * 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 (221): * Single equations (assignments): 211 * 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.001307/2.403, allocations: 275.3 kB / 0.8276 GB, free: 71.18 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01883/2.422, allocations: 8.451 MB / 0.8358 GB, free: 70.34 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.244e-05/2.422, allocations: 3.906 kB / 0.8358 GB, free: 70.34 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007908/2.43, allocations: 3.274 MB / 0.839 GB, free: 69.7 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005427/2.435, allocations: 0.7677 MB / 0.8398 GB, free: 69.67 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03378/2.469, allocations: 13.26 MB / 0.8527 GB, free: 66.9 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01146/2.481, allocations: 4.965 MB / 0.8576 GB, free: 66.05 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002145/2.483, allocations: 431.7 kB / 0.858 GB, free: 66.05 MB / 426.7 MB Notification: Performance of SimCode: time 1.985e-06/2.483, allocations: 0 / 0.858 GB, free: 66.05 MB / 426.7 MB Notification: Performance of Templates: time 0.6292/3.112, allocations: 275.5 MB / 1.127 GB, free: 1.914 MB / 442.7 MB