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.Revolute2.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.Revolute2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|revolute1.phi|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.Revolute2") Notification: Performance of loadModel(ModelicaTest): time 1.877/1.877, allocations: 209.3 MB / 222.4 MB, free: 7.723 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.258e-05/3.269e-05, allocations: 8 kB / 277.8 MB, free: 15.3 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0852/0.08526, allocations: 48.69 MB / 326.5 MB, free: 14.51 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3589/0.4442, allocations: 92.4 MB / 418.9 MB, free: 15.4 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002162/0.4445, allocations: 76.39 kB / 419 MB, free: 15.36 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7131/1.158, allocations: 128.5 MB / 0.5347 GB, free: 80.66 MB / 426.7 MB Notification: Performance of FrontEnd: time 4.558e-06/1.158, allocations: 2.266 kB / 0.5347 GB, free: 80.66 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003607/1.158, allocations: 117.7 kB / 0.5348 GB, free: 80.65 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: 2208 * Number of variables: 2208 Notification: Performance of Generate backend data structure: time 0.02138/1.179, allocations: 6.241 MB / 0.5409 GB, free: 78.45 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.658e-05/1.18, allocations: 13.28 kB / 0.5409 GB, free: 78.45 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03434/1.214, allocations: 6.453 MB / 0.5473 GB, free: 78.02 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02281/1.237, allocations: 8.571 MB / 0.5556 GB, free: 77.25 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005261/1.237, allocations: 440 kB / 0.556 GB, free: 77.24 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003039/1.24, allocations: 0.5784 MB / 0.5566 GB, free: 77.23 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04051/1.281, allocations: 15.29 MB / 0.5715 GB, free: 75.23 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000356/1.281, allocations: 62.8 kB / 0.5716 GB, free: 75.23 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002577/1.284, allocations: 261.7 kB / 0.5718 GB, free: 75.23 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003292/1.287, allocations: 1.696 MB / 0.5735 GB, free: 75.21 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03624/1.323, allocations: 14.63 MB / 0.5878 GB, free: 73.63 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09259/1.416, allocations: 56.25 MB / 0.6427 GB, free: 31.32 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02182/1.438, allocations: 7.967 MB / 0.6505 GB, free: 24.36 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007305/1.445, allocations: 4.697 MB / 0.6551 GB, free: 20.07 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002124/1.448, allocations: 2.208 MB / 0.6572 GB, free: 17.62 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.269e-05/1.448, allocations: 65.08 kB / 0.6573 GB, free: 17.55 MB / 426.7 MB Notification: Performance of pre-optimization done (n=367): time 9.536e-06/1.448, allocations: 4 kB / 0.6573 GB, free: 17.55 MB / 426.7 MB Notification: Performance of matching and sorting (n=419): time 0.1181/1.566, allocations: 33.39 MB / 0.6899 GB, free: 2.117 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001205/1.566, allocations: 120 kB / 0.69 GB, free: 1.98 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2543/1.82, allocations: 3.814 MB / 0.6938 GB, free: 88.89 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008225/1.821, allocations: 87.08 kB / 0.6938 GB, free: 88.86 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002447/1.824, allocations: 3.774 MB / 0.6975 GB, free: 87.74 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001819/1.825, allocations: 1.491 MB / 0.699 GB, free: 87.01 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007722/1.826, allocations: 154.3 kB / 0.6991 GB, free: 87.01 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000486/1.827, allocations: 0.6395 MB / 0.6998 GB, free: 86.69 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008125/1.835, allocations: 3.825 MB / 0.7035 GB, free: 86.67 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01081/1.846, allocations: 7.607 MB / 0.7109 GB, free: 81.92 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01082/1.857, allocations: 5.41 MB / 0.7162 GB, free: 81.85 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001591/1.857, allocations: 35.97 kB / 0.7162 GB, free: 81.85 MB / 442.7 MB Notification: Performance of matching and sorting (n=1017) (initialization): time 0.03406/1.891, allocations: 13.78 MB / 0.7297 GB, free: 81.29 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001305/1.891, allocations: 61.69 kB / 0.7298 GB, free: 81.29 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001731/1.891, allocations: 135.2 kB / 0.7299 GB, free: 81.29 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009419/1.901, allocations: 2.63 MB / 0.7324 GB, free: 81.27 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009686/1.91, allocations: 1.946 MB / 0.7343 GB, free: 81.13 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02341/1.934, allocations: 13.6 MB / 0.7476 GB, free: 76.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007825/1.942, allocations: 482.7 kB / 0.7481 GB, free: 76.08 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001926/1.944, allocations: 439.3 kB / 0.7485 GB, free: 76.01 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 594 * Number of states: 0 () * Number of discrete variables: 45 (bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.color[3],axis.color[2],axis.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 (920): * Single equations (assignments): 912 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,69.4%) 32,(3,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002641/1.946, allocations: 0.651 MB / 0.7491 GB, free: 75.56 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001117/1.947, allocations: 467.5 kB / 0.7496 GB, free: 75.31 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02533/1.973, allocations: 10.36 MB / 0.7597 GB, free: 72.03 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001046/1.973, allocations: 61.91 kB / 0.7598 GB, free: 72.03 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.719e-05/1.973, allocations: 11.67 kB / 0.7598 GB, free: 72.03 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.911e-05/1.973, allocations: 14.44 kB / 0.7598 GB, free: 72.03 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05076/2.024, allocations: 21 MB / 0.7803 GB, free: 65.08 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.875e-05/2.024, allocations: 11 kB / 0.7803 GB, free: 65.08 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004876/2.029, allocations: 0.7901 MB / 0.7811 GB, free: 64.68 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008878/2.038, allocations: 2.397 MB / 0.7834 GB, free: 63.14 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008846/2.039, allocations: 83.52 kB / 0.7835 GB, free: 63.06 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02004/2.059, allocations: 12.36 MB / 0.7956 GB, free: 52.39 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.238e-05/2.059, allocations: 15.94 kB / 0.7956 GB, free: 52.37 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02887/2.088, allocations: 16.13 MB / 0.8113 GB, free: 37.92 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003588/2.091, allocations: 1.152 MB / 0.8125 GB, free: 36.86 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001369/2.093, allocations: 75.61 kB / 0.8125 GB, free: 36.79 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004053/2.097, allocations: 303.8 kB / 0.8128 GB, free: 36.6 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001124/2.098, allocations: 260.9 kB / 0.8131 GB, free: 36.43 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004403/2.098, allocations: 111.8 kB / 0.8132 GB, free: 36.32 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005123/2.104, allocations: 2.668 MB / 0.8158 GB, free: 33.97 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.24e-06/2.104, allocations: 0 / 0.8158 GB, free: 33.97 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.008887/2.112, allocations: 1.655 MB / 0.8174 GB, free: 32.33 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 7 (revolute.phi,revolute.w,constantSpeed.phi,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (334): * Single equations (assignments): 326 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 9,(6,69.4%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001083/2.114, allocations: 239.1 kB / 0.8176 GB, free: 32.11 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01817/2.132, allocations: 9.609 MB / 0.827 GB, free: 23.48 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.417e-05/2.132, allocations: 4 kB / 0.827 GB, free: 23.47 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008031/2.14, allocations: 4.19 MB / 0.8311 GB, free: 19.7 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004655/2.145, allocations: 0.6336 MB / 0.8317 GB, free: 19.17 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03108/2.176, allocations: 14 MB / 0.8454 GB, free: 5.879 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009629/2.185, allocations: 4.75 MB / 0.85 GB, free: 1.105 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00254/2.188, allocations: 403.3 kB / 0.8504 GB, free: 0.7109 MB / 442.7 MB Notification: Performance of SimCode: time 2.084e-06/2.188, allocations: 0 / 0.8504 GB, free: 0.7109 MB / 442.7 MB Notification: Performance of Templates: time 0.4461/2.634, allocations: 136.4 MB / 0.9836 GB, free: 27.32 MB / 458.7 MB