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.2_ModelicaTest.MultiBody.SphericalDoublePendulum") Notification: Performance of loadModel(ModelicaTest): time 2.283/2.283, allocations: 235 MB / 247.2 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.985e-05/4.005e-05, allocations: 3.984 kB / 304.9 MB, free: 5.172 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3709/0.371, allocations: 54.85 MB / 359.8 MB, free: 3.148 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1485/0.5195, allocations: 95.31 MB / 455.1 MB, free: 1.605 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002226/0.5198, allocations: 67.97 kB / 455.2 MB, free: 1.539 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8694/1.389, allocations: 171.9 MB / 0.6123 GB, free: 76.4 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.371e-06/1.389, allocations: 4 kB / 0.6124 GB, free: 76.4 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0006426/1.39, allocations: 168 kB / 0.6125 GB, free: 76.23 MB / 458.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.04442/1.434, allocations: 10.04 MB / 0.6223 GB, free: 66.11 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/1.434, allocations: 8.031 kB / 0.6223 GB, free: 66.11 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1004/1.535, allocations: 21.93 MB / 0.6437 GB, free: 44.13 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04964/1.585, allocations: 19.87 MB / 0.6631 GB, free: 24.16 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005798/1.585, allocations: 0.5654 MB / 0.6637 GB, free: 23.6 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003075/1.588, allocations: 0.7805 MB / 0.6645 GB, free: 22.82 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0448/1.633, allocations: 19.04 MB / 0.683 GB, free: 1.992 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005439/1.634, allocations: 138.8 kB / 0.6832 GB, free: 1.855 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002549/1.636, allocations: 363.8 kB / 0.6835 GB, free: 1.5 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00295/1.639, allocations: 1.644 MB / 0.6851 GB, free: 15.86 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04518/1.684, allocations: 15.58 MB / 0.7003 GB, free: 264 kB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.411/2.095, allocations: 90.07 MB / 0.7883 GB, free: 27.36 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03234/2.128, allocations: 8.72 MB / 0.7968 GB, free: 24.93 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008193/2.136, allocations: 4.794 MB / 0.8015 GB, free: 22.73 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001505/2.138, allocations: 1.007 MB / 0.8025 GB, free: 21.85 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.628e-05/2.138, allocations: 70.91 kB / 0.8026 GB, free: 21.79 MB / 474.7 MB Notification: Performance of pre-optimization done (n=322): time 1.024e-05/2.138, allocations: 3.891 kB / 0.8026 GB, free: 21.79 MB / 474.7 MB Notification: Performance of matching and sorting (n=397): time 0.2455/2.383, allocations: 58.52 MB / 0.8597 GB, free: 11.02 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005608/2.389, allocations: 5.126 MB / 0.8647 GB, free: 5.391 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01976/2.409, allocations: 7.478 MB / 0.872 GB, free: 13.95 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001117/2.41, allocations: 85.7 kB / 0.8721 GB, free: 13.86 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.00775/2.418, allocations: 6.115 MB / 0.8781 GB, free: 7.75 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.003121/2.421, allocations: 1.55 MB / 0.8796 GB, free: 6.211 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001682/2.423, allocations: 223 kB / 0.8798 GB, free: 5.996 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001153/2.424, allocations: 0.7811 MB / 0.8806 GB, free: 5.211 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.3119/2.736, allocations: 5.623 MB / 0.8861 GB, free: 111.8 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01681/2.752, allocations: 11.86 MB / 0.8976 GB, free: 103.8 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01729/2.77, allocations: 8.001 MB / 0.9054 GB, free: 103.7 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003539/2.77, allocations: 64.69 kB / 0.9055 GB, free: 103.7 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1452) (initialization): time 0.1092/2.879, allocations: 35.42 MB / 0.9401 GB, free: 102.8 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002048/2.88, allocations: 97.16 kB / 0.9402 GB, free: 102.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.06854/2.948, allocations: 23.9 MB / 0.9635 GB, free: 99.1 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06298/3.011, allocations: 18.41 MB / 0.9815 GB, free: 89.19 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01136/3.023, allocations: 2.721 MB / 0.9842 GB, free: 86.46 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06492/3.088, allocations: 38.83 MB / 1.022 GB, free: 47.02 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01469/3.102, allocations: 1.149 MB / 1.023 GB, free: 45.9 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002672/3.105, allocations: 0.669 MB / 1.024 GB, free: 45.23 MB / 0.4948 GB 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 (1304): * Single equations (assignments): 1280 * 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 {4,4} * 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.003272/3.108, allocations: 0.9392 MB / 1.025 GB, free: 44.43 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001855/3.11, allocations: 0.7853 MB / 1.026 GB, free: 44.07 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03457/3.145, allocations: 13.64 MB / 1.039 GB, free: 30.36 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0322/3.177, allocations: 12.17 MB / 1.051 GB, free: 18.11 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.614e-05/3.177, allocations: 12 kB / 1.051 GB, free: 18.1 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.692e-05/3.177, allocations: 23.92 kB / 1.051 GB, free: 18.07 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3838/3.561, allocations: 29.18 MB / 1.079 GB, free: 110.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.62e-05/3.561, allocations: 6.25 kB / 1.079 GB, free: 110.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006228/3.567, allocations: 0.8971 MB / 1.08 GB, free: 110.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02449/3.592, allocations: 5.515 MB / 1.086 GB, free: 110.6 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001189/3.593, allocations: 111.5 kB / 1.086 GB, free: 110.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04781/3.641, allocations: 28.16 MB / 1.113 GB, free: 102.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003482/3.644, allocations: 4.682 MB / 1.118 GB, free: 98.84 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04696/3.691, allocations: 20.36 MB / 1.138 GB, free: 94 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002551/3.694, allocations: 0.8336 MB / 1.138 GB, free: 93.86 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002831/3.697, allocations: 88.56 kB / 1.139 GB, free: 93.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007569/3.704, allocations: 0.5031 MB / 1.139 GB, free: 93.76 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001732/3.706, allocations: 302.5 kB / 1.139 GB, free: 93.72 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007639/3.707, allocations: 114.7 kB / 1.139 GB, free: 93.7 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01219/3.719, allocations: 5.337 MB / 1.145 GB, free: 91.94 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.515e-06/3.719, allocations: 0 / 1.145 GB, free: 91.94 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01441/3.734, allocations: 2.781 MB / 1.147 GB, free: 91.7 MB / 0.5105 GB 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.001295/3.735, allocations: 253.4 kB / 1.148 GB, free: 91.56 MB / 0.5105 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Joints.mo:1298:5-1300: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.2/Mechanics/MultiBody/Joints.mo:1298:5-1300: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.2/Mechanics/MultiBody/Joints.mo:1298:5-1300:19:writable] Warning: Variable Spherical1.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.2/Mechanics/MultiBody/Joints.mo:1298:5-1300:19:writable] Warning: Variable Spherical1.phi_d[1] has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. Notification: Performance of simCode: created initialization part: time 0.0318/3.767, allocations: 15.41 MB / 1.163 GB, free: 85.7 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.089e-06/3.767, allocations: 0 / 1.163 GB, free: 85.7 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01665/3.784, allocations: 7.265 MB / 1.17 GB, free: 82.2 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007719/3.791, allocations: 1.225 MB / 1.171 GB, free: 81.21 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04516/3.837, allocations: 20.48 MB / 1.191 GB, free: 63.67 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01243/3.849, allocations: 6.327 MB / 1.197 GB, free: 59.11 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.01255/3.862, allocations: 3.721 MB / 1.201 GB, free: 56.66 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003185/3.865, allocations: 0.54 MB / 1.201 GB, free: 56.18 MB / 0.5105 GB Notification: Performance of SimCode: time 2.016e-06/3.865, allocations: 0 / 1.201 GB, free: 56.18 MB / 0.5105 GB Notification: Performance of Templates: time 0.6436/4.508, allocations: 123.3 MB / 1.322 GB, free: 107.3 MB / 0.5105 GB