Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.483/2.483, allocations: 234.9 MB / 251.1 MB, free: 9.543 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006826/0.0006827, allocations: 15.98 kB / 314.9 MB, free: 9.602 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4132/0.414, allocations: 54.86 MB / 369.8 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5009/0.9149, allocations: 108.4 MB / 478.2 MB, free: 40.2 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003272/0.9153, allocations: 83.3 kB / 478.3 MB, free: 40.2 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4919/1.407, allocations: 123.9 MB / 0.5881 GB, free: 4.668 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.185e-06/1.407, allocations: 0 / 0.5881 GB, free: 4.668 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003757/1.408, allocations: 104 kB / 0.5882 GB, free: 4.566 MB / 426.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.02646/1.434, allocations: 6.037 MB / 0.5941 GB, free: 14.45 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.934e-05/1.434, allocations: 8.031 kB / 0.5941 GB, free: 14.45 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03577/1.47, allocations: 4.727 MB / 0.5987 GB, free: 9.703 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0254/1.495, allocations: 6.661 MB / 0.6052 GB, free: 2.98 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006656/1.496, allocations: 440.6 kB / 0.6056 GB, free: 2.543 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003164/1.499, allocations: 0.5427 MB / 0.6062 GB, free: 2 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04714/1.547, allocations: 14.24 MB / 0.6201 GB, free: 2.633 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003327/1.547, allocations: 71.34 kB / 0.6201 GB, free: 2.562 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002215/1.549, allocations: 255.9 kB / 0.6204 GB, free: 2.312 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003146/1.552, allocations: 1.29 MB / 0.6216 GB, free: 1.023 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04142/1.594, allocations: 11.89 MB / 0.6332 GB, free: 5.117 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4347/2.028, allocations: 59.22 MB / 0.6911 GB, free: 69.51 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02069/2.049, allocations: 4.665 MB / 0.6956 GB, free: 68.82 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02939/2.079, allocations: 12.61 MB / 0.7079 GB, free: 65.04 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.753e-05/2.079, allocations: 58.39 kB / 0.708 GB, free: 65 MB / 490.7 MB Notification: Performance of pre-optimization done (n=191): time 6.222e-06/2.079, allocations: 0 / 0.708 GB, free: 65 MB / 490.7 MB Notification: Performance of matching and sorting (n=242): time 0.2767/2.356, allocations: 42.78 MB / 0.7498 GB, free: 60.07 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.305e-05/2.356, allocations: 233.2 kB / 0.75 GB, free: 59.82 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0108/2.366, allocations: 4.768 MB / 0.7547 GB, free: 58.23 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007191/2.367, allocations: 61.17 kB / 0.7547 GB, free: 58.17 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003404/2.371, allocations: 3.786 MB / 0.7584 GB, free: 55.48 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00154/2.372, allocations: 0.9159 MB / 0.7593 GB, free: 54.82 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009676/2.373, allocations: 146.2 kB / 0.7594 GB, free: 54.71 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004427/2.374, allocations: 0.6135 MB / 0.76 GB, free: 54.27 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008142/2.382, allocations: 3.249 MB / 0.7632 GB, free: 53.11 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01139/2.393, allocations: 7.542 MB / 0.7706 GB, free: 46.24 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01127/2.405, allocations: 4.794 MB / 0.7753 GB, free: 42.5 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001733/2.405, allocations: 44 kB / 0.7753 GB, free: 42.45 MB / 490.7 MB Notification: Performance of matching and sorting (n=939) (initialization): time 0.04618/2.451, allocations: 13.67 MB / 0.7887 GB, free: 31.73 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001067/2.451, allocations: 76 kB / 0.7887 GB, free: 31.66 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001973/2.451, allocations: 151.9 kB / 0.7889 GB, free: 31.51 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02035/2.472, allocations: 3.798 MB / 0.7926 GB, free: 28.91 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009551/2.481, allocations: 1.608 MB / 0.7942 GB, free: 27.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04899/2.53, allocations: 18.66 MB / 0.8124 GB, free: 11.67 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008976/2.539, allocations: 484.3 kB / 0.8128 GB, free: 11.28 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001704/2.541, allocations: 438.2 kB / 0.8133 GB, free: 10.86 MB / 490.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 () * Number of clocked 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.007326/2.549, allocations: 2.649 MB / 0.8158 GB, free: 8.52 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001205/2.55, allocations: 434.3 kB / 0.8163 GB, free: 8.09 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03031/2.58, allocations: 8.134 MB / 0.8242 GB, free: 184 kB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.139e-05/2.58, allocations: 24 kB / 0.8242 GB, free: 160 kB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.21e-05/2.58, allocations: 12 kB / 0.8242 GB, free: 148 kB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.692e-05/2.58, allocations: 15.95 kB / 0.8243 GB, free: 132 kB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4049/2.985, allocations: 17.41 MB / 0.8413 GB, free: 112.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.437e-05/2.985, allocations: 1.156 kB / 0.8413 GB, free: 112.8 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003896/2.989, allocations: 390.7 kB / 0.8416 GB, free: 112.8 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02146/3.011, allocations: 3.834 MB / 0.8454 GB, free: 112.8 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006908/3.011, allocations: 46.62 kB / 0.8454 GB, free: 112.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0394/3.051, allocations: 17.09 MB / 0.8621 GB, free: 111.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/3.051, allocations: 0 / 0.8621 GB, free: 111.5 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03849/3.089, allocations: 12.5 MB / 0.8743 GB, free: 111 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003382/3.093, allocations: 0.9376 MB / 0.8752 GB, free: 110.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001518/3.094, allocations: 36.45 kB / 0.8753 GB, free: 110.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004473/3.099, allocations: 211.4 kB / 0.8755 GB, free: 110.9 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008691/3.1, allocations: 150.9 kB / 0.8756 GB, free: 110.9 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003168/3.1, allocations: 66.48 kB / 0.8757 GB, free: 110.9 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.007827/3.108, allocations: 2.978 MB / 0.8786 GB, free: 110.7 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6.92e-07/3.108, allocations: 0 / 0.8786 GB, free: 110.7 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.009644/3.118, allocations: 1.462 MB / 0.88 GB, free: 110.7 MB / 0.4948 GB 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 () * Number of clocked 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.001151/3.119, allocations: 202.8 kB / 0.8802 GB, free: 110.6 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01839/3.137, allocations: 7.884 MB / 0.8879 GB, free: 109 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.328e-06/3.137, allocations: 0 / 0.8879 GB, free: 109 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.007228/3.145, allocations: 2.967 MB / 0.8908 GB, free: 107.8 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004575/3.149, allocations: 489 kB / 0.8913 GB, free: 107.5 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03662/3.186, allocations: 15.53 MB / 0.9064 GB, free: 99.83 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01097/3.197, allocations: 4.209 MB / 0.9105 GB, free: 98.35 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002045/3.199, allocations: 340.9 kB / 0.9109 GB, free: 98.33 MB / 0.4948 GB Notification: Performance of SimCode: time 2.024e-06/3.199, allocations: 0 / 0.9109 GB, free: 98.33 MB / 0.4948 GB Notification: Performance of Templates: time 0.1756/3.375, allocations: 96.37 MB / 1.005 GB, free: 22.04 MB / 0.4948 GB