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.Joints.SphericalSpherical2.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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 2.041/2.041, allocations: 209.4 MB / 217.3 MB, free: 4.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.563e-05/1.571e-05, allocations: 4 kB / 271.3 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3/0.3, allocations: 48.69 MB / 320 MB, free: 14.41 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2005/0.5006, allocations: 103.5 MB / 423.5 MB, free: 8.906 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002402/0.5008, allocations: 71.97 kB / 423.6 MB, free: 8.836 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.196/1.697, allocations: 223.2 MB / 0.6316 GB, free: 29.39 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.046e-06/1.697, allocations: 0 / 0.6316 GB, free: 29.39 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006201/1.698, allocations: 276.5 kB / 0.6319 GB, free: 29.38 MB / 410.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.06024/1.758, allocations: 13.78 MB / 0.6454 GB, free: 24.98 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/1.758, allocations: 7.594 kB / 0.6454 GB, free: 24.98 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05942/1.817, allocations: 10.87 MB / 0.656 GB, free: 24.12 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04377/1.861, allocations: 15.46 MB / 0.6711 GB, free: 22.7 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007719/1.862, allocations: 473.4 kB / 0.6715 GB, free: 22.7 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005411/1.867, allocations: 0.8701 MB / 0.6724 GB, free: 22.68 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04182/1.909, allocations: 18.11 MB / 0.6901 GB, free: 20.75 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06654/1.976, allocations: 26.81 MB / 0.7163 GB, free: 11.89 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009547/1.977, allocations: 149.6 kB / 0.7164 GB, free: 11.81 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005382/1.982, allocations: 72 kB / 0.7165 GB, free: 11.74 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004924/1.987, allocations: 2.34 MB / 0.7188 GB, free: 9.777 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4761/2.463, allocations: 125 MB / 0.8409 GB, free: 34.08 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01176/2.475, allocations: 7.251 MB / 0.8479 GB, free: 33.41 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008915/2.484, allocations: 5.624 MB / 0.8534 GB, free: 33.36 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005006/2.489, allocations: 4.845 MB / 0.8582 GB, free: 29.38 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.964e-05/2.489, allocations: 82.66 kB / 0.8582 GB, free: 29.33 MB / 490.7 MB Notification: Performance of pre-optimization done (n=435): time 1.018e-05/2.489, allocations: 0 / 0.8582 GB, free: 29.33 MB / 490.7 MB Notification: Performance of matching and sorting (n=569): time 0.616/3.105, allocations: 98.76 MB / 0.9547 GB, free: 99.69 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001079/3.105, allocations: 337.9 kB / 0.955 GB, free: 99.34 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01634/3.122, allocations: 7.493 MB / 0.9623 GB, free: 98.94 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001314/3.123, allocations: 25.7 kB / 0.9624 GB, free: 98.91 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005951/3.129, allocations: 8.707 MB / 0.9709 GB, free: 94.86 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00317/3.132, allocations: 2.135 MB / 0.9729 GB, free: 93.6 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001948/3.134, allocations: 0 / 0.9729 GB, free: 93.6 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.001345/3.136, allocations: 1.01 MB / 0.9739 GB, free: 93.25 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01686/3.153, allocations: 8.951 MB / 0.9827 GB, free: 93.21 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02208/3.175, allocations: 18.34 MB / 1.001 GB, free: 81.1 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02243/3.197, allocations: 12.5 MB / 1.013 GB, free: 79.34 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003288/3.198, allocations: 96.09 kB / 1.013 GB, free: 79.34 MB / 490.7 MB Notification: Performance of matching and sorting (n=2145) (initialization): time 0.09492/3.292, allocations: 33.74 MB / 1.046 GB, free: 69.52 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002781/3.293, allocations: 152.9 kB / 1.046 GB, free: 69.52 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.06091/3.354, allocations: 22.62 MB / 1.068 GB, free: 57.92 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04259/3.396, allocations: 10.52 MB / 1.078 GB, free: 51.03 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02358/3.42, allocations: 4.001 MB / 1.082 GB, free: 47.65 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4093/3.829, allocations: 45.61 MB / 1.127 GB, free: 80.55 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02165/3.851, allocations: 1.503 MB / 1.128 GB, free: 80.55 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003934/3.855, allocations: 0.9993 MB / 1.129 GB, free: 80.55 MB / 490.7 MB 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 (1981): * Single equations (assignments): 1952 * 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.006004/3.861, allocations: 0.9333 MB / 1.13 GB, free: 80.44 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00254/3.864, allocations: 0.8336 MB / 1.131 GB, free: 80.44 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08607/3.95, allocations: 28.39 MB / 1.159 GB, free: 79.98 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0825/4.032, allocations: 26.75 MB / 1.185 GB, free: 76.01 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.064e-05/4.032, allocations: 29.12 kB / 1.185 GB, free: 76.01 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001447/4.033, allocations: 30.38 kB / 1.185 GB, free: 76.01 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1478/4.18, allocations: 60.26 MB / 1.244 GB, free: 42.62 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.663e-05/4.18, allocations: 4 kB / 1.244 GB, free: 42.62 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006241/4.187, allocations: 1.018 MB / 1.245 GB, free: 41.64 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0637/4.25, allocations: 15.59 MB / 1.26 GB, free: 26.13 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001616/4.252, allocations: 102.9 kB / 1.26 GB, free: 26.03 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4159/4.668, allocations: 61.49 MB / 1.32 GB, free: 89.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.03937/4.707, allocations: 23.45 MB / 1.343 GB, free: 81.63 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1024/4.81, allocations: 40.51 MB / 1.383 GB, free: 70.26 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003022/4.813, allocations: 0.8904 MB / 1.383 GB, free: 70.08 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003462/4.816, allocations: 44.61 kB / 1.383 GB, free: 70.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01107/4.828, allocations: 0.8166 MB / 1.384 GB, free: 70.07 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002947/4.831, allocations: 457.7 kB / 1.385 GB, free: 70.01 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001596/4.832, allocations: 185.6 kB / 1.385 GB, free: 69.98 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01269/4.845, allocations: 4.984 MB / 1.39 GB, free: 68.17 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.623e-06/4.845, allocations: 0 / 1.39 GB, free: 68.17 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.02434/4.869, allocations: 4.263 MB / 1.394 GB, free: 68.16 MB / 0.4948 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.001944/4.871, allocations: 196 kB / 1.394 GB, free: 68.07 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.04198/4.913, allocations: 22.32 MB / 1.416 GB, free: 54.25 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.038e-05/4.913, allocations: 1.219 kB / 1.416 GB, free: 54.25 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.02265/4.936, allocations: 11.38 MB / 1.427 GB, free: 44.29 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008437/4.944, allocations: 1.107 MB / 1.428 GB, free: 43.41 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08371/5.028, allocations: 32.98 MB / 1.46 GB, free: 14.86 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02378/5.052, allocations: 9.412 MB / 1.469 GB, free: 8.074 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005389/5.057, allocations: 0.7846 MB / 1.47 GB, free: 7.395 MB / 0.4948 GB Notification: Performance of SimCode: time 2.006e-06/5.058, allocations: 0 / 1.47 GB, free: 7.395 MB / 0.4948 GB Notification: Performance of Templates: time 2.742/7.8, allocations: 0.85 GB / 2.32 GB, free: 80.8 MB / 0.5261 GB