Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.SphericalDoublePendulum.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.MultiBody.SphericalDoublePendulum") Notification: Performance of loadModel(ModelicaTest): time 2.443/2.443, allocations: 235 MB / 248.1 MB, free: 14.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.869e-05/2.906e-05, allocations: 4 kB / 309.7 MB, free: 1.332 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3228/0.3229, allocations: 54.85 MB / 364.5 MB, free: 5.547 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1476/0.4705, allocations: 95.31 MB / 459.8 MB, free: 1.145 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002273/0.4708, allocations: 72.77 kB / 459.9 MB, free: 1.074 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8826/1.353, allocations: 171.9 MB / 0.617 GB, free: 75.55 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.347e-06/1.354, allocations: 0 / 0.617 GB, free: 75.55 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0006809/1.354, allocations: 172 kB / 0.6172 GB, free: 75.38 MB / 458.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.04648/1.401, allocations: 10.03 MB / 0.627 GB, free: 65.27 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.511e-05/1.401, allocations: 8.031 kB / 0.627 GB, free: 65.26 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1029/1.504, allocations: 21.92 MB / 0.6484 GB, free: 43.29 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05187/1.556, allocations: 19.88 MB / 0.6678 GB, free: 23.32 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000651/1.556, allocations: 0.5537 MB / 0.6684 GB, free: 22.76 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003367/1.56, allocations: 0.7805 MB / 0.6691 GB, free: 21.98 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04615/1.606, allocations: 19.14 MB / 0.6878 GB, free: 1.055 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005929/1.607, allocations: 134.8 kB / 0.6879 GB, free: 0.9219 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002651/1.609, allocations: 363.8 kB / 0.6883 GB, free: 0.5664 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003386/1.613, allocations: 1.644 MB / 0.6899 GB, free: 14.92 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.6287/2.241, allocations: 15.88 MB / 0.7054 GB, free: 79.39 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1194/2.361, allocations: 90.07 MB / 0.7934 GB, free: 25.59 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03227/2.393, allocations: 8.744 MB / 0.8019 GB, free: 23.14 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008248/2.401, allocations: 4.805 MB / 0.8066 GB, free: 20.94 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001403/2.403, allocations: 1.005 MB / 0.8076 GB, free: 20.06 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.651e-05/2.403, allocations: 66.16 kB / 0.8076 GB, free: 20 MB / 474.8 MB Notification: Performance of pre-optimization done (n=322): time 8.473e-06/2.403, allocations: 0 / 0.8076 GB, free: 20 MB / 474.8 MB Notification: Performance of matching and sorting (n=397): time 0.2379/2.641, allocations: 57.58 MB / 0.8639 GB, free: 6.922 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005445/2.646, allocations: 5.126 MB / 0.8689 GB, free: 1.449 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02098/2.667, allocations: 7.478 MB / 0.8762 GB, free: 10 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.001189/2.669, allocations: 85.61 kB / 0.8763 GB, free: 9.918 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.006893/2.676, allocations: 5.713 MB / 0.8818 GB, free: 4.215 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.003147/2.679, allocations: 1.549 MB / 0.8834 GB, free: 2.68 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001854/2.681, allocations: 220 kB / 0.8836 GB, free: 2.465 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.001389/2.682, allocations: 0.778 MB / 0.8843 GB, free: 1.68 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01354/2.696, allocations: 5.638 MB / 0.8898 GB, free: 12.04 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3281/3.024, allocations: 11.91 MB / 0.9015 GB, free: 118.5 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01728/3.041, allocations: 8.003 MB / 0.9093 GB, free: 118.4 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002872/3.041, allocations: 63.19 kB / 0.9093 GB, free: 118.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1452) (initialization): time 0.1059/3.147, allocations: 35.66 MB / 0.9442 GB, free: 117.3 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001844/3.148, allocations: 98.78 kB / 0.9443 GB, free: 117.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.07203/3.22, allocations: 23.9 MB / 0.9676 GB, free: 115.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06745/3.287, allocations: 18.4 MB / 0.9856 GB, free: 108.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01148/3.299, allocations: 2.721 MB / 0.9882 GB, free: 106 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06309/3.362, allocations: 38.85 MB / 1.026 GB, free: 66.58 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01481/3.377, allocations: 1.146 MB / 1.027 GB, free: 65.47 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002699/3.379, allocations: 0.6684 MB / 1.028 GB, free: 64.81 MB / 0.5105 GB 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1304): * Single equations (assignments): 1280 * 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 9} Notification: Performance of prepare postOptimizeDAE: time 0.00411/3.383, allocations: 0.9282 MB / 1.029 GB, free: 64.02 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002422/3.386, allocations: 0.782 MB / 1.03 GB, free: 63.65 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03902/3.425, allocations: 13.66 MB / 1.043 GB, free: 49.99 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03337/3.458, allocations: 12.16 MB / 1.055 GB, free: 37.77 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.268e-05/3.458, allocations: 19.95 kB / 1.055 GB, free: 37.75 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.108e-05/3.459, allocations: 23.86 kB / 1.055 GB, free: 37.73 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07514/3.534, allocations: 29.18 MB / 1.083 GB, free: 8.555 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.964e-05/3.534, allocations: 0.625 kB / 1.083 GB, free: 8.555 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00572/3.54, allocations: 0.901 MB / 1.084 GB, free: 7.652 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.3425/3.882, allocations: 5.516 MB / 1.09 GB, free: 110.5 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001169/3.883, allocations: 108.7 kB / 1.09 GB, free: 110.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05177/3.935, allocations: 28.18 MB / 1.117 GB, free: 102.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003418/3.939, allocations: 4.682 MB / 1.122 GB, free: 98.75 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04711/3.986, allocations: 20.36 MB / 1.142 GB, free: 96.36 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002616/3.988, allocations: 0.8298 MB / 1.143 GB, free: 96.21 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002845/3.991, allocations: 87.25 kB / 1.143 GB, free: 96.16 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007399/3.999, allocations: 0.5061 MB / 1.143 GB, free: 96.12 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001838/4.001, allocations: 306.3 kB / 1.143 GB, free: 96.08 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008374/4.001, allocations: 119.9 kB / 1.143 GB, free: 96.05 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01292/4.014, allocations: 5.326 MB / 1.149 GB, free: 94.3 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.521e-06/4.014, allocations: 2.781 kB / 1.149 GB, free: 94.3 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0148/4.029, allocations: 2.787 MB / 1.151 GB, free: 94.05 MB / 0.5105 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,54.7%) 13,(8,59.4%) 13,(8,54.7%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001355/4.031, allocations: 254.4 kB / 1.152 GB, free: 93.91 MB / 0.5105 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/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@2/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. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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. Notification: Performance of simCode: created initialization part: time 0.03268/4.063, allocations: 15.79 MB / 1.167 GB, free: 87.91 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.222e-06/4.063, allocations: 0 / 1.167 GB, free: 87.91 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01773/4.081, allocations: 7.345 MB / 1.174 GB, free: 84.51 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008372/4.09, allocations: 1.22 MB / 1.175 GB, free: 84.05 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05137/4.141, allocations: 21.49 MB / 1.196 GB, free: 70.28 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01372/4.155, allocations: 6.324 MB / 1.203 GB, free: 65.73 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003313/4.158, allocations: 0.6173 MB / 1.203 GB, free: 65.17 MB / 0.5105 GB Notification: Performance of SimCode: time 2.384e-06/4.158, allocations: 0 / 1.203 GB, free: 65.17 MB / 0.5105 GB Notification: Performance of Templates: time 1.698/5.856, allocations: 0.567 GB / 1.77 GB, free: 101.5 MB / 0.5418 GB