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.096/2.096, allocations: 234.9 MB / 250.5 MB, free: 9.535 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004364/0.0004365, allocations: 12 kB / 314.4 MB, free: 9.547 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2719/0.2724, allocations: 54.86 MB / 369.3 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.417/0.6895, allocations: 108.4 MB / 477.7 MB, free: 39.93 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002581/0.6898, allocations: 79.5 kB / 477.8 MB, free: 39.93 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4556/1.145, allocations: 123.2 MB / 0.5869 GB, free: 5.355 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.256e-06/1.145, allocations: 3.938 kB / 0.5869 GB, free: 5.352 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000317/1.146, allocations: 104 kB / 0.587 GB, free: 5.25 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.02041/1.166, allocations: 6.029 MB / 0.5929 GB, free: 15.14 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.257e-05/1.166, allocations: 8.031 kB / 0.5929 GB, free: 15.13 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02642/1.193, allocations: 4.719 MB / 0.5975 GB, free: 10.4 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02116/1.214, allocations: 6.657 MB / 0.604 GB, free: 3.68 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006537/1.215, allocations: 448.6 kB / 0.6044 GB, free: 3.234 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002491/1.217, allocations: 0.5427 MB / 0.6049 GB, free: 2.691 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03938/1.256, allocations: 14.19 MB / 0.6188 GB, free: 3.375 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002777/1.257, allocations: 67.41 kB / 0.6189 GB, free: 3.309 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00163/1.258, allocations: 263.9 kB / 0.6191 GB, free: 3.051 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002598/1.261, allocations: 1.298 MB / 0.6204 GB, free: 1.754 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03412/1.295, allocations: 11.89 MB / 0.632 GB, free: 5.852 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3662/1.661, allocations: 59.22 MB / 0.6898 GB, free: 69.48 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01694/1.678, allocations: 4.667 MB / 0.6944 GB, free: 68.8 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02294/1.701, allocations: 12.6 MB / 0.7067 GB, free: 65.02 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.13e-05/1.701, allocations: 58.06 kB / 0.7067 GB, free: 64.98 MB / 490.7 MB Notification: Performance of pre-optimization done (n=191): time 5.862e-06/1.702, allocations: 0 / 0.7067 GB, free: 64.98 MB / 490.7 MB Notification: Performance of matching and sorting (n=242): time 0.1751/1.877, allocations: 39.8 MB / 0.7456 GB, free: 60.06 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.251e-05/1.877, allocations: 236.1 kB / 0.7458 GB, free: 59.81 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009893/1.887, allocations: 4.249 MB / 0.75 GB, free: 58.58 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005632/1.887, allocations: 63.39 kB / 0.75 GB, free: 58.52 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002832/1.89, allocations: 3.777 MB / 0.7537 GB, free: 55.82 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001203/1.891, allocations: 0.9175 MB / 0.7546 GB, free: 55.15 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008549/1.892, allocations: 143.6 kB / 0.7548 GB, free: 55.04 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0005112/1.893, allocations: 0.6121 MB / 0.7554 GB, free: 54.6 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007328/1.9, allocations: 3.248 MB / 0.7585 GB, free: 53.44 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009343/1.909, allocations: 7.513 MB / 0.7659 GB, free: 46.57 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009304/1.919, allocations: 4.798 MB / 0.7705 GB, free: 44.74 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001145/1.919, allocations: 44.62 kB / 0.7706 GB, free: 44.74 MB / 490.7 MB Notification: Performance of matching and sorting (n=939) (initialization): time 0.03497/1.954, allocations: 13.69 MB / 0.784 GB, free: 34.18 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000119/1.954, allocations: 68 kB / 0.784 GB, free: 34.11 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001892/1.954, allocations: 152 kB / 0.7842 GB, free: 33.96 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01423/1.969, allocations: 3.808 MB / 0.7879 GB, free: 31.35 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00677/1.975, allocations: 1.612 MB / 0.7895 GB, free: 29.94 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03364/2.009, allocations: 18.65 MB / 0.8077 GB, free: 14.12 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007945/2.017, allocations: 492.6 kB / 0.8081 GB, free: 13.72 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001567/2.019, allocations: 431.9 kB / 0.8086 GB, free: 13.3 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.00657/2.025, allocations: 2.664 MB / 0.8112 GB, free: 10.96 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001067/2.026, allocations: 426.5 kB / 0.8116 GB, free: 10.54 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03066/2.057, allocations: 8.141 MB / 0.8195 GB, free: 3.727 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.848e-05/2.057, allocations: 28 kB / 0.8195 GB, free: 3.699 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.735e-05/2.057, allocations: 8 kB / 0.8195 GB, free: 3.691 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.31e-05/2.057, allocations: 11.97 kB / 0.8196 GB, free: 3.68 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08014/2.137, allocations: 17.46 MB / 0.8366 GB, free: 2.211 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.657e-05/2.138, allocations: 4 kB / 0.8366 GB, free: 2.207 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00432/2.142, allocations: 379.4 kB / 0.837 GB, free: 1.836 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.3338/2.476, allocations: 3.855 MB / 0.8407 GB, free: 114.4 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005452/2.476, allocations: 43.44 kB / 0.8408 GB, free: 114.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03279/2.509, allocations: 17.09 MB / 0.8575 GB, free: 113.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.701e-06/2.509, allocations: 4.781 kB / 0.8575 GB, free: 113.1 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02921/2.538, allocations: 12.64 MB / 0.8698 GB, free: 112.4 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002731/2.541, allocations: 0.9317 MB / 0.8707 GB, free: 112.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001227/2.542, allocations: 41.39 kB / 0.8708 GB, free: 112.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003831/2.546, allocations: 207.1 kB / 0.871 GB, free: 112.3 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008699/2.547, allocations: 153 kB / 0.8711 GB, free: 112.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003153/2.548, allocations: 62.91 kB / 0.8712 GB, free: 112.3 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.006896/2.554, allocations: 2.983 MB / 0.8741 GB, free: 112.2 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.244e-06/2.554, allocations: 2.188 kB / 0.8741 GB, free: 112.2 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008719/2.563, allocations: 1.455 MB / 0.8755 GB, free: 112.2 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.0008789/2.564, allocations: 208 kB / 0.8757 GB, free: 112.1 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01501/2.579, allocations: 7.875 MB / 0.8834 GB, free: 110.8 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.757e-06/2.579, allocations: 2.812 kB / 0.8834 GB, free: 110.8 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005764/2.585, allocations: 2.957 MB / 0.8863 GB, free: 109.6 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003546/2.589, allocations: 497.5 kB / 0.8868 GB, free: 109.3 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02862/2.617, allocations: 15.47 MB / 0.9019 GB, free: 101.6 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007932/2.625, allocations: 4.215 MB / 0.906 GB, free: 100.2 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001576/2.627, allocations: 333 kB / 0.9063 GB, free: 100.1 MB / 0.4948 GB Notification: Performance of SimCode: time 1.834e-06/2.627, allocations: 2.938 kB / 0.9063 GB, free: 100.1 MB / 0.4948 GB Notification: Performance of Templates: time 0.1393/2.766, allocations: 96.37 MB / 1 GB, free: 25.5 MB / 0.4948 GB