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.227/2.227, allocations: 235 MB / 248.1 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.678e-05/2.694e-05, allocations: 0 / 309.7 MB, free: 1.324 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3205/0.3206, allocations: 54.86 MB / 364.5 MB, free: 5.527 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1493/0.4699, allocations: 99.29 MB / 463.8 MB, free: 13.16 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002432/0.4702, allocations: 71.97 kB / 463.9 MB, free: 13.09 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7799/1.25, allocations: 142.6 MB / 0.5923 GB, free: 96.71 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.576e-06/1.25, allocations: 0 / 0.5923 GB, free: 96.71 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004898/1.251, allocations: 151.8 kB / 0.5924 GB, free: 96.7 MB / 458.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.04385/1.295, allocations: 8.675 MB / 0.6009 GB, free: 91.58 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.49e-05/1.295, allocations: 9.875 kB / 0.6009 GB, free: 91.58 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04103/1.336, allocations: 7.75 MB / 0.6085 GB, free: 84.15 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03028/1.366, allocations: 10.95 MB / 0.6192 GB, free: 73.12 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006302/1.367, allocations: 0.5615 MB / 0.6197 GB, free: 72.55 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003147/1.37, allocations: 0.7535 MB / 0.6205 GB, free: 71.8 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04435/1.414, allocations: 17.45 MB / 0.6375 GB, free: 52.82 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005042/1.415, allocations: 111 kB / 0.6376 GB, free: 52.71 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002686/1.417, allocations: 359.8 kB / 0.638 GB, free: 52.36 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002768/1.42, allocations: 1.608 MB / 0.6395 GB, free: 50.75 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03632/1.457, allocations: 14.02 MB / 0.6532 GB, free: 36.7 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5277/1.984, allocations: 79.02 MB / 0.7304 GB, free: 50.72 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02592/2.01, allocations: 6.894 MB / 0.7371 GB, free: 50.04 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005792/2.016, allocations: 3.209 MB / 0.7402 GB, free: 50.01 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02825/2.044, allocations: 14.71 MB / 0.7546 GB, free: 46.83 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.43e-05/2.045, allocations: 68.14 kB / 0.7547 GB, free: 46.79 MB / 474.7 MB Notification: Performance of pre-optimization done (n=259): time 6.621e-06/2.045, allocations: 0 / 0.7547 GB, free: 46.79 MB / 474.7 MB Notification: Performance of matching and sorting (n=287): time 0.0746/2.119, allocations: 22.98 MB / 0.7771 GB, free: 40.75 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00404/2.123, allocations: 6.254 MB / 0.7832 GB, free: 34.66 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0125/2.136, allocations: 5.755 MB / 0.7888 GB, free: 32.55 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006743/2.137, allocations: 66.98 kB / 0.7889 GB, free: 32.48 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003676/2.14, allocations: 5.058 MB / 0.7938 GB, free: 28.47 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001683/2.142, allocations: 1.18 MB / 0.795 GB, free: 27.62 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001008/2.143, allocations: 197.3 kB / 0.7952 GB, free: 27.47 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006492/2.144, allocations: 0.7133 MB / 0.7959 GB, free: 26.99 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008084/2.152, allocations: 3.826 MB / 0.7996 GB, free: 25.68 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01119/2.163, allocations: 9.612 MB / 0.809 GB, free: 16.62 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01134/2.174, allocations: 5.931 MB / 0.8148 GB, free: 14.26 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001848/2.175, allocations: 67.89 kB / 0.8149 GB, free: 14.19 MB / 474.7 MB Notification: Performance of matching and sorting (n=1271) (initialization): time 0.04341/2.218, allocations: 15.91 MB / 0.8304 GB, free: 1.414 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000156/2.218, allocations: 92 kB / 0.8305 GB, free: 1.324 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02973/2.248, allocations: 7.888 MB / 0.8382 GB, free: 11.94 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01997/2.268, allocations: 3.905 MB / 0.842 GB, free: 9.32 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01016/2.278, allocations: 2.304 MB / 0.8443 GB, free: 7.34 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02256/2.301, allocations: 13.56 MB / 0.8575 GB, free: 9.281 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01191/2.313, allocations: 0.8639 MB / 0.8583 GB, free: 8.418 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002367/2.315, allocations: 0.5898 MB / 0.8589 GB, free: 7.828 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 () * 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.003524/2.319, allocations: 0.8581 MB / 0.8598 GB, free: 6.969 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001665/2.32, allocations: 0.5823 MB / 0.8603 GB, free: 6.379 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02311/2.343, allocations: 7.542 MB / 0.8677 GB, free: 14.78 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02002/2.364, allocations: 6.691 MB / 0.8742 GB, free: 8.039 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.183e-05/2.364, allocations: 15.78 kB / 0.8742 GB, free: 8.027 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.415e-05/2.364, allocations: 11.95 kB / 0.8742 GB, free: 8.016 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02167/2.385, allocations: 7.427 MB / 0.8815 GB, free: 0.6016 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-05/2.385, allocations: 4 kB / 0.8815 GB, free: 0.5977 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004454/2.39, allocations: 0.6005 MB / 0.8821 GB, free: 0 / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01359/2.404, allocations: 3.125 MB / 0.8851 GB, free: 12.83 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008932/2.405, allocations: 99.86 kB / 0.8852 GB, free: 12.73 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02278/2.427, allocations: 13.99 MB / 0.8989 GB, free: 13.97 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006602/2.434, allocations: 6.023 MB / 0.9048 GB, free: 7.387 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.34/2.774, allocations: 11.65 MB / 0.9162 GB, free: 162.5 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002109/2.776, allocations: 0.6369 MB / 0.9168 GB, free: 162.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002013/2.778, allocations: 72.34 kB / 0.9169 GB, free: 162.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005475/2.784, allocations: 379 kB / 0.9172 GB, free: 162.4 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001198/2.785, allocations: 215.8 kB / 0.9174 GB, free: 162.4 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004256/2.785, allocations: 90.97 kB / 0.9175 GB, free: 162.4 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01057/2.796, allocations: 4.006 MB / 0.9214 GB, free: 162.1 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.565e-06/2.796, allocations: 1.188 kB / 0.9214 GB, free: 162.1 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01309/2.809, allocations: 2.028 MB / 0.9234 GB, free: 162.1 MB / 0.5417 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 () * 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.001091/2.81, allocations: 239.5 kB / 0.9236 GB, free: 162 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.02403/2.834, allocations: 11.14 MB / 0.9345 GB, free: 160.5 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.761e-06/2.834, allocations: 0 / 0.9345 GB, free: 160.5 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01234/2.847, allocations: 5.308 MB / 0.9397 GB, free: 158.9 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006097/2.853, allocations: 0.8302 MB / 0.9405 GB, free: 158.9 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04/2.893, allocations: 17.29 MB / 0.9574 GB, free: 154.3 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01219/2.905, allocations: 5.406 MB / 0.9627 GB, free: 152.6 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00239/2.908, allocations: 496 kB / 0.9631 GB, free: 152.6 MB / 0.5417 GB Notification: Performance of SimCode: time 1.979e-06/2.908, allocations: 1.531 kB / 0.9631 GB, free: 152.6 MB / 0.5417 GB Notification: Performance of Templates: time 1.283/4.191, allocations: 0.5017 GB / 1.465 GB, free: 39.77 MB / 0.5417 GB