Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.SphericalSpherical2.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.SphericalSpherical2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.Q.1.|body.Q.2.|body.Q.3.|body.Q.4.|body.w_a.1.|body.w_a.2.|body.w_a.3.|bodyBox.body.Q.1.|bodyBox.body.Q.2.|bodyBox.body.Q.3.|bodyBox.body.Q.4.|bodyBox.body.frame_a.r_0.1.|bodyBox.body.frame_a.r_0.2.|bodyBox.body.frame_a.r_0.3.|bodyBox.body.w_a.1.|bodyBox.body.w_a.2.|bodyBox.body.w_a.3.|bodyBox1.body.Q.1.|bodyBox1.body.Q.2.|bodyBox1.body.Q.3.|bodyBox1.body.Q.4.|bodyBox1.body.w_a.1.|bodyBox1.body.w_a.2.|bodyBox1.body.w_a.3.|bodyBox2.body.Q.1.|bodyBox2.body.Q.2.|bodyBox2.body.Q.3.|bodyBox2.body.Q.4.|bodyBox2.body.frame_a.r_0.1.|bodyBox2.body.frame_a.r_0.2.|bodyBox2.body.frame_a.r_0.3.|bodyBox2.body.w_a.1.|bodyBox2.body.w_a.2.|bodyBox2.body.w_a.3.|bodyBox2.v_0.1.|bodyBox2.v_0.2.|bodyBox2.v_0.3.|sphericalSpherical.v_CM_0.1.|sphericalSpherical.v_CM_0.2.|sphericalSpherical.v_CM_0.3.|sphericalSpherical1.v_CM_0.1.|sphericalSpherical1.v_CM_0.2.|sphericalSpherical1.v_CM_0.3.",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.SphericalSpherical2") Notification: Performance of loadModel(ModelicaTest): time 1.998/1.998, allocations: 209.2 MB / 225.4 MB, free: 0.5391 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006331/0.0006336, allocations: 16 kB / 283.1 MB, free: 9.664 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3591/0.3598, allocations: 48.69 MB / 331.8 MB, free: 6.5 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1852/0.5451, allocations: 104.3 MB / 436.1 MB, free: 6.133 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003065/0.5454, allocations: 83.95 kB / 436.1 MB, free: 6.051 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.444/1.99, allocations: 230.9 MB / 0.6514 GB, free: 31.71 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.544e-06/1.99, allocations: 2.062 kB / 0.6514 GB, free: 31.71 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0007591/1.991, allocations: 282 kB / 0.6516 GB, free: 31.7 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: 4609 * Number of variables: 4609 Notification: Performance of Generate backend data structure: time 0.08542/2.076, allocations: 14.52 MB / 0.6658 GB, free: 27 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/2.076, allocations: 10.75 kB / 0.6658 GB, free: 27 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08064/2.157, allocations: 10.86 MB / 0.6764 GB, free: 26.14 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05504/2.212, allocations: 15.54 MB / 0.6916 GB, free: 24.83 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001761/2.214, allocations: 1.089 MB / 0.6927 GB, free: 24.8 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009054/2.223, allocations: 1.448 MB / 0.6941 GB, free: 24.79 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1452/2.368, allocations: 32.4 MB / 0.7257 GB, free: 17.75 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001041/2.369, allocations: 155.7 kB / 0.7259 GB, free: 17.73 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006796/2.376, allocations: 0.6593 MB / 0.7265 GB, free: 17.31 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005252/2.381, allocations: 2.329 MB / 0.7288 GB, free: 16.91 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08426/2.466, allocations: 25.98 MB / 0.7542 GB, free: 1.371 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5904/3.056, allocations: 130.5 MB / 0.8816 GB, free: 20.7 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06493/3.121, allocations: 12.46 MB / 0.8938 GB, free: 20.01 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006509/3.128, allocations: 4.836 MB / 0.8985 GB, free: 16.01 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001293/3.128, allocations: 83.83 kB / 0.8986 GB, free: 15.97 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=435): time 9.628e-06/3.128, allocations: 2.688 kB / 0.8986 GB, free: 15.97 MB / 0.4948 GB Notification: Performance of matching and sorting (n=569): time 1.206/4.334, allocations: 137.7 MB / 1.033 GB, free: 97.21 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.05796/4.392, allocations: 25.89 MB / 1.058 GB, free: 88.54 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02512/4.417, allocations: 9.494 MB / 1.068 GB, free: 87.66 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001945/4.419, allocations: 114.4 kB / 1.068 GB, free: 87.57 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.007516/4.426, allocations: 8.557 MB / 1.076 GB, free: 81.15 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.004411/4.431, allocations: 2.194 MB / 1.078 GB, free: 79.55 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003466/4.434, allocations: 317.5 kB / 1.079 GB, free: 79.3 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.002253/4.437, allocations: 0.99 MB / 1.08 GB, free: 78.7 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0236/4.46, allocations: 9.389 MB / 1.089 GB, free: 75.26 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02974/4.49, allocations: 18.66 MB / 1.107 GB, free: 59.53 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03505/4.525, allocations: 12.83 MB / 1.119 GB, free: 54.68 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004335/4.526, allocations: 96.61 kB / 1.12 GB, free: 54.68 MB / 0.4948 GB Notification: Performance of matching and sorting (n=2101) (initialization): time 0.1253/4.651, allocations: 36.02 MB / 1.155 GB, free: 31.07 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002488/4.651, allocations: 147.4 kB / 1.155 GB, free: 30.93 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.5066/5.158, allocations: 23.28 MB / 1.178 GB, free: 83.93 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07816/5.236, allocations: 10.61 MB / 1.188 GB, free: 83.85 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03369/5.27, allocations: 3.918 MB / 1.192 GB, free: 83.85 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09975/5.37, allocations: 50.96 MB / 1.242 GB, free: 68.45 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02955/5.399, allocations: 1.802 MB / 1.243 GB, free: 68.2 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004296/5.404, allocations: 0.9774 MB / 1.244 GB, free: 68.07 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1475 * Number of states: 0 () * Number of discrete variables: 75 (freeMotionScalarInit1.arrowColor[3],freeMotionScalarInit1.arrowColor[2],freeMotionScalarInit1.arrowColor[1],freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],rs3.arrowColor[3],rs3.arrowColor[2],rs3.arrowColor[1],rs2.arrowColor[3],rs2.arrowColor[2],rs2.arrowColor[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],sphericalSpherical1.massColor[3],sphericalSpherical1.massColor[2],sphericalSpherical1.massColor[1],sphericalSpherical1.sphereColor[3],sphericalSpherical1.sphereColor[2],sphericalSpherical1.sphereColor[1],sphericalSpherical1.rodColor[3],sphericalSpherical1.rodColor[2],sphericalSpherical1.rodColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],spherical1.sphereColor[3],spherical1.sphereColor[2],spherical1.sphereColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],rs1.arrowColor[3],rs1.arrowColor[2],rs1.arrowColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.rodColor[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 (1937): * Single equations (assignments): 1908 * Array equations: 15 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 10 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 4 {(4,100.0%),(4,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 6 {1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(8,82.8%) 32,(1,100.0%) 3,(4,93.8%) 20,(7,63.3%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01892/5.423, allocations: 6.197 MB / 1.25 GB, free: 65.68 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003535/5.426, allocations: 0.8887 MB / 1.251 GB, free: 65.67 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1294/5.556, allocations: 29.04 MB / 1.279 GB, free: 57.5 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1218/5.677, allocations: 27.29 MB / 1.306 GB, free: 41.4 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001229/5.678, allocations: 28 kB / 1.306 GB, free: 41.38 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001491/5.678, allocations: 26.25 kB / 1.306 GB, free: 41.35 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.596/6.274, allocations: 63.35 MB / 1.368 GB, free: 78.17 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.907e-05/6.274, allocations: 9.344 kB / 1.368 GB, free: 78.16 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01016/6.284, allocations: 1.017 MB / 1.369 GB, free: 78.16 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1264/6.411, allocations: 15.7 MB / 1.384 GB, free: 78.06 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002125/6.413, allocations: 174.5 kB / 1.385 GB, free: 78.06 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1482/6.561, allocations: 67.67 MB / 1.451 GB, free: 56.45 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.05531/6.616, allocations: 25.69 MB / 1.476 GB, free: 42.17 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1459/6.762, allocations: 40.33 MB / 1.515 GB, free: 9.465 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003874/6.766, allocations: 0.9539 MB / 1.516 GB, free: 8.977 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005147/6.771, allocations: 130.9 kB / 1.516 GB, free: 8.852 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01708/6.788, allocations: 0.9025 MB / 1.517 GB, free: 7.953 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003638/6.792, allocations: 448.4 kB / 1.517 GB, free: 7.52 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001821/6.794, allocations: 183.8 kB / 1.518 GB, free: 7.34 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01699/6.811, allocations: 5.871 MB / 1.523 GB, free: 1.523 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6.51e-07/6.811, allocations: 1.641 kB / 1.523 GB, free: 1.523 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.4177/7.229, allocations: 4.402 MB / 1.528 GB, free: 77.64 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 32 ($STATESET6.x[2],$STATESET6.x[1],$STATESET5.x[5],$STATESET5.x[4],$STATESET5.x[3],$STATESET5.x[2],$STATESET5.x[1],$STATESET4.x[6],$STATESET4.x[5],$STATESET4.x[4],$STATESET4.x[3],$STATESET4.x[2],$STATESET4.x[1],$STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[5],$STATESET1.x[4],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],bodyBox.body.w_a[1],bodyBox.body.w_a[2],bodyBox.body.w_a[3],bodyBox1.body.w_a[1],bodyBox1.body.w_a[2],bodyBox1.body.w_a[3],body.w_a[1],body.w_a[2],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 (412): * Single equations (assignments): 397 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(4,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 3 {3,8,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(4,93.8%) 17,(3,100.0%) 3,(8,82.8%) 29,(7,93.9%) 12,(7,63.3%) 20} * Non-linear torn systems: 1 {7 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.002761/7.232, allocations: 285.6 kB / 1.528 GB, free: 77.55 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0623/7.294, allocations: 23.39 MB / 1.551 GB, free: 76.49 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.217e-05/7.294, allocations: 3.562 kB / 1.551 GB, free: 76.49 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.03468/7.329, allocations: 11.75 MB / 1.562 GB, free: 74.96 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01314/7.342, allocations: 1.339 MB / 1.564 GB, free: 74.93 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.122/7.464, allocations: 43.67 MB / 1.606 GB, free: 60.96 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02715/7.491, allocations: 9.414 MB / 1.615 GB, free: 58.79 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007009/7.498, allocations: 0.8053 MB / 1.616 GB, free: 58.77 MB / 0.4948 GB Notification: Performance of SimCode: time 1.603e-06/7.498, allocations: 0 / 1.616 GB, free: 58.77 MB / 0.4948 GB Notification: Performance of Templates: time 3.339/10.84, allocations: 0.8548 GB / 2.471 GB, free: 46.88 MB / 0.573 GB