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.Parts.FreeBodies2.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Parts.FreeBodies2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.Q.1.|body.Q.2.|body.Q.3.|body.Q.4.|body.r_0.1.|body.r_0.2.|body.r_0.3.|body.v_0.1.|body.v_0.2.|body.v_0.3.|body.w_a.1.|body.w_a.2.|body.w_a.3.|bodyBox.body.Q.1.|bodyBox.body.Q.2.|bodyBox.body.Q.3.|bodyBox.body.Q.4.|bodyBox.body.w_a.1.|bodyBox.body.w_a.2.|bodyBox.body.w_a.3.|bodyBox.r_0.1.|bodyBox.r_0.2.|bodyBox.r_0.3.|bodyBox.v_0.1.|bodyBox.v_0.2.|bodyBox.v_0.3.|bodyCylinder.body.Q.1.|bodyCylinder.body.Q.2.|bodyCylinder.body.Q.3.|bodyCylinder.body.Q.4.|bodyCylinder.body.w_a.1.|bodyCylinder.body.w_a.2.|bodyCylinder.body.w_a.3.|bodyCylinder.r_0.1.|bodyCylinder.r_0.2.|bodyCylinder.r_0.3.|bodyCylinder.v_0.1.|bodyCylinder.v_0.2.|bodyCylinder.v_0.3.|bodyShape.body.Q.1.|bodyShape.body.Q.2.|bodyShape.body.Q.3.|bodyShape.body.Q.4.|bodyShape.body.w_a.1.|bodyShape.body.w_a.2.|bodyShape.body.w_a.3.|bodyShape.r_0.1.|bodyShape.r_0.2.|bodyShape.r_0.3.|bodyShape.v_0.1.|bodyShape.v_0.2.|bodyShape.v_0.3.|pointMass.r_0.1.|pointMass.r_0.2.|pointMass.r_0.3.|pointMass.v_0.1.|pointMass.v_0.2.|pointMass.v_0.3.",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Parts.FreeBodies2") Notification: Performance of loadModel(ModelicaTest): time 1.998/1.998, allocations: 209.4 MB / 217.3 MB, free: 4.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.982e-05/1.988e-05, allocations: 4 kB / 271.3 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2632/0.2633, allocations: 48.69 MB / 320 MB, free: 14.41 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1409/0.4043, allocations: 91.93 MB / 411.9 MB, free: 4.492 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002419/0.4045, allocations: 71.97 kB / 412 MB, free: 4.422 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7589/1.163, allocations: 139 MB / 0.5381 GB, free: 21.41 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.789e-06/1.164, allocations: 0 / 0.5381 GB, free: 21.41 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004526/1.164, allocations: 148 kB / 0.5382 GB, free: 21.27 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2525 * Number of variables: 2525 Notification: Performance of Generate backend data structure: time 0.04276/1.207, allocations: 8.671 MB / 0.5467 GB, free: 12.52 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/1.207, allocations: 16.02 kB / 0.5467 GB, free: 12.51 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04218/1.249, allocations: 7.693 MB / 0.5542 GB, free: 4.793 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03271/1.282, allocations: 10.92 MB / 0.5649 GB, free: 9.793 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005183/1.282, allocations: 249 kB / 0.5651 GB, free: 9.551 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003151/1.286, allocations: 443.9 kB / 0.5655 GB, free: 9.117 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02552/1.311, allocations: 10.04 MB / 0.5753 GB, free: 15.07 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2977/1.609, allocations: 15.13 MB / 0.5901 GB, free: 55.89 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005533/1.609, allocations: 105.4 kB / 0.5902 GB, free: 55.89 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002108/1.612, allocations: 49.59 kB / 0.5902 GB, free: 55.89 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003412/1.615, allocations: 1.598 MB / 0.5918 GB, free: 55.88 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1285/1.743, allocations: 77.58 MB / 0.6676 GB, free: 26.95 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01307/1.757, allocations: 4.35 MB / 0.6718 GB, free: 24.8 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006106/1.763, allocations: 3.049 MB / 0.6748 GB, free: 23.44 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002032/1.763, allocations: 40.38 kB / 0.6748 GB, free: 23.44 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.719e-05/1.763, allocations: 69.88 kB / 0.6749 GB, free: 23.38 MB / 426.7 MB Notification: Performance of pre-optimization done (n=265): time 7.496e-06/1.763, allocations: 2.953 kB / 0.6749 GB, free: 23.38 MB / 426.7 MB Notification: Performance of matching and sorting (n=293): time 0.06459/1.828, allocations: 21.6 MB / 0.696 GB, free: 15.23 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.672e-05/1.828, allocations: 235.9 kB / 0.6962 GB, free: 14.98 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01156/1.839, allocations: 5.145 MB / 0.7012 GB, free: 12.99 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006998/1.84, allocations: 30.98 kB / 0.7013 GB, free: 12.96 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005001/1.845, allocations: 5.124 MB / 0.7063 GB, free: 8.855 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002049/1.847, allocations: 1.176 MB / 0.7074 GB, free: 7.992 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001001/1.848, allocations: 0 / 0.7074 GB, free: 7.992 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0009624/1.849, allocations: 0.7314 MB / 0.7081 GB, free: 7.5 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007912/1.857, allocations: 3.668 MB / 0.7117 GB, free: 6.191 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01384/1.871, allocations: 9.545 MB / 0.721 GB, free: 12.79 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01162/1.883, allocations: 5.778 MB / 0.7267 GB, free: 10.06 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002108/1.883, allocations: 60 kB / 0.7267 GB, free: 10 MB / 442.7 MB Notification: Performance of matching and sorting (n=1301) (initialization): time 0.03884/1.922, allocations: 13.83 MB / 0.7402 GB, free: 14.28 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001988/1.922, allocations: 99.95 kB / 0.7403 GB, free: 14.18 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01787/1.94, allocations: 6.544 MB / 0.7467 GB, free: 8.852 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01169/1.952, allocations: 2.789 MB / 0.7495 GB, free: 6.84 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01049/1.962, allocations: 2.415 MB / 0.7518 GB, free: 4.77 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2877/2.25, allocations: 10.87 MB / 0.7624 GB, free: 95.26 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01139/2.261, allocations: 0.6804 MB / 0.7631 GB, free: 95.26 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002068/2.264, allocations: 0.6057 MB / 0.7637 GB, free: 95.26 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 957 * Number of states: 0 () * Number of discrete variables: 75 (spring6.color[3],spring6.color[2],spring6.color[1],spring6.massColor[3],spring6.massColor[2],spring6.massColor[1],pointMass.sphereColor[3],pointMass.sphereColor[2],pointMass.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],spring5.color[3],spring5.color[2],spring5.color[1],spring5.massColor[3],spring5.massColor[2],spring5.massColor[1],spring4.color[3],spring4.color[2],spring4.color[1],spring4.massColor[3],spring4.massColor[2],spring4.massColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],spring3.color[3],spring3.color[2],spring3.color[1],spring3.massColor[3],spring3.massColor[2],spring3.massColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],bodyShape.color[3],bodyShape.color[2],bodyShape.color[1],bodyShape.body.sphereColor[3],bodyShape.body.sphereColor[2],bodyShape.body.sphereColor[1],bodyShape.frameTranslation.color[3],bodyShape.frameTranslation.color[2],bodyShape.frameTranslation.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[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 (1234): * Single equations (assignments): 1209 * Array equations: 11 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 11 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 1 {3 1} Notification: Performance of prepare postOptimizeDAE: time 0.002204/2.266, allocations: 0.6548 MB / 0.7643 GB, free: 95.15 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001326/2.267, allocations: 0.5535 MB / 0.7649 GB, free: 95.15 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01999/2.287, allocations: 7.312 MB / 0.772 GB, free: 94.88 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01721/2.304, allocations: 6.548 MB / 0.7784 GB, free: 94.65 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.833e-05/2.304, allocations: 7.219 kB / 0.7784 GB, free: 94.65 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.708e-05/2.305, allocations: 13.59 kB / 0.7784 GB, free: 94.65 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02632/2.331, allocations: 11 MB / 0.7892 GB, free: 94.05 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.075e-05/2.331, allocations: 0 / 0.7892 GB, free: 94.05 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004005/2.335, allocations: 0.613 MB / 0.7898 GB, free: 94.05 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01248/2.347, allocations: 3.075 MB / 0.7928 GB, free: 93.94 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007666/2.348, allocations: 63.27 kB / 0.7928 GB, free: 93.94 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01683/2.365, allocations: 13.75 MB / 0.8063 GB, free: 86.57 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003495/2.369, allocations: 5.778 MB / 0.8119 GB, free: 81.38 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02502/2.394, allocations: 11.52 MB / 0.8232 GB, free: 78.57 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003532/2.397, allocations: 1.1 MB / 0.8242 GB, free: 78.27 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001507/2.399, allocations: 34.83 kB / 0.8243 GB, free: 78.26 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005006/2.404, allocations: 333.7 kB / 0.8246 GB, free: 78.26 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001073/2.405, allocations: 212.3 kB / 0.8248 GB, free: 78.24 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003726/2.405, allocations: 90.5 kB / 0.8249 GB, free: 78.22 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.007733/2.413, allocations: 3.45 MB / 0.8282 GB, free: 76.96 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.32e-06/2.413, allocations: 3.562 kB / 0.8282 GB, free: 76.96 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01189/2.425, allocations: 1.862 MB / 0.8301 GB, free: 76.96 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 54 ($STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],$STATESET0.x[3],$STATESET0.x[2],$STATESET0.x[1],bodyShape.r_0[1],bodyShape.r_0[2],bodyShape.r_0[3],bodyShape.v_0[1],bodyShape.v_0[2],bodyShape.v_0[3],bodyShape.body.w_a[1],bodyShape.body.w_a[2],bodyShape.body.w_a[3],body.r_0[1],body.r_0[2],body.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3],bodyBox.r_0[1],bodyBox.r_0[2],bodyBox.r_0[3],bodyBox.v_0[1],bodyBox.v_0[2],bodyBox.v_0[3],bodyBox.body.w_a[1],bodyBox.body.w_a[2],bodyBox.body.w_a[3],bodyCylinder.r_0[1],bodyCylinder.r_0[2],bodyCylinder.r_0[3],bodyCylinder.v_0[1],bodyCylinder.v_0[2],bodyCylinder.v_0[3],bodyCylinder.body.w_a[1],bodyCylinder.body.w_a[2],bodyCylinder.body.w_a[3],pointMass.r_0[1],pointMass.r_0[2],pointMass.r_0[3],pointMass.v_0[1],pointMass.v_0[2],pointMass.v_0[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (239): * Single equations (assignments): 222 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 12 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 4 {4,4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009874/2.426, allocations: 192 kB / 0.8302 GB, free: 76.87 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02046/2.447, allocations: 10.32 MB / 0.8403 GB, free: 73.23 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.008e-05/2.447, allocations: 3.875 kB / 0.8403 GB, free: 73.23 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01099/2.458, allocations: 5.24 MB / 0.8454 GB, free: 70.37 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00512/2.463, allocations: 0.7026 MB / 0.8461 GB, free: 69.79 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03665/2.499, allocations: 17.15 MB / 0.8629 GB, free: 55.23 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01079/2.51, allocations: 5.396 MB / 0.8682 GB, free: 51.29 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002177/2.513, allocations: 487.8 kB / 0.8686 GB, free: 50.85 MB / 458.7 MB Notification: Performance of SimCode: time 1.888e-06/2.513, allocations: 0 / 0.8686 GB, free: 50.85 MB / 458.7 MB Notification: Performance of Templates: time 1.452/3.965, allocations: 0.4974 GB / 1.366 GB, free: 76.36 MB / 490.7 MB