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.Joints.SphericalSpherical2.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.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.2_cpp_ModelicaTest.MultiBody.Joints.SphericalSpherical2") Notification: Performance of loadModel(ModelicaTest): time 2.239/2.239, allocations: 235 MB / 248.1 MB, free: 14.32 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.43e-05/3.453e-05, allocations: 4 kB / 309.7 MB, free: 1.309 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3242/0.3243, allocations: 54.86 MB / 364.5 MB, free: 5.535 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1648/0.4891, allocations: 110.9 MB / 475.5 MB, free: 1.48 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002552/0.4894, allocations: 80.58 kB / 475.5 MB, free: 1.402 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.051/1.54, allocations: 229.8 MB / 0.6888 GB, free: 3.035 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.92e-06/1.54, allocations: 0 / 0.6888 GB, free: 3.035 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0006499/1.541, allocations: 283.9 kB / 0.6891 GB, free: 2.758 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: 4609 * Number of variables: 4609 Notification: Performance of Generate backend data structure: time 0.06103/1.602, allocations: 13.78 MB / 0.7026 GB, free: 4.879 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/1.602, allocations: 8.031 kB / 0.7026 GB, free: 4.871 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.6715/2.273, allocations: 10.93 MB / 0.7132 GB, free: 41.83 MB / 474.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04526/2.319, allocations: 15.51 MB / 0.7284 GB, free: 41.3 MB / 474.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001271/2.32, allocations: 1.083 MB / 0.7295 GB, free: 41.27 MB / 474.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005724/2.326, allocations: 1.452 MB / 0.7309 GB, free: 41.25 MB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08404/2.41, allocations: 31.98 MB / 0.7621 GB, free: 34.77 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008314/2.411, allocations: 161.2 kB / 0.7623 GB, free: 34.76 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005076/2.416, allocations: 0.6604 MB / 0.7629 GB, free: 34.76 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004141/2.42, allocations: 2.323 MB / 0.7652 GB, free: 34.73 MB / 474.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06819/2.488, allocations: 25.53 MB / 0.7901 GB, free: 29.81 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.9976/3.486, allocations: 130.6 MB / 0.9176 GB, free: 29.09 MB / 0.5263 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04742/3.533, allocations: 12.38 MB / 0.9297 GB, free: 28.41 MB / 0.5263 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009725/3.543, allocations: 5.749 MB / 0.9353 GB, free: 28.35 MB / 0.5263 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00505/3.548, allocations: 4.839 MB / 0.94 GB, free: 24.36 MB / 0.5263 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.127e-05/3.548, allocations: 78.02 kB / 0.9401 GB, free: 24.32 MB / 0.5263 GB Notification: Performance of pre-optimization done (n=435): time 1.217e-05/3.548, allocations: 0 / 0.9401 GB, free: 24.32 MB / 0.5263 GB Notification: Performance of matching and sorting (n=569): time 0.4119/3.96, allocations: 110.9 MB / 1.048 GB, free: 14.44 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.04778/4.008, allocations: 24.76 MB / 1.073 GB, free: 5.426 MB / 0.5575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02015/4.028, allocations: 8.327 MB / 1.081 GB, free: 13.31 MB / 0.5731 GB Notification: Performance of collectPreVariables (initialization): time 0.001358/4.03, allocations: 113.2 kB / 1.081 GB, free: 13.2 MB / 0.5731 GB Notification: Performance of collectInitialEqns (initialization): time 0.009149/4.039, allocations: 8.561 MB / 1.089 GB, free: 4.641 MB / 0.5731 GB Notification: Performance of collectInitialBindings (initialization): time 0.004055/4.043, allocations: 2.194 MB / 1.091 GB, free: 2.465 MB / 0.5731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002143/4.045, allocations: 323 kB / 1.092 GB, free: 2.152 MB / 0.5731 GB Notification: Performance of setup shared object (initialization): time 0.001592/4.047, allocations: 1.001 MB / 1.093 GB, free: 1.141 MB / 0.5731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02043/4.067, allocations: 9.216 MB / 1.102 GB, free: 7.918 MB / 0.5888 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02991/4.097, allocations: 18.41 MB / 1.12 GB, free: 1.105 MB / 0.6044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02692/4.124, allocations: 12.76 MB / 1.132 GB, free: 4.574 MB / 0.62 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002835/4.125, allocations: 92 kB / 1.132 GB, free: 4.484 MB / 0.62 GB Notification: Performance of matching and sorting (n=2101) (initialization): time 0.4375/4.562, allocations: 36.05 MB / 1.167 GB, free: 168.1 MB / 0.62 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002319/4.562, allocations: 141.5 kB / 1.167 GB, free: 168.1 MB / 0.62 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.06591/4.628, allocations: 23.28 MB / 1.19 GB, free: 167.6 MB / 0.62 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04882/4.677, allocations: 10.94 MB / 1.201 GB, free: 167.5 MB / 0.62 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01697/4.694, allocations: 3.861 MB / 1.205 GB, free: 167.2 MB / 0.62 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0793/4.773, allocations: 51.25 MB / 1.255 GB, free: 143.5 MB / 0.62 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02141/4.795, allocations: 1.803 MB / 1.256 GB, free: 143.2 MB / 0.62 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003595/4.799, allocations: 0.9874 MB / 1.257 GB, free: 143.1 MB / 0.62 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1925): * Single equations (assignments): 1896 * 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,4,4,4,4} * 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.005149/4.804, allocations: 1.296 MB / 1.259 GB, free: 142.1 MB / 0.62 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00239/4.806, allocations: 0.8766 MB / 1.26 GB, free: 142.1 MB / 0.62 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08388/4.89, allocations: 28.88 MB / 1.288 GB, free: 127.6 MB / 0.62 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.07705/4.967, allocations: 27.1 MB / 1.314 GB, free: 103.3 MB / 0.62 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.805e-05/4.967, allocations: 24 kB / 1.314 GB, free: 103.3 MB / 0.62 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001136/4.967, allocations: 24.66 kB / 1.314 GB, free: 103.3 MB / 0.62 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.538/5.505, allocations: 63.16 MB / 1.376 GB, free: 158.1 MB / 0.62 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.013e-05/5.505, allocations: 4.531 kB / 1.376 GB, free: 158.1 MB / 0.62 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006793/5.512, allocations: 1.018 MB / 1.377 GB, free: 158.1 MB / 0.62 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06816/5.58, allocations: 15.67 MB / 1.392 GB, free: 158 MB / 0.62 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001652/5.582, allocations: 186 kB / 1.392 GB, free: 158 MB / 0.62 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1084/5.691, allocations: 64.65 MB / 1.456 GB, free: 145.1 MB / 0.62 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.04063/5.731, allocations: 24.56 MB / 1.48 GB, free: 131.3 MB / 0.62 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1034/5.835, allocations: 41.05 MB / 1.52 GB, free: 117.5 MB / 0.62 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00293/5.838, allocations: 0.9497 MB / 1.521 GB, free: 117.3 MB / 0.62 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003273/5.841, allocations: 130.6 kB / 1.521 GB, free: 117.3 MB / 0.62 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01045/5.851, allocations: 0.9038 MB / 1.522 GB, free: 116.9 MB / 0.62 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002716/5.854, allocations: 454.2 kB / 1.522 GB, free: 116.7 MB / 0.62 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001229/5.855, allocations: 181.4 kB / 1.522 GB, free: 116.5 MB / 0.62 GB Notification: Performance of sorting global known variables: time 0.01309/5.869, allocations: 5.753 MB / 1.528 GB, free: 111.3 MB / 0.62 GB Notification: Performance of sort global known variables: time 1.349e-06/5.869, allocations: 1.656 kB / 1.528 GB, free: 111.3 MB / 0.62 GB Notification: Performance of remove unused functions: time 0.02179/5.89, allocations: 4.433 MB / 1.532 GB, free: 106.9 MB / 0.62 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 () * 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.002009/5.892, allocations: 290.8 kB / 1.532 GB, free: 106.7 MB / 0.62 GB Notification: Performance of simCode: created initialization part: time 0.04333/5.936, allocations: 23.61 MB / 1.555 GB, free: 83.93 MB / 0.62 GB Notification: Performance of simCode: created event and clocks part: time 1.051e-05/5.936, allocations: 0 / 1.555 GB, free: 83.93 MB / 0.62 GB Notification: Performance of simCode: created simulation system equations: time 0.02346/5.959, allocations: 11.6 MB / 1.567 GB, free: 72.3 MB / 0.62 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009205/5.969, allocations: 1.344 MB / 1.568 GB, free: 71.04 MB / 0.62 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5803/6.549, allocations: 33.44 MB / 1.601 GB, free: 167.6 MB / 0.62 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03069/6.58, allocations: 9.434 MB / 1.61 GB, free: 166.6 MB / 0.62 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005292/6.585, allocations: 0.8011 MB / 1.611 GB, free: 166.6 MB / 0.62 GB Notification: Performance of SimCode: time 2.406e-06/6.585, allocations: 4.875 kB / 1.611 GB, free: 166.6 MB / 0.62 GB Notification: Performance of Templates: time 2.63/9.215, allocations: 0.8557 GB / 2.466 GB, free: 168.6 MB / 0.62 GB