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_trunk_cpp_ModelicaTest.MultiBody.SphericalDoublePendulum") Notification: Performance of loadModel(ModelicaTest): time 2.36/2.36, allocations: 269 MB / 284.1 MB, free: 3.641 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.955e-05/2.954e-05, allocations: 0 / 349 MB, free: 10.76 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.135/0.1351, allocations: 61.89 MB / 410.9 MB, free: 12.88 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.SphericalDoublePendulum): time 0.5033/0.6384, allocations: 84.67 MB / 495.6 MB, free: 2.82 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.05614/0.6946, allocations: 18.49 MB / 0.502 GB, free: 280 kB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02193/0.7166, allocations: 474.7 kB / 0.5025 GB, free: 15.8 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01633/0.733, allocations: 4.46 MB / 0.5068 GB, free: 11.33 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04669/0.7797, allocations: 12.32 MB / 0.5189 GB, free: 14.98 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008409/0.7882, allocations: 1.533 MB / 0.5204 GB, free: 13.45 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.7786/1.567, allocations: 140.5 MB / 0.6575 GB, free: 81.82 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01445/1.581, allocations: 8.2 MB / 0.6655 GB, free: 75.94 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004656/1.586, allocations: 1.947 MB / 0.6674 GB, free: 74.66 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005738/1.592, allocations: 2.968 MB / 0.6703 GB, free: 72.4 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004888/1.597, allocations: 1.48 MB / 0.6718 GB, free: 71.19 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.002567/1.599, allocations: 248 kB / 0.672 GB, free: 70.95 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.005291/1.605, allocations: 3.748 MB / 0.6757 GB, free: 68.09 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.003382/1.608, allocations: 0.5938 MB / 0.6763 GB, free: 67.49 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.01531/1.623, allocations: 12.16 MB / 0.6881 GB, free: 56.89 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 5.229e-06/1.624, allocations: 0 / 0.6881 GB, free: 56.89 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.935e-06/1.624, allocations: 0 / 0.6881 GB, free: 56.89 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0004799/1.624, allocations: 0 / 0.6881 GB, free: 56.89 MB / 0.5105 GB 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.03338/1.657, allocations: 9.107 MB / 0.697 GB, free: 48.41 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/1.657, allocations: 13.06 kB / 0.697 GB, free: 48.4 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.06/2.718, allocations: 58.4 MB / 0.7541 GB, free: 7.926 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04228/2.76, allocations: 11.26 MB / 0.7651 GB, free: 15.46 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005721/2.761, allocations: 443 kB / 0.7655 GB, free: 15.23 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005694/2.767, allocations: 0.963 MB / 0.7664 GB, free: 14.55 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05868/2.825, allocations: 19.25 MB / 0.7852 GB, free: 15.35 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005091/2.826, allocations: 112 kB / 0.7853 GB, free: 15.29 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002484/2.828, allocations: 280.2 kB / 0.7856 GB, free: 15.2 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007673/2.836, allocations: 2.913 MB / 0.7885 GB, free: 12.84 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05847/2.895, allocations: 16.92 MB / 0.805 GB, free: 14.89 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8569/3.752, allocations: 79.17 MB / 0.8823 GB, free: 184.1 MB / 0.5887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04363/3.795, allocations: 9.232 MB / 0.8913 GB, free: 181.5 MB / 0.5887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001871/3.797, allocations: 1.001 MB / 0.8923 GB, free: 180.6 MB / 0.5887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.701e-05/3.797, allocations: 74.12 kB / 0.8924 GB, free: 180.5 MB / 0.5887 GB Notification: Performance of pre-optimization done (n=322): time 6.803e-06/3.797, allocations: 0 / 0.8924 GB, free: 180.5 MB / 0.5887 GB Notification: Performance of matching and sorting (n=397): time 0.3807/4.178, allocations: 71.62 MB / 0.9623 GB, free: 121 MB / 0.5887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004296/4.182, allocations: 5.195 MB / 0.9674 GB, free: 115.3 MB / 0.5887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01893/4.201, allocations: 9.263 MB / 0.9764 GB, free: 106.1 MB / 0.5887 GB Notification: Performance of collectPreVariables (initialization): time 0.001687/4.203, allocations: 87.03 kB / 0.9765 GB, free: 106 MB / 0.5887 GB Notification: Performance of collectInitialEqns (initialization): time 0.005243/4.208, allocations: 5.658 MB / 0.982 GB, free: 100.4 MB / 0.5887 GB Notification: Performance of collectInitialBindings (initialization): time 0.003436/4.212, allocations: 1.548 MB / 0.9835 GB, free: 98.82 MB / 0.5887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002888/4.215, allocations: 221 kB / 0.9838 GB, free: 98.61 MB / 0.5887 GB Notification: Performance of setup shared object (initialization): time 0.001019/4.216, allocations: 0.7779 MB / 0.9845 GB, free: 97.82 MB / 0.5887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01502/4.231, allocations: 6.108 MB / 0.9905 GB, free: 91.71 MB / 0.5887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01853/4.249, allocations: 12.34 MB / 1.003 GB, free: 76.41 MB / 0.5887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01865/4.268, allocations: 8.388 MB / 1.011 GB, free: 68.19 MB / 0.5887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001618/4.268, allocations: 64 kB / 1.011 GB, free: 68.13 MB / 0.5887 GB Notification: Performance of matching and sorting (n=1443) (initialization): time 0.1679/4.436, allocations: 39.34 MB / 1.049 GB, free: 28.86 MB / 0.5887 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001485/4.436, allocations: 103.9 kB / 1.049 GB, free: 28.75 MB / 0.5887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.1287/4.565, allocations: 27.54 MB / 1.076 GB, free: 1.105 MB / 0.5887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.5059/5.071, allocations: 21.87 MB / 1.098 GB, free: 204.9 MB / 0.5887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02148/5.093, allocations: 2.719 MB / 1.1 GB, free: 204.9 MB / 0.5887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1451/5.238, allocations: 49.77 MB / 1.149 GB, free: 180 MB / 0.5887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02419/5.262, allocations: 1.243 MB / 1.15 GB, free: 178.8 MB / 0.5887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003087/5.265, allocations: 0.6616 MB / 1.151 GB, free: 178.1 MB / 0.5887 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 987 * 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 (1286): * Single equations (assignments): 1262 * 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.01091/5.276, allocations: 3.885 MB / 1.154 GB, free: 174.3 MB / 0.5887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002536/5.279, allocations: 0.7825 MB / 1.155 GB, free: 174 MB / 0.5887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05772/5.336, allocations: 15.4 MB / 1.17 GB, free: 158.5 MB / 0.5887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05238/5.389, allocations: 13.85 MB / 1.184 GB, free: 144.7 MB / 0.5887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.98e-05/5.389, allocations: 16 kB / 1.184 GB, free: 144.6 MB / 0.5887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001155/5.389, allocations: 23.92 kB / 1.184 GB, free: 144.6 MB / 0.5887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1063/5.495, allocations: 32.19 MB / 1.215 GB, free: 112.5 MB / 0.5887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.111e-05/5.495, allocations: 0 / 1.215 GB, free: 112.5 MB / 0.5887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008773/5.504, allocations: 0.932 MB / 1.216 GB, free: 111.6 MB / 0.5887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03755/5.542, allocations: 6.763 MB / 1.223 GB, free: 104.9 MB / 0.5887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001623/5.544, allocations: 119.8 kB / 1.223 GB, free: 104.8 MB / 0.5887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06972/5.613, allocations: 32.78 MB / 1.255 GB, free: 71.47 MB / 0.5887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004135/5.617, allocations: 4.747 MB / 1.26 GB, free: 66.36 MB / 0.5887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0691/5.687, allocations: 22.77 MB / 1.282 GB, free: 43.57 MB / 0.5887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003218/5.69, allocations: 0.934 MB / 1.283 GB, free: 42.61 MB / 0.5887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00411/5.694, allocations: 87.97 kB / 1.283 GB, free: 42.52 MB / 0.5887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01169/5.706, allocations: 0.5859 MB / 1.283 GB, free: 41.94 MB / 0.5887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002288/5.708, allocations: 310 kB / 1.284 GB, free: 41.64 MB / 0.5887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007565/5.709, allocations: 117.4 kB / 1.284 GB, free: 41.52 MB / 0.5887 GB Notification: Performance of sorting global known variables: time 0.01541/5.724, allocations: 6.781 MB / 1.29 GB, free: 34.78 MB / 0.5887 GB Notification: Performance of sort global known variables: time 1.373e-06/5.724, allocations: 0 / 1.29 GB, free: 34.78 MB / 0.5887 GB Notification: Performance of remove unused functions: time 0.01745/5.742, allocations: 2.959 MB / 1.293 GB, free: 31.83 MB / 0.5887 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.002184/5.744, allocations: 259.1 kB / 1.294 GB, free: 31.58 MB / 0.5887 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/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 trunk/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 trunk/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. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/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. Notification: Performance of simCode: created initialization part: time 0.4125/6.157, allocations: 17.03 MB / 1.31 GB, free: 205.3 MB / 0.5887 GB Notification: Performance of simCode: created event and clocks part: time 1.194e-05/6.157, allocations: 4.688 kB / 1.31 GB, free: 205.3 MB / 0.5887 GB Notification: Performance of simCode: created simulation system equations: time 0.02861/6.185, allocations: 8.07 MB / 1.318 GB, free: 203.8 MB / 0.5887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01175/6.197, allocations: 1.234 MB / 1.319 GB, free: 203.7 MB / 0.5887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06989/6.267, allocations: 28.09 MB / 1.347 GB, free: 192.1 MB / 0.5887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01377/6.281, allocations: 6.311 MB / 1.353 GB, free: 190.1 MB / 0.5887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005007/6.286, allocations: 0.6336 MB / 1.353 GB, free: 190.1 MB / 0.5887 GB Notification: Performance of SimCode: time 1.583e-06/6.286, allocations: 0 / 1.353 GB, free: 190.1 MB / 0.5887 GB Notification: Performance of Templates: time 1.785/8.071, allocations: 0.5711 GB / 1.925 GB, free: 37.03 MB / 0.5887 GB