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.JointUSR.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.JointUSR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rRod1_ia.1.|rRod1_ia.2.|rRod1_ia.3.|rRod2_ib.1.|rRod2_ib.2.|rRod2_ib.3.|Fixed1.frame_b.r_0.1.|Fixed1.frame_b.r_0.2.|Fixed1.frame_b.r_0.3.|Fixed1.frame_b.f.1.|Fixed1.frame_b.f.2.|Fixed1.frame_b.f.3.|Fixed1.frame_b.t.1.|Fixed1.frame_b.t.2.|Fixed1.frame_b.t.3.|jointUSR.frame_b.r_0.1.|jointUSR.frame_b.r_0.2.|jointUSR.frame_b.r_0.3.|jointUSR.frame_b.f.1.|jointUSR.frame_b.f.2.|jointUSR.frame_b.f.3.|jointUSR.frame_b.t.1.|jointUSR.frame_b.t.2.|jointUSR.frame_b.t.3.|jointUSR.frame_ia.r_0.1.|jointUSR.frame_ia.r_0.2.|jointUSR.frame_ia.r_0.3.|jointUSR.frame_ia.f.1.|jointUSR.frame_ia.f.2.|jointUSR.frame_ia.f.3.|jointUSR.frame_ia.t.1.|jointUSR.frame_ia.t.2.|jointUSR.frame_ia.t.3.|jointUSR.frame_im.r_0.1.|jointUSR.frame_im.r_0.1.|jointUSR.frame_im.r_0.2.|jointUSR.frame_im.r_0.2.|jointUSR.frame_im.r_0.3.|jointUSR.frame_im.r_0.3.|jointUSR.frame_im.f.1.|jointUSR.frame_im.f.1.|jointUSR.frame_im.f.2.|jointUSR.frame_im.f.2.|jointUSR.frame_im.f.3.|jointUSR.frame_im.f.3.|jointUSR.frame_im.t.1.|jointUSR.frame_im.t.1.|jointUSR.frame_im.t.2.|jointUSR.frame_im.t.2.|jointUSR.frame_im.t.3.|jointUSR.frame_im.t.3.|jointUSR.revolute.frame_b.r_0.1.|jointUSR.revolute.frame_b.r_0.2.|jointUSR.revolute.frame_b.r_0.3.|jointUSR.revolute.frame_b.f.1.|jointUSR.revolute.frame_b.f.2.|jointUSR.revolute.frame_b.f.3.|jointUSR.revolute.frame_b.t.1.|jointUSR.revolute.frame_b.t.2.|jointUSR.revolute.frame_b.t.3.|jointUSR.rod1.frame_b.r_0.1.|jointUSR.rod1.frame_b.r_0.2.|jointUSR.rod1.frame_b.r_0.3.|jointUSR.rod1.frame_b.f.1.|jointUSR.rod1.frame_b.f.2.|jointUSR.rod1.frame_b.f.3.|jointUSR.rod1.frame_b.t.1.|jointUSR.rod1.frame_b.t.2.|jointUSR.rod1.frame_b.t.3.|jointUSR.rod1.frame_ia.r_0.1.|jointUSR.rod1.frame_ia.r_0.2.|jointUSR.rod1.frame_ia.r_0.3.|jointUSR.rod1.frame_ia.f.1.|jointUSR.rod1.frame_ia.f.2.|jointUSR.rod1.frame_ia.f.3.|jointUSR.rod1.frame_ia.t.1.|jointUSR.rod1.frame_ia.t.2.|jointUSR.rod1.frame_ia.t.3.|jointUSR.rod2.frame_b.r_0.1.|jointUSR.rod2.frame_b.r_0.2.|jointUSR.rod2.frame_b.r_0.3.|jointUSR.rod2.frame_b.f.1.|jointUSR.rod2.frame_b.f.2.|jointUSR.rod2.frame_b.f.3.|jointUSR.rod2.frame_b.t.1.|jointUSR.rod2.frame_b.t.2.|jointUSR.rod2.frame_b.t.3.|jointUSR.relativePosition.frame_b.r_0.1.|jointUSR.relativePosition.frame_b.r_0.2.|jointUSR.relativePosition.frame_b.r_0.3.|jointUSR.relativePosition.frame_b.f.1.|jointUSR.relativePosition.frame_b.f.2.|jointUSR.relativePosition.frame_b.f.3.|jointUSR.relativePosition.frame_b.t.1.|jointUSR.relativePosition.frame_b.t.2.|jointUSR.relativePosition.frame_b.t.3.|jointUSR.relativePosition.relativePosition.frame_b.r_0.1.|jointUSR.relativePosition.relativePosition.frame_b.r_0.2.|jointUSR.relativePosition.relativePosition.frame_b.r_0.3.|jointUSR.relativePosition.relativePosition.frame_b.f.1.|jointUSR.relativePosition.relativePosition.frame_b.f.2.|jointUSR.relativePosition.relativePosition.frame_b.f.3.|jointUSR.relativePosition.relativePosition.frame_b.t.1.|jointUSR.relativePosition.relativePosition.frame_b.t.2.|jointUSR.relativePosition.relativePosition.frame_b.t.3.|jointUSR.position_b.1..y|jointUSR.position_b.2..y|jointUSR.position_b.3..y",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.JointUSR") Notification: Performance of loadModel(ModelicaTest): time 2.364/2.364, allocations: 209.3 MB / 225.4 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004455/0.0004454, allocations: 12 kB / 283.1 MB, free: 9.68 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1713/0.1718, allocations: 48.71 MB / 331.8 MB, free: 8.883 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4592/0.6311, allocations: 94.44 MB / 426.3 MB, free: 6.676 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003508/0.6315, allocations: 79.95 kB / 426.3 MB, free: 6.598 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6278/1.259, allocations: 75.94 MB / 0.4905 GB, free: 93.62 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.547e-06/1.259, allocations: 0 / 0.4905 GB, free: 93.62 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002593/1.26, allocations: 69.7 kB / 0.4906 GB, free: 93.62 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: 1300 * Number of variables: 1300 Notification: Performance of Generate backend data structure: time 0.01985/1.28, allocations: 3.977 MB / 0.4945 GB, free: 92.11 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.472e-05/1.28, allocations: 13.62 kB / 0.4945 GB, free: 92.11 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007491/1.287, allocations: 0.6688 MB / 0.4951 GB, free: 91.88 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009617/1.297, allocations: 2.24 MB / 0.4973 GB, free: 91.41 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005308/1.297, allocations: 291.6 kB / 0.4976 GB, free: 91.4 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002542/1.3, allocations: 385.5 kB / 0.498 GB, free: 91.4 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03806/1.338, allocations: 9.179 MB / 0.5069 GB, free: 90.32 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002458/1.338, allocations: 17.56 kB / 0.5069 GB, free: 90.32 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00192/1.34, allocations: 171.8 kB / 0.5071 GB, free: 90.32 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00295/1.343, allocations: 0.8388 MB / 0.5079 GB, free: 90.3 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02857/1.372, allocations: 7.568 MB / 0.5153 GB, free: 90.26 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06393/1.436, allocations: 29.16 MB / 0.5438 GB, free: 71.95 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01353/1.45, allocations: 2.332 MB / 0.5461 GB, free: 71.28 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01623/1.466, allocations: 7.661 MB / 0.5536 GB, free: 66.14 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.413e-05/1.466, allocations: 48.38 kB / 0.5536 GB, free: 66.09 MB / 410.7 MB Notification: Performance of pre-optimization done (n=81): time 4.168e-06/1.466, allocations: 0 / 0.5536 GB, free: 66.09 MB / 410.7 MB Notification: Performance of matching and sorting (n=97): time 0.03623/1.502, allocations: 7.13 MB / 0.5606 GB, free: 63.01 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001123/1.502, allocations: 147.3 kB / 0.5607 GB, free: 62.85 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005867/1.508, allocations: 2.616 MB / 0.5633 GB, free: 61.83 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002794/1.509, allocations: 41.17 kB / 0.5633 GB, free: 61.79 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002009/1.511, allocations: 2.388 MB / 0.5656 GB, free: 59.91 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006044/1.511, allocations: 394.8 kB / 0.566 GB, free: 59.64 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004318/1.512, allocations: 74.03 kB / 0.5661 GB, free: 59.58 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002596/1.512, allocations: 480.9 kB / 0.5665 GB, free: 59.19 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002828/1.515, allocations: 1.071 MB / 0.5676 GB, free: 58.58 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004431/1.519, allocations: 3.462 MB / 0.571 GB, free: 54.16 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00449/1.524, allocations: 1.84 MB / 0.5728 GB, free: 52.49 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.928e-05/1.524, allocations: 24 kB / 0.5728 GB, free: 52.46 MB / 410.7 MB Notification: Performance of matching and sorting (n=497) (initialization): time 0.01176/1.536, allocations: 4.323 MB / 0.577 GB, free: 48.57 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.226e-05/1.536, allocations: 40 kB / 0.577 GB, free: 48.54 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001344/1.536, allocations: 88 kB / 0.5771 GB, free: 48.45 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001454/1.536, allocations: 124 kB / 0.5772 GB, free: 48.33 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005847/1.542, allocations: 0.9452 MB / 0.5782 GB, free: 47.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000255/1.542, allocations: 169.8 kB / 0.5783 GB, free: 47.35 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004442/1.547, allocations: 195.1 kB / 0.5785 GB, free: 47.18 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008458/1.548, allocations: 239.2 kB / 0.5787 GB, free: 46.95 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 388 * Number of states: 0 () * Number of discrete variables: 40 (jointUSR.revolute.positiveBranch,prism.color[3],prism.color[2],prism.color[1],rRod2.color[3],rRod2.color[2],rRod2.color[1],rRod1.color[3],rRod1.color[2],rRod1.color[1],n2_ia.color[3],n2_ia.color[2],n2_ia.color[1],n1_a.color[3],n1_a.color[2],n1_a.color[1],jointUSR.rod1Color[3],jointUSR.rod1Color[2],jointUSR.rod1Color[1],jointUSR.cylinderColor[3],jointUSR.cylinderColor[2],jointUSR.cylinderColor[1],jointUSR.sphereColor[3],jointUSR.sphereColor[2],jointUSR.sphereColor[1],jointUSR.revoluteColor[3],jointUSR.revoluteColor[2],jointUSR.revoluteColor[1],Fixed1.color[3],Fixed1.color[2],Fixed1.color[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (497): * Single equations (assignments): 497 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004385/1.552, allocations: 1.595 MB / 0.5803 GB, free: 45.52 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006177/1.553, allocations: 225 kB / 0.5805 GB, free: 45.29 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003567/1.556, allocations: 1.38 MB / 0.5819 GB, free: 44.1 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.674e-05/1.556, allocations: 12 kB / 0.5819 GB, free: 44.09 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.15e-05/1.556, allocations: 0 / 0.5819 GB, free: 44.09 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.741e-05/1.556, allocations: 14.75 kB / 0.5819 GB, free: 44.08 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01638/1.573, allocations: 6.166 MB / 0.5879 GB, free: 38.57 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.383e-05/1.573, allocations: 20 kB / 0.5879 GB, free: 38.55 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00165/1.575, allocations: 244.5 kB / 0.5882 GB, free: 38.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.313e-05/1.575, allocations: 24 kB / 0.5882 GB, free: 38.32 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001195/1.575, allocations: 48 kB / 0.5882 GB, free: 38.27 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.268e-05/1.575, allocations: 35.81 kB / 0.5883 GB, free: 38.24 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.103e-05/1.575, allocations: 23.88 kB / 0.5883 GB, free: 38.21 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003464/1.578, allocations: 1.923 MB / 0.5902 GB, free: 36.16 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001146/1.58, allocations: 323.1 kB / 0.5905 GB, free: 35.84 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006528/1.58, allocations: 55.69 kB / 0.5905 GB, free: 35.79 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001663/1.582, allocations: 54.22 kB / 0.5906 GB, free: 35.75 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003081/1.582, allocations: 142.1 kB / 0.5907 GB, free: 35.64 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001153/1.582, allocations: 52 kB / 0.5908 GB, free: 35.59 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004339/1.587, allocations: 1.663 MB / 0.5924 GB, free: 34.2 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.11e-07/1.587, allocations: 4 kB / 0.5924 GB, free: 34.2 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005429/1.592, allocations: 0.6757 MB / 0.593 GB, free: 33.52 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 77 * Number of states: 0 () * 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 (130): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007336/1.593, allocations: 213.4 kB / 0.5933 GB, free: 33.32 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006072/1.599, allocations: 2.523 MB / 0.5957 GB, free: 31.08 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-05/1.599, allocations: 4 kB / 0.5957 GB, free: 31.07 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001525/1.601, allocations: 0.6106 MB / 0.5963 GB, free: 30.53 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002635/1.603, allocations: 302.2 kB / 0.5966 GB, free: 30.27 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02084/1.624, allocations: 8.622 MB / 0.605 GB, free: 21.62 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006395/1.631, allocations: 2.804 MB / 0.6078 GB, free: 18.81 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001046/1.632, allocations: 207.4 kB / 0.608 GB, free: 18.61 MB / 410.7 MB Notification: Performance of SimCode: time 2.154e-06/1.632, allocations: 4 kB / 0.608 GB, free: 18.6 MB / 410.7 MB Notification: Performance of Templates: time 0.406/2.038, allocations: 39.11 MB / 0.6462 GB, free: 83.62 MB / 426.7 MB