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_4.0.0_ModelicaTest.MultiBody.SphericalDoublePendulum") Notification: Performance of loadModel(ModelicaTest): time 2.376/2.376, allocations: 270 MB / 283.6 MB, free: 1.906 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.588e-05/3.63e-05, allocations: 0 / 348.4 MB, free: 2.82 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.372/0.3721, allocations: 61.87 MB / 410.3 MB, free: 10.77 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1823/0.5544, allocations: 103.3 MB / 0.5015 GB, free: 3.324 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002235/0.5547, allocations: 67.97 kB / 0.5016 GB, free: 3.258 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9956/1.55, allocations: 175 MB / 0.6725 GB, free: 15.21 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.736e-06/1.55, allocations: 0 / 0.6725 GB, free: 15.21 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0007263/1.551, allocations: 176 kB / 0.6727 GB, free: 15.04 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2557 * Number of variables: 2557 Notification: Performance of Generate backend data structure: time 0.04856/1.6, allocations: 10.01 MB / 0.6824 GB, free: 4.953 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.852e-05/1.6, allocations: 8.031 kB / 0.6825 GB, free: 4.945 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1629/1.763, allocations: 21.92 MB / 0.7039 GB, free: 14.97 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.8148/2.578, allocations: 18.95 MB / 0.7224 GB, free: 83.52 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006633/2.578, allocations: 0.5614 MB / 0.7229 GB, free: 83.5 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003414/2.582, allocations: 0.7775 MB / 0.7237 GB, free: 83.5 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04638/2.628, allocations: 19.06 MB / 0.7423 GB, free: 78.76 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004746/2.629, allocations: 136.9 kB / 0.7424 GB, free: 78.76 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001946/2.631, allocations: 368 kB / 0.7428 GB, free: 78.76 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002946/2.634, allocations: 1.643 MB / 0.7444 GB, free: 78.74 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07108/2.705, allocations: 15.59 MB / 0.7596 GB, free: 78.71 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.124/2.829, allocations: 90.03 MB / 0.8475 GB, free: 17.71 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03391/2.863, allocations: 8.719 MB / 0.856 GB, free: 14.83 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007276/2.87, allocations: 4.805 MB / 0.8607 GB, free: 10.36 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001291/2.871, allocations: 0.9958 MB / 0.8617 GB, free: 9.285 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6e-05/2.871, allocations: 75.19 kB / 0.8618 GB, free: 9.207 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=322): time 8.399e-06/2.871, allocations: 0 / 0.8618 GB, free: 9.207 MB / 0.5105 GB Notification: Performance of matching and sorting (n=397): time 0.2406/3.112, allocations: 57.48 MB / 0.9179 GB, free: 13.34 MB / 0.5574 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005469/3.118, allocations: 5.119 MB / 0.9229 GB, free: 7.898 MB / 0.5574 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.018/3.136, allocations: 7.416 MB / 0.9302 GB, free: 0.6445 MB / 0.5574 GB Notification: Performance of collectPreVariables (initialization): time 0.001074/3.137, allocations: 93.31 kB / 0.9302 GB, free: 0.5508 MB / 0.5574 GB Notification: Performance of collectInitialEqns (initialization): time 0.3408/3.478, allocations: 6.101 MB / 0.9362 GB, free: 123.9 MB / 0.5574 GB Notification: Performance of collectInitialBindings (initialization): time 0.002684/3.48, allocations: 1.551 MB / 0.9377 GB, free: 123 MB / 0.5574 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001653/3.482, allocations: 222.1 kB / 0.9379 GB, free: 123 MB / 0.5574 GB Notification: Performance of setup shared object (initialization): time 0.0009385/3.483, allocations: 0.7764 MB / 0.9387 GB, free: 122.7 MB / 0.5574 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01179/3.495, allocations: 5.636 MB / 0.9442 GB, free: 122.6 MB / 0.5574 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01551/3.51, allocations: 11.88 MB / 0.9558 GB, free: 114.6 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01486/3.525, allocations: 8.012 MB / 0.9636 GB, free: 114.6 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001745/3.525, allocations: 65.03 kB / 0.9637 GB, free: 114.6 MB / 0.5574 GB Notification: Performance of matching and sorting (n=1455) (initialization): time 0.1121/3.637, allocations: 35.43 MB / 0.9983 GB, free: 113.6 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003513/3.638, allocations: 102.1 kB / 0.9984 GB, free: 113.6 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.1167/3.755, allocations: 23.9 MB / 1.022 GB, free: 109.9 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06604/3.821, allocations: 18.4 MB / 1.04 GB, free: 103.1 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01169/3.832, allocations: 2.725 MB / 1.042 GB, free: 100.3 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06299/3.895, allocations: 38.85 MB / 1.08 GB, free: 60.7 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01427/3.91, allocations: 1.146 MB / 1.081 GB, free: 59.55 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002541/3.912, allocations: 0.6698 MB / 1.082 GB, free: 58.89 MB / 0.5574 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 999 * Number of states: 0 () * Number of discrete variables: 66 (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.groundColor[3],world.groundColor[2],world.groundColor[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 (1307): * Single equations (assignments): 1283 * 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.002661/3.915, allocations: 0.9405 MB / 1.083 GB, free: 57.95 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001785/3.917, allocations: 0.7906 MB / 1.084 GB, free: 57.15 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03557/3.952, allocations: 13.64 MB / 1.097 GB, free: 43.49 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03331/3.986, allocations: 12.15 MB / 1.109 GB, free: 31.31 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.679e-05/3.986, allocations: 19.94 kB / 1.109 GB, free: 31.29 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.238e-05/3.986, allocations: 19.92 kB / 1.109 GB, free: 31.27 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4548/4.441, allocations: 29.15 MB / 1.137 GB, free: 102.5 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.028e-05/4.441, allocations: 3.875 kB / 1.137 GB, free: 102.5 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005742/4.447, allocations: 0.9016 MB / 1.138 GB, free: 102.5 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02353/4.47, allocations: 5.515 MB / 1.144 GB, free: 102.5 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001172/4.471, allocations: 109.7 kB / 1.144 GB, free: 102.5 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04652/4.518, allocations: 28.16 MB / 1.171 GB, free: 94.76 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003286/4.521, allocations: 4.676 MB / 1.176 GB, free: 90.67 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04613/4.567, allocations: 20.36 MB / 1.196 GB, free: 89.39 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002645/4.57, allocations: 0.8246 MB / 1.197 GB, free: 89.29 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002709/4.573, allocations: 88.47 kB / 1.197 GB, free: 89.29 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007288/4.58, allocations: 0.5044 MB / 1.197 GB, free: 89.29 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00174/4.582, allocations: 308.1 kB / 1.197 GB, free: 89.29 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008248/4.583, allocations: 120.6 kB / 1.198 GB, free: 89.29 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 0.01262/4.596, allocations: 5.282 MB / 1.203 GB, free: 89 MB / 0.5574 GB Notification: Performance of sort global known variables: time 1.543e-06/4.596, allocations: 0 / 1.203 GB, free: 89 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.01541/4.611, allocations: 2.784 MB / 1.205 GB, free: 89 MB / 0.5574 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.001507/4.613, allocations: 258.3 kB / 1.206 GB, free: 88.91 MB / 0.5574 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 4.0.0/Mechanics/MultiBody/Joints/Spherical.mo:91:3-93:17: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 4.0.0/Mechanics/MultiBody/Joints/Spherical.mo:91:3-93:17: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 4.0.0/Mechanics/MultiBody/Joints/Spherical.mo:91:3-93:17: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 4.0.0/Mechanics/MultiBody/Joints/Spherical.mo:91:3-93:17: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.0321/4.645, allocations: 15.42 MB / 1.221 GB, free: 83.18 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 8.069e-06/4.645, allocations: 0 / 1.221 GB, free: 83.18 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.01684/4.662, allocations: 7.263 MB / 1.228 GB, free: 79.86 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008349/4.67, allocations: 1.213 MB / 1.229 GB, free: 79.4 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.049/4.719, allocations: 20.45 MB / 1.249 GB, free: 70.34 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01371/4.733, allocations: 6.309 MB / 1.255 GB, free: 65.79 MB / 0.5574 GB Notification: Performance of simCode: alias equations: time 0.0139/4.747, allocations: 3.722 MB / 1.259 GB, free: 63.34 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003179/4.75, allocations: 0.5449 MB / 1.259 GB, free: 62.85 MB / 0.5574 GB Notification: Performance of SimCode: time 1.879e-06/4.75, allocations: 0 / 1.259 GB, free: 62.85 MB / 0.5574 GB Notification: Performance of Templates: time 0.6301/5.38, allocations: 123.1 MB / 1.38 GB, free: 120.1 MB / 0.573 GB