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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.02/2.02, allocations: 209.4 MB / 217.3 MB, free: 4.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.361e-05/2.364e-05, allocations: 4 kB / 271.3 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3118/0.3118, allocations: 48.69 MB / 320 MB, free: 14.4 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1456/0.4574, allocations: 93.7 MB / 413.7 MB, free: 2.711 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002479/0.4577, allocations: 75.95 kB / 413.8 MB, free: 2.637 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5026/0.9603, allocations: 73.96 MB / 487.8 MB, free: 84.4 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.076e-06/0.9604, allocations: 0 / 487.8 MB, free: 84.4 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002416/0.9607, allocations: 68 kB / 487.8 MB, free: 84.33 MB / 378.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.02026/0.981, allocations: 3.787 MB / 491.6 MB, free: 80.49 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.313e-05/0.9811, allocations: 12.03 kB / 491.6 MB, free: 80.48 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008458/0.9895, allocations: 0.6783 MB / 492.3 MB, free: 79.8 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01139/1.001, allocations: 2.205 MB / 494.5 MB, free: 77.56 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003572/1.001, allocations: 124 kB / 494.6 MB, free: 77.44 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002183/1.004, allocations: 223.9 kB / 494.8 MB, free: 77.22 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0185/1.022, allocations: 5.462 MB / 0.4886 GB, free: 71.76 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0216/1.044, allocations: 7.115 MB / 0.4955 GB, free: 64.27 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001911/1.044, allocations: 19.81 kB / 0.4955 GB, free: 64.25 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001159/1.045, allocations: 12 kB / 0.4956 GB, free: 64.24 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003361/1.049, allocations: 0.8423 MB / 0.4964 GB, free: 63.39 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1026/1.151, allocations: 27.69 MB / 0.5234 GB, free: 35.2 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002368/1.154, allocations: 1.361 MB / 0.5247 GB, free: 33.8 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001509/1.155, allocations: 1.017 MB / 0.5257 GB, free: 32.77 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01092/1.166, allocations: 7.324 MB / 0.5329 GB, free: 24.95 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.876e-05/1.166, allocations: 43.12 kB / 0.5329 GB, free: 24.9 MB / 378.7 MB Notification: Performance of pre-optimization done (n=74): time 4.225e-06/1.166, allocations: 0 / 0.5329 GB, free: 24.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=87): time 0.01637/1.183, allocations: 6.158 MB / 0.5389 GB, free: 18.7 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.095e-05/1.183, allocations: 137.3 kB / 0.5391 GB, free: 18.53 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003057/1.186, allocations: 1.965 MB / 0.541 GB, free: 16.54 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001567/1.186, allocations: 25.7 kB / 0.541 GB, free: 16.51 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00132/1.187, allocations: 2.508 MB / 0.5435 GB, free: 13.96 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003244/1.188, allocations: 351.6 kB / 0.5438 GB, free: 13.62 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001822/1.188, allocations: 0 / 0.5438 GB, free: 13.62 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002346/1.188, allocations: 487.5 kB / 0.5443 GB, free: 13.13 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001747/1.19, allocations: 0.9724 MB / 0.5452 GB, free: 12.15 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003331/1.193, allocations: 3.439 MB / 0.5486 GB, free: 7.445 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004663/1.198, allocations: 1.912 MB / 0.5504 GB, free: 5.531 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.301e-05/1.198, allocations: 24 kB / 0.5505 GB, free: 5.508 MB / 378.7 MB Notification: Performance of matching and sorting (n=513) (initialization): time 0.009825/1.208, allocations: 3.954 MB / 0.5543 GB, free: 1.547 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.838e-05/1.208, allocations: 49.77 kB / 0.5544 GB, free: 1.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.013e-05/1.208, allocations: 88 kB / 0.5545 GB, free: 1.414 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001359/1.208, allocations: 136 kB / 0.5546 GB, free: 1.281 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003603/1.212, allocations: 0.963 MB / 0.5555 GB, free: 324 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001108/1.212, allocations: 171.4 kB / 0.5557 GB, free: 152 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003448/1.215, allocations: 115.8 kB / 0.5558 GB, free: 36 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006157/1.216, allocations: 244 kB / 0.556 GB, free: 15.8 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 406 * 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 (513): * Single equations (assignments): 513 * 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.0007102/1.217, allocations: 352 kB / 0.5564 GB, free: 15.45 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004568/1.217, allocations: 201.4 kB / 0.5566 GB, free: 15.25 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002507/1.22, allocations: 1.119 MB / 0.5577 GB, free: 14.12 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.437e-05/1.22, allocations: 8 kB / 0.5577 GB, free: 14.11 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.7e-06/1.22, allocations: 4 kB / 0.5577 GB, free: 14.11 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.93e-05/1.22, allocations: 7.984 kB / 0.5577 GB, free: 14.1 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01035/1.23, allocations: 4.609 MB / 0.5622 GB, free: 9.191 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.818e-05/1.23, allocations: 16 kB / 0.5622 GB, free: 9.176 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009745/1.231, allocations: 223.6 kB / 0.5624 GB, free: 8.957 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.924e-05/1.231, allocations: 28 kB / 0.5624 GB, free: 8.93 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.483e-05/1.231, allocations: 20.69 kB / 0.5625 GB, free: 8.91 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.87e-05/1.232, allocations: 35.86 kB / 0.5625 GB, free: 8.875 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.914e-05/1.232, allocations: 35.81 kB / 0.5625 GB, free: 8.84 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003666/1.235, allocations: 2.964 MB / 0.5654 GB, free: 5.094 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006762/1.236, allocations: 294.2 kB / 0.5657 GB, free: 4.785 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002782/1.236, allocations: 24 kB / 0.5657 GB, free: 4.762 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001092/1.237, allocations: 27.97 kB / 0.5657 GB, free: 4.734 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002226/1.238, allocations: 131.9 kB / 0.5659 GB, free: 4.605 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001081/1.238, allocations: 52 kB / 0.5659 GB, free: 4.555 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002691/1.24, allocations: 1.289 MB / 0.5672 GB, free: 3.25 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.005e-06/1.24, allocations: 0 / 0.5672 GB, free: 3.25 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004569/1.245, allocations: 0.5781 MB / 0.5677 GB, free: 2.672 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 73 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (120): * Single equations (assignments): 120 * 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.0004289/1.245, allocations: 170.7 kB / 0.5679 GB, free: 2.496 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004846/1.25, allocations: 2.24 MB / 0.5701 GB, free: 280 kB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.704e-05/1.25, allocations: 4 kB / 0.5701 GB, free: 276 kB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001052/1.251, allocations: 0.5067 MB / 0.5706 GB, free: 15.77 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001469/1.253, allocations: 211.9 kB / 0.5708 GB, free: 15.55 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01429/1.267, allocations: 5.741 MB / 0.5764 GB, free: 9.551 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005763/1.273, allocations: 2.803 MB / 0.5791 GB, free: 6.723 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000784/1.274, allocations: 183.4 kB / 0.5793 GB, free: 6.543 MB / 410.7 MB Notification: Performance of SimCode: time 1.84e-06/1.274, allocations: 0 / 0.5793 GB, free: 6.543 MB / 410.7 MB Notification: Performance of Templates: time 0.3049/1.579, allocations: 36.49 MB / 0.6149 GB, free: 122.5 MB / 426.7 MB