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.JointUSR.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.031/2.031, allocations: 209.3 MB / 222.4 MB, free: 7.727 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.218e-05/4.224e-05, allocations: 4 kB / 277.9 MB, free: 15.29 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1171, allocations: 48.7 MB / 326.6 MB, free: 14.5 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4338/0.551, allocations: 94.36 MB / 420.9 MB, free: 13.45 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000239/0.5513, allocations: 78.39 kB / 421 MB, free: 13.41 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2862/0.8375, allocations: 75.76 MB / 496.7 MB, free: 8.566 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.584e-06/0.8376, allocations: 0 / 496.7 MB, free: 8.566 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001858/0.8378, allocations: 68 kB / 496.8 MB, free: 8.5 MB / 394.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.01304/0.8508, allocations: 3.8 MB / 0.4889 GB, free: 4.641 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.775e-05/0.8509, allocations: 8.031 kB / 0.4889 GB, free: 4.633 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004864/0.8558, allocations: 0.6776 MB / 0.4895 GB, free: 3.949 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007294/0.8631, allocations: 2.208 MB / 0.4917 GB, free: 1.691 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004108/0.8636, allocations: 291.7 kB / 0.492 GB, free: 1.406 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001635/0.8652, allocations: 383.8 kB / 0.4923 GB, free: 1.031 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02743/0.8927, allocations: 8.827 MB / 0.501 GB, free: 7.824 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001469/0.8929, allocations: 15.81 kB / 0.501 GB, free: 7.809 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001386/0.8943, allocations: 171.9 kB / 0.5011 GB, free: 7.641 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002238/0.8965, allocations: 0.8388 MB / 0.502 GB, free: 6.797 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.022/0.9186, allocations: 7.168 MB / 0.509 GB, free: 15.62 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2893/1.208, allocations: 29 MB / 0.5373 GB, free: 88.14 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009682/1.218, allocations: 2.265 MB / 0.5395 GB, free: 88.04 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001922/1.22, allocations: 1.052 MB / 0.5405 GB, free: 88.01 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01216/1.232, allocations: 7.591 MB / 0.5479 GB, free: 84.38 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.316e-05/1.232, allocations: 39.91 kB / 0.548 GB, free: 84.34 MB / 426.7 MB Notification: Performance of pre-optimization done (n=81): time 5.138e-06/1.232, allocations: 3.891 kB / 0.548 GB, free: 84.34 MB / 426.7 MB Notification: Performance of matching and sorting (n=97): time 0.02609/1.258, allocations: 6.493 MB / 0.5543 GB, free: 82.38 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.517e-05/1.258, allocations: 143.5 kB / 0.5545 GB, free: 82.21 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004498/1.263, allocations: 2.318 MB / 0.5567 GB, free: 81.93 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002071/1.263, allocations: 43.3 kB / 0.5568 GB, free: 81.9 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00148/1.264, allocations: 2.382 MB / 0.5591 GB, free: 80.58 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004244/1.265, allocations: 402 kB / 0.5595 GB, free: 80.37 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002533/1.265, allocations: 76.97 kB / 0.5595 GB, free: 80.37 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002335/1.265, allocations: 469.5 kB / 0.56 GB, free: 80.05 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001973/1.267, allocations: 1.041 MB / 0.561 GB, free: 80.05 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00309/1.27, allocations: 3.423 MB / 0.5644 GB, free: 76.96 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003302/1.274, allocations: 1.835 MB / 0.5661 GB, free: 76.95 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.4e-05/1.274, allocations: 23.81 kB / 0.5662 GB, free: 76.95 MB / 426.7 MB Notification: Performance of matching and sorting (n=497) (initialization): time 0.009191/1.283, allocations: 4.273 MB / 0.5703 GB, free: 76.72 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.616e-05/1.283, allocations: 42.5 kB / 0.5704 GB, free: 76.72 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.32e-05/1.283, allocations: 94.11 kB / 0.5705 GB, free: 76.71 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001373/1.283, allocations: 122.9 kB / 0.5706 GB, free: 76.71 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003838/1.287, allocations: 0.9438 MB / 0.5715 GB, free: 76.63 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001408/1.288, allocations: 164.5 kB / 0.5717 GB, free: 76.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00756/1.295, allocations: 192.1 kB / 0.5719 GB, free: 76.59 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001299/1.296, allocations: 239.9 kB / 0.5721 GB, free: 76.59 MB / 426.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 () * 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.001448/1.298, allocations: 425 kB / 0.5725 GB, free: 76.35 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001098/1.299, allocations: 224.9 kB / 0.5727 GB, free: 76.23 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005985/1.305, allocations: 1.367 MB / 0.574 GB, free: 76.14 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.866e-05/1.305, allocations: 14.11 kB / 0.574 GB, free: 76.14 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.576e-05/1.305, allocations: 0 / 0.574 GB, free: 76.14 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.973e-05/1.305, allocations: 7.016 kB / 0.5741 GB, free: 76.14 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02509/1.33, allocations: 6.169 MB / 0.5801 GB, free: 74.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.785e-05/1.331, allocations: 18.84 kB / 0.5801 GB, free: 74.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002508/1.333, allocations: 247.6 kB / 0.5803 GB, free: 74.17 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.984e-05/1.333, allocations: 25.28 kB / 0.5804 GB, free: 74.17 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002352/1.333, allocations: 42.5 kB / 0.5804 GB, free: 74.15 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.776e-05/1.334, allocations: 33.83 kB / 0.5804 GB, free: 74.14 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.485e-05/1.334, allocations: 27.03 kB / 0.5805 GB, free: 74.14 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006041/1.34, allocations: 3.551 MB / 0.5839 GB, free: 70.91 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001553/1.341, allocations: 330.2 kB / 0.5842 GB, free: 70.66 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009463/1.342, allocations: 46.17 kB / 0.5843 GB, free: 70.65 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003159/1.345, allocations: 51.73 kB / 0.5843 GB, free: 70.63 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004219/1.346, allocations: 137.8 kB / 0.5845 GB, free: 70.59 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002333/1.346, allocations: 52.38 kB / 0.5845 GB, free: 70.58 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006834/1.353, allocations: 1.636 MB / 0.5861 GB, free: 69.96 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.888e-06/1.353, allocations: 3.438 kB / 0.5861 GB, free: 69.96 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01036/1.363, allocations: 0.6788 MB / 0.5868 GB, free: 69.88 MB / 426.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 () * 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.0009371/1.364, allocations: 211.2 kB / 0.587 GB, free: 69.72 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008797/1.373, allocations: 2.488 MB / 0.5894 GB, free: 68.81 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.649e-05/1.373, allocations: 3.906 kB / 0.5894 GB, free: 68.81 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00108/1.374, allocations: 0.6014 MB / 0.59 GB, free: 68.59 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001814/1.376, allocations: 307.8 kB / 0.5903 GB, free: 68.46 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01254/1.389, allocations: 5.898 MB / 0.5961 GB, free: 65.59 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004194/1.393, allocations: 2.812 MB / 0.5988 GB, free: 64.4 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007383/1.394, allocations: 199.1 kB / 0.599 GB, free: 64.39 MB / 426.7 MB Notification: Performance of SimCode: time 2.233e-06/1.394, allocations: 0 / 0.599 GB, free: 64.39 MB / 426.7 MB Notification: Performance of Templates: time 0.05957/1.453, allocations: 39.1 MB / 0.6372 GB, free: 38.89 MB / 426.7 MB