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_cpp_ModelicaTest.MultiBody.SphericalDoublePendulum") Notification: Performance of loadModel(ModelicaTest): time 2.377/2.377, allocations: 235 MB / 247.6 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.853e-05/3.866e-05, allocations: 4.922 kB / 304.9 MB, free: 5.66 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3305/0.3305, allocations: 54.85 MB / 359.8 MB, free: 2.656 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1489/0.4795, allocations: 95.3 MB / 455.1 MB, free: 1.668 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002269/0.4798, allocations: 71.95 kB / 455.1 MB, free: 1.598 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8766/1.356, allocations: 171.9 MB / 0.6123 GB, free: 76.48 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.244e-06/1.356, allocations: 0 / 0.6123 GB, free: 76.48 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0006634/1.357, allocations: 172 kB / 0.6125 GB, free: 76.32 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.04663/1.404, allocations: 10.03 MB / 0.6223 GB, free: 66.21 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.417e-05/1.404, allocations: 8.031 kB / 0.6223 GB, free: 66.2 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1047/1.509, allocations: 21.93 MB / 0.6437 GB, free: 44.23 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05058/1.559, allocations: 19.88 MB / 0.6631 GB, free: 24.25 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006327/1.56, allocations: 0.5576 MB / 0.6637 GB, free: 23.7 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003408/1.563, allocations: 0.7805 MB / 0.6644 GB, free: 22.91 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0468/1.61, allocations: 19.04 MB / 0.683 GB, free: 2.086 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006369/1.611, allocations: 134.8 kB / 0.6831 GB, free: 1.953 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002904/1.614, allocations: 363.8 kB / 0.6835 GB, free: 1.598 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003005/1.617, allocations: 1.648 MB / 0.6851 GB, free: 15.95 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04581/1.663, allocations: 15.58 MB / 0.7003 GB, free: 356 kB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7014/2.364, allocations: 90.07 MB / 0.7883 GB, free: 25.63 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03331/2.397, allocations: 8.715 MB / 0.7968 GB, free: 23.21 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00824/2.406, allocations: 4.803 MB / 0.8015 GB, free: 21.01 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001563/2.407, allocations: 1.002 MB / 0.8025 GB, free: 20.12 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.34e-05/2.407, allocations: 72.47 kB / 0.8025 GB, free: 20.06 MB / 474.8 MB Notification: Performance of pre-optimization done (n=322): time 8.065e-06/2.407, allocations: 0 / 0.8025 GB, free: 20.06 MB / 474.8 MB Notification: Performance of matching and sorting (n=397): time 0.2379/2.645, allocations: 57.56 MB / 0.8587 GB, free: 8.617 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005428/2.651, allocations: 5.132 MB / 0.8638 GB, free: 3.188 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01976/2.671, allocations: 7.473 MB / 0.8711 GB, free: 11.87 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.001225/2.672, allocations: 85.7 kB / 0.8711 GB, free: 11.78 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.007021/2.679, allocations: 5.711 MB / 0.8767 GB, free: 6.078 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.003087/2.682, allocations: 1.549 MB / 0.8782 GB, free: 4.539 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001704/2.684, allocations: 223.8 kB / 0.8784 GB, free: 4.324 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.001238/2.685, allocations: 0.7819 MB / 0.8792 GB, free: 3.535 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01341/2.699, allocations: 5.631 MB / 0.8847 GB, free: 13.9 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3297/3.028, allocations: 11.85 MB / 0.8963 GB, free: 118.3 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01733/3.046, allocations: 8.003 MB / 0.9041 GB, free: 118.3 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002218/3.046, allocations: 62.44 kB / 0.9041 GB, free: 118.3 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1452) (initialization): time 0.1095/3.155, allocations: 35.05 MB / 0.9384 GB, free: 117.3 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001631/3.156, allocations: 98.66 kB / 0.9385 GB, free: 117.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0765/3.232, allocations: 23.9 MB / 0.9618 GB, free: 116.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07207/3.304, allocations: 18.4 MB / 0.9798 GB, free: 109.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01143/3.316, allocations: 2.721 MB / 0.9824 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06223/3.378, allocations: 38.85 MB / 1.02 GB, free: 67.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01505/3.393, allocations: 1.147 MB / 1.021 GB, free: 66.59 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002701/3.396, allocations: 0.6652 MB / 1.022 GB, free: 65.93 MB / 0.5105 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.003622/3.399, allocations: 0.9339 MB / 1.023 GB, free: 65.13 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002142/3.402, allocations: 0.7873 MB / 1.024 GB, free: 64.77 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03687/3.438, allocations: 13.65 MB / 1.037 GB, free: 51.12 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03202/3.471, allocations: 12.16 MB / 1.049 GB, free: 38.93 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.076e-05/3.471, allocations: 19.95 kB / 1.049 GB, free: 38.91 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.237e-05/3.471, allocations: 19.94 kB / 1.049 GB, free: 38.89 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07372/3.544, allocations: 29.18 MB / 1.078 GB, free: 9.738 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.035e-05/3.545, allocations: 0 / 1.078 GB, free: 9.738 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005694/3.55, allocations: 0.901 MB / 1.078 GB, free: 8.836 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02244/3.573, allocations: 5.515 MB / 1.084 GB, free: 3.285 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001157/3.574, allocations: 112.7 kB / 1.084 GB, free: 3.18 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3671/3.941, allocations: 28.16 MB / 1.111 GB, free: 104.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003455/3.945, allocations: 4.683 MB / 1.116 GB, free: 100.5 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04955/3.994, allocations: 20.36 MB / 1.136 GB, free: 98.36 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002648/3.997, allocations: 0.8294 MB / 1.137 GB, free: 98.21 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002822/4, allocations: 94.66 kB / 1.137 GB, free: 98.16 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007495/4.007, allocations: 0.5033 MB / 1.137 GB, free: 98.11 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001851/4.009, allocations: 301.6 kB / 1.138 GB, free: 98.07 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008878/4.01, allocations: 121.7 kB / 1.138 GB, free: 98.05 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01303/4.023, allocations: 5.324 MB / 1.143 GB, free: 96.3 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.356e-06/4.023, allocations: 0 / 1.143 GB, free: 96.3 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01505/4.038, allocations: 2.781 MB / 1.146 GB, free: 96.05 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.001461/4.04, allocations: 260.1 kB / 1.146 GB, free: 95.91 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.03188/4.072, allocations: 15.42 MB / 1.161 GB, free: 90.05 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.936e-06/4.072, allocations: 0 / 1.161 GB, free: 90.05 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0166/4.088, allocations: 7.273 MB / 1.168 GB, free: 86.73 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008216/4.097, allocations: 1.218 MB / 1.169 GB, free: 86.27 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05035/4.147, allocations: 21.45 MB / 1.19 GB, free: 73.96 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0132/4.16, allocations: 6.329 MB / 1.196 GB, free: 69.41 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003406/4.164, allocations: 0.6099 MB / 1.197 GB, free: 68.86 MB / 0.5105 GB Notification: Performance of SimCode: time 1.757e-06/4.164, allocations: 0 / 1.197 GB, free: 68.86 MB / 0.5105 GB Notification: Performance of Templates: time 1.701/5.864, allocations: 0.5652 GB / 1.762 GB, free: 123.2 MB / 0.5574 GB