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.Sensors.RelativeSensor.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.Sensors.RelativeSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|relative_a1.r_rel.3.|relative_a1.v_rel.3.|relative_a1.a_rel.3.|relative_a1.angles.3.|relative_a1.w_rel.3.|relative_a2.r_rel.3.|relative_a2.v_rel.3.|relative_a2.a_rel.3.|relative_a2.angles.3.|relative_a2.w_rel.3.|relative_a2.z_rel.3.|relative_b2.r_rel.3.|relative_b2.v_rel.3.|relative_b2.angles.3.|relative_b2.w_rel.3.|relative_b2.z_rel.3.|relative_b1.r_rel.3.|relative_b1.v_rel.3.|relative_b1.a_rel.3.|relative_b1.angles.3.|relative_b1.w_rel.3.|relative_b1.z_rel.3.|relativeSensor.r_rel.3.|relativeSensor.angles.3.|relative_a1.r_rel.2.|relative_a1.v_rel.2.|relative_a1.a_rel.2.|relative_a1.angles.2.|relative_a1.w_rel.2.|relative_a2.r_rel.2.|relative_a2.v_rel.2.|relative_a2.a_rel.2.|relative_a2.angles.2.|relative_a2.w_rel.2.|relative_a2.z_rel.2.|relative_b2.r_rel.2.|relative_b2.v_rel.2.|relative_b2.angles.2.|relative_b2.w_rel.2.|relative_b2.z_rel.2.|relative_b1.r_rel.2.|relative_b1.v_rel.2.|relative_b1.a_rel.2.|relative_b1.angles.2.|relative_b1.w_rel.2.|relative_b1.z_rel.2.|relativeSensor.r_rel.2.|relativeSensor.angles.2.|relative_a1.r_rel.1.|relative_a1.v_rel.1.|relative_a1.a_rel.1.|relative_a1.angles.1.|relative_a1.w_rel.1.|relative_a2.r_rel.1.|relative_a2.v_rel.1.|relative_a2.a_rel.1.|relative_a2.angles.1.|relative_a2.w_rel.1.|relative_a2.z_rel.1.|relative_b2.r_rel.1.|relative_b2.v_rel.1.|relative_b2.angles.1.|relative_b2.w_rel.1.|relative_b2.z_rel.1.|relative_b1.r_rel.1.|relative_b1.v_rel.1.|relative_b1.a_rel.1.|relative_b1.angles.1.|relative_b1.w_rel.1.|relative_b1.z_rel.1.|relativeSensor.r_rel.1.|relativeSensor.angles.1.",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor") Notification: Performance of loadModel(ModelicaTest): time 2.184/2.184, allocations: 234.9 MB / 250.5 MB, free: 9.543 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004278/0.0004279, allocations: 16 kB / 314.4 MB, free: 9.539 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2882/0.2887, allocations: 54.85 MB / 369.3 MB, free: 12.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1589/0.4476, allocations: 105.6 MB / 474.9 MB, free: 2.949 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002602/0.4479, allocations: 83.95 kB / 475 MB, free: 2.867 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.349/1.797, allocations: 248.2 MB / 0.7062 GB, free: 40.23 MB / 490.7 MB Notification: Performance of FrontEnd: time 4.225e-06/1.797, allocations: 3.469 kB / 0.7062 GB, free: 40.23 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0006656/1.798, allocations: 378.2 kB / 0.7066 GB, free: 40.22 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5962 * Number of variables: 5962 Notification: Performance of Generate backend data structure: time 0.04793/1.846, allocations: 16.14 MB / 0.7223 GB, free: 34.83 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/1.846, allocations: 6.219 kB / 0.7223 GB, free: 34.83 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03983/1.886, allocations: 8.29 MB / 0.7304 GB, free: 33.8 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03318/1.919, allocations: 12.45 MB / 0.7426 GB, free: 32.4 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00139/1.92, allocations: 1.497 MB / 0.7441 GB, free: 32.36 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006794/1.927, allocations: 1.973 MB / 0.746 GB, free: 32.34 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.11/2.037, allocations: 42.65 MB / 0.7876 GB, free: 25.11 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009156/2.038, allocations: 155.5 kB / 0.7878 GB, free: 25.09 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006564/2.045, allocations: 0.8786 MB / 0.7886 GB, free: 24.48 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003504/2.048, allocations: 2.381 MB / 0.791 GB, free: 24.07 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.09017/2.138, allocations: 34.04 MB / 0.8242 GB, free: 6.785 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6805/2.819, allocations: 147 MB / 0.9677 GB, free: 27.97 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.07231/2.891, allocations: 22.52 MB / 0.9897 GB, free: 25.57 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04943/2.941, allocations: 27.34 MB / 1.016 GB, free: 20.77 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.74e-05/2.941, allocations: 78.34 kB / 1.016 GB, free: 20.73 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=372): time 9.067e-06/2.941, allocations: 0 / 1.016 GB, free: 20.73 MB / 0.5573 GB Notification: Performance of matching and sorting (n=486): time 1.924/4.864, allocations: 300 MB / 1.309 GB, free: 105.1 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001041/4.865, allocations: 285.2 kB / 1.31 GB, free: 104.8 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02073/4.885, allocations: 9.03 MB / 1.319 GB, free: 104.1 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.00201/4.887, allocations: 102.6 kB / 1.319 GB, free: 104.1 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.007176/4.895, allocations: 10.6 MB / 1.329 GB, free: 97.63 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.003513/4.898, allocations: 1.886 MB / 1.331 GB, free: 96.59 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00334/4.902, allocations: 343.9 kB / 1.331 GB, free: 96.59 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.001579/4.903, allocations: 1.03 MB / 1.332 GB, free: 96.24 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02816/4.931, allocations: 15.92 MB / 1.348 GB, free: 96.2 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03367/4.965, allocations: 26.49 MB / 1.374 GB, free: 77.68 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03388/4.999, allocations: 19.94 MB / 1.393 GB, free: 69.21 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003601/4.999, allocations: 106.3 kB / 1.393 GB, free: 69.21 MB / 0.5573 GB Notification: Performance of matching and sorting (n=2206) (initialization): time 0.08322/5.083, allocations: 41.85 MB / 1.434 GB, free: 52.25 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002809/5.083, allocations: 166.1 kB / 1.434 GB, free: 52.25 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004706/5.083, allocations: 377.2 kB / 1.435 GB, free: 52.25 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002011/5.085, allocations: 0.8678 MB / 1.435 GB, free: 52.17 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02511/5.111, allocations: 5.291 MB / 1.441 GB, free: 51.68 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007312/5.118, allocations: 5.754 MB / 1.446 GB, free: 47.15 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02329/5.141, allocations: 2.157 MB / 1.448 GB, free: 45.72 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004375/5.146, allocations: 1.019 MB / 1.449 GB, free: 44.72 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1714 * Number of states: 0 () * Number of discrete variables: 45 (relativeSensor.arrowColor[3],relativeSensor.arrowColor[2],relativeSensor.arrowColor[1],relative_b1.arrowColor[3],relative_b1.arrowColor[2],relative_b1.arrowColor[1],relative_b2.arrowColor[3],relative_b2.arrowColor[2],relative_b2.arrowColor[1],relative_a2.arrowColor[3],relative_a2.arrowColor[2],relative_a2.arrowColor[1],relative_a1.arrowColor[3],relative_a1.arrowColor[2],relative_a1.arrowColor[1],BodyBox2.color[3],BodyBox2.color[2],BodyBox2.color[1],BodyBox2.body.sphereColor[3],BodyBox2.body.sphereColor[2],BodyBox2.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],fixed.color[3],fixed.color[2],fixed.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 (2150): * Single equations (assignments): 2140 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.02103/5.167, allocations: 7.84 MB / 1.457 GB, free: 37.79 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003488/5.17, allocations: 0.8716 MB / 1.458 GB, free: 36.91 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4231/5.593, allocations: 31.83 MB / 1.489 GB, free: 92.52 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002186/5.594, allocations: 92.72 kB / 1.489 GB, free: 92.52 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.232e-05/5.594, allocations: 4.625 kB / 1.489 GB, free: 92.52 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001065/5.594, allocations: 22.61 kB / 1.489 GB, free: 92.52 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1295/5.723, allocations: 72.45 MB / 1.56 GB, free: 72.68 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.776e-05/5.723, allocations: 0 / 1.56 GB, free: 72.68 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01472/5.738, allocations: 2.111 MB / 1.562 GB, free: 72.65 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001309/5.74, allocations: 316.6 kB / 1.562 GB, free: 72.58 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002068/5.742, allocations: 89.78 kB / 1.562 GB, free: 72.52 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005342/5.747, allocations: 4.396 MB / 1.566 GB, free: 69.27 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.055e-06/5.747, allocations: 4.656 kB / 1.566 GB, free: 69.27 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08492/5.832, allocations: 50.78 MB / 1.616 GB, free: 46.49 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01111/5.843, allocations: 3.956 MB / 1.62 GB, free: 45 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00423/5.847, allocations: 76.5 kB / 1.62 GB, free: 44.95 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01315/5.861, allocations: 1.627 MB / 1.622 GB, free: 44.89 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002878/5.863, allocations: 260.6 kB / 1.622 GB, free: 44.86 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002131/5.866, allocations: 124.6 kB / 1.622 GB, free: 44.83 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.01547/5.881, allocations: 6.247 MB / 1.628 GB, free: 42.68 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.36e-06/5.881, allocations: 0 / 1.628 GB, free: 42.68 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.02396/5.905, allocations: 4.282 MB / 1.632 GB, free: 42.35 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,revolute1.phi,revolute1.w) * 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 (444): * Single equations (assignments): 434 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 8,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0027/5.908, allocations: 306.8 kB / 1.633 GB, free: 42.2 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.05938/5.967, allocations: 35.14 MB / 1.667 GB, free: 16.61 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.05e-05/5.967, allocations: 0.625 kB / 1.667 GB, free: 16.61 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.02506/5.992, allocations: 14.97 MB / 1.681 GB, free: 3.227 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008572/6.001, allocations: 1.351 MB / 1.683 GB, free: 2.16 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5132/6.514, allocations: 58.34 MB / 1.74 GB, free: 83.18 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0575/6.572, allocations: 11.35 MB / 1.751 GB, free: 82.08 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01256/6.584, allocations: 0.7529 MB / 1.752 GB, free: 82.07 MB / 0.5573 GB Notification: Performance of SimCode: time 1.964e-06/6.584, allocations: 2.438 kB / 1.752 GB, free: 82.07 MB / 0.5573 GB Notification: Performance of Templates: time 1.339/7.924, allocations: 395.5 MB / 2.138 GB, free: 169.9 MB / 0.6355 GB