Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.452/2.452, allocations: 234.9 MB / 251.1 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005248/0.0005248, allocations: 12 kB / 314.9 MB, free: 9.602 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3485/0.349, allocations: 54.85 MB / 369.8 MB, free: 10.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1822/0.5313, allocations: 99.37 MB / 469.2 MB, free: 7.227 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003763/0.5318, allocations: 83.91 kB / 469.2 MB, free: 7.145 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8586/1.39, allocations: 144 MB / 0.5988 GB, free: 3.891 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.948e-06/1.39, allocations: 3.938 kB / 0.5988 GB, free: 3.887 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0008207/1.391, allocations: 148 kB / 0.599 GB, free: 3.742 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.07269/1.464, allocations: 9.291 MB / 0.6081 GB, free: 10.37 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.254e-05/1.464, allocations: 8.031 kB / 0.6081 GB, free: 10.36 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06126/1.525, allocations: 7.743 MB / 0.6156 GB, free: 2.594 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04436/1.57, allocations: 11.01 MB / 0.6264 GB, free: 7.504 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009728/1.571, allocations: 0.5577 MB / 0.6269 GB, free: 6.945 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004251/1.575, allocations: 0.7535 MB / 0.6277 GB, free: 6.191 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4668/2.042, allocations: 17.66 MB / 0.6449 GB, free: 59.86 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006657/2.043, allocations: 106.1 kB / 0.645 GB, free: 59.86 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004053/2.047, allocations: 360.1 kB / 0.6454 GB, free: 59.86 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004257/2.051, allocations: 1.602 MB / 0.6469 GB, free: 59.84 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04783/2.099, allocations: 14.29 MB / 0.6609 GB, free: 59.79 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.129/2.228, allocations: 79.05 MB / 0.7381 GB, free: 9.75 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03491/2.263, allocations: 6.92 MB / 0.7448 GB, free: 7.598 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03677/2.3, allocations: 14.69 MB / 0.7592 GB, free: 16.15 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.269e-05/2.3, allocations: 66.81 kB / 0.7592 GB, free: 16.09 MB / 474.7 MB Notification: Performance of pre-optimization done (n=259): time 7.353e-06/2.3, allocations: 2.281 kB / 0.7592 GB, free: 16.09 MB / 474.7 MB Notification: Performance of matching and sorting (n=287): time 0.1494/2.449, allocations: 27.99 MB / 0.7866 GB, free: 14.11 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.007202/2.457, allocations: 6.31 MB / 0.7927 GB, free: 7.441 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02005/2.477, allocations: 6.582 MB / 0.7992 GB, free: 1.957 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000985/2.478, allocations: 65.7 kB / 0.7992 GB, free: 1.887 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006044/2.484, allocations: 5.067 MB / 0.8042 GB, free: 13.29 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002532/2.486, allocations: 1.177 MB / 0.8053 GB, free: 12.25 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001913/2.488, allocations: 191 kB / 0.8055 GB, free: 12.07 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001102/2.489, allocations: 0.7315 MB / 0.8062 GB, free: 11.45 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01288/2.502, allocations: 3.926 MB / 0.8101 GB, free: 8.152 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4063/2.909, allocations: 9.746 MB / 0.8196 GB, free: 97.5 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0175/2.926, allocations: 5.969 MB / 0.8254 GB, free: 97.46 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003241/2.927, allocations: 60.94 kB / 0.8255 GB, free: 97.46 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1271) (initialization): time 0.05938/2.986, allocations: 16.13 MB / 0.8412 GB, free: 96.75 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001874/2.986, allocations: 91.12 kB / 0.8413 GB, free: 96.75 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.03388/3.02, allocations: 7.697 MB / 0.8488 GB, free: 96.47 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02951/3.05, allocations: 3.918 MB / 0.8526 GB, free: 96.36 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01406/3.064, allocations: 2.299 MB / 0.8549 GB, free: 96.16 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02435/3.088, allocations: 13.99 MB / 0.8686 GB, free: 88.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01439/3.103, allocations: 0.8622 MB / 0.8694 GB, free: 88.29 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00277/3.106, allocations: 0.5882 MB / 0.87 GB, free: 88.29 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.01084/3.116, allocations: 3.424 MB / 0.8733 GB, free: 87.97 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00168/3.118, allocations: 0.5827 MB / 0.8739 GB, free: 87.96 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02759/3.146, allocations: 7.588 MB / 0.8813 GB, free: 87.55 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02403/3.17, allocations: 6.747 MB / 0.8879 GB, free: 85.45 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.824e-05/3.17, allocations: 6.625 kB / 0.8879 GB, free: 85.45 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-05/3.17, allocations: 17.52 kB / 0.8879 GB, free: 85.45 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02039/3.19, allocations: 7.424 MB / 0.8952 GB, free: 82.89 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.282e-05/3.19, allocations: 2.281 kB / 0.8952 GB, free: 82.89 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006222/3.197, allocations: 0.6037 MB / 0.8957 GB, free: 82.85 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02022/3.217, allocations: 3.135 MB / 0.8988 GB, free: 82.23 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001297/3.218, allocations: 99.64 kB / 0.8989 GB, free: 82.19 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03246/3.251, allocations: 14.3 MB / 0.9129 GB, free: 72.62 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006952/3.258, allocations: 6.075 MB / 0.9188 GB, free: 66.84 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04471/3.303, allocations: 11.61 MB / 0.9301 GB, free: 59.96 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003019/3.306, allocations: 0.6454 MB / 0.9308 GB, free: 59.44 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003471/3.309, allocations: 79.77 kB / 0.9308 GB, free: 59.38 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01003/3.319, allocations: 374.5 kB / 0.9312 GB, free: 59.16 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00201/3.321, allocations: 221.1 kB / 0.9314 GB, free: 59.04 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001157/3.323, allocations: 85.08 kB / 0.9315 GB, free: 58.98 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01504/3.338, allocations: 4.093 MB / 0.9355 GB, free: 55.64 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.994e-06/3.338, allocations: 0 / 0.9355 GB, free: 55.64 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.02065/3.358, allocations: 2.036 MB / 0.9375 GB, free: 53.61 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.001745/3.36, allocations: 238.6 kB / 0.9377 GB, free: 53.41 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.03703/3.397, allocations: 11.29 MB / 0.9487 GB, free: 43.41 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.707e-05/3.397, allocations: 4 kB / 0.9487 GB, free: 43.41 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.02254/3.42, allocations: 5.356 MB / 0.954 GB, free: 38.64 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009343/3.429, allocations: 0.8117 MB / 0.9548 GB, free: 37.95 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05384/3.483, allocations: 23.2 MB / 0.9774 GB, free: 17.2 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01381/3.497, allocations: 5.416 MB / 0.9827 GB, free: 12.82 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002943/3.5, allocations: 487.3 kB / 0.9832 GB, free: 12.34 MB / 0.4948 GB Notification: Performance of SimCode: time 1.593e-06/3.5, allocations: 8 kB / 0.9832 GB, free: 12.34 MB / 0.4948 GB Notification: Performance of Templates: time 2.097/5.597, allocations: 0.5017 GB / 1.485 GB, free: 103 MB / 0.5417 GB