Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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 2.07/2.07, allocations: 209.2 MB / 225.4 MB, free: 0.7695 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005829/0.000583, allocations: 12 kB / 283.1 MB, free: 9.715 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.1171, allocations: 48.7 MB / 331.8 MB, free: 8.922 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4382/0.5554, allocations: 92.67 MB / 424.5 MB, free: 8.484 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003117/0.5558, allocations: 83.89 kB / 424.6 MB, free: 8.402 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8596/1.415, allocations: 143.8 MB / 0.555 GB, free: 76.55 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.146e-06/1.415, allocations: 0 / 0.555 GB, free: 76.55 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006723/1.416, allocations: 153.2 kB / 0.5552 GB, free: 76.54 MB / 410.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.06375/1.48, allocations: 9.285 MB / 0.5642 GB, free: 68.52 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.709e-05/1.48, allocations: 15.97 kB / 0.5643 GB, free: 68.51 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05675/1.537, allocations: 7.691 MB / 0.5718 GB, free: 60.8 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04167/1.578, allocations: 10.95 MB / 0.5825 GB, free: 49.77 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001138/1.58, allocations: 0.5616 MB / 0.583 GB, free: 49.2 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005735/1.585, allocations: 0.7579 MB / 0.5837 GB, free: 48.45 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05822/1.644, allocations: 17.68 MB / 0.601 GB, free: 29.23 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005681/1.644, allocations: 115 kB / 0.6011 GB, free: 29.12 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003256/1.648, allocations: 355.9 kB / 0.6015 GB, free: 28.77 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003642/1.651, allocations: 1.6 MB / 0.603 GB, free: 27.16 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06499/1.716, allocations: 14.3 MB / 0.617 GB, free: 12.84 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5008/2.217, allocations: 79 MB / 0.6941 GB, free: 29.59 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03612/2.253, allocations: 6.931 MB / 0.7009 GB, free: 28.91 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03841/2.292, allocations: 14.67 MB / 0.7152 GB, free: 25.64 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.425e-05/2.292, allocations: 63.5 kB / 0.7153 GB, free: 25.61 MB / 426.7 MB Notification: Performance of pre-optimization done (n=259): time 6.021e-06/2.292, allocations: 0 / 0.7153 GB, free: 25.61 MB / 426.7 MB Notification: Performance of matching and sorting (n=287): time 0.1252/2.417, allocations: 27.73 MB / 0.7424 GB, free: 16.98 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00485/2.422, allocations: 6.309 MB / 0.7485 GB, free: 10.86 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01715/2.439, allocations: 6.579 MB / 0.755 GB, free: 8.523 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009715/2.44, allocations: 66.72 kB / 0.755 GB, free: 8.465 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004587/2.445, allocations: 5.068 MB / 0.76 GB, free: 4.445 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002219/2.447, allocations: 1.187 MB / 0.7611 GB, free: 3.59 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001702/2.449, allocations: 193.9 kB / 0.7613 GB, free: 3.441 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.001007/2.45, allocations: 0.7225 MB / 0.762 GB, free: 2.953 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01064/2.461, allocations: 3.899 MB / 0.7658 GB, free: 1.66 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01596/2.477, allocations: 9.719 MB / 0.7753 GB, free: 8.555 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01567/2.492, allocations: 5.949 MB / 0.7811 GB, free: 5.871 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003258/2.493, allocations: 59.95 kB / 0.7812 GB, free: 5.812 MB / 442.7 MB Notification: Performance of matching and sorting (n=1271) (initialization): time 0.05157/2.544, allocations: 15.14 MB / 0.796 GB, free: 9.191 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001941/2.545, allocations: 96 kB / 0.7961 GB, free: 9.098 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02551/2.57, allocations: 6.761 MB / 0.8027 GB, free: 3.566 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01614/2.586, allocations: 2.853 MB / 0.8054 GB, free: 1.512 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01645/2.603, allocations: 2.402 MB / 0.8078 GB, free: 15.59 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01692/2.62, allocations: 11.36 MB / 0.8189 GB, free: 4.379 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01476/2.634, allocations: 0.8636 MB / 0.8197 GB, free: 3.734 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002763/2.637, allocations: 0.5911 MB / 0.8203 GB, free: 3.172 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 933 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1204): * Single equations (assignments): 1179 * 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.01163/2.649, allocations: 3.421 MB / 0.8237 GB, free: 148 kB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.3342/2.983, allocations: 0.5822 MB / 0.8242 GB, free: 119.9 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03129/3.014, allocations: 7.583 MB / 0.8316 GB, free: 119.6 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0263/3.041, allocations: 6.748 MB / 0.8382 GB, free: 119.4 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.443e-05/3.041, allocations: 6.562 kB / 0.8382 GB, free: 119.4 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001063/3.041, allocations: 14.22 kB / 0.8382 GB, free: 119.4 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02323/3.064, allocations: 7.42 MB / 0.8455 GB, free: 119 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.966e-05/3.064, allocations: 0 / 0.8455 GB, free: 119 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006387/3.071, allocations: 0.6031 MB / 0.8461 GB, free: 119 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0171/3.088, allocations: 3.131 MB / 0.8491 GB, free: 118.9 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001015/3.089, allocations: 94.69 kB / 0.8492 GB, free: 118.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02253/3.112, allocations: 14.31 MB / 0.8632 GB, free: 111.2 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004778/3.116, allocations: 6.073 MB / 0.8691 GB, free: 105.8 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03413/3.151, allocations: 11.62 MB / 0.8805 GB, free: 101.8 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00468/3.155, allocations: 1.127 MB / 0.8816 GB, free: 101.4 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002471/3.158, allocations: 76.88 kB / 0.8816 GB, free: 101.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007266/3.165, allocations: 378.8 kB / 0.882 GB, free: 101.4 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001421/3.167, allocations: 220.5 kB / 0.8822 GB, free: 101.3 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005131/3.167, allocations: 89.34 kB / 0.8823 GB, free: 101.3 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.013/3.18, allocations: 4.095 MB / 0.8863 GB, free: 99.98 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.643e-06/3.18, allocations: 0 / 0.8863 GB, free: 99.98 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01371/3.194, allocations: 2.003 MB / 0.8883 GB, free: 99.79 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 54 ($STATESET4.x[3],$STATESET4.x[2],$STATESET4.x[1],$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],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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (233): * Single equations (assignments): 216 * 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.001394/3.195, allocations: 237.6 kB / 0.8885 GB, free: 99.67 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02964/3.225, allocations: 10.85 MB / 0.8991 GB, free: 95.8 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.366e-06/3.225, allocations: 3.25 kB / 0.8991 GB, free: 95.8 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01649/3.242, allocations: 5.352 MB / 0.9043 GB, free: 93.16 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007803/3.249, allocations: 0.8246 MB / 0.9051 GB, free: 92.84 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05329/3.303, allocations: 23.15 MB / 0.9277 GB, free: 73.27 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01322/3.316, allocations: 5.402 MB / 0.933 GB, free: 69.32 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002898/3.319, allocations: 494.7 kB / 0.9335 GB, free: 68.88 MB / 474.7 MB Notification: Performance of SimCode: time 1.032e-06/3.319, allocations: 0 / 0.9335 GB, free: 68.88 MB / 474.7 MB Notification: Performance of Templates: time 2.019/5.339, allocations: 0.5005 GB / 1.434 GB, free: 101.6 MB / 0.4948 GB