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.923/1.923, allocations: 209.3 MB / 222.4 MB, free: 7.73 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.002e-05/3.024e-05, allocations: 4 kB / 277.8 MB, free: 15.31 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08781/0.08787, allocations: 48.7 MB / 326.5 MB, free: 14.52 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3522/0.4401, allocations: 88.55 MB / 415.1 MB, free: 3.277 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001727/0.4403, allocations: 66.59 kB / 415.1 MB, free: 3.246 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8623/1.303, allocations: 171.7 MB / 0.5731 GB, free: 73.55 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.799e-06/1.303, allocations: 0 / 0.5731 GB, free: 73.55 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0006702/1.303, allocations: 171.8 kB / 0.5733 GB, free: 73.54 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.04578/1.349, allocations: 10.03 MB / 0.5831 GB, free: 70.3 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/1.349, allocations: 10.59 kB / 0.5831 GB, free: 70.3 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1047/1.454, allocations: 21.89 MB / 0.6045 GB, free: 69.32 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05172/1.506, allocations: 19.86 MB / 0.6239 GB, free: 55.9 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006195/1.506, allocations: 0.5582 MB / 0.6244 GB, free: 55.38 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003515/1.51, allocations: 0.7855 MB / 0.6252 GB, free: 54.64 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04606/1.556, allocations: 19.14 MB / 0.6439 GB, free: 33.99 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006582/1.557, allocations: 134.8 kB / 0.644 GB, free: 33.86 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003087/1.56, allocations: 371.2 kB / 0.6444 GB, free: 33.54 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003078/1.563, allocations: 1.642 MB / 0.646 GB, free: 31.89 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03993/1.603, allocations: 15.9 MB / 0.6615 GB, free: 16 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4045/2.008, allocations: 90.06 MB / 0.7494 GB, free: 36.73 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03183/2.039, allocations: 8.744 MB / 0.758 GB, free: 36.05 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00783/2.047, allocations: 4.804 MB / 0.7627 GB, free: 36 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0015/2.049, allocations: 0.9975 MB / 0.7636 GB, free: 35.15 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.635e-05/2.049, allocations: 77.89 kB / 0.7637 GB, free: 35.11 MB / 458.7 MB Notification: Performance of pre-optimization done (n=322): time 8.634e-06/2.049, allocations: 0 / 0.7637 GB, free: 35.11 MB / 458.7 MB Notification: Performance of matching and sorting (n=397): time 0.2308/2.28, allocations: 57.57 MB / 0.8199 GB, free: 26.2 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004419/2.284, allocations: 5.129 MB / 0.8249 GB, free: 21.25 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01711/2.301, allocations: 7.471 MB / 0.8322 GB, free: 17.5 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00111/2.303, allocations: 85.7 kB / 0.8323 GB, free: 17.41 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004774/2.307, allocations: 5.717 MB / 0.8379 GB, free: 12.54 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002471/2.31, allocations: 1.545 MB / 0.8394 GB, free: 11.17 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001634/2.312, allocations: 223.7 kB / 0.8396 GB, free: 10.96 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.001068/2.313, allocations: 0.7867 MB / 0.8404 GB, free: 10.3 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01136/2.324, allocations: 5.619 MB / 0.8459 GB, free: 5.254 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01796/2.342, allocations: 11.91 MB / 0.8575 GB, free: 7.133 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0175/2.36, allocations: 8.005 MB / 0.8653 GB, free: 428 kB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000214/2.36, allocations: 60 kB / 0.8654 GB, free: 368 kB / 474.7 MB Notification: Performance of matching and sorting (n=1452) (initialization): time 0.3867/2.746, allocations: 35.58 MB / 0.9001 GB, free: 101.5 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000171/2.747, allocations: 99.97 kB / 0.9002 GB, free: 101.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.07338/2.82, allocations: 23.74 MB / 0.9234 GB, free: 101.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0693/2.889, allocations: 18.23 MB / 0.9412 GB, free: 97.77 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01237/2.902, allocations: 2.753 MB / 0.9439 GB, free: 97.07 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0617/2.964, allocations: 38.13 MB / 0.9811 GB, free: 60.11 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01445/2.978, allocations: 1.142 MB / 0.9823 GB, free: 59.01 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002545/2.981, allocations: 0.6686 MB / 0.9829 GB, free: 58.34 MB / 474.7 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 () * 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.003577/2.984, allocations: 0.9359 MB / 0.9838 GB, free: 57.55 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002031/2.986, allocations: 0.7849 MB / 0.9846 GB, free: 57.18 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03637/3.023, allocations: 13.65 MB / 0.9979 GB, free: 43.53 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03333/3.056, allocations: 12.17 MB / 1.01 GB, free: 31.34 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.634e-05/3.056, allocations: 16 kB / 1.01 GB, free: 31.33 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.371e-05/3.056, allocations: 23.77 kB / 1.01 GB, free: 31.31 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3602/3.417, allocations: 29.19 MB / 1.038 GB, free: 88.26 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.452e-05/3.417, allocations: 5.062 kB / 1.038 GB, free: 88.26 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006029/3.423, allocations: 0.8935 MB / 1.039 GB, free: 88.26 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02561/3.448, allocations: 5.519 MB / 1.045 GB, free: 88.17 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001252/3.45, allocations: 114.2 kB / 1.045 GB, free: 88.17 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05909/3.509, allocations: 28.17 MB / 1.072 GB, free: 80.5 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00553/3.514, allocations: 4.678 MB / 1.077 GB, free: 76.41 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07049/3.585, allocations: 20.37 MB / 1.097 GB, free: 74.34 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002602/3.588, allocations: 0.8364 MB / 1.098 GB, free: 74.17 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002747/3.59, allocations: 88.38 kB / 1.098 GB, free: 74.12 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007353/3.598, allocations: 0.5004 MB / 1.098 GB, free: 74.07 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001776/3.6, allocations: 305.8 kB / 1.098 GB, free: 74.04 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008234/3.6, allocations: 114.8 kB / 1.098 GB, free: 74.01 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01295/3.613, allocations: 5.329 MB / 1.104 GB, free: 72.25 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.154e-06/3.613, allocations: 2.219 kB / 1.104 GB, free: 72.25 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01463/3.628, allocations: 2.773 MB / 1.106 GB, free: 72.02 MB / 474.7 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 () * 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.00134/3.629, allocations: 251.4 kB / 1.107 GB, free: 71.88 MB / 474.7 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 was selected as a continuous variable. [/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 was selected as a continuous variable. [/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 was selected as a continuous variable. [/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 was selected as a continuous variable. Notification: Performance of simCode: created initialization part: time 0.03242/3.662, allocations: 15.56 MB / 1.122 GB, free: 66.09 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.75e-06/3.662, allocations: 2.594 kB / 1.122 GB, free: 66.09 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01742/3.679, allocations: 7.345 MB / 1.129 GB, free: 62.68 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008225/3.688, allocations: 1.214 MB / 1.13 GB, free: 62.23 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0506/3.738, allocations: 21.49 MB / 1.151 GB, free: 48.42 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01379/3.752, allocations: 6.318 MB / 1.157 GB, free: 43.87 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00342/3.756, allocations: 0.612 MB / 1.158 GB, free: 43.32 MB / 474.7 MB Notification: Performance of SimCode: time 1.92e-06/3.756, allocations: 0 / 1.158 GB, free: 43.32 MB / 474.7 MB Notification: Performance of Templates: time 1.669/5.424, allocations: 0.5666 GB / 1.725 GB, free: 37.23 MB / 0.5105 GB