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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.275/2.275, allocations: 235.1 MB / 243 MB, free: 9.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.09e-05/2.101e-05, allocations: 4 kB / 303.2 MB, free: 13.28 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2769/0.277, allocations: 54.86 MB / 358 MB, free: 14.93 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1967/0.4737, allocations: 110.2 MB / 468.3 MB, free: 0.5117 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002428/0.474, allocations: 71.97 kB / 468.4 MB, free: 452 kB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.337/1.811, allocations: 223.4 MB / 0.6755 GB, free: 41.4 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.119e-06/1.811, allocations: 0 / 0.6755 GB, free: 41.4 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0006305/1.812, allocations: 285 kB / 0.6758 GB, free: 41.39 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.05792/1.87, allocations: 13.77 MB / 0.6893 GB, free: 37 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/1.87, allocations: 11.56 kB / 0.6893 GB, free: 37 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0578/1.928, allocations: 10.93 MB / 0.6999 GB, free: 36.14 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.043/1.971, allocations: 15.5 MB / 0.7151 GB, free: 34.73 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006895/1.971, allocations: 475.9 kB / 0.7155 GB, free: 34.73 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005065/1.977, allocations: 0.8603 MB / 0.7164 GB, free: 34.72 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04033/2.017, allocations: 18.11 MB / 0.7341 GB, free: 32.78 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05945/2.076, allocations: 26.81 MB / 0.7602 GB, free: 8.316 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007403/2.077, allocations: 155.1 kB / 0.7604 GB, free: 8.234 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004461/2.082, allocations: 68 kB / 0.7605 GB, free: 8.168 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003628/2.085, allocations: 2.329 MB / 0.7627 GB, free: 6.215 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5051/2.59, allocations: 125 MB / 0.8848 GB, free: 29.36 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01134/2.602, allocations: 7.255 MB / 0.8919 GB, free: 28.69 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008575/2.61, allocations: 5.617 MB / 0.8974 GB, free: 28.64 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004892/2.615, allocations: 4.846 MB / 0.9021 GB, free: 24.65 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.794e-05/2.616, allocations: 80.83 kB / 0.9022 GB, free: 24.61 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=435): time 1.012e-05/2.616, allocations: 0 / 0.9022 GB, free: 24.61 MB / 0.5105 GB Notification: Performance of matching and sorting (n=569): time 0.31/2.926, allocations: 98.82 MB / 0.9987 GB, free: 9.879 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002446/2.926, allocations: 342.1 kB / 0.999 GB, free: 9.48 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01762/2.943, allocations: 7.493 MB / 1.006 GB, free: 3.148 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001308/2.945, allocations: 29.7 kB / 1.006 GB, free: 3.113 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.008898/2.954, allocations: 8.708 MB / 1.015 GB, free: 11.54 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.003887/2.958, allocations: 2.123 MB / 1.017 GB, free: 9.625 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001881/2.96, allocations: 2.562 kB / 1.017 GB, free: 9.625 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.001544/2.961, allocations: 1.01 MB / 1.018 GB, free: 8.805 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01894/2.98, allocations: 8.976 MB / 1.027 GB, free: 0.7422 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3635/3.344, allocations: 19.33 MB / 1.046 GB, free: 112.6 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02265/3.366, allocations: 12.5 MB / 1.058 GB, free: 112.4 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003411/3.367, allocations: 95.5 kB / 1.058 GB, free: 112.4 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2145) (initialization): time 0.09373/3.46, allocations: 34.16 MB / 1.091 GB, free: 111.4 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002776/3.461, allocations: 147.9 kB / 1.091 GB, free: 111.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.06239/3.523, allocations: 22.95 MB / 1.114 GB, free: 105.6 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04693/3.57, allocations: 10.85 MB / 1.124 GB, free: 103.8 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01731/3.588, allocations: 3.942 MB / 1.128 GB, free: 103.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07194/3.66, allocations: 47.21 MB / 1.174 GB, free: 69.57 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02124/3.681, allocations: 1.499 MB / 1.176 GB, free: 68.68 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003874/3.685, allocations: 1 MB / 1.177 GB, free: 67.75 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1520 * 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 (1969): * Single equations (assignments): 1940 * 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.005467/3.69, allocations: 0.9393 MB / 1.178 GB, free: 67.02 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002344/3.693, allocations: 0.8364 MB / 1.179 GB, free: 66.64 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07975/3.772, allocations: 28.37 MB / 1.206 GB, free: 43.38 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.4141/4.187, allocations: 26.75 MB / 1.232 GB, free: 101.4 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.695e-05/4.187, allocations: 33.12 kB / 1.232 GB, free: 101.4 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001541/4.187, allocations: 27.81 kB / 1.232 GB, free: 101.4 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.154/4.341, allocations: 60.27 MB / 1.291 GB, free: 94.56 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.599e-05/4.341, allocations: 5.812 kB / 1.291 GB, free: 94.56 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006432/4.347, allocations: 1.013 MB / 1.292 GB, free: 94.54 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06911/4.417, allocations: 15.59 MB / 1.307 GB, free: 92.27 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001554/4.418, allocations: 102.6 kB / 1.308 GB, free: 92.25 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1013/4.519, allocations: 61.49 MB / 1.368 GB, free: 59.25 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.03732/4.557, allocations: 23.44 MB / 1.391 GB, free: 35.36 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4419/4.999, allocations: 40.5 MB / 1.43 GB, free: 92.69 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002793/5.002, allocations: 0.8875 MB / 1.431 GB, free: 92.59 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003174/5.005, allocations: 49.36 kB / 1.431 GB, free: 92.59 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0109/5.016, allocations: 0.8183 MB / 1.432 GB, free: 92.59 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00279/5.019, allocations: 447.6 kB / 1.432 GB, free: 92.59 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001338/5.02, allocations: 185 kB / 1.432 GB, free: 92.59 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01234/5.032, allocations: 4.993 MB / 1.437 GB, free: 92.34 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.858e-06/5.032, allocations: 0 / 1.437 GB, free: 92.34 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.02346/5.056, allocations: 4.267 MB / 1.441 GB, free: 92.34 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 32 ($STATESET5.x[2],$STATESET5.x[1],$STATESET4.x[5],$STATESET4.x[4],$STATESET4.x[3],$STATESET4.x[2],$STATESET4.x[1],$STATESET3.x[6],$STATESET3.x[5],$STATESET3.x[4],$STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[2],$STATESET1.x[1],$STATESET0.x[5],$STATESET0.x[4],$STATESET0.x[3],$STATESET0.x[2],$STATESET0.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.001821/5.058, allocations: 204.6 kB / 1.442 GB, free: 92.25 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.04169/5.099, allocations: 22.81 MB / 1.464 GB, free: 90.8 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 9.152e-06/5.099, allocations: 0 / 1.464 GB, free: 90.8 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.02418/5.124, allocations: 11.36 MB / 1.475 GB, free: 89.38 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007936/5.132, allocations: 1.125 MB / 1.476 GB, free: 89.35 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08156/5.213, allocations: 32.99 MB / 1.508 GB, free: 79.22 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02247/5.236, allocations: 9.431 MB / 1.518 GB, free: 76.39 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005051/5.241, allocations: 0.7814 MB / 1.518 GB, free: 76.36 MB / 0.5417 GB Notification: Performance of SimCode: time 2.667e-06/5.241, allocations: 0 / 1.518 GB, free: 76.36 MB / 0.5417 GB Notification: Performance of Templates: time 2.522/7.763, allocations: 0.8506 GB / 2.369 GB, free: 65.24 MB / 0.573 GB