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.JointUSP.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.JointUSP,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.|jointUSP.frame_b.r_0.1.|jointUSP.frame_b.r_0.2.|jointUSP.frame_b.r_0.3.|jointUSP.frame_b.f.1.|jointUSP.frame_b.f.2.|jointUSP.frame_b.f.3.|jointUSP.frame_b.t.1.|jointUSP.frame_b.t.2.|jointUSP.frame_b.t.3.|jointUSP.frame_ia.r_0.1.|jointUSP.frame_ia.r_0.2.|jointUSP.frame_ia.r_0.3.|jointUSP.frame_ia.f.1.|jointUSP.frame_ia.f.2.|jointUSP.frame_ia.f.3.|jointUSP.frame_ia.t.1.|jointUSP.frame_ia.t.2.|jointUSP.frame_ia.t.3.|jointUSP.frame_im.r_0.1.|jointUSP.frame_im.r_0.1.|jointUSP.frame_im.r_0.2.|jointUSP.frame_im.r_0.2.|jointUSP.frame_im.r_0.3.|jointUSP.frame_im.r_0.3.|jointUSP.frame_im.f.1.|jointUSP.frame_im.f.1.|jointUSP.frame_im.f.2.|jointUSP.frame_im.f.2.|jointUSP.frame_im.f.3.|jointUSP.frame_im.f.3.|jointUSP.frame_im.t.1.|jointUSP.frame_im.t.1.|jointUSP.frame_im.t.2.|jointUSP.frame_im.t.2.|jointUSP.frame_im.t.3.|jointUSP.frame_im.t.3.|jointUSP.prismatic.frame_b.r_0.1.|jointUSP.prismatic.frame_b.r_0.2.|jointUSP.prismatic.frame_b.r_0.3.|jointUSP.prismatic.frame_b.f.1.|jointUSP.prismatic.frame_b.f.2.|jointUSP.prismatic.frame_b.f.3.|jointUSP.prismatic.frame_b.t.1.|jointUSP.prismatic.frame_b.t.2.|jointUSP.prismatic.frame_b.t.3.|jointUSP.rod1.frame_b.r_0.1.|jointUSP.rod1.frame_b.r_0.2.|jointUSP.rod1.frame_b.r_0.3.|jointUSP.rod1.frame_b.f.1.|jointUSP.rod1.frame_b.f.2.|jointUSP.rod1.frame_b.f.3.|jointUSP.rod1.frame_b.t.1.|jointUSP.rod1.frame_b.t.2.|jointUSP.rod1.frame_b.t.3.|jointUSP.rod1.frame_ia.r_0.1.|jointUSP.rod1.frame_ia.r_0.2.|jointUSP.rod1.frame_ia.r_0.3.|jointUSP.rod1.frame_ia.f.1.|jointUSP.rod1.frame_ia.f.2.|jointUSP.rod1.frame_ia.f.3.|jointUSP.rod1.frame_ia.t.1.|jointUSP.rod1.frame_ia.t.2.|jointUSP.rod1.frame_ia.t.3.|jointUSP.rod2.frame_b.r_0.1.|jointUSP.rod2.frame_b.r_0.2.|jointUSP.rod2.frame_b.r_0.3.|jointUSP.rod2.frame_b.f.1.|jointUSP.rod2.frame_b.f.2.|jointUSP.rod2.frame_b.f.3.|jointUSP.rod2.frame_b.t.1.|jointUSP.rod2.frame_b.t.2.|jointUSP.rod2.frame_b.t.3.|jointUSP.relativePosition.frame_b.r_0.1.|jointUSP.relativePosition.frame_b.r_0.2.|jointUSP.relativePosition.frame_b.r_0.3.|jointUSP.relativePosition.frame_b.f.1.|jointUSP.relativePosition.frame_b.f.2.|jointUSP.relativePosition.frame_b.f.3.|jointUSP.relativePosition.frame_b.t.1.|jointUSP.relativePosition.frame_b.t.2.|jointUSP.relativePosition.frame_b.t.3.|jointUSP.relativePosition.relativePosition.frame_b.r_0.1.|jointUSP.relativePosition.relativePosition.frame_b.r_0.2.|jointUSP.relativePosition.relativePosition.frame_b.r_0.3.|jointUSP.relativePosition.relativePosition.frame_b.f.1.|jointUSP.relativePosition.relativePosition.frame_b.f.2.|jointUSP.relativePosition.relativePosition.frame_b.f.3.|jointUSP.relativePosition.relativePosition.frame_b.t.1.|jointUSP.relativePosition.relativePosition.frame_b.t.2.|jointUSP.relativePosition.relativePosition.frame_b.t.3.|jointUSP.position_b.1..y|jointUSP.position_b.2..y|jointUSP.position_b.3..y",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.JointUSP") Notification: Performance of loadModel(ModelicaTest): time 1.919/1.919, allocations: 209.2 MB / 225.4 MB, free: 0.625 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00044/0.0004402, allocations: 12 kB / 283.1 MB, free: 9.688 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1079, allocations: 48.71 MB / 331.8 MB, free: 8.883 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4215/0.5295, allocations: 93.64 MB / 425.5 MB, free: 7.477 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000263/0.5298, allocations: 83.95 kB / 425.5 MB, free: 7.395 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6934/1.223, allocations: 74.52 MB / 0.4883 GB, free: 93.96 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.847e-06/1.223, allocations: 3.406 kB / 0.4883 GB, free: 93.96 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002137/1.223, allocations: 76.94 kB / 0.4884 GB, free: 93.96 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: 1289 * Number of variables: 1289 Notification: Performance of Generate backend data structure: time 0.01682/1.24, allocations: 3.742 MB / 0.4921 GB, free: 92.47 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.882e-05/1.24, allocations: 13.22 kB / 0.4921 GB, free: 92.47 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006684/1.247, allocations: 0.6722 MB / 0.4927 GB, free: 92.24 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008872/1.256, allocations: 2.193 MB / 0.4949 GB, free: 91.77 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005351/1.257, allocations: 298.5 kB / 0.4952 GB, free: 91.76 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00228/1.259, allocations: 386.6 kB / 0.4955 GB, free: 91.76 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03386/1.293, allocations: 8.588 MB / 0.5039 GB, free: 90.67 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002091/1.293, allocations: 19.34 kB / 0.5039 GB, free: 90.67 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001537/1.295, allocations: 172.5 kB / 0.5041 GB, free: 90.67 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00268/1.297, allocations: 0.7829 MB / 0.5049 GB, free: 90.66 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02538/1.323, allocations: 6.77 MB / 0.5115 GB, free: 90.62 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05474/1.378, allocations: 27.72 MB / 0.5386 GB, free: 74.06 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0105/1.388, allocations: 1.939 MB / 0.5404 GB, free: 73.48 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01211/1.4, allocations: 6.346 MB / 0.5466 GB, free: 69.03 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.444e-05/1.4, allocations: 47.09 kB / 0.5467 GB, free: 68.98 MB / 410.7 MB Notification: Performance of pre-optimization done (n=77): time 4.008e-06/1.4, allocations: 0 / 0.5467 GB, free: 68.98 MB / 410.7 MB Notification: Performance of matching and sorting (n=96): time 0.02696/1.427, allocations: 6.208 MB / 0.5527 GB, free: 66.13 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.494e-05/1.427, allocations: 141.3 kB / 0.5529 GB, free: 65.97 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005047/1.433, allocations: 2.465 MB / 0.5553 GB, free: 65 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002249/1.433, allocations: 45.64 kB / 0.5553 GB, free: 64.95 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001804/1.435, allocations: 2.376 MB / 0.5577 GB, free: 63.09 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005472/1.435, allocations: 388 kB / 0.558 GB, free: 62.82 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003487/1.436, allocations: 76.84 kB / 0.5581 GB, free: 62.76 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002369/1.436, allocations: 467.8 kB / 0.5585 GB, free: 62.38 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002425/1.438, allocations: 0.9354 MB / 0.5595 GB, free: 62.07 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003798/1.442, allocations: 3.246 MB / 0.5626 GB, free: 58.56 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003787/1.446, allocations: 1.674 MB / 0.5643 GB, free: 57.82 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.8e-05/1.446, allocations: 25.56 kB / 0.5643 GB, free: 57.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=481) (initialization): time 0.01001/1.456, allocations: 3.99 MB / 0.5682 GB, free: 56.21 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.881e-05/1.456, allocations: 39.84 kB / 0.5682 GB, free: 56.21 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001124/1.456, allocations: 84.41 kB / 0.5683 GB, free: 56.16 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001341/1.456, allocations: 120 kB / 0.5684 GB, free: 56.05 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0051/1.462, allocations: 0.8849 MB / 0.5693 GB, free: 55.26 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001557/1.462, allocations: 161.6 kB / 0.5694 GB, free: 55.12 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003763/1.466, allocations: 175.2 kB / 0.5696 GB, free: 54.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00071/1.466, allocations: 228 kB / 0.5698 GB, free: 54.73 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 373 * Number of states: 0 () * Number of discrete variables: 37 (jointUSP.prismatic.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],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[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 (481): * Single equations (assignments): 481 * 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.00388/1.47, allocations: 1.586 MB / 0.5714 GB, free: 53.31 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005528/1.471, allocations: 217.2 kB / 0.5716 GB, free: 53.1 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00287/1.474, allocations: 1.129 MB / 0.5727 GB, free: 52.12 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.482e-05/1.474, allocations: 12 kB / 0.5727 GB, free: 52.11 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/1.474, allocations: 0 / 0.5727 GB, free: 52.11 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.364e-05/1.474, allocations: 3.188 kB / 0.5727 GB, free: 52.11 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01437/1.488, allocations: 6.174 MB / 0.5787 GB, free: 46.52 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.316e-05/1.488, allocations: 20 kB / 0.5787 GB, free: 46.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001467/1.49, allocations: 244 kB / 0.579 GB, free: 46.29 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.443e-05/1.49, allocations: 39.89 kB / 0.579 GB, free: 46.25 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001023/1.49, allocations: 48 kB / 0.5791 GB, free: 46.21 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.002e-05/1.49, allocations: 39.3 kB / 0.5791 GB, free: 46.17 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.996e-05/1.49, allocations: 32.31 kB / 0.5791 GB, free: 46.14 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00303/1.493, allocations: 1.917 MB / 0.581 GB, free: 44.05 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008362/1.494, allocations: 333.1 kB / 0.5813 GB, free: 43.72 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006152/1.494, allocations: 59.83 kB / 0.5814 GB, free: 43.67 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0016/1.496, allocations: 40 kB / 0.5814 GB, free: 43.63 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000251/1.496, allocations: 148.6 kB / 0.5816 GB, free: 43.52 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001006/1.496, allocations: 62.62 kB / 0.5816 GB, free: 43.46 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003803/1.5, allocations: 1.601 MB / 0.5832 GB, free: 42.12 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.51e-07/1.5, allocations: 0 / 0.5832 GB, free: 42.12 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004632/1.505, allocations: 0.6484 MB / 0.5838 GB, free: 41.47 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 90 * 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 (134): * Single equations (assignments): 134 * 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.0005805/1.506, allocations: 208.4 kB / 0.584 GB, free: 41.27 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005309/1.511, allocations: 2.303 MB / 0.5863 GB, free: 39.23 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.975e-05/1.511, allocations: 4 kB / 0.5863 GB, free: 39.23 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001362/1.512, allocations: 0.5763 MB / 0.5868 GB, free: 38.72 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002256/1.515, allocations: 306.9 kB / 0.5871 GB, free: 38.46 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01864/1.533, allocations: 8.663 MB / 0.5956 GB, free: 30.15 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00574/1.539, allocations: 2.809 MB / 0.5983 GB, free: 27.98 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008135/1.54, allocations: 202.4 kB / 0.5985 GB, free: 27.79 MB / 410.7 MB Notification: Performance of SimCode: time 1.282e-06/1.54, allocations: 0 / 0.5985 GB, free: 27.79 MB / 410.7 MB Notification: Performance of Templates: time 0.07889/1.619, allocations: 37.74 MB / 0.6354 GB, free: 6.773 MB / 426.7 MB