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 2.132/2.132, allocations: 209.3 MB / 224.4 MB, free: 0.6641 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.057e-05/3.095e-05, allocations: 7.984 kB / 276.1 MB, free: 15.89 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3513/0.3514, allocations: 48.7 MB / 324.8 MB, free: 2.883 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.SphericalDoublePendulum): time 0.1285/0.4799, allocations: 81.08 MB / 405.9 MB, free: 14.31 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.05961/0.5395, allocations: 17.8 MB / 423.7 MB, free: 12.45 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0276/0.5672, allocations: 454.8 kB / 424.2 MB, free: 12.01 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.02179/0.5891, allocations: 4.355 MB / 428.5 MB, free: 7.633 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.05173/0.6409, allocations: 11.85 MB / 440.4 MB, free: 11.75 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008797/0.6497, allocations: 1.549 MB / 441.9 MB, free: 10.2 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.4999/1.15, allocations: 49.2 MB / 491.1 MB, free: 41.62 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01736/1.167, allocations: 8.202 MB / 499.3 MB, free: 41.02 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005092/1.172, allocations: 1.946 MB / 0.4895 GB, free: 41.01 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006643/1.179, allocations: 2.976 MB / 0.4924 GB, free: 41 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005785/1.185, allocations: 1.455 MB / 0.4939 GB, free: 41 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003124/1.188, allocations: 249.5 kB / 0.4941 GB, free: 41 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006465/1.195, allocations: 3.773 MB / 0.4978 GB, free: 40.99 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004188/1.199, allocations: 0.5961 MB / 0.4984 GB, free: 40.99 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0182/1.217, allocations: 12.22 MB / 0.5103 GB, free: 35.59 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/1.217, allocations: 0 / 0.5103 GB, free: 35.59 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.176e-06/1.217, allocations: 0 / 0.5103 GB, free: 35.59 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006292/1.218, allocations: 0 / 0.5103 GB, free: 35.59 MB / 410.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.03784/1.256, allocations: 9.126 MB / 0.5192 GB, free: 28.77 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.981e-05/1.256, allocations: 8.031 kB / 0.5192 GB, free: 28.76 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.044/2.3, allocations: 58.35 MB / 0.5762 GB, free: 4.328 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04519/2.345, allocations: 12.22 MB / 0.5881 GB, free: 11.22 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006054/2.346, allocations: 444.6 kB / 0.5886 GB, free: 10.98 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006165/2.352, allocations: 0.9497 MB / 0.5895 GB, free: 10.32 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.062/2.414, allocations: 19.24 MB / 0.6083 GB, free: 11.11 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006398/2.415, allocations: 103.3 kB / 0.6084 GB, free: 11.04 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003727/2.419, allocations: 281.9 kB / 0.6086 GB, free: 10.96 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008619/2.427, allocations: 2.914 MB / 0.6115 GB, free: 8.59 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06015/2.487, allocations: 16.9 MB / 0.628 GB, free: 12.44 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4849/2.972, allocations: 79.14 MB / 0.7053 GB, free: 153 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04462/3.017, allocations: 9.208 MB / 0.7143 GB, free: 150.5 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002023/3.019, allocations: 1.009 MB / 0.7152 GB, free: 149.6 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.304e-05/3.019, allocations: 69.78 kB / 0.7153 GB, free: 149.5 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=322): time 7.134e-06/3.019, allocations: 0 / 0.7153 GB, free: 149.5 MB / 0.4948 GB Notification: Performance of matching and sorting (n=397): time 0.4193/3.439, allocations: 71.98 MB / 0.7856 GB, free: 95.85 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004546/3.443, allocations: 5.195 MB / 0.7907 GB, free: 90.14 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02144/3.465, allocations: 9.327 MB / 0.7998 GB, free: 80.85 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001744/3.467, allocations: 83.27 kB / 0.7999 GB, free: 80.76 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.005496/3.472, allocations: 5.671 MB / 0.8054 GB, free: 75.1 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.003592/3.476, allocations: 1.538 MB / 0.8069 GB, free: 73.57 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002658/3.478, allocations: 217.7 kB / 0.8071 GB, free: 73.36 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001043/3.48, allocations: 0.7778 MB / 0.8079 GB, free: 72.58 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01488/3.494, allocations: 6.053 MB / 0.8138 GB, free: 66.52 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01895/3.513, allocations: 12.26 MB / 0.8258 GB, free: 51.3 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01915/3.533, allocations: 8.336 MB / 0.8339 GB, free: 43.14 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001558/3.533, allocations: 62.62 kB / 0.834 GB, free: 43.09 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1440) (initialization): time 0.1618/3.695, allocations: 37.49 MB / 0.8706 GB, free: 5.555 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002133/3.695, allocations: 100 kB / 0.8707 GB, free: 5.457 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.4848/4.18, allocations: 25.71 MB / 0.8958 GB, free: 178.2 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1057/4.286, allocations: 19.9 MB / 0.9152 GB, free: 173.1 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01726/4.303, allocations: 2.714 MB / 0.9179 GB, free: 172.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1038/4.407, allocations: 46.28 MB / 0.9631 GB, free: 135 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02018/4.427, allocations: 1.239 MB / 0.9643 GB, free: 133.8 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003245/4.43, allocations: 0.657 MB / 0.9649 GB, free: 133.1 MB / 0.4948 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): 8 * Torn equation systems: 7 * 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: 0 * 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: 4 {3 1,3 1,4 9,4 18} Notification: Performance of prepare postOptimizeDAE: time 0.01184/4.442, allocations: 3.896 MB / 0.9687 GB, free: 129.3 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003035/4.445, allocations: 0.7821 MB / 0.9695 GB, free: 128.9 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05814/4.503, allocations: 15.41 MB / 0.9845 GB, free: 113.5 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05209/4.556, allocations: 13.85 MB / 0.9981 GB, free: 99.62 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.09e-05/4.556, allocations: 16 kB / 0.9981 GB, free: 99.61 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001167/4.556, allocations: 26.05 kB / 0.9981 GB, free: 99.59 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.12/4.676, allocations: 32.2 MB / 1.03 GB, free: 67.46 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-05/4.676, allocations: 0 / 1.03 GB, free: 67.46 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01168/4.688, allocations: 0.932 MB / 1.03 GB, free: 66.53 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0408/4.728, allocations: 6.763 MB / 1.037 GB, free: 59.82 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001909/4.73, allocations: 117.3 kB / 1.037 GB, free: 59.71 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07048/4.801, allocations: 32.8 MB / 1.069 GB, free: 26.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004038/4.805, allocations: 4.742 MB / 1.074 GB, free: 21.3 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3951/5.2, allocations: 22.77 MB / 1.096 GB, free: 169.4 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00403/5.204, allocations: 0.9514 MB / 1.097 GB, free: 169.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005238/5.21, allocations: 84.64 kB / 1.097 GB, free: 169.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0126/5.222, allocations: 0.5869 MB / 1.098 GB, free: 169.1 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002406/5.225, allocations: 298.7 kB / 1.098 GB, free: 169.1 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001006/5.226, allocations: 125.8 kB / 1.098 GB, free: 169.1 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01698/5.243, allocations: 6.819 MB / 1.105 GB, free: 166.9 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.41e-07/5.243, allocations: 0 / 1.105 GB, free: 166.9 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01827/5.261, allocations: 2.917 MB / 1.108 GB, free: 166.6 MB / 0.4948 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.00232/5.263, allocations: 256.4 kB / 1.108 GB, free: 166.5 MB / 0.4948 GB [/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.04469/5.308, allocations: 16.92 MB / 1.124 GB, free: 159.7 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.286e-05/5.308, allocations: 3 kB / 1.124 GB, free: 159.7 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.02557/5.334, allocations: 8.083 MB / 1.132 GB, free: 156.1 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01198/5.346, allocations: 1.229 MB / 1.133 GB, free: 155.6 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07873/5.425, allocations: 28.13 MB / 1.161 GB, free: 133.7 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01535/5.44, allocations: 6.325 MB / 1.167 GB, free: 129.1 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005331/5.445, allocations: 0.6322 MB / 1.168 GB, free: 128.6 MB / 0.4948 GB Notification: Performance of SimCode: time 2.124e-06/5.445, allocations: 0 / 1.168 GB, free: 128.6 MB / 0.4948 GB Notification: Performance of Templates: time 1.926/7.371, allocations: 0.5709 GB / 1.739 GB, free: 78.05 MB / 0.4948 GB