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.JointUSP.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.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.873/1.873, allocations: 209.3 MB / 222.4 MB, free: 7.723 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.182e-05/3.217e-05, allocations: 7.984 kB / 277.9 MB, free: 15.29 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08474/0.08479, allocations: 48.71 MB / 326.6 MB, free: 14.49 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3638/0.4487, allocations: 93.55 MB / 420.1 MB, free: 13.8 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002084/0.4489, allocations: 72.84 kB / 420.2 MB, free: 13.77 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2745/0.7235, allocations: 74.53 MB / 494.7 MB, free: 10.43 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.892e-06/0.7235, allocations: 0 / 494.7 MB, free: 10.43 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001781/0.7237, allocations: 75.98 kB / 494.8 MB, free: 10.36 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: 1289 * Number of variables: 1289 Notification: Performance of Generate backend data structure: time 0.01054/0.7343, allocations: 3.574 MB / 498.4 MB, free: 6.727 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.7343, allocations: 8.031 kB / 498.4 MB, free: 6.719 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004382/0.7387, allocations: 0.6777 MB / 499 MB, free: 6.035 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00645/0.7452, allocations: 2.185 MB / 0.4895 GB, free: 3.801 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003928/0.7456, allocations: 299.8 kB / 0.4898 GB, free: 3.508 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00139/0.747, allocations: 383.8 kB / 0.4901 GB, free: 3.133 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02498/0.772, allocations: 8.459 MB / 0.4984 GB, free: 10.29 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001182/0.7722, allocations: 19.81 kB / 0.4984 GB, free: 10.27 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009304/0.7731, allocations: 175.9 kB / 0.4986 GB, free: 10.1 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001899/0.7751, allocations: 0.7914 MB / 0.4994 GB, free: 9.301 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01982/0.7949, allocations: 6.631 MB / 0.5058 GB, free: 2.66 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2894/1.084, allocations: 27.71 MB / 0.5329 GB, free: 89.11 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00824/1.093, allocations: 1.918 MB / 0.5348 GB, free: 89 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001526/1.094, allocations: 0.8182 MB / 0.5356 GB, free: 88.97 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01005/1.104, allocations: 6.344 MB / 0.5418 GB, free: 85.59 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.69e-05/1.104, allocations: 46.25 kB / 0.5418 GB, free: 85.55 MB / 426.7 MB Notification: Performance of pre-optimization done (n=77): time 4.048e-06/1.104, allocations: 3.75 kB / 0.5418 GB, free: 85.55 MB / 426.7 MB Notification: Performance of matching and sorting (n=95): time 0.02172/1.126, allocations: 5.817 MB / 0.5475 GB, free: 83.59 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.942e-05/1.126, allocations: 140.5 kB / 0.5476 GB, free: 83.43 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004465/1.131, allocations: 2.174 MB / 0.5497 GB, free: 83.15 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001689/1.131, allocations: 41.45 kB / 0.5498 GB, free: 83.12 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001699/1.133, allocations: 2.374 MB / 0.5521 GB, free: 81.81 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004437/1.133, allocations: 396 kB / 0.5525 GB, free: 81.6 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002354/1.133, allocations: 78.03 kB / 0.5526 GB, free: 81.6 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002867/1.134, allocations: 466.8 kB / 0.553 GB, free: 81.29 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001911/1.136, allocations: 0.9078 MB / 0.5539 GB, free: 81.28 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002965/1.139, allocations: 3.195 MB / 0.557 GB, free: 78.31 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003036/1.142, allocations: 1.68 MB / 0.5586 GB, free: 78.29 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.88e-05/1.142, allocations: 23.62 kB / 0.5587 GB, free: 78.29 MB / 426.7 MB Notification: Performance of matching and sorting (n=480) (initialization): time 0.008521/1.15, allocations: 3.926 MB / 0.5625 GB, free: 78.17 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.821e-05/1.15, allocations: 39.91 kB / 0.5625 GB, free: 78.17 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.414e-05/1.15, allocations: 83.5 kB / 0.5626 GB, free: 78.17 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001409/1.151, allocations: 120.2 kB / 0.5627 GB, free: 78.17 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003559/1.154, allocations: 0.8911 MB / 0.5636 GB, free: 78.09 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001379/1.154, allocations: 161.3 kB / 0.5638 GB, free: 78.06 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00343/1.158, allocations: 166.3 kB / 0.5639 GB, free: 78.05 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005673/1.158, allocations: 228.9 kB / 0.5641 GB, free: 78.05 MB / 426.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (480): * Single equations (assignments): 480 * 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.0006217/1.159, allocations: 410.4 kB / 0.5645 GB, free: 77.82 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005402/1.16, allocations: 217.5 kB / 0.5647 GB, free: 77.7 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002224/1.162, allocations: 1.115 MB / 0.5658 GB, free: 77.61 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.361e-05/1.162, allocations: 11.59 kB / 0.5658 GB, free: 77.61 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.534e-06/1.162, allocations: 0 / 0.5658 GB, free: 77.61 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.33e-05/1.162, allocations: 3.281 kB / 0.5658 GB, free: 77.61 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01198/1.174, allocations: 6.139 MB / 0.5718 GB, free: 76.03 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.904e-05/1.174, allocations: 21.62 kB / 0.5719 GB, free: 76.03 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001059/1.175, allocations: 243.4 kB / 0.5721 GB, free: 76.01 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.509e-05/1.175, allocations: 28.84 kB / 0.5721 GB, free: 76.01 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.318e-05/1.175, allocations: 44.19 kB / 0.5722 GB, free: 76.01 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.034e-05/1.175, allocations: 42.75 kB / 0.5722 GB, free: 76 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.055e-05/1.175, allocations: 33.77 kB / 0.5722 GB, free: 75.99 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002791/1.178, allocations: 3.742 MB / 0.5759 GB, free: 72.79 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000817/1.179, allocations: 330.7 kB / 0.5762 GB, free: 72.57 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003975/1.179, allocations: 52.36 kB / 0.5762 GB, free: 72.57 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001201/1.181, allocations: 48.92 kB / 0.5763 GB, free: 72.57 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001824/1.181, allocations: 143 kB / 0.5764 GB, free: 72.54 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.496e-05/1.181, allocations: 55.47 kB / 0.5765 GB, free: 72.54 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002981/1.184, allocations: 1.58 MB / 0.578 GB, free: 72.38 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.02e-06/1.184, allocations: 3.531 kB / 0.578 GB, free: 72.38 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004498/1.188, allocations: 0.6487 MB / 0.5787 GB, free: 72.37 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 89 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 133 * 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.000447/1.189, allocations: 203.9 kB / 0.5789 GB, free: 72.24 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004558/1.194, allocations: 2.259 MB / 0.5811 GB, free: 71.74 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-05/1.194, allocations: 3.188 kB / 0.5811 GB, free: 71.74 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00168/1.195, allocations: 0.5722 MB / 0.5816 GB, free: 71.54 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002142/1.197, allocations: 304.3 kB / 0.5819 GB, free: 71.41 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01296/1.21, allocations: 5.948 MB / 0.5877 GB, free: 68.46 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004199/1.215, allocations: 2.808 MB / 0.5905 GB, free: 67.28 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006499/1.215, allocations: 200.7 kB / 0.5907 GB, free: 67.27 MB / 426.7 MB Notification: Performance of SimCode: time 1.881e-06/1.215, allocations: 0 / 0.5907 GB, free: 67.27 MB / 426.7 MB Notification: Performance of Templates: time 0.0604/1.276, allocations: 37.7 MB / 0.6275 GB, free: 45.49 MB / 426.7 MB