Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor") Notification: Performance of loadModel(ModelicaTest): time 1.783/1.783, allocations: 209.3 MB / 224.8 MB, free: 284 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004423/0.0004424, allocations: 16 kB / 282.6 MB, free: 9.594 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2826/0.2831, allocations: 48.69 MB / 331.3 MB, free: 6.512 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1441/0.4272, allocations: 98.8 MB / 430.1 MB, free: 11.58 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002467/0.4275, allocations: 79.95 kB / 430.2 MB, free: 11.5 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.402/1.829, allocations: 248 MB / 0.6623 GB, free: 33.24 MB / 442.7 MB Notification: Performance of FrontEnd: time 3e-06/1.829, allocations: 2.688 kB / 0.6623 GB, free: 33.24 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006814/1.83, allocations: 375 kB / 0.6627 GB, free: 33.23 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5960 * Number of variables: 5960 Notification: Performance of Generate backend data structure: time 0.04822/1.878, allocations: 16.14 MB / 0.6784 GB, free: 27.83 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/1.878, allocations: 14.17 kB / 0.6784 GB, free: 27.83 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0418/1.92, allocations: 8.283 MB / 0.6865 GB, free: 26.8 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0341/1.954, allocations: 12.44 MB / 0.6987 GB, free: 25.4 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001414/1.956, allocations: 1.5 MB / 0.7001 GB, free: 25.36 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006903/1.963, allocations: 1.971 MB / 0.7021 GB, free: 25.35 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1134/2.076, allocations: 42.64 MB / 0.7437 GB, free: 14.96 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009184/2.077, allocations: 154.3 kB / 0.7439 GB, free: 14.95 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006865/2.084, allocations: 0.887 MB / 0.7447 GB, free: 14.33 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003712/2.088, allocations: 2.381 MB / 0.7471 GB, free: 13.93 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1033/2.191, allocations: 34.48 MB / 0.7807 GB, free: 7.27 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5311/2.722, allocations: 146.8 MB / 0.9241 GB, free: 20.26 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.07678/2.799, allocations: 22.52 MB / 0.9461 GB, free: 17.86 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0498/2.849, allocations: 27.33 MB / 0.9728 GB, free: 8.422 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.963e-05/2.849, allocations: 74.11 kB / 0.9729 GB, free: 8.355 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=372): time 9.224e-06/2.849, allocations: 0 / 0.9729 GB, free: 8.355 MB / 0.5105 GB Notification: Performance of matching and sorting (n=486): time 1.93/4.779, allocations: 301.5 MB / 1.267 GB, free: 90.71 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001142/4.779, allocations: 291.2 kB / 1.268 GB, free: 90.42 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02065/4.8, allocations: 9.03 MB / 1.276 GB, free: 87.21 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001974/4.802, allocations: 102.8 kB / 1.277 GB, free: 87.13 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.007141/4.809, allocations: 10.59 MB / 1.287 GB, free: 78.99 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.003565/4.812, allocations: 1.889 MB / 1.289 GB, free: 77.64 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003267/4.816, allocations: 340.5 kB / 1.289 GB, free: 77.38 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001445/4.817, allocations: 1.033 MB / 1.29 GB, free: 76.76 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02879/4.846, allocations: 15.91 MB / 1.306 GB, free: 70.07 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03463/4.881, allocations: 26.49 MB / 1.331 GB, free: 49.16 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03539/4.916, allocations: 19.94 MB / 1.351 GB, free: 40.51 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000337/4.916, allocations: 108 kB / 1.351 GB, free: 40.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=2206) (initialization): time 0.4501/5.367, allocations: 41.96 MB / 1.392 GB, free: 85.95 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002965/5.367, allocations: 164.6 kB / 1.392 GB, free: 85.95 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005303/5.367, allocations: 375.4 kB / 1.393 GB, free: 85.95 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002176/5.37, allocations: 0.8764 MB / 1.393 GB, free: 85.94 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02614/5.396, allocations: 5.285 MB / 1.399 GB, free: 85.58 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00765/5.404, allocations: 5.761 MB / 1.404 GB, free: 82.75 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02359/5.427, allocations: 2.154 MB / 1.406 GB, free: 82.75 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004511/5.432, allocations: 1.02 MB / 1.407 GB, free: 82.75 MB / 0.5105 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.01989/5.452, allocations: 7.833 MB / 1.415 GB, free: 82.09 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003143/5.455, allocations: 0.8712 MB / 1.416 GB, free: 82.09 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05842/5.513, allocations: 30.26 MB / 1.445 GB, free: 75.29 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001531/5.513, allocations: 88.02 kB / 1.445 GB, free: 75.28 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.083e-05/5.513, allocations: 10.66 kB / 1.445 GB, free: 75.28 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.663e-05/5.514, allocations: 20.62 kB / 1.445 GB, free: 75.28 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1269/5.64, allocations: 72.44 MB / 1.516 GB, free: 33.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.682e-05/5.641, allocations: 1.641 kB / 1.516 GB, free: 33.98 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01452/5.655, allocations: 2.112 MB / 1.518 GB, free: 32.67 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001271/5.656, allocations: 318.4 kB / 1.519 GB, free: 32.44 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001942/5.658, allocations: 91.7 kB / 1.519 GB, free: 32.36 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005213/5.664, allocations: 4.398 MB / 1.523 GB, free: 28.12 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.508e-06/5.664, allocations: 4 kB / 1.523 GB, free: 28.12 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4255/6.089, allocations: 53.14 MB / 1.575 GB, free: 87.97 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01157/6.101, allocations: 3.95 MB / 1.579 GB, free: 87.88 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004262/6.105, allocations: 77.08 kB / 1.579 GB, free: 87.88 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01372/6.119, allocations: 1.632 MB / 1.58 GB, free: 87.88 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002782/6.122, allocations: 255.9 kB / 1.581 GB, free: 87.88 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001994/6.124, allocations: 127.6 kB / 1.581 GB, free: 87.88 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01519/6.139, allocations: 6.246 MB / 1.587 GB, free: 87.59 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.2e-07/6.139, allocations: 0 / 1.587 GB, free: 87.59 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.02332/6.162, allocations: 4.285 MB / 1.591 GB, free: 87.59 MB / 0.5105 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.002683/6.165, allocations: 305.9 kB / 1.591 GB, free: 87.5 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.06126/6.226, allocations: 35.14 MB / 1.626 GB, free: 82.49 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.756e-06/6.226, allocations: 0.625 kB / 1.626 GB, free: 82.49 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.025/6.251, allocations: 14.98 MB / 1.64 GB, free: 75.59 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008528/6.26, allocations: 1.328 MB / 1.642 GB, free: 75.1 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1092/6.369, allocations: 56.63 MB / 1.697 GB, free: 44.3 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02867/6.398, allocations: 11.35 MB / 1.708 GB, free: 36.05 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01255/6.41, allocations: 0.7579 MB / 1.709 GB, free: 35.32 MB / 0.5105 GB Notification: Performance of SimCode: time 1.981e-06/6.411, allocations: 0 / 1.709 GB, free: 35.32 MB / 0.5105 GB Notification: Performance of Templates: time 1.211/7.621, allocations: 395.4 MB / 2.095 GB, free: 10.51 MB / 0.5417 GB