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_ModelicaTest.MultiBody.SphericalDoublePendulum") Notification: Performance of loadModel(ModelicaTest): time 2.01/2.01, allocations: 209.3 MB / 223.8 MB, free: 0.5117 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.484e-05/3.498e-05, allocations: 4 kB / 276.2 MB, free: 15.22 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3819/0.382, allocations: 48.7 MB / 324.9 MB, free: 3.359 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.SphericalDoublePendulum): time 0.1245/0.5065, allocations: 81.08 MB / 406 MB, free: 14.22 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.05303/0.5596, allocations: 17.8 MB / 423.7 MB, free: 12.37 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02235/0.582, allocations: 458.8 kB / 424.2 MB, free: 11.92 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01575/0.5978, allocations: 4.359 MB / 428.6 MB, free: 7.539 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0463/0.6442, allocations: 11.84 MB / 440.4 MB, free: 11.66 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008539/0.6528, allocations: 1.552 MB / 442 MB, free: 10.11 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.5007/1.154, allocations: 49.2 MB / 491.2 MB, free: 41.5 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0169/1.17, allocations: 8.201 MB / 499.4 MB, free: 40.89 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004889/1.175, allocations: 1.952 MB / 0.4896 GB, free: 40.88 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006522/1.182, allocations: 2.975 MB / 0.4925 GB, free: 40.87 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005693/1.188, allocations: 1.46 MB / 0.4939 GB, free: 40.86 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003391/1.191, allocations: 249.6 kB / 0.4941 GB, free: 40.86 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006644/1.198, allocations: 3.764 MB / 0.4978 GB, free: 40.86 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004061/1.202, allocations: 0.5976 MB / 0.4984 GB, free: 40.86 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0172/1.219, allocations: 12.21 MB / 0.5103 GB, free: 35.5 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/1.219, allocations: 3.094 kB / 0.5103 GB, free: 35.5 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.776e-06/1.219, allocations: 0 / 0.5103 GB, free: 35.5 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005866/1.22, allocations: 0 / 0.5103 GB, free: 35.5 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.03574/1.256, allocations: 9.127 MB / 0.5192 GB, free: 28.72 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.918e-05/1.256, allocations: 8.031 kB / 0.5192 GB, free: 28.71 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.104/2.36, allocations: 58.35 MB / 0.5762 GB, free: 4.289 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04526/2.405, allocations: 12.21 MB / 0.5881 GB, free: 11.19 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005544/2.406, allocations: 445.1 kB / 0.5886 GB, free: 10.95 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005731/2.412, allocations: 0.9559 MB / 0.5895 GB, free: 10.28 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06065/2.472, allocations: 19.24 MB / 0.6083 GB, free: 11.07 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004918/2.473, allocations: 113.8 kB / 0.6084 GB, free: 11 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002338/2.475, allocations: 282.4 kB / 0.6087 GB, free: 10.91 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007667/2.483, allocations: 2.908 MB / 0.6115 GB, free: 8.547 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05897/2.542, allocations: 16.9 MB / 0.628 GB, free: 12.39 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4722/3.014, allocations: 79.13 MB / 0.7053 GB, free: 153.7 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04527/3.06, allocations: 9.207 MB / 0.7143 GB, free: 151.1 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002026/3.062, allocations: 1.02 MB / 0.7153 GB, free: 150.2 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.86e-05/3.062, allocations: 68.12 kB / 0.7153 GB, free: 150.1 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=322): time 7.293e-06/3.062, allocations: 0 / 0.7153 GB, free: 150.1 MB / 0.4948 GB Notification: Performance of matching and sorting (n=397): time 0.3954/3.457, allocations: 71.99 MB / 0.7856 GB, free: 95.83 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004567/3.462, allocations: 5.194 MB / 0.7907 GB, free: 90.12 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02302/3.485, allocations: 9.323 MB / 0.7998 GB, free: 80.83 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001785/3.487, allocations: 88.2 kB / 0.7999 GB, free: 80.74 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.007027/3.494, allocations: 6.07 MB / 0.8058 GB, free: 74.68 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.003653/3.497, allocations: 1.544 MB / 0.8073 GB, free: 73.15 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002422/3.5, allocations: 221.6 kB / 0.8076 GB, free: 72.94 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000829/3.501, allocations: 0.7771 MB / 0.8083 GB, free: 72.16 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01526/3.516, allocations: 6.049 MB / 0.8142 GB, free: 66.1 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0203/3.536, allocations: 12.26 MB / 0.8262 GB, free: 50.89 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01944/3.556, allocations: 8.329 MB / 0.8343 GB, free: 42.73 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000181/3.556, allocations: 60 kB / 0.8344 GB, free: 42.67 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1440) (initialization): time 0.1508/3.707, allocations: 37.87 MB / 0.8714 GB, free: 4.781 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001477/3.707, allocations: 96 kB / 0.8715 GB, free: 4.688 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.4279/4.135, allocations: 25.71 MB / 0.8966 GB, free: 178.5 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1057/4.241, allocations: 19.91 MB / 0.916 GB, free: 173.5 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01708/4.258, allocations: 2.716 MB / 0.9187 GB, free: 173 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1047/4.363, allocations: 46.27 MB / 0.9638 GB, free: 134.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02029/4.383, allocations: 1.236 MB / 0.9651 GB, free: 133 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003892/4.387, allocations: 0.6635 MB / 0.9657 GB, free: 132.3 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.01181/4.399, allocations: 3.89 MB / 0.9695 GB, free: 128.5 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00264/4.402, allocations: 0.7888 MB / 0.9703 GB, free: 128.1 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05621/4.458, allocations: 15.41 MB / 0.9853 GB, free: 112.7 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05274/4.511, allocations: 13.86 MB / 0.9988 GB, free: 98.85 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.778e-05/4.511, allocations: 16 kB / 0.9989 GB, free: 98.83 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001076/4.511, allocations: 15.94 kB / 0.9989 GB, free: 98.82 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1033/4.614, allocations: 32.2 MB / 1.03 GB, free: 66.69 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.732e-05/4.614, allocations: 6.938 kB / 1.03 GB, free: 66.69 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00867/4.623, allocations: 0.9242 MB / 1.031 GB, free: 65.76 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03746/4.66, allocations: 6.767 MB / 1.038 GB, free: 59.05 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001688/4.662, allocations: 115.9 kB / 1.038 GB, free: 58.93 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07049/4.733, allocations: 32.8 MB / 1.07 GB, free: 25.63 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004114/4.737, allocations: 4.755 MB / 1.075 GB, free: 20.52 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3873/5.124, allocations: 22.77 MB / 1.097 GB, free: 169.8 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003536/5.128, allocations: 0.9441 MB / 1.098 GB, free: 169.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004556/5.132, allocations: 88.62 kB / 1.098 GB, free: 169.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01254/5.145, allocations: 0.5834 MB / 1.098 GB, free: 169.5 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002589/5.148, allocations: 304.3 kB / 1.099 GB, free: 169.5 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000971/5.149, allocations: 117.7 kB / 1.099 GB, free: 169.5 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01657/5.165, allocations: 6.819 MB / 1.105 GB, free: 167.3 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.62e-07/5.165, allocations: 0 / 1.105 GB, free: 167.3 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01881/5.184, allocations: 2.924 MB / 1.108 GB, free: 167 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.002463/5.187, allocations: 265.5 kB / 1.109 GB, free: 166.9 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.04492/5.232, allocations: 16.91 MB / 1.125 GB, free: 160.1 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.274e-05/5.232, allocations: 2.719 kB / 1.125 GB, free: 160.1 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.02616/5.258, allocations: 8.081 MB / 1.133 GB, free: 156.5 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01209/5.27, allocations: 1.227 MB / 1.134 GB, free: 156 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06453/5.334, allocations: 27.14 MB / 1.161 GB, free: 133.9 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01362/5.348, allocations: 6.336 MB / 1.167 GB, free: 129.3 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0174/5.366, allocations: 3.763 MB / 1.171 GB, free: 126.1 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004765/5.37, allocations: 0.5578 MB / 1.171 GB, free: 125.6 MB / 0.4948 GB Notification: Performance of SimCode: time 1.673e-06/5.37, allocations: 0 / 1.171 GB, free: 125.6 MB / 0.4948 GB Notification: Performance of Templates: time 0.6388/6.009, allocations: 134.2 MB / 1.302 GB, free: 159.4 MB / 0.4948 GB