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.403/2.403, allocations: 234.9 MB / 250.1 MB, free: 9.93 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.034e-05/3.048e-05, allocations: 4 kB / 308 MB, free: 15.92 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3826/0.3827, allocations: 54.85 MB / 362.8 MB, free: 12.06 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.SphericalDoublePendulum): time 0.1266/0.5093, allocations: 81.08 MB / 443.9 MB, free: 12.57 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.05327/0.5626, allocations: 17.83 MB / 461.8 MB, free: 10.68 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02095/0.5836, allocations: 454.8 kB / 462.2 MB, free: 10.24 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01639/0.6001, allocations: 4.355 MB / 466.6 MB, free: 5.863 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04678/0.6469, allocations: 11.84 MB / 478.4 MB, free: 9.992 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008745/0.6557, allocations: 1.537 MB / 479.9 MB, free: 8.453 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.5087/1.165, allocations: 49.21 MB / 0.5167 GB, free: 23.18 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01566/1.18, allocations: 8.203 MB / 0.5248 GB, free: 22.56 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005065/1.185, allocations: 1.948 MB / 0.5267 GB, free: 22.56 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006587/1.192, allocations: 2.981 MB / 0.5296 GB, free: 22.14 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005827/1.198, allocations: 1.467 MB / 0.531 GB, free: 20.93 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002935/1.201, allocations: 248 kB / 0.5312 GB, free: 20.69 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005746/1.207, allocations: 3.769 MB / 0.5349 GB, free: 17.81 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003566/1.21, allocations: 0.5977 MB / 0.5355 GB, free: 17.21 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01571/1.226, allocations: 12.23 MB / 0.5474 GB, free: 6.539 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/1.226, allocations: 0 / 0.5474 GB, free: 6.539 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.745e-06/1.226, allocations: 0 / 0.5474 GB, free: 6.539 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005366/1.227, allocations: 4 kB / 0.5474 GB, free: 6.535 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.03542/1.262, allocations: 9.121 MB / 0.5564 GB, free: 14.04 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.311e-05/1.262, allocations: 8.031 kB / 0.5564 GB, free: 14.04 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.127/2.389, allocations: 58.4 MB / 0.6134 GB, free: 5.562 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0445/2.434, allocations: 12.22 MB / 0.6253 GB, free: 12.45 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006904/2.434, allocations: 453.6 kB / 0.6258 GB, free: 12.2 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006792/2.441, allocations: 0.9506 MB / 0.6267 GB, free: 11.54 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06141/2.503, allocations: 19.23 MB / 0.6455 GB, free: 12.34 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005068/2.503, allocations: 113.4 kB / 0.6456 GB, free: 12.27 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002218/2.506, allocations: 281.8 kB / 0.6458 GB, free: 12.18 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007529/2.513, allocations: 2.91 MB / 0.6487 GB, free: 9.82 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05934/2.572, allocations: 16.9 MB / 0.6652 GB, free: 13.66 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8153/3.388, allocations: 79.18 MB / 0.7425 GB, free: 178.5 MB / 0.5418 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0432/3.431, allocations: 9.219 MB / 0.7515 GB, free: 175.9 MB / 0.5418 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001986/3.433, allocations: 1.008 MB / 0.7525 GB, free: 175 MB / 0.5418 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.781e-05/3.433, allocations: 67.03 kB / 0.7526 GB, free: 175 MB / 0.5418 GB Notification: Performance of pre-optimization done (n=322): time 7.424e-06/3.433, allocations: 0 / 0.7526 GB, free: 175 MB / 0.5418 GB Notification: Performance of matching and sorting (n=397): time 0.3914/3.825, allocations: 71.99 MB / 0.8229 GB, free: 110.4 MB / 0.5418 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004473/3.829, allocations: 5.196 MB / 0.8279 GB, free: 104.7 MB / 0.5418 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02086/3.85, allocations: 9.311 MB / 0.837 GB, free: 95.45 MB / 0.5418 GB Notification: Performance of collectPreVariables (initialization): time 0.001792/3.852, allocations: 89.61 kB / 0.8371 GB, free: 95.36 MB / 0.5418 GB Notification: Performance of collectInitialEqns (initialization): time 0.005551/3.857, allocations: 5.663 MB / 0.8426 GB, free: 89.7 MB / 0.5418 GB Notification: Performance of collectInitialBindings (initialization): time 0.003327/3.861, allocations: 1.547 MB / 0.8442 GB, free: 88.17 MB / 0.5418 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002338/3.863, allocations: 224.5 kB / 0.8444 GB, free: 87.95 MB / 0.5418 GB Notification: Performance of setup shared object (initialization): time 0.001054/3.864, allocations: 0.7778 MB / 0.8451 GB, free: 87.17 MB / 0.5418 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01544/3.88, allocations: 6.1 MB / 0.8511 GB, free: 81.06 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01919/3.899, allocations: 12.31 MB / 0.8631 GB, free: 65.8 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01946/3.919, allocations: 8.393 MB / 0.8713 GB, free: 57.58 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002029/3.919, allocations: 60 kB / 0.8714 GB, free: 57.52 MB / 0.5418 GB Notification: Performance of matching and sorting (n=1440) (initialization): time 0.169/4.088, allocations: 39.3 MB / 0.9098 GB, free: 18.19 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001421/4.088, allocations: 100 kB / 0.9098 GB, free: 18.09 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.5044/4.592, allocations: 27.54 MB / 0.9367 GB, free: 199.1 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1296/4.722, allocations: 21.87 MB / 0.9581 GB, free: 196.7 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01677/4.739, allocations: 2.718 MB / 0.9608 GB, free: 196.2 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1161/4.855, allocations: 49.76 MB / 1.009 GB, free: 152.9 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01984/4.875, allocations: 1.242 MB / 1.011 GB, free: 151.7 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003002/4.878, allocations: 0.6588 MB / 1.011 GB, free: 151 MB / 0.5418 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 984 * 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 (1283): * Single equations (assignments): 1259 * 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 18} Notification: Performance of prepare postOptimizeDAE: time 0.01096/4.889, allocations: 3.889 MB / 1.015 GB, free: 147.2 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003128/4.892, allocations: 0.7904 MB / 1.016 GB, free: 146.8 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05904/4.951, allocations: 15.4 MB / 1.031 GB, free: 131.4 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05321/5.005, allocations: 13.86 MB / 1.044 GB, free: 117.5 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.063e-05/5.005, allocations: 16 kB / 1.044 GB, free: 117.5 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001141/5.005, allocations: 23.92 kB / 1.044 GB, free: 117.5 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1028/5.108, allocations: 32.18 MB / 1.076 GB, free: 85.4 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-05/5.108, allocations: 7.906 kB / 1.076 GB, free: 85.4 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008732/5.116, allocations: 0.9242 MB / 1.077 GB, free: 84.47 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03726/5.154, allocations: 6.776 MB / 1.083 GB, free: 77.75 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001648/5.155, allocations: 119.9 kB / 1.083 GB, free: 77.63 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07019/5.226, allocations: 32.8 MB / 1.115 GB, free: 44.33 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00419/5.23, allocations: 4.742 MB / 1.12 GB, free: 39.22 MB / 0.5418 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4383/5.668, allocations: 22.77 MB / 1.142 GB, free: 190.9 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003618/5.672, allocations: 0.9524 MB / 1.143 GB, free: 190.8 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00447/5.676, allocations: 87.58 kB / 1.143 GB, free: 190.8 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01236/5.689, allocations: 0.5829 MB / 1.144 GB, free: 190.8 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002548/5.691, allocations: 296.8 kB / 1.144 GB, free: 190.8 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001171/5.693, allocations: 124.5 kB / 1.144 GB, free: 190.8 MB / 0.5418 GB Notification: Performance of sorting global known variables: time 0.01731/5.71, allocations: 6.822 MB / 1.151 GB, free: 190.6 MB / 0.5418 GB Notification: Performance of sort global known variables: time 1.222e-06/5.71, allocations: 1.5 kB / 1.151 GB, free: 190.6 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.01764/5.728, allocations: 2.956 MB / 1.154 GB, free: 190.6 MB / 0.5418 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,59.4%) 13,(8,54.7%) 13,(8,59.4%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002181/5.73, allocations: 261.7 kB / 1.154 GB, free: 190.5 MB / 0.5418 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[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 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.04565/5.776, allocations: 17.02 MB / 1.171 GB, free: 184.9 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 1.211e-05/5.776, allocations: 2.25 kB / 1.171 GB, free: 184.9 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.02603/5.802, allocations: 8.081 MB / 1.179 GB, free: 181.3 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01168/5.813, allocations: 1.233 MB / 1.18 GB, free: 180.8 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06719/5.881, allocations: 28.14 MB / 1.207 GB, free: 161.5 MB / 0.5418 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01417/5.895, allocations: 6.326 MB / 1.214 GB, free: 156.9 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005014/5.9, allocations: 0.6364 MB / 1.214 GB, free: 156.4 MB / 0.5418 GB Notification: Performance of SimCode: time 1.733e-06/5.9, allocations: 0 / 1.214 GB, free: 156.4 MB / 0.5418 GB Notification: Performance of Templates: time 1.995/7.895, allocations: 0.5725 GB / 1.787 GB, free: 150.8 MB / 0.5418 GB