Running command: translateModel(ModelicaTest.MultiBody.SphericalDoublePendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Spherical1.phi.1.|Spherical1.phi.2.|Spherical1.phi.3.|Spherical1.phi_d.1.|Spherical1.phi_d.2.|Spherical1.phi_d.3.|Spherical2.phi.1.|Spherical2.phi.2.|Spherical2.phi.3.|Spherical2.phi_d.1.|Spherical2.phi_d.2.|Spherical2.phi_d.3.|Spherical3.Q.1.|Spherical3.Q.2.|Spherical3.Q.3.|Spherical3.Q.4.|Spherical3.w_rel.1.|Spherical3.w_rel.2.|Spherical3.w_rel.3.|Spherical4.Q.1.|Spherical4.Q.2.|Spherical4.Q.3.|Spherical4.Q.4.|Spherical4.w_rel.1.|Spherical4.w_rel.2.|Spherical4.w_rel.3.|boxBody5.body.Q.1.|boxBody5.body.Q.2.|boxBody5.body.Q.3.|boxBody5.body.Q.4.|boxBody5.body.w_a.1.|boxBody5.body.w_a.2.|boxBody5.body.w_a.3.|boxBody6.body.Q.1.|boxBody6.body.Q.2.|boxBody6.body.Q.3.|boxBody6.body.Q.4.|boxBody6.body.w_a.1.|boxBody6.body.w_a.2.|boxBody6.body.w_a.3.",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.SphericalDoublePendulum") Notification: Performance of loadModel(ModelicaTest): time 1.959/1.959, allocations: 209.3 MB / 221.9 MB, free: 7.734 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.694e-05/4.748e-05, allocations: 4 kB / 273.1 MB, free: 3.664 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08936/0.08944, allocations: 48.69 MB / 321.8 MB, free: 2.875 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.366/0.4555, allocations: 88.54 MB / 410.3 MB, free: 4.047 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000171/0.4557, allocations: 69.5 kB / 410.4 MB, free: 4.039 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8754/1.331, allocations: 171.7 MB / 0.5684 GB, free: 70.77 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.206e-06/1.331, allocations: 0 / 0.5684 GB, free: 70.77 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0006795/1.332, allocations: 174.3 kB / 0.5686 GB, free: 70.76 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2554 * Number of variables: 2554 Notification: Performance of Generate backend data structure: time 0.04787/1.38, allocations: 10.03 MB / 0.5784 GB, free: 67.52 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.489e-05/1.38, allocations: 7.875 kB / 0.5784 GB, free: 67.52 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1055/1.485, allocations: 21.89 MB / 0.5998 GB, free: 66.88 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05407/1.539, allocations: 19.86 MB / 0.6192 GB, free: 58.89 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006573/1.54, allocations: 0.5582 MB / 0.6197 GB, free: 58.38 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003525/1.544, allocations: 0.777 MB / 0.6205 GB, free: 57.64 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04779/1.592, allocations: 19.05 MB / 0.6391 GB, free: 37.13 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006894/1.592, allocations: 137.1 kB / 0.6392 GB, free: 37.02 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003047/1.595, allocations: 362.8 kB / 0.6396 GB, free: 36.7 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002994/1.598, allocations: 1.643 MB / 0.6412 GB, free: 35.06 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03986/1.638, allocations: 15.59 MB / 0.6564 GB, free: 19.46 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4077/2.046, allocations: 90.07 MB / 0.7444 GB, free: 35.57 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03343/2.08, allocations: 8.71 MB / 0.7529 GB, free: 34.91 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008225/2.088, allocations: 4.802 MB / 0.7575 GB, free: 34.87 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001375/2.089, allocations: 1.003 MB / 0.7585 GB, free: 34.02 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.976e-05/2.089, allocations: 76.22 kB / 0.7586 GB, free: 33.97 MB / 458.7 MB Notification: Performance of pre-optimization done (n=322): time 9.136e-06/2.089, allocations: 0 / 0.7586 GB, free: 33.97 MB / 458.7 MB Notification: Performance of matching and sorting (n=397): time 0.2351/2.324, allocations: 57.55 MB / 0.8148 GB, free: 25.43 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005079/2.33, allocations: 5.124 MB / 0.8198 GB, free: 36.48 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0187/2.348, allocations: 7.478 MB / 0.8271 GB, free: 33.21 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001155/2.349, allocations: 85.66 kB / 0.8272 GB, free: 33.12 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005007/2.355, allocations: 5.717 MB / 0.8328 GB, free: 28.29 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002523/2.357, allocations: 1.551 MB / 0.8343 GB, free: 26.92 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001765/2.359, allocations: 221.6 kB / 0.8345 GB, free: 26.71 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001221/2.36, allocations: 0.7862 MB / 0.8353 GB, free: 26.05 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01184/2.372, allocations: 5.623 MB / 0.8408 GB, free: 21 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01794/2.39, allocations: 11.85 MB / 0.8523 GB, free: 7.023 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01826/2.408, allocations: 7.993 MB / 0.8601 GB, free: 332 kB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002396/2.409, allocations: 64 kB / 0.8602 GB, free: 268 kB / 474.7 MB Notification: Performance of matching and sorting (n=1452) (initialization): time 0.3904/2.799, allocations: 34.99 MB / 0.8944 GB, free: 99.48 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001737/2.799, allocations: 99.06 kB / 0.8945 GB, free: 99.48 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.07364/2.873, allocations: 23.74 MB / 0.9177 GB, free: 99.08 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.06782/2.941, allocations: 18.23 MB / 0.9355 GB, free: 96.57 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01249/2.953, allocations: 2.744 MB / 0.9381 GB, free: 95.88 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08094/3.034, allocations: 38.12 MB / 0.9754 GB, free: 60.36 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02615/3.061, allocations: 1.152 MB / 0.9765 GB, free: 59.25 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004282/3.065, allocations: 0.66 MB / 0.9771 GB, free: 58.59 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 996 * Number of states: 0 () * Number of discrete variables: 63 (Spherical6.sphereColor[3],Spherical6.sphereColor[2],Spherical6.sphereColor[1],Spherical5.sphereColor[3],Spherical5.sphereColor[2],Spherical5.sphereColor[1],boxBody6.color[3],boxBody6.color[2],boxBody6.color[1],boxBody6.body.sphereColor[3],boxBody6.body.sphereColor[2],boxBody6.body.sphereColor[1],boxBody5.color[3],boxBody5.color[2],boxBody5.color[1],boxBody5.body.sphereColor[3],boxBody5.body.sphereColor[2],boxBody5.body.sphereColor[1],Spherical4.sphereColor[3],Spherical4.sphereColor[2],Spherical4.sphereColor[1],Spherical3.sphereColor[3],Spherical3.sphereColor[2],Spherical3.sphereColor[1],boxBody4.color[3],boxBody4.color[2],boxBody4.color[1],boxBody4.body.sphereColor[3],boxBody4.body.sphereColor[2],boxBody4.body.sphereColor[1],boxBody3.color[3],boxBody3.color[2],boxBody3.color[1],boxBody3.body.sphereColor[3],boxBody3.body.sphereColor[2],boxBody3.body.sphereColor[1],Spherical2.sphereColor[3],Spherical2.sphereColor[2],Spherical2.sphereColor[1],Spherical1.sphereColor[3],Spherical1.sphereColor[2],Spherical1.sphereColor[1],boxBody2.color[3],boxBody2.color[2],boxBody2.color[1],boxBody2.body.sphereColor[3],boxBody2.body.sphereColor[2],boxBody2.body.sphereColor[1],boxBody1.color[3],boxBody1.color[2],boxBody1.color[1],boxBody1.body.sphereColor[3],boxBody1.body.sphereColor[2],boxBody1.body.sphereColor[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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1310): * Single equations (assignments): 1286 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 10 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(2,100.0%),(2,100.0%),(2,100.0%),(2,100.0%),(4,100.0%),(4,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(8,59.4%) 13,(8,59.4%) 13,(8,59.4%) 13} * Non-linear torn systems: 2 {4 9,4 9} Notification: Performance of prepare postOptimizeDAE: time 0.006349/3.071, allocations: 0.9469 MB / 0.9781 GB, free: 57.79 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002496/3.074, allocations: 0.7904 MB / 0.9788 GB, free: 57.42 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03786/3.112, allocations: 13.64 MB / 0.9922 GB, free: 43.77 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03268/3.144, allocations: 12.16 MB / 1.004 GB, free: 31.59 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-05/3.145, allocations: 16 kB / 1.004 GB, free: 31.57 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.404e-05/3.145, allocations: 19.92 kB / 1.004 GB, free: 31.55 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.36/3.505, allocations: 29.19 MB / 1.033 GB, free: 85.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.046e-05/3.505, allocations: 2.438 kB / 1.033 GB, free: 85.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006083/3.511, allocations: 0.8989 MB / 1.033 GB, free: 85.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02611/3.537, allocations: 5.512 MB / 1.039 GB, free: 85.71 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001227/3.538, allocations: 115.8 kB / 1.039 GB, free: 85.71 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04913/3.587, allocations: 28.16 MB / 1.066 GB, free: 78.06 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003633/3.591, allocations: 4.668 MB / 1.071 GB, free: 73.97 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04887/3.64, allocations: 20.38 MB / 1.091 GB, free: 72.59 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003019/3.643, allocations: 0.8327 MB / 1.092 GB, free: 72.45 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003183/3.646, allocations: 89.55 kB / 1.092 GB, free: 72.39 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007739/3.654, allocations: 0.5053 MB / 1.092 GB, free: 72.34 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001881/3.656, allocations: 312.2 kB / 1.093 GB, free: 72.3 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000971/3.657, allocations: 120.5 kB / 1.093 GB, free: 72.28 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01344/3.67, allocations: 5.324 MB / 1.098 GB, free: 70.53 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.295e-06/3.67, allocations: 2.531 kB / 1.098 GB, free: 70.53 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01552/3.686, allocations: 2.773 MB / 1.101 GB, free: 70.29 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 36 ($STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[6],$STATESET2.x[5],$STATESET2.x[4],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],Spherical1.phi[1],Spherical1.phi[2],Spherical1.phi[3],Spherical1.phi_d[1],Spherical1.phi_d[2],Spherical1.phi_d[3],Spherical2.phi[1],Spherical2.phi[2],Spherical2.phi[3],Spherical2.phi_d[1],Spherical2.phi_d[2],Spherical2.phi_d[3],Spherical3.w_rel[1],Spherical3.w_rel[2],Spherical3.w_rel[3],Spherical4.w_rel[1],Spherical4.w_rel[2],Spherical4.w_rel[3],boxBody5.body.w_a[1],boxBody5.body.w_a[2],boxBody5.body.w_a[3],boxBody6.body.w_a[1],boxBody6.body.w_a[2],boxBody6.body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (296): * Single equations (assignments): 281 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 9 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 6 {(2,100.0%),(2,100.0%),(4,100.0%),(4,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 3 {8,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(8,54.7%) 13,(8,59.4%) 13,(8,54.7%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001506/3.688, allocations: 245.6 kB / 1.101 GB, free: 70.14 MB / 474.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Joints.mo:1330:5-1332:19:writable] Warning: Variable Spherical2.phi_d[1] has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Joints.mo:1330:5-1332:19:writable] Warning: Variable Spherical2.phi_d[2] has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Joints.mo:1330:5-1332:19:writable] Warning: Variable Spherical1.phi_d[1] has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Joints.mo:1330:5-1332:19:writable] Warning: Variable Spherical1.phi_d[2] has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. Notification: Performance of simCode: created initialization part: time 0.03296/3.721, allocations: 15.19 MB / 1.116 GB, free: 64.5 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.651e-06/3.721, allocations: 0 / 1.116 GB, free: 64.5 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01742/3.738, allocations: 7.271 MB / 1.123 GB, free: 61.15 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008761/3.747, allocations: 1.217 MB / 1.124 GB, free: 60.7 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05301/3.8, allocations: 21.45 MB / 1.145 GB, free: 47.82 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0138/3.814, allocations: 6.325 MB / 1.151 GB, free: 43.27 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003525/3.817, allocations: 0.6069 MB / 1.152 GB, free: 42.71 MB / 474.7 MB Notification: Performance of SimCode: time 2.203e-06/3.817, allocations: 0 / 1.152 GB, free: 42.71 MB / 474.7 MB Notification: Performance of Templates: time 1.748/5.565, allocations: 0.5647 GB / 1.716 GB, free: 39.22 MB / 0.5105 GB