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.1_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint") Notification: Performance of loadModel(Modelica): time 1.759/1.759, allocations: 171.1 MB / 186.3 MB, free: 1.418 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.219e-05/4.217e-05, allocations: 4 kB / 228.1 MB, free: 7.988 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08371/0.08379, allocations: 38.78 MB / 266.9 MB, free: 1.129 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint): time 0.3337/0.4175, allocations: 67.64 MB / 334.5 MB, free: 10.48 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.04731/0.4649, allocations: 15.07 MB / 349.6 MB, free: 13.87 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01867/0.4837, allocations: 391.1 kB / 350 MB, free: 13.49 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01434/0.498, allocations: 3.616 MB / 353.6 MB, free: 9.855 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0388/0.5369, allocations: 9.479 MB / 363.1 MB, free: 360 kB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007268/0.5442, allocations: 1.174 MB / 364.3 MB, free: 15.18 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.009563/0.5538, allocations: 2.95 MB / 367.2 MB, free: 12.21 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01882/0.5727, allocations: 8.639 MB / 375.8 MB, free: 3.52 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003491/0.5763, allocations: 1.29 MB / 377.1 MB, free: 2.227 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004435/0.5808, allocations: 1.815 MB / 379 MB, free: 416 kB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004502/0.5853, allocations: 1.35 MB / 380.3 MB, free: 15.05 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001923/0.5873, allocations: 180 kB / 380.5 MB, free: 14.88 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004394/0.5917, allocations: 2.513 MB / 383 MB, free: 12.36 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002209/0.594, allocations: 440 kB / 383.4 MB, free: 11.93 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01617/0.6102, allocations: 9.569 MB / 393 MB, free: 2.34 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.6103, allocations: 0 / 393 MB, free: 2.34 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.657e-06/0.6103, allocations: 0 / 393 MB, free: 2.34 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000479/0.6108, allocations: 0 / 393 MB, free: 2.34 MB / 314.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.02754/0.6383, allocations: 6.9 MB / 399.9 MB, free: 11.36 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.616e-05/0.6384, allocations: 8.031 kB / 399.9 MB, free: 11.35 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01827/0.6567, allocations: 2.697 MB / 402.6 MB, free: 8.641 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01817/0.6749, allocations: 4.779 MB / 407.4 MB, free: 3.781 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009387/0.6759, allocations: 427.1 kB / 407.8 MB, free: 3.363 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004906/0.6809, allocations: 0.6554 MB / 408.4 MB, free: 2.711 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0727/0.7536, allocations: 16.91 MB / 425.4 MB, free: 0.875 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003633/0.7541, allocations: 51.53 kB / 425.4 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002402/0.7565, allocations: 263.8 kB / 425.7 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007316/0.7638, allocations: 2.557 MB / 428.2 MB, free: 14.01 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.507/1.271, allocations: 14.59 MB / 442.8 MB, free: 118.6 MB / 362.8 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.1226/1.394, allocations: 63.75 MB / 0.4947 GB, free: 72.78 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03597/1.43, allocations: 7.34 MB / 0.5018 GB, free: 65.3 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03826/1.468, allocations: 15.99 MB / 0.5175 GB, free: 48.98 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.367e-05/1.468, allocations: 72.44 kB / 0.5175 GB, free: 48.91 MB / 362.8 MB Notification: Performance of pre-optimization done (n=248): time 6.533e-06/1.468, allocations: 0 / 0.5175 GB, free: 48.91 MB / 362.8 MB Notification: Performance of matching and sorting (n=264): time 0.1192/1.587, allocations: 27.82 MB / 0.5447 GB, free: 20.72 MB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001399/1.589, allocations: 1.618 MB / 0.5463 GB, free: 18.93 MB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0121/1.601, allocations: 5.565 MB / 0.5517 GB, free: 13.35 MB / 362.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007801/1.602, allocations: 68.98 kB / 0.5518 GB, free: 13.28 MB / 362.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003796/1.606, allocations: 4.663 MB / 0.5563 GB, free: 8.625 MB / 362.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001869/1.607, allocations: 1.032 MB / 0.5573 GB, free: 7.602 MB / 362.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001015/1.609, allocations: 175 kB / 0.5575 GB, free: 7.434 MB / 362.8 MB Notification: Performance of setup shared object (initialization): time 0.0006024/1.609, allocations: 0.6947 MB / 0.5582 GB, free: 6.727 MB / 362.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008383/1.618, allocations: 3.344 MB / 0.5614 GB, free: 3.375 MB / 362.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.263/1.881, allocations: 8.717 MB / 0.57 GB, free: 107.1 MB / 362.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01498/1.896, allocations: 5.256 MB / 0.5751 GB, free: 105.8 MB / 362.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004458/1.896, allocations: 61.66 kB / 0.5752 GB, free: 105.8 MB / 362.8 MB Notification: Performance of matching and sorting (n=1163) (initialization): time 0.04341/1.94, allocations: 13.62 MB / 0.5885 GB, free: 100.8 MB / 362.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002707/1.94, allocations: 88.84 kB / 0.5885 GB, free: 100.8 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02/1.96, allocations: 5.848 MB / 0.5943 GB, free: 98.84 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01144/1.971, allocations: 2.265 MB / 0.5965 GB, free: 98.45 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01316/1.985, allocations: 2.098 MB / 0.5985 GB, free: 98.2 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02392/2.009, allocations: 14.54 MB / 0.6127 GB, free: 84.76 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01124/2.02, allocations: 0.5733 MB / 0.6133 GB, free: 84.21 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002291/2.022, allocations: 0.5373 MB / 0.6138 GB, free: 83.68 MB / 362.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 872 * 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 (1099): * Single equations (assignments): 1083 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * 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: 0 * 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: 1 {3 1} Notification: Performance of prepare postOptimizeDAE: time 0.008893/2.031, allocations: 3.17 MB / 0.6169 GB, free: 80.57 MB / 362.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001384/2.033, allocations: 0.5118 MB / 0.6174 GB, free: 80.34 MB / 362.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0217/2.054, allocations: 6.518 MB / 0.6238 GB, free: 73.73 MB / 362.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01866/2.073, allocations: 5.621 MB / 0.6292 GB, free: 68.03 MB / 362.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.01822/2.091, allocations: 5.44 MB / 0.6346 GB, free: 62.5 MB / 362.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.926e-05/2.091, allocations: 15.95 kB / 0.6346 GB, free: 62.48 MB / 362.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04983/2.141, allocations: 17.27 MB / 0.6514 GB, free: 45.09 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.686e-05/2.141, allocations: 8 kB / 0.6514 GB, free: 45.08 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004676/2.146, allocations: 496.1 kB / 0.6519 GB, free: 44.6 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009877/2.156, allocations: 1.848 MB / 0.6537 GB, free: 42.73 MB / 362.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007646/2.157, allocations: 76.89 kB / 0.6538 GB, free: 42.66 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01947/2.176, allocations: 9.97 MB / 0.6635 GB, free: 32.34 MB / 362.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001175/2.178, allocations: 1.49 MB / 0.665 GB, free: 30.72 MB / 362.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02636/2.204, allocations: 11.25 MB / 0.676 GB, free: 19.1 MB / 362.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001745/2.206, allocations: 0.5801 MB / 0.6765 GB, free: 18.5 MB / 362.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001791/2.208, allocations: 62.33 kB / 0.6766 GB, free: 18.44 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004946/2.212, allocations: 219.7 kB / 0.6768 GB, free: 18.22 MB / 362.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008257/2.213, allocations: 197.5 kB / 0.677 GB, free: 18.03 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003284/2.214, allocations: 83.97 kB / 0.6771 GB, free: 17.95 MB / 362.8 MB Notification: Performance of sorting global known variables: time 0.00883/2.223, allocations: 3.914 MB / 0.6809 GB, free: 14.04 MB / 362.8 MB Notification: Performance of sort global known variables: time 7.82e-07/2.223, allocations: 0 / 0.6809 GB, free: 14.04 MB / 362.8 MB Notification: Performance of remove unused functions: time 0.01096/2.234, allocations: 1.688 MB / 0.6825 GB, free: 12.36 MB / 362.8 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.001594/2.235, allocations: 271.3 kB / 0.6828 GB, free: 12.1 MB / 362.8 MB Notification: Performance of simCode: created initialization part: time 0.02285/2.258, allocations: 8.975 MB / 0.6916 GB, free: 3.047 MB / 362.8 MB Notification: Performance of simCode: created event and clocks part: time 1.7e-05/2.258, allocations: 4.781 kB / 0.6916 GB, free: 3.043 MB / 362.8 MB Notification: Performance of simCode: created simulation system equations: time 0.009586/2.268, allocations: 3.351 MB / 0.6948 GB, free: 15.6 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007274/2.275, allocations: 0.7795 MB / 0.6956 GB, free: 14.82 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3247/2.6, allocations: 18.53 MB / 0.7137 GB, free: 114.4 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01112/2.611, allocations: 4.974 MB / 0.7186 GB, free: 112.7 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002643/2.614, allocations: 434.3 kB / 0.719 GB, free: 112.7 MB / 378.8 MB Notification: Performance of SimCode: time 1.353e-06/2.614, allocations: 3.844 kB / 0.719 GB, free: 112.7 MB / 378.8 MB Notification: Performance of Templates: time 1.023/3.637, allocations: 277.2 MB / 0.9897 GB, free: 126.2 MB / 394.8 MB