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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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.276/2.276, allocations: 234.9 MB / 250.5 MB, free: 9.461 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000432/0.0004323, allocations: 12 kB / 314.4 MB, free: 9.469 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2751/0.2756, allocations: 54.86 MB / 369.3 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1474/0.4231, allocations: 99.37 MB / 468.6 MB, free: 7.188 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002506/0.4234, allocations: 83.94 kB / 468.7 MB, free: 7.105 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7152/1.139, allocations: 142.5 MB / 0.5969 GB, free: 5.305 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.64e-06/1.139, allocations: 4 kB / 0.5969 GB, free: 5.301 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004872/1.139, allocations: 160 kB / 0.597 GB, free: 5.145 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: 2525 * Number of variables: 2525 Notification: Performance of Generate backend data structure: time 0.04574/1.185, allocations: 9.287 MB / 0.6061 GB, free: 11.77 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.706e-05/1.185, allocations: 8.031 kB / 0.6061 GB, free: 11.76 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06809/1.253, allocations: 7.743 MB / 0.6137 GB, free: 3.996 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05137/1.304, allocations: 10.99 MB / 0.6244 GB, free: 8.926 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008202/1.305, allocations: 0.5577 MB / 0.6249 GB, free: 8.367 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003148/1.308, allocations: 0.7652 MB / 0.6257 GB, free: 7.602 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3717/1.68, allocations: 17.6 MB / 0.6429 GB, free: 59.43 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004686/1.681, allocations: 108.5 kB / 0.643 GB, free: 59.43 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00237/1.683, allocations: 361.1 kB / 0.6433 GB, free: 59.43 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00294/1.686, allocations: 1.598 MB / 0.6449 GB, free: 59.41 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03834/1.724, allocations: 14.3 MB / 0.6588 GB, free: 59.36 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1307/1.855, allocations: 79.04 MB / 0.736 GB, free: 25.73 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03656/1.892, allocations: 6.931 MB / 0.7428 GB, free: 23.58 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02913/1.921, allocations: 14.7 MB / 0.7571 GB, free: 16.13 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.573e-05/1.921, allocations: 70.41 kB / 0.7572 GB, free: 16.07 MB / 474.7 MB Notification: Performance of pre-optimization done (n=259): time 6.52e-06/1.921, allocations: 0 / 0.7572 GB, free: 16.07 MB / 474.7 MB Notification: Performance of matching and sorting (n=287): time 0.1104/2.031, allocations: 27.72 MB / 0.7843 GB, free: 14.36 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.009338/2.041, allocations: 6.307 MB / 0.7904 GB, free: 7.711 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0226/2.064, allocations: 5.858 MB / 0.7962 GB, free: 2.82 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009513/2.065, allocations: 68.28 kB / 0.7962 GB, free: 2.75 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.008238/2.073, allocations: 5.055 MB / 0.8012 GB, free: 14.16 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.00313/2.076, allocations: 1.184 MB / 0.8023 GB, free: 13.12 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001944/2.078, allocations: 191.9 kB / 0.8025 GB, free: 12.94 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001572/2.08, allocations: 0.7192 MB / 0.8032 GB, free: 12.32 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01617/2.096, allocations: 3.926 MB / 0.807 GB, free: 9.02 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.326/2.422, allocations: 9.711 MB / 0.8165 GB, free: 97.45 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01262/2.435, allocations: 5.974 MB / 0.8224 GB, free: 97.4 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002472/2.435, allocations: 57.69 kB / 0.8224 GB, free: 97.4 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1271) (initialization): time 0.04492/2.48, allocations: 16.13 MB / 0.8382 GB, free: 96.7 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001798/2.48, allocations: 93.34 kB / 0.8383 GB, free: 96.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02391/2.504, allocations: 7.697 MB / 0.8458 GB, free: 96.42 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01912/2.523, allocations: 3.919 MB / 0.8496 GB, free: 96.3 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01006/2.533, allocations: 2.3 MB / 0.8518 GB, free: 96.11 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01998/2.553, allocations: 14 MB / 0.8655 GB, free: 88.23 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01181/2.565, allocations: 0.8656 MB / 0.8664 GB, free: 88.23 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002215/2.567, allocations: 0.587 MB / 0.8669 GB, free: 88.23 MB / 0.4948 GB 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 (1195): * Single equations (assignments): 1170 * 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.008832/2.576, allocations: 3.414 MB / 0.8703 GB, free: 87.91 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001333/2.577, allocations: 0.5855 MB / 0.8708 GB, free: 87.91 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02091/2.598, allocations: 7.588 MB / 0.8782 GB, free: 87.55 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01833/2.617, allocations: 6.75 MB / 0.8848 GB, free: 85.44 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.831e-05/2.617, allocations: 7.688 kB / 0.8848 GB, free: 85.44 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.358e-05/2.617, allocations: 13.41 kB / 0.8849 GB, free: 85.44 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01842/2.635, allocations: 7.431 MB / 0.8921 GB, free: 82.89 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.678e-05/2.635, allocations: 3.781 kB / 0.8921 GB, free: 82.89 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004554/2.64, allocations: 0.5956 MB / 0.8927 GB, free: 82.85 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01287/2.653, allocations: 3.131 MB / 0.8958 GB, free: 82.23 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008258/2.654, allocations: 100.3 kB / 0.8959 GB, free: 82.19 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01867/2.673, allocations: 14.29 MB / 0.9098 GB, free: 72.62 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004183/2.677, allocations: 6.074 MB / 0.9157 GB, free: 66.83 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02513/2.702, allocations: 11.74 MB / 0.9272 GB, free: 59.57 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001951/2.704, allocations: 0.6393 MB / 0.9278 GB, free: 59.05 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001893/2.706, allocations: 77.42 kB / 0.9279 GB, free: 58.98 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005081/2.711, allocations: 372.8 kB / 0.9283 GB, free: 58.77 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001108/2.712, allocations: 219.7 kB / 0.9285 GB, free: 58.66 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000492/2.713, allocations: 93.48 kB / 0.9286 GB, free: 58.58 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.009886/2.723, allocations: 4.098 MB / 0.9326 GB, free: 55.24 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.1e-06/2.723, allocations: 0 / 0.9326 GB, free: 55.24 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01206/2.735, allocations: 2.029 MB / 0.9345 GB, free: 53.22 MB / 0.4948 GB 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.001051/2.736, allocations: 239.3 kB / 0.9348 GB, free: 53 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0231/2.759, allocations: 11.28 MB / 0.9458 GB, free: 43.03 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.984e-06/2.759, allocations: 0 / 0.9458 GB, free: 43.03 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01176/2.771, allocations: 5.354 MB / 0.951 GB, free: 38.26 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005367/2.776, allocations: 0.8342 MB / 0.9518 GB, free: 37.57 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04391/2.82, allocations: 23.14 MB / 0.9744 GB, free: 16.88 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01169/2.832, allocations: 5.407 MB / 0.9797 GB, free: 12.66 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00225/2.834, allocations: 491.3 kB / 0.9802 GB, free: 12.18 MB / 0.4948 GB Notification: Performance of SimCode: time 1.77e-06/2.834, allocations: 3.281 kB / 0.9802 GB, free: 12.18 MB / 0.4948 GB Notification: Performance of Templates: time 1.649/4.483, allocations: 0.5018 GB / 1.482 GB, free: 103.4 MB / 0.5417 GB