Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.SphericalDoublePendulum.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) 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 1.881/1.881, allocations: 209.3 MB / 224.9 MB, free: 196 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000432/0.0004321, allocations: 8 kB / 282.6 MB, free: 9.605 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2848/0.2853, allocations: 48.71 MB / 331.3 MB, free: 6.5 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1355/0.4209, allocations: 88.65 MB / 419.9 MB, free: 5.754 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002397/0.4211, allocations: 71.97 kB / 420 MB, free: 5.684 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.811/1.232, allocations: 171.6 MB / 0.5777 GB, free: 17.91 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.379e-06/1.232, allocations: 0 / 0.5777 GB, free: 17.91 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0006866/1.233, allocations: 172 kB / 0.5779 GB, free: 17.75 MB / 394.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.05037/1.283, allocations: 11.21 MB / 0.5888 GB, free: 6.441 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.119e-05/1.283, allocations: 15.97 kB / 0.5888 GB, free: 6.426 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1073/1.391, allocations: 21.86 MB / 0.6102 GB, free: 0.5156 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.5811/1.972, allocations: 19.93 MB / 0.6297 GB, free: 63.55 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007927/1.973, allocations: 0.5601 MB / 0.6302 GB, free: 63.54 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003702/1.976, allocations: 0.7858 MB / 0.631 GB, free: 63.54 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04884/2.025, allocations: 19.27 MB / 0.6498 GB, free: 58.77 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006612/2.026, allocations: 135.3 kB / 0.6499 GB, free: 58.77 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002967/2.029, allocations: 364.2 kB / 0.6503 GB, free: 58.77 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003041/2.032, allocations: 1.646 MB / 0.6519 GB, free: 58.76 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0402/2.072, allocations: 16.11 MB / 0.6676 GB, free: 58.7 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1129/2.185, allocations: 90.07 MB / 0.7556 GB, free: 11.15 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03286/2.218, allocations: 8.785 MB / 0.7642 GB, free: 6.184 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001724/2.22, allocations: 0.9962 MB / 0.7651 GB, free: 5.109 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.034e-05/2.22, allocations: 66.47 kB / 0.7652 GB, free: 5.035 MB / 442.8 MB Notification: Performance of pre-optimization done (n=322): time 8.554e-06/2.22, allocations: 4 kB / 0.7652 GB, free: 5.031 MB / 442.8 MB Notification: Performance of matching and sorting (n=397): time 0.542/2.762, allocations: 67.24 MB / 0.8309 GB, free: 88.79 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003634/2.766, allocations: 5.194 MB / 0.8359 GB, free: 84.1 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01713/2.783, allocations: 7.549 MB / 0.8433 GB, free: 83.52 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001129/2.784, allocations: 85.8 kB / 0.8434 GB, free: 83.49 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004767/2.789, allocations: 5.715 MB / 0.849 GB, free: 80.71 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002516/2.791, allocations: 1.548 MB / 0.8505 GB, free: 79.82 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001614/2.793, allocations: 219.4 kB / 0.8507 GB, free: 79.82 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.00101/2.794, allocations: 0.782 MB / 0.8514 GB, free: 79.49 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01139/2.805, allocations: 5.715 MB / 0.857 GB, free: 78.45 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01476/2.82, allocations: 12.01 MB / 0.8688 GB, free: 68.12 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01498/2.835, allocations: 8.012 MB / 0.8766 GB, free: 65.29 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002035/2.836, allocations: 62.53 kB / 0.8766 GB, free: 65.29 MB / 458.8 MB Notification: Performance of matching and sorting (n=1452) (initialization): time 0.09662/2.932, allocations: 35.63 MB / 0.9114 GB, free: 46.97 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001818/2.932, allocations: 103.1 kB / 0.9115 GB, free: 46.88 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.06696/2.999, allocations: 23.83 MB / 0.9348 GB, free: 24.64 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.06328/3.063, allocations: 18.23 MB / 0.9526 GB, free: 6.355 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01132/3.074, allocations: 2.756 MB / 0.9553 GB, free: 3.594 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3539/3.428, allocations: 40.25 MB / 0.9946 GB, free: 68.9 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01405/3.442, allocations: 1.136 MB / 0.9957 GB, free: 68.9 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00258/3.445, allocations: 0.6714 MB / 0.9964 GB, free: 68.9 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 996 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1310): * Single equations (assignments): 1286 * 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 {1,1} * 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 9} Notification: Performance of prepare postOptimizeDAE: time 0.01047/3.455, allocations: 3.956 MB / 1 GB, free: 68.78 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002243/3.458, allocations: 0.789 MB / 1.001 GB, free: 68.78 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03739/3.495, allocations: 13.73 MB / 1.014 GB, free: 65.09 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03297/3.528, allocations: 12.25 MB / 1.026 GB, free: 61.29 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001011/3.528, allocations: 17.66 kB / 1.026 GB, free: 61.29 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001076/3.528, allocations: 18.52 kB / 1.026 GB, free: 61.29 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07194/3.6, allocations: 29.29 MB / 1.055 GB, free: 51.15 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.73e-05/3.6, allocations: 7.062 kB / 1.055 GB, free: 51.15 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005293/3.606, allocations: 0.8926 MB / 1.056 GB, free: 51.13 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02233/3.628, allocations: 5.532 MB / 1.061 GB, free: 49.12 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001122/3.629, allocations: 110.6 kB / 1.061 GB, free: 49.04 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04652/3.676, allocations: 29.21 MB / 1.09 GB, free: 23.08 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003434/3.679, allocations: 4.733 MB / 1.095 GB, free: 18.02 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04651/3.726, allocations: 20.52 MB / 1.115 GB, free: 13.86 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003108/3.729, allocations: 0.8295 MB / 1.115 GB, free: 13.01 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00293/3.732, allocations: 83.98 kB / 1.115 GB, free: 12.93 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007604/3.739, allocations: 0.5062 MB / 1.116 GB, free: 12.42 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001962/3.741, allocations: 304.6 kB / 1.116 GB, free: 12.13 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00104/3.742, allocations: 119.9 kB / 1.116 GB, free: 12.01 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.01486/3.757, allocations: 5.407 MB / 1.122 GB, free: 6.641 MB / 474.8 MB Notification: Performance of sort global known variables: time 1.105e-06/3.757, allocations: 0 / 1.122 GB, free: 6.641 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01651/3.774, allocations: 2.772 MB / 1.124 GB, free: 3.879 MB / 474.8 MB 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 () * Number of clocked 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,54.7%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001527/3.776, allocations: 252 kB / 1.125 GB, free: 3.668 MB / 474.8 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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 can't be selected as a state. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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 can't be selected as a state. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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 can't be selected as a state. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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 can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.3097/4.085, allocations: 15.74 MB / 1.14 GB, free: 114.3 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 8.885e-06/4.085, allocations: 0 / 1.14 GB, free: 114.3 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01738/4.103, allocations: 7.437 MB / 1.147 GB, free: 112.9 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008551/4.111, allocations: 1.21 MB / 1.148 GB, free: 112.8 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08969/4.201, allocations: 28.05 MB / 1.176 GB, free: 103.3 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02023/4.221, allocations: 6.325 MB / 1.182 GB, free: 102.4 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005259/4.227, allocations: 0.6105 MB / 1.183 GB, free: 102.4 MB / 490.8 MB Notification: Performance of SimCode: time 1.8e-06/4.227, allocations: 0 / 1.183 GB, free: 102.4 MB / 490.8 MB Notification: Performance of Templates: time 1.863/6.09, allocations: 0.5666 GB / 1.749 GB, free: 88.39 MB / 0.4949 GB