Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.JointUSP2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.JointUSP2") Notification: Performance of loadModel(ModelicaTest): time 2.143/2.143, allocations: 235 MB / 248.1 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.111e-05/3.123e-05, allocations: 4 kB / 309.7 MB, free: 1.328 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3163/0.3164, allocations: 54.86 MB / 364.5 MB, free: 5.543 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1598/0.4762, allocations: 108.3 MB / 472.9 MB, free: 4.074 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002509/0.4765, allocations: 79.95 kB / 473 MB, free: 3.996 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6993/1.176, allocations: 123.3 MB / 0.5822 GB, free: 108.4 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.173e-06/1.176, allocations: 0 / 0.5822 GB, free: 108.4 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002633/1.176, allocations: 107.6 kB / 0.5823 GB, free: 108.4 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1929 * Number of variables: 1929 Notification: Performance of Generate backend data structure: time 0.01701/1.193, allocations: 5.639 MB / 0.5879 GB, free: 104.8 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.436e-05/1.193, allocations: 9.156 kB / 0.5879 GB, free: 104.8 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02476/1.218, allocations: 4.728 MB / 0.5925 GB, free: 102.3 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01779/1.236, allocations: 6.625 MB / 0.5989 GB, free: 95.71 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004275/1.236, allocations: 452.2 kB / 0.5994 GB, free: 95.3 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001915/1.238, allocations: 0.5449 MB / 0.5999 GB, free: 94.79 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03504/1.273, allocations: 14.06 MB / 0.6136 GB, free: 79.7 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004024/1.274, allocations: 71.34 kB / 0.6137 GB, free: 79.63 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002484/1.276, allocations: 257 kB / 0.614 GB, free: 79.41 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00347/1.28, allocations: 1.293 MB / 0.6152 GB, free: 78.12 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04529/1.325, allocations: 11.65 MB / 0.6266 GB, free: 66.46 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07212/1.397, allocations: 59.24 MB / 0.6844 GB, free: 5.68 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01585/1.413, allocations: 4.633 MB / 0.689 GB, free: 0.8867 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004965/1.418, allocations: 2.713 MB / 0.6916 GB, free: 14.16 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02637/1.445, allocations: 12.61 MB / 0.7039 GB, free: 1.07 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.984e-05/1.445, allocations: 59.77 kB / 0.704 GB, free: 1.004 MB / 474.7 MB Notification: Performance of pre-optimization done (n=191): time 6.552e-06/1.445, allocations: 0 / 0.704 GB, free: 1.004 MB / 474.7 MB Notification: Performance of matching and sorting (n=242): time 0.4046/1.849, allocations: 32.81 MB / 0.736 GB, free: 112.4 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.42e-05/1.849, allocations: 234 kB / 0.7363 GB, free: 112.1 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008826/1.858, allocations: 4.176 MB / 0.7403 GB, free: 111.7 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005319/1.859, allocations: 60.42 kB / 0.7404 GB, free: 111.7 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002611/1.861, allocations: 3.784 MB / 0.7441 GB, free: 108.9 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001239/1.863, allocations: 0.9195 MB / 0.745 GB, free: 108.2 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008958/1.864, allocations: 141.9 kB / 0.7451 GB, free: 108.1 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005915/1.864, allocations: 0.6175 MB / 0.7457 GB, free: 107.7 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006408/1.871, allocations: 3.149 MB / 0.7488 GB, free: 106.5 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008471/1.879, allocations: 7.418 MB / 0.756 GB, free: 99.65 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008691/1.888, allocations: 4.735 MB / 0.7607 GB, free: 98.05 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001263/1.888, allocations: 44.56 kB / 0.7607 GB, free: 98.05 MB / 474.7 MB Notification: Performance of matching and sorting (n=939) (initialization): time 0.03508/1.923, allocations: 13.49 MB / 0.7739 GB, free: 93.36 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001197/1.923, allocations: 68.19 kB / 0.7739 GB, free: 93.29 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001739/1.924, allocations: 156 kB / 0.7741 GB, free: 93.14 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0141/1.938, allocations: 3.803 MB / 0.7778 GB, free: 90.52 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0067/1.944, allocations: 1.602 MB / 0.7794 GB, free: 89.12 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03096/1.975, allocations: 18.01 MB / 0.797 GB, free: 73.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008501/1.984, allocations: 488.7 kB / 0.7974 GB, free: 73.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001344/1.985, allocations: 431.9 kB / 0.7978 GB, free: 72.99 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 686 * Number of states: 0 () * Number of discrete variables: 34 (jointUSP.prismatic.positiveBranch,bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (856): * Single equations (assignments): 852 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 58} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001466/1.987, allocations: 0.6442 MB / 0.7985 GB, free: 72.34 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001002/1.988, allocations: 426.5 kB / 0.7989 GB, free: 71.92 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0203/2.008, allocations: 8.092 MB / 0.8068 GB, free: 65.61 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.658e-05/2.008, allocations: 27.84 kB / 0.8068 GB, free: 65.59 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.174e-05/2.008, allocations: 15.95 kB / 0.8068 GB, free: 65.57 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.241e-05/2.008, allocations: 9.844 kB / 0.8068 GB, free: 65.57 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03927/2.048, allocations: 17.38 MB / 0.8238 GB, free: 48.18 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.948e-05/2.048, allocations: 4 kB / 0.8238 GB, free: 48.18 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00239/2.05, allocations: 391.4 kB / 0.8242 GB, free: 47.79 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01406/2.064, allocations: 3.844 MB / 0.8279 GB, free: 43.94 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005281/2.065, allocations: 43.66 kB / 0.828 GB, free: 43.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02801/2.093, allocations: 16.45 MB / 0.844 GB, free: 27.32 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.684e-06/2.093, allocations: 0 / 0.844 GB, free: 27.32 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02643/2.119, allocations: 12.56 MB / 0.8563 GB, free: 14.7 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002671/2.122, allocations: 0.9366 MB / 0.8572 GB, free: 13.74 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008703/2.123, allocations: 36.66 kB / 0.8572 GB, free: 13.71 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002932/2.126, allocations: 215.7 kB / 0.8575 GB, free: 13.5 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006118/2.127, allocations: 146.2 kB / 0.8576 GB, free: 13.36 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002918/2.127, allocations: 64.98 kB / 0.8577 GB, free: 13.29 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0056/2.132, allocations: 2.905 MB / 0.8605 GB, free: 10.39 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.637e-06/2.132, allocations: 0 / 0.8605 GB, free: 10.39 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008249/2.141, allocations: 1.458 MB / 0.8619 GB, free: 8.945 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (167): * Single equations (assignments): 163 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 52} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007961/2.142, allocations: 223.7 kB / 0.8621 GB, free: 8.734 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01371/2.155, allocations: 7.725 MB / 0.8697 GB, free: 1.031 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.264e-06/2.155, allocations: 3.938 kB / 0.8697 GB, free: 1.027 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005677/2.161, allocations: 2.916 MB / 0.8725 GB, free: 14.11 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003211/2.164, allocations: 492.7 kB / 0.873 GB, free: 13.64 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3024/2.467, allocations: 11.23 MB / 0.884 GB, free: 122.3 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0105/2.477, allocations: 4.21 MB / 0.8881 GB, free: 121.5 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001646/2.479, allocations: 337.2 kB / 0.8884 GB, free: 121.5 MB / 490.7 MB Notification: Performance of SimCode: time 2.172e-06/2.479, allocations: 3.844 kB / 0.8884 GB, free: 121.5 MB / 490.7 MB Notification: Performance of Templates: time 0.1459/2.625, allocations: 96.37 MB / 0.9825 GB, free: 71.01 MB / 490.7 MB