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.Parts.FreeBodies2.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.MultiBody.Parts.FreeBodies2") Notification: Performance of loadModel(ModelicaTest): time 2.195/2.195, allocations: 235.1 MB / 243 MB, free: 9.492 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.227e-05/1.233e-05, allocations: 0 / 303.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2736/0.2736, allocations: 54.85 MB / 358 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1647/0.4384, allocations: 98.61 MB / 456.7 MB, free: 12.18 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000356/0.4388, allocations: 75.95 kB / 456.7 MB, free: 12.11 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.755/1.194, allocations: 139.1 MB / 0.5819 GB, free: 0.9766 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.925e-06/1.194, allocations: 0 / 0.5819 GB, free: 0.9766 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005558/1.194, allocations: 156 kB / 0.582 GB, free: 0.8242 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.04496/1.239, allocations: 8.671 MB / 0.5905 GB, free: 8.078 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/1.239, allocations: 8.031 kB / 0.5905 GB, free: 8.07 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0443/1.284, allocations: 7.755 MB / 0.5981 GB, free: 300 kB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03537/1.319, allocations: 10.95 MB / 0.6088 GB, free: 5.266 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005059/1.32, allocations: 244 kB / 0.609 GB, free: 5.027 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003246/1.323, allocations: 447.8 kB / 0.6094 GB, free: 4.59 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02614/1.349, allocations: 10.04 MB / 0.6192 GB, free: 10.54 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5939/1.943, allocations: 15.13 MB / 0.634 GB, free: 61.43 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006433/1.944, allocations: 101.2 kB / 0.6341 GB, free: 61.43 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002839/1.947, allocations: 46.44 kB / 0.6342 GB, free: 61.43 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003349/1.95, allocations: 1.604 MB / 0.6357 GB, free: 61.41 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09445/2.045, allocations: 77.62 MB / 0.7115 GB, free: 16.46 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006704/2.051, allocations: 4.351 MB / 0.7158 GB, free: 15.78 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004683/2.056, allocations: 3.047 MB / 0.7187 GB, free: 14.7 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001827/2.056, allocations: 42.42 kB / 0.7188 GB, free: 14.69 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.488e-05/2.056, allocations: 62.84 kB / 0.7188 GB, free: 14.63 MB / 458.8 MB Notification: Performance of pre-optimization done (n=265): time 7.557e-06/2.056, allocations: 3.094 kB / 0.7188 GB, free: 14.63 MB / 458.8 MB Notification: Performance of matching and sorting (n=293): time 0.06024/2.117, allocations: 21.59 MB / 0.7399 GB, free: 6.516 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.689e-05/2.117, allocations: 244 kB / 0.7402 GB, free: 6.262 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009852/2.127, allocations: 5.142 MB / 0.7452 GB, free: 4.391 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006467/2.127, allocations: 25.7 kB / 0.7452 GB, free: 4.359 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003547/2.131, allocations: 5.132 MB / 0.7502 GB, free: 300 kB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001915/2.133, allocations: 1.174 MB / 0.7514 GB, free: 15.43 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008425/2.134, allocations: 3.25 kB / 0.7514 GB, free: 15.43 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0007668/2.134, allocations: 0.7271 MB / 0.7521 GB, free: 14.94 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007718/2.142, allocations: 3.697 MB / 0.7557 GB, free: 13.62 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01367/2.156, allocations: 9.573 MB / 0.765 GB, free: 4.32 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01131/2.167, allocations: 5.803 MB / 0.7707 GB, free: 2.137 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001777/2.167, allocations: 61.34 kB / 0.7708 GB, free: 2.137 MB / 474.8 MB Notification: Performance of matching and sorting (n=1301) (initialization): time 0.04447/2.212, allocations: 14.81 MB / 0.7852 GB, free: 9.039 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001818/2.212, allocations: 96 kB / 0.7853 GB, free: 8.945 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02414/2.236, allocations: 7.489 MB / 0.7926 GB, free: 3.086 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02001/2.256, allocations: 3.852 MB / 0.7964 GB, free: 0.5156 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01016/2.266, allocations: 2.361 MB / 0.7987 GB, free: 14.49 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02108/2.288, allocations: 13.11 MB / 0.8115 GB, free: 2.184 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01154/2.299, allocations: 0.6838 MB / 0.8122 GB, free: 1.723 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002386/2.302, allocations: 0.6018 MB / 0.8128 GB, free: 1.145 MB / 0.4949 GB 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 (1225): * Single equations (assignments): 1200 * Array equations: 11 * 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 {(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: 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 prepare postOptimizeDAE: time 0.0027/2.304, allocations: 0.6434 MB / 0.8134 GB, free: 0.5 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.2952/2.6, allocations: 0.5514 MB / 0.8139 GB, free: 105.8 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01952/2.619, allocations: 7.317 MB / 0.8211 GB, free: 105.6 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01544/2.635, allocations: 6.547 MB / 0.8275 GB, free: 105.3 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.553e-05/2.635, allocations: 7.25 kB / 0.8275 GB, free: 105.3 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.652e-05/2.635, allocations: 16.92 kB / 0.8275 GB, free: 105.3 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02431/2.659, allocations: 11.02 MB / 0.8382 GB, free: 104.7 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.963e-05/2.659, allocations: 0 / 0.8382 GB, free: 104.7 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00447/2.664, allocations: 0.6077 MB / 0.8388 GB, free: 104.7 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01224/2.676, allocations: 3.073 MB / 0.8418 GB, free: 104.6 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007278/2.677, allocations: 56.73 kB / 0.8419 GB, free: 104.6 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02139/2.698, allocations: 13.76 MB / 0.8553 GB, free: 97.27 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007236/2.705, allocations: 5.78 MB / 0.861 GB, free: 92.08 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04688/2.752, allocations: 11.51 MB / 0.8722 GB, free: 91.29 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003144/2.756, allocations: 0.6022 MB / 0.8728 GB, free: 91.19 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002561/2.758, allocations: 34.61 kB / 0.8728 GB, free: 91.19 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009306/2.768, allocations: 331.1 kB / 0.8731 GB, free: 91.19 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001597/2.769, allocations: 221.7 kB / 0.8734 GB, free: 91.19 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007426/2.77, allocations: 93.09 kB / 0.8734 GB, free: 91.18 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.01477/2.785, allocations: 3.446 MB / 0.8768 GB, free: 90.97 MB / 0.4949 GB Notification: Performance of sort global known variables: time 2.153e-06/2.785, allocations: 2.781 kB / 0.8768 GB, free: 90.97 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01582/2.801, allocations: 1.889 MB / 0.8787 GB, free: 90.97 MB / 0.4949 GB 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.0009489/2.802, allocations: 189.6 kB / 0.8788 GB, free: 90.88 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.02017/2.822, allocations: 10.72 MB / 0.8893 GB, free: 86.98 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 8.846e-06/2.822, allocations: 2.844 kB / 0.8893 GB, free: 86.98 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.01071/2.833, allocations: 5.242 MB / 0.8944 GB, free: 84.45 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004858/2.837, allocations: 0.6933 MB / 0.8951 GB, free: 84.18 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04396/2.881, allocations: 17.15 MB / 0.9119 GB, free: 74.73 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01168/2.893, allocations: 5.412 MB / 0.9171 GB, free: 70.79 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002235/2.896, allocations: 486.8 kB / 0.9176 GB, free: 70.35 MB / 0.4949 GB Notification: Performance of SimCode: time 2.002e-06/2.896, allocations: 0 / 0.9176 GB, free: 70.35 MB / 0.4949 GB Notification: Performance of Templates: time 1.68/4.576, allocations: 0.4986 GB / 1.416 GB, free: 148.3 MB / 0.5418 GB