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.UniversalSpherical.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.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bodyBox.body.Q.1.|bodyBox.body.Q.2.|bodyBox.body.Q.3.|bodyBox.body.Q.4.|bodyBox.body.w_a.1.|bodyBox.body.w_a.2.|bodyBox.body.w_a.3.|bodyBox.v_0.1.|bodyBox.v_0.2.|bodyBox.v_0.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.|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b|universalSpherical.rRod_0.1.|universalSpherical.rRod_0.2.|universalSpherical.rRod_0.3.",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.UniversalSpherical") Notification: Performance of loadModel(ModelicaTest): time 2.057/2.057, allocations: 209.2 MB / 225.4 MB, free: 0.7617 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004626/0.0004626, allocations: 8 kB / 283.1 MB, free: 9.707 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.108, allocations: 48.71 MB / 331.8 MB, free: 8.906 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4545/0.5625, allocations: 108.4 MB / 440.2 MB, free: 8.746 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002738/0.5629, allocations: 79.97 kB / 440.3 MB, free: 8.668 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.489/2.052, allocations: 230.6 MB / 0.6551 GB, free: 26.36 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.565e-06/2.052, allocations: 2.844 kB / 0.6551 GB, free: 26.36 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001221/2.053, allocations: 281.5 kB / 0.6554 GB, free: 26.36 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: 4696 * Number of variables: 4696 Notification: Performance of Generate backend data structure: time 0.09007/2.143, allocations: 15.21 MB / 0.6703 GB, free: 22.11 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.458e-05/2.143, allocations: 11.62 kB / 0.6703 GB, free: 22.11 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07723/2.22, allocations: 10.46 MB / 0.6805 GB, free: 21.25 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05167/2.272, allocations: 14.01 MB / 0.6942 GB, free: 19.96 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001631/2.274, allocations: 1.084 MB / 0.6952 GB, free: 19.93 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008495/2.282, allocations: 1.442 MB / 0.6966 GB, free: 19.91 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1069/2.389, allocations: 33.07 MB / 0.7289 GB, free: 13.86 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001192/2.39, allocations: 140.8 kB / 0.7291 GB, free: 13.84 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006929/2.397, allocations: 0.6615 MB / 0.7297 GB, free: 13.84 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00562/2.403, allocations: 2.54 MB / 0.7322 GB, free: 13.82 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08779/2.491, allocations: 27.26 MB / 0.7588 GB, free: 7.434 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.614/3.105, allocations: 131.3 MB / 0.887 GB, free: 12.57 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.06359/3.169, allocations: 12.99 MB / 0.8997 GB, free: 11.88 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07275/3.241, allocations: 30.97 MB / 0.93 GB, free: 20.26 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.681e-05/3.242, allocations: 82.67 kB / 0.9301 GB, free: 20.22 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=424): time 8.866e-06/3.242, allocations: 2.562 kB / 0.9301 GB, free: 20.22 MB / 0.4948 GB Notification: Performance of matching and sorting (n=554): time 1.114/4.355, allocations: 130.3 MB / 1.057 GB, free: 89.48 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.05378/4.409, allocations: 24.18 MB / 1.081 GB, free: 82.2 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02373/4.433, allocations: 9.377 MB / 1.09 GB, free: 81.49 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001875/4.435, allocations: 109.2 kB / 1.09 GB, free: 81.4 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.007196/4.442, allocations: 8.646 MB / 1.099 GB, free: 74.82 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.004271/4.446, allocations: 2.145 MB / 1.101 GB, free: 73.26 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00334/4.45, allocations: 320.5 kB / 1.101 GB, free: 73.02 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001833/4.452, allocations: 0.9923 MB / 1.102 GB, free: 72.41 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0223/4.474, allocations: 9.377 MB / 1.111 GB, free: 68.91 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02856/4.503, allocations: 18.7 MB / 1.129 GB, free: 53.05 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02895/4.532, allocations: 12.85 MB / 1.142 GB, free: 48.14 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004642/4.532, allocations: 94.44 kB / 1.142 GB, free: 48.14 MB / 0.4948 GB Notification: Performance of matching and sorting (n=2093) (initialization): time 0.1156/4.648, allocations: 34.66 MB / 1.176 GB, free: 27.1 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002431/4.648, allocations: 148 kB / 1.176 GB, free: 26.95 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.5037/5.152, allocations: 22.73 MB / 1.198 GB, free: 78.76 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05611/5.208, allocations: 9.049 MB / 1.207 GB, free: 78.69 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02579/5.234, allocations: 3.984 MB / 1.211 GB, free: 78.69 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07899/5.313, allocations: 46.91 MB / 1.257 GB, free: 64.57 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02811/5.341, allocations: 1.7 MB / 1.258 GB, free: 64.57 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0051/5.346, allocations: 0.9824 MB / 1.259 GB, free: 64.56 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1485 * Number of states: 0 () * Number of discrete variables: 69 (init2.arrowColor[3],init2.arrowColor[2],init2.arrowColor[1],init.arrowColor[3],init.arrowColor[2],init.arrowColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],universalSpherical1.cylinderColor[3],universalSpherical1.cylinderColor[2],universalSpherical1.cylinderColor[1],universalSpherical1.sphereColor[3],universalSpherical1.sphereColor[2],universalSpherical1.sphereColor[1],universalSpherical1.rodColor[3],universalSpherical1.rodColor[2],universalSpherical1.rodColor[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[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],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],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (1967): * Single equations (assignments): 1940 * Array equations: 13 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * 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: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(4,93.8%) 8,(8,76.6%) 20,(1,100.0%) 3,(1,100.0%) 9,(4,87.5%) 6,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.02026/5.366, allocations: 6.275 MB / 1.266 GB, free: 62.47 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003682/5.37, allocations: 0.8628 MB / 1.266 GB, free: 62.47 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1196/5.49, allocations: 27.62 MB / 1.293 GB, free: 54.41 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1104/5.6, allocations: 25.79 MB / 1.319 GB, free: 47.11 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001202/5.6, allocations: 19.47 kB / 1.319 GB, free: 47.11 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001689/5.601, allocations: 31.33 kB / 1.319 GB, free: 47.11 MB / 0.4948 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6272/6.228, allocations: 58.58 MB / 1.376 GB, free: 72.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.747e-05/6.228, allocations: 8.75 kB / 1.376 GB, free: 72.4 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01088/6.239, allocations: 1.078 MB / 1.377 GB, free: 72.4 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.08871/6.328, allocations: 14 MB / 1.391 GB, free: 72.3 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002213/6.33, allocations: 170.5 kB / 1.391 GB, free: 72.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1284/6.458, allocations: 61.82 MB / 1.451 GB, free: 59.16 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.05472/6.513, allocations: 23.93 MB / 1.474 GB, free: 46.42 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1366/6.65, allocations: 38.94 MB / 1.512 GB, free: 33.43 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01016/6.66, allocations: 2.479 MB / 1.515 GB, free: 32.21 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00529/6.665, allocations: 127.7 kB / 1.515 GB, free: 32.09 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01591/6.681, allocations: 0.8513 MB / 1.516 GB, free: 31.61 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003437/6.685, allocations: 416.9 kB / 1.516 GB, free: 31.22 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001758/6.686, allocations: 183.2 kB / 1.516 GB, free: 31.05 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01596/6.702, allocations: 5.768 MB / 1.522 GB, free: 25.33 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.985e-06/6.703, allocations: 0 / 1.522 GB, free: 25.33 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.02605/6.729, allocations: 4.271 MB / 1.526 GB, free: 21.07 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 30 ($STATESET5.x[5],$STATESET5.x[4],$STATESET5.x[3],$STATESET5.x[2],$STATESET5.x[1],$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[5],$STATESET2.x[4],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$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],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b) * 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 (435): * Single equations (assignments): 420 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(3,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {3,8} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 6,(4,87.5%) 6,(1,100.0%) 4,(4,93.8%) 8,(8,76.6%) 20,(7,93.9%) 12} * Non-linear torn systems: 1 {7 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.002682/6.731, allocations: 284.5 kB / 1.526 GB, free: 20.84 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.4329/7.164, allocations: 23.05 MB / 1.549 GB, free: 87.87 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.134e-05/7.164, allocations: 3.906 kB / 1.549 GB, free: 87.87 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.03395/7.198, allocations: 11.23 MB / 1.56 GB, free: 86.41 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01252/7.211, allocations: 1.268 MB / 1.561 GB, free: 86.38 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1176/7.328, allocations: 43.14 MB / 1.603 GB, free: 72.51 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02693/7.355, allocations: 9.458 MB / 1.613 GB, free: 71.45 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007279/7.363, allocations: 0.8118 MB / 1.613 GB, free: 71.44 MB / 0.5105 GB Notification: Performance of SimCode: time 1.673e-06/7.363, allocations: 0 / 1.613 GB, free: 71.44 MB / 0.5105 GB Notification: Performance of Templates: time 3.315/10.68, allocations: 0.8652 GB / 2.479 GB, free: 40.06 MB / 0.5573 GB