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 1.919/1.919, allocations: 209.3 MB / 224.9 MB, free: 196 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004467/0.0004469, allocations: 12 kB / 282.6 MB, free: 9.578 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2835/0.2839, allocations: 48.7 MB / 331.3 MB, free: 6.508 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1569/0.4408, allocations: 94.46 MB / 425.7 MB, free: 15.94 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004689/0.4414, allocations: 79.97 kB / 425.8 MB, free: 15.86 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5325/0.9739, allocations: 75.68 MB / 0.4897 GB, free: 91.98 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.287e-06/0.974, allocations: 0 / 0.4897 GB, free: 91.98 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001545/0.9741, allocations: 65.5 kB / 0.4898 GB, free: 91.98 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.0125/0.9867, allocations: 3.956 MB / 0.4937 GB, free: 90.41 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.958e-05/0.9867, allocations: 11.84 kB / 0.4937 GB, free: 90.4 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004785/0.9915, allocations: 0.6765 MB / 0.4943 GB, free: 90.17 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006604/0.9982, allocations: 2.216 MB / 0.4965 GB, free: 89.64 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003365/0.9986, allocations: 291.8 kB / 0.4968 GB, free: 89.58 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001584/1, allocations: 381.9 kB / 0.4972 GB, free: 89.48 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02464/1.025, allocations: 8.934 MB / 0.5059 GB, free: 85.83 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001122/1.025, allocations: 18.81 kB / 0.5059 GB, free: 85.82 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009877/1.026, allocations: 172.2 kB / 0.5061 GB, free: 85.71 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001841/1.028, allocations: 0.8332 MB / 0.5069 GB, free: 85.56 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02072/1.049, allocations: 7.294 MB / 0.514 GB, free: 81.92 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04545/1.094, allocations: 29.02 MB / 0.5423 GB, free: 52.31 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01018/1.104, allocations: 2.28 MB / 0.5446 GB, free: 50 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01167/1.116, allocations: 7.605 MB / 0.552 GB, free: 41.86 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.173e-05/1.116, allocations: 47.16 kB / 0.552 GB, free: 41.81 MB / 394.7 MB Notification: Performance of pre-optimization done (n=81): time 3.975e-06/1.116, allocations: 0 / 0.552 GB, free: 41.81 MB / 394.7 MB Notification: Performance of matching and sorting (n=97): time 0.04257/1.159, allocations: 7.128 MB / 0.559 GB, free: 34.63 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.638e-05/1.159, allocations: 141.6 kB / 0.5591 GB, free: 34.46 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007661/1.167, allocations: 2.329 MB / 0.5614 GB, free: 32.12 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002969/1.167, allocations: 41.7 kB / 0.5614 GB, free: 32.07 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002662/1.17, allocations: 2.39 MB / 0.5638 GB, free: 29.68 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007391/1.17, allocations: 394.8 kB / 0.5642 GB, free: 29.3 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004453/1.171, allocations: 80 kB / 0.5642 GB, free: 29.22 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0004385/1.171, allocations: 471.1 kB / 0.5647 GB, free: 28.75 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004231/1.176, allocations: 1.066 MB / 0.5657 GB, free: 27.69 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006338/1.182, allocations: 3.453 MB / 0.5691 GB, free: 23.05 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00661/1.189, allocations: 1.837 MB / 0.5709 GB, free: 21.21 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001105/1.189, allocations: 24 kB / 0.5709 GB, free: 21.19 MB / 394.7 MB Notification: Performance of matching and sorting (n=497) (initialization): time 0.01805/1.207, allocations: 4.318 MB / 0.5751 GB, free: 16.86 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001291/1.207, allocations: 43.94 kB / 0.5752 GB, free: 16.82 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001719/1.207, allocations: 88.88 kB / 0.5753 GB, free: 16.73 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000256/1.207, allocations: 124 kB / 0.5754 GB, free: 16.61 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007256/1.215, allocations: 0.9513 MB / 0.5763 GB, free: 15.66 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001368/1.215, allocations: 163.4 kB / 0.5765 GB, free: 15.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003716/1.219, allocations: 199.8 kB / 0.5766 GB, free: 15.3 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006284/1.219, allocations: 236 kB / 0.5769 GB, free: 15.07 MB / 394.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.003528/1.223, allocations: 1.589 MB / 0.5784 GB, free: 13.47 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004776/1.223, allocations: 233.1 kB / 0.5786 GB, free: 13.24 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002876/1.226, allocations: 1.373 MB / 0.58 GB, free: 11.86 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.314e-05/1.226, allocations: 19.94 kB / 0.58 GB, free: 11.84 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.823e-06/1.226, allocations: 3.984 kB / 0.58 GB, free: 11.83 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.436e-05/1.226, allocations: 7.984 kB / 0.58 GB, free: 11.82 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01252/1.239, allocations: 6.159 MB / 0.586 GB, free: 5.363 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.674e-05/1.239, allocations: 19.98 kB / 0.586 GB, free: 5.344 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001087/1.24, allocations: 247.7 kB / 0.5863 GB, free: 5.102 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.876e-05/1.24, allocations: 24 kB / 0.5863 GB, free: 5.078 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001047/1.24, allocations: 47.98 kB / 0.5864 GB, free: 5.031 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.667e-05/1.24, allocations: 35.86 kB / 0.5864 GB, free: 4.996 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.665e-05/1.24, allocations: 19.94 kB / 0.5864 GB, free: 4.977 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003094/1.243, allocations: 3.565 MB / 0.5899 GB, free: 0.8594 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008317/1.244, allocations: 332.9 kB / 0.5902 GB, free: 0.5156 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005365/1.245, allocations: 43.98 kB / 0.5902 GB, free: 484 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001501/1.246, allocations: 55.92 kB / 0.5903 GB, free: 428 kB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002341/1.247, allocations: 139.9 kB / 0.5904 GB, free: 288 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001079/1.247, allocations: 56 kB / 0.5905 GB, free: 232 kB / 394.7 MB Notification: Performance of sorting global known variables: time 0.004218/1.251, allocations: 1.661 MB / 0.5921 GB, free: 14.56 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.043e-06/1.251, allocations: 3.938 kB / 0.5921 GB, free: 14.55 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005073/1.256, allocations: 0.6835 MB / 0.5928 GB, free: 13.87 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.0006353/1.257, allocations: 218.7 kB / 0.593 GB, free: 13.65 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005936/1.263, allocations: 2.525 MB / 0.5955 GB, free: 11.14 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.556e-05/1.263, allocations: 0 / 0.5955 GB, free: 11.14 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001411/1.264, allocations: 0.6061 MB / 0.596 GB, free: 10.54 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002012/1.266, allocations: 304.8 kB / 0.5963 GB, free: 10.24 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01889/1.285, allocations: 8.602 MB / 0.6047 GB, free: 1.371 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005806/1.291, allocations: 2.808 MB / 0.6075 GB, free: 14.54 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008324/1.292, allocations: 203.4 kB / 0.6077 GB, free: 14.34 MB / 426.7 MB Notification: Performance of SimCode: time 1.619e-06/1.292, allocations: 0 / 0.6077 GB, free: 14.34 MB / 426.7 MB Notification: Performance of Templates: time 0.3127/1.605, allocations: 39.1 MB / 0.6459 GB, free: 106.1 MB / 426.7 MB