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/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.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.997/1.997, allocations: 209.3 MB / 224.9 MB, free: 188 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004515/0.0004516, allocations: 16 kB / 282.6 MB, free: 9.59 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3223/0.3228, allocations: 48.7 MB / 331.3 MB, free: 6.5 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1416/0.4644, allocations: 92.68 MB / 424 MB, free: 1.703 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002517/0.4647, allocations: 71.97 kB / 424 MB, free: 1.633 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7214/1.186, allocations: 142.3 MB / 0.5531 GB, free: 41.95 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.06e-06/1.186, allocations: 0 / 0.5531 GB, free: 41.95 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004747/1.187, allocations: 152 kB / 0.5532 GB, free: 41.8 MB / 394.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.04358/1.23, allocations: 9.289 MB / 0.5623 GB, free: 32.43 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.835e-05/1.23, allocations: 8.031 kB / 0.5623 GB, free: 32.42 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04076/1.271, allocations: 7.693 MB / 0.5698 GB, free: 24.7 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02977/1.301, allocations: 10.96 MB / 0.5805 GB, free: 13.66 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000625/1.302, allocations: 0.5615 MB / 0.581 GB, free: 13.1 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003038/1.305, allocations: 0.7612 MB / 0.5818 GB, free: 12.34 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04729/1.352, allocations: 17.61 MB / 0.599 GB, free: 9.188 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005431/1.353, allocations: 103.1 kB / 0.5991 GB, free: 9.086 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002988/1.356, allocations: 363.8 kB / 0.5994 GB, free: 8.73 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003512/1.359, allocations: 1.604 MB / 0.601 GB, free: 7.125 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05472/1.414, allocations: 14.29 MB / 0.615 GB, free: 8.812 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.636/2.05, allocations: 79.01 MB / 0.6921 GB, free: 22.97 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02714/2.077, allocations: 6.939 MB / 0.6989 GB, free: 22.29 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03098/2.108, allocations: 14.66 MB / 0.7132 GB, free: 16.96 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.077e-05/2.108, allocations: 68.38 kB / 0.7133 GB, free: 16.91 MB / 426.8 MB Notification: Performance of pre-optimization done (n=259): time 7.37e-06/2.108, allocations: 0 / 0.7133 GB, free: 16.91 MB / 426.8 MB Notification: Performance of matching and sorting (n=287): time 0.09434/2.203, allocations: 27.73 MB / 0.7403 GB, free: 6.316 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004322/2.207, allocations: 6.311 MB / 0.7465 GB, free: 204 kB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01484/2.222, allocations: 5.865 MB / 0.7522 GB, free: 14.2 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007685/2.223, allocations: 64.2 kB / 0.7523 GB, free: 14.14 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005633/2.228, allocations: 5.064 MB / 0.7572 GB, free: 10.12 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002154/2.23, allocations: 1.179 MB / 0.7584 GB, free: 9.273 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001221/2.232, allocations: 191.4 kB / 0.7586 GB, free: 9.129 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.0009276/2.233, allocations: 0.7252 MB / 0.7593 GB, free: 8.617 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009871/2.243, allocations: 3.896 MB / 0.7631 GB, free: 5.34 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01608/2.259, allocations: 9.684 MB / 0.7725 GB, free: 9.723 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01368/2.272, allocations: 5.944 MB / 0.7783 GB, free: 4.566 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002042/2.273, allocations: 67.09 kB / 0.7784 GB, free: 4.504 MB / 458.8 MB Notification: Performance of matching and sorting (n=1271) (initialization): time 0.04272/2.315, allocations: 15.13 MB / 0.7932 GB, free: 7.719 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001932/2.316, allocations: 95.42 kB / 0.7933 GB, free: 7.629 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01966/2.335, allocations: 6.767 MB / 0.7999 GB, free: 2.09 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01199/2.347, allocations: 2.842 MB / 0.8027 GB, free: 48 kB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2908/2.638, allocations: 2.363 MB / 0.805 GB, free: 112.7 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01329/2.651, allocations: 11.4 MB / 0.8161 GB, free: 105 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0122/2.664, allocations: 0.8599 MB / 0.817 GB, free: 105 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002273/2.666, allocations: 0.5883 MB / 0.8175 GB, free: 105 MB / 474.8 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.009864/2.676, allocations: 3.414 MB / 0.8209 GB, free: 104.9 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001539/2.678, allocations: 0.5889 MB / 0.8214 GB, free: 104.9 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02244/2.7, allocations: 7.581 MB / 0.8288 GB, free: 104.6 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01876/2.719, allocations: 6.75 MB / 0.8354 GB, free: 104.4 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.66e-05/2.719, allocations: 7.781 kB / 0.8354 GB, free: 104.4 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.625e-05/2.719, allocations: 14.91 kB / 0.8355 GB, free: 104.4 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01871/2.738, allocations: 7.427 MB / 0.8427 GB, free: 104 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.714e-05/2.738, allocations: 3.281 kB / 0.8427 GB, free: 104 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004395/2.742, allocations: 0.5996 MB / 0.8433 GB, free: 104 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01292/2.755, allocations: 3.133 MB / 0.8464 GB, free: 103.9 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008389/2.756, allocations: 97.92 kB / 0.8464 GB, free: 103.9 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01815/2.774, allocations: 14.29 MB / 0.8604 GB, free: 95.74 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004063/2.778, allocations: 6.08 MB / 0.8663 GB, free: 89.98 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02651/2.805, allocations: 11.73 MB / 0.8778 GB, free: 85.79 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003738/2.809, allocations: 1.128 MB / 0.8789 GB, free: 85.38 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001968/2.811, allocations: 85.89 kB / 0.879 GB, free: 85.34 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005261/2.816, allocations: 373.3 kB / 0.8793 GB, free: 85.3 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001117/2.817, allocations: 220.9 kB / 0.8795 GB, free: 85.28 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000503/2.818, allocations: 91.14 kB / 0.8796 GB, free: 85.26 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.01007/2.828, allocations: 4.093 MB / 0.8836 GB, free: 83.91 MB / 474.8 MB Notification: Performance of sort global known variables: time 1.29e-06/2.828, allocations: 3 kB / 0.8836 GB, free: 83.91 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.0121/2.84, allocations: 2.005 MB / 0.8856 GB, free: 83.73 MB / 474.8 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.00107/2.841, allocations: 235.9 kB / 0.8858 GB, free: 83.61 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.02251/2.863, allocations: 10.87 MB / 0.8964 GB, free: 77.94 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 6.7e-06/2.863, allocations: 6.5 kB / 0.8964 GB, free: 77.94 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01168/2.875, allocations: 5.358 MB / 0.9017 GB, free: 73.2 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0057/2.881, allocations: 0.8212 MB / 0.9025 GB, free: 72.52 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0478/2.929, allocations: 23.1 MB / 0.925 GB, free: 52.27 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01124/2.94, allocations: 5.407 MB / 0.9303 GB, free: 48.33 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002229/2.942, allocations: 497.4 kB / 0.9308 GB, free: 47.88 MB / 474.8 MB Notification: Performance of SimCode: time 1.961e-06/2.942, allocations: 0 / 0.9308 GB, free: 47.88 MB / 474.8 MB Notification: Performance of Templates: time 1.605/4.547, allocations: 0.5005 GB / 1.431 GB, free: 82.32 MB / 0.4949 GB