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_ModelicaTest.MultiBody.SphericalDoublePendulum") Notification: Performance of loadModel(ModelicaTest): time 2.39/2.39, allocations: 234.9 MB / 249.4 MB, free: 10.02 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.301e-05/5.315e-05, allocations: 4 kB / 308 MB, free: 15.35 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4316/0.4317, allocations: 54.85 MB / 362.9 MB, free: 12.27 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.SphericalDoublePendulum): time 0.1618/0.5936, allocations: 81.09 MB / 444 MB, free: 12.48 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.06958/0.6633, allocations: 17.82 MB / 461.8 MB, free: 10.6 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02462/0.6879, allocations: 450.8 kB / 462.2 MB, free: 10.16 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01615/0.7042, allocations: 4.359 MB / 466.6 MB, free: 5.777 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.05116/0.7554, allocations: 11.83 MB / 478.4 MB, free: 9.914 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008254/0.7637, allocations: 1.548 MB / 480 MB, free: 8.363 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.5185/1.282, allocations: 49.21 MB / 0.5168 GB, free: 23.14 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01885/1.301, allocations: 8.201 MB / 0.5248 GB, free: 22.53 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005398/1.307, allocations: 1.941 MB / 0.5267 GB, free: 22.53 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006345/1.313, allocations: 2.989 MB / 0.5296 GB, free: 22.03 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005199/1.318, allocations: 1.468 MB / 0.531 GB, free: 20.82 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00283/1.321, allocations: 252 kB / 0.5313 GB, free: 20.57 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006126/1.327, allocations: 3.762 MB / 0.5349 GB, free: 17.7 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003767/1.331, allocations: 0.5977 MB / 0.5355 GB, free: 17.1 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01804/1.349, allocations: 12.22 MB / 0.5475 GB, free: 6.438 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/1.349, allocations: 0 / 0.5475 GB, free: 6.438 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.727e-06/1.349, allocations: 0 / 0.5475 GB, free: 6.438 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005422/1.35, allocations: 0 / 0.5475 GB, free: 6.438 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.03502/1.385, allocations: 9.129 MB / 0.5564 GB, free: 13.94 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.529e-05/1.385, allocations: 8.031 kB / 0.5564 GB, free: 13.93 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.081/2.466, allocations: 58.4 MB / 0.6134 GB, free: 5.457 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04594/2.512, allocations: 12.22 MB / 0.6254 GB, free: 12.34 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00079/2.513, allocations: 442.8 kB / 0.6258 GB, free: 12.11 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006503/2.52, allocations: 0.9561 MB / 0.6267 GB, free: 11.43 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06203/2.582, allocations: 19.23 MB / 0.6455 GB, free: 12.23 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006834/2.583, allocations: 119.7 kB / 0.6456 GB, free: 12.16 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003258/2.586, allocations: 280.7 kB / 0.6459 GB, free: 12.07 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007992/2.594, allocations: 2.906 MB / 0.6487 GB, free: 9.715 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06083/2.655, allocations: 16.9 MB / 0.6652 GB, free: 13.55 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8373/3.492, allocations: 79.18 MB / 0.7425 GB, free: 178.6 MB / 0.5418 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04511/3.537, allocations: 9.228 MB / 0.7516 GB, free: 176 MB / 0.5418 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001963/3.539, allocations: 1.002 MB / 0.7525 GB, free: 175.1 MB / 0.5418 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.404e-05/3.539, allocations: 70.23 kB / 0.7526 GB, free: 175 MB / 0.5418 GB Notification: Performance of pre-optimization done (n=322): time 7.213e-06/3.539, allocations: 3.656 kB / 0.7526 GB, free: 175 MB / 0.5418 GB Notification: Performance of matching and sorting (n=397): time 0.3981/3.938, allocations: 71.97 MB / 0.8229 GB, free: 110.3 MB / 0.5418 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004746/3.942, allocations: 5.193 MB / 0.828 GB, free: 104.6 MB / 0.5418 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02247/3.965, allocations: 9.311 MB / 0.8371 GB, free: 95.31 MB / 0.5418 GB Notification: Performance of collectPreVariables (initialization): time 0.001748/3.967, allocations: 93.36 kB / 0.8371 GB, free: 95.22 MB / 0.5418 GB Notification: Performance of collectInitialEqns (initialization): time 0.007119/3.974, allocations: 6.068 MB / 0.8431 GB, free: 89.16 MB / 0.5418 GB Notification: Performance of collectInitialBindings (initialization): time 0.004303/3.978, allocations: 1.539 MB / 0.8446 GB, free: 87.63 MB / 0.5418 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003296/3.982, allocations: 218 kB / 0.8448 GB, free: 87.42 MB / 0.5418 GB Notification: Performance of setup shared object (initialization): time 0.001133/3.983, allocations: 0.7771 MB / 0.8455 GB, free: 86.64 MB / 0.5418 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01501/3.998, allocations: 6.1 MB / 0.8515 GB, free: 80.53 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01973/4.018, allocations: 12.32 MB / 0.8635 GB, free: 65.26 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01989/4.038, allocations: 8.392 MB / 0.8717 GB, free: 57.04 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001894/4.038, allocations: 64 kB / 0.8718 GB, free: 56.98 MB / 0.5418 GB Notification: Performance of matching and sorting (n=1440) (initialization): time 0.174/4.212, allocations: 39.69 MB / 0.9105 GB, free: 17.25 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001533/4.212, allocations: 100 kB / 0.9106 GB, free: 17.15 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.4832/4.695, allocations: 27.54 MB / 0.9375 GB, free: 199.2 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.132/4.827, allocations: 21.87 MB / 0.9589 GB, free: 196.3 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01732/4.845, allocations: 2.718 MB / 0.9615 GB, free: 195.8 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1204/4.965, allocations: 49.77 MB / 1.01 GB, free: 151.9 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01949/4.985, allocations: 1.234 MB / 1.011 GB, free: 150.7 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00297/4.988, allocations: 0.6647 MB / 1.012 GB, free: 150 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.01107/4.999, allocations: 3.887 MB / 1.016 GB, free: 146.2 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003077/5.002, allocations: 0.785 MB / 1.017 GB, free: 145.8 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05779/5.06, allocations: 15.41 MB / 1.032 GB, free: 130.4 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05151/5.111, allocations: 13.85 MB / 1.045 GB, free: 116.5 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.148e-05/5.111, allocations: 19.97 kB / 1.045 GB, free: 116.5 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001163/5.112, allocations: 19.94 kB / 1.045 GB, free: 116.5 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1019/5.213, allocations: 32.19 MB / 1.077 GB, free: 84.38 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.839e-05/5.214, allocations: 4 kB / 1.077 GB, free: 84.37 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008717/5.222, allocations: 0.9242 MB / 1.078 GB, free: 83.45 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03751/5.26, allocations: 6.777 MB / 1.084 GB, free: 76.72 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001599/5.261, allocations: 119.4 kB / 1.084 GB, free: 76.61 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07079/5.332, allocations: 32.79 MB / 1.116 GB, free: 43.31 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004284/5.337, allocations: 4.75 MB / 1.121 GB, free: 38.2 MB / 0.5418 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4587/5.795, allocations: 22.77 MB / 1.143 GB, free: 191.1 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003862/5.799, allocations: 0.9447 MB / 1.144 GB, free: 191 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004451/5.804, allocations: 85.84 kB / 1.144 GB, free: 191 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01223/5.816, allocations: 0.5801 MB / 1.145 GB, free: 191 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002329/5.818, allocations: 308.9 kB / 1.145 GB, free: 191 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001123/5.82, allocations: 120.2 kB / 1.145 GB, free: 191 MB / 0.5418 GB Notification: Performance of sorting global known variables: time 0.01634/5.836, allocations: 6.817 MB / 1.152 GB, free: 190.8 MB / 0.5418 GB Notification: Performance of sort global known variables: time 8.71e-07/5.836, allocations: 0 / 1.152 GB, free: 190.8 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.0176/5.854, allocations: 2.957 MB / 1.155 GB, free: 190.8 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.002134/5.856, allocations: 251.3 kB / 1.155 GB, free: 190.7 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.04546/5.901, allocations: 17.04 MB / 1.172 GB, free: 184.7 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 1.033e-05/5.901, allocations: 0 / 1.172 GB, free: 184.7 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.0262/5.928, allocations: 8.086 MB / 1.179 GB, free: 181.1 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01131/5.939, allocations: 1.235 MB / 1.181 GB, free: 180.6 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0626/6.002, allocations: 27.17 MB / 1.207 GB, free: 161.4 MB / 0.5418 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01345/6.015, allocations: 6.314 MB / 1.213 GB, free: 156.8 MB / 0.5418 GB Notification: Performance of simCode: alias equations: time 0.01731/6.032, allocations: 3.767 MB / 1.217 GB, free: 154.3 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004599/6.037, allocations: 0.5649 MB / 1.218 GB, free: 153.8 MB / 0.5418 GB Notification: Performance of SimCode: time 1.693e-06/6.037, allocations: 0 / 1.218 GB, free: 153.8 MB / 0.5418 GB Notification: Performance of Templates: time 0.701/6.738, allocations: 139 MB / 1.353 GB, free: 185.1 MB / 0.5418 GB