Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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 2.058/2.058, allocations: 209.2 MB / 225.4 MB, free: 1.555 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004363/0.0004364, allocations: 12 kB / 283.1 MB, free: 9.82 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1053, allocations: 48.71 MB / 331.8 MB, free: 9.016 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4461/0.5515, allocations: 98.78 MB / 430.6 MB, free: 2.41 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003732/0.552, allocations: 79.97 kB / 430.7 MB, free: 2.332 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.499/2.051, allocations: 248.9 MB / 0.6636 GB, free: 31.76 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.765e-06/2.051, allocations: 2.281 kB / 0.6636 GB, free: 31.76 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001646/2.053, allocations: 372.4 kB / 0.664 GB, free: 31.75 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.06934/2.122, allocations: 16.15 MB / 0.6798 GB, free: 26.36 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/2.122, allocations: 14.17 kB / 0.6798 GB, free: 26.36 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0592/2.181, allocations: 8.286 MB / 0.6879 GB, free: 25.32 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04533/2.227, allocations: 12.44 MB / 0.7 GB, free: 23.93 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001993/2.229, allocations: 1.496 MB / 0.7015 GB, free: 23.89 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009625/2.239, allocations: 1.966 MB / 0.7034 GB, free: 23.88 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1465/2.385, allocations: 42.81 MB / 0.7452 GB, free: 17.3 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001626/2.387, allocations: 153.6 kB / 0.7453 GB, free: 17.29 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009026/2.396, allocations: 0.8875 MB / 0.7462 GB, free: 17.29 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004888/2.401, allocations: 2.383 MB / 0.7485 GB, free: 17.26 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1419/2.543, allocations: 34.02 MB / 0.7818 GB, free: 2.48 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6779/3.221, allocations: 147.7 MB / 0.926 GB, free: 21.4 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.1081/3.329, allocations: 22.51 MB / 0.9479 GB, free: 19 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06418/3.393, allocations: 27.33 MB / 0.9746 GB, free: 14.2 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.239e-05/3.393, allocations: 79.3 kB / 0.9747 GB, free: 14.16 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=372): time 1.03e-05/3.393, allocations: 0 / 0.9747 GB, free: 14.16 MB / 0.5105 GB Notification: Performance of matching and sorting (n=486): time 3.155/6.548, allocations: 356.2 MB / 1.323 GB, free: 84.89 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001219/6.548, allocations: 276.6 kB / 1.323 GB, free: 84.6 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02703/6.575, allocations: 10.12 MB / 1.333 GB, free: 80.98 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.003068/6.579, allocations: 102 kB / 1.333 GB, free: 80.9 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.00834/6.587, allocations: 10.58 MB / 1.343 GB, free: 72.77 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.004608/6.592, allocations: 1.891 MB / 1.345 GB, free: 71.42 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00442/6.596, allocations: 341.3 kB / 1.345 GB, free: 71.15 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.00242/6.599, allocations: 1.033 MB / 1.346 GB, free: 70.53 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03539/6.634, allocations: 15.93 MB / 1.362 GB, free: 63.45 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4267/7.061, allocations: 26.55 MB / 1.388 GB, free: 78.83 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04755/7.108, allocations: 19.94 MB / 1.407 GB, free: 78.76 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0005187/7.109, allocations: 110.4 kB / 1.407 GB, free: 78.76 MB / 0.5105 GB Notification: Performance of matching and sorting (n=2206) (initialization): time 0.1038/7.213, allocations: 41.85 MB / 1.448 GB, free: 73.78 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003243/7.213, allocations: 163.9 kB / 1.448 GB, free: 73.78 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006998/7.214, allocations: 378.8 kB / 1.449 GB, free: 73.78 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002486/7.216, allocations: 0.8651 MB / 1.45 GB, free: 73.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.04044/7.257, allocations: 5.276 MB / 1.455 GB, free: 73.21 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009721/7.267, allocations: 5.763 MB / 1.46 GB, free: 69.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03149/7.298, allocations: 2.142 MB / 1.462 GB, free: 69.13 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005523/7.304, allocations: 1.018 MB / 1.463 GB, free: 69 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.02686/7.331, allocations: 7.832 MB / 1.471 GB, free: 65.33 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004944/7.336, allocations: 0.8721 MB / 1.472 GB, free: 65.33 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07398/7.41, allocations: 30.26 MB / 1.501 GB, free: 51.34 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002002/7.41, allocations: 93.44 kB / 1.502 GB, free: 51.34 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.032e-05/7.41, allocations: 9.391 kB / 1.502 GB, free: 51.34 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001266/7.41, allocations: 27.38 kB / 1.502 GB, free: 51.34 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5661/7.976, allocations: 73.54 MB / 1.573 GB, free: 77.13 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.246e-05/7.976, allocations: 1.094 kB / 1.573 GB, free: 77.13 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02493/8.001, allocations: 2.099 MB / 1.575 GB, free: 77.13 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001826/8.003, allocations: 319.1 kB / 1.576 GB, free: 77.12 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002964/8.006, allocations: 81.92 kB / 1.576 GB, free: 77.12 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007745/8.014, allocations: 4.393 MB / 1.58 GB, free: 74.64 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/8.014, allocations: 2.562 kB / 1.58 GB, free: 74.64 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1159/8.13, allocations: 50.63 MB / 1.63 GB, free: 72.55 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01413/8.144, allocations: 3.95 MB / 1.633 GB, free: 71.07 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006568/8.151, allocations: 80.08 kB / 1.634 GB, free: 71.01 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02123/8.172, allocations: 1.621 MB / 1.635 GB, free: 70.96 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003746/8.176, allocations: 251.5 kB / 1.635 GB, free: 70.92 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002658/8.178, allocations: 131.1 kB / 1.635 GB, free: 70.89 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01812/8.197, allocations: 6.244 MB / 1.642 GB, free: 68.74 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.172e-06/8.197, allocations: 0 / 1.642 GB, free: 68.74 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.02795/8.225, allocations: 4.274 MB / 1.646 GB, free: 68.41 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.004049/8.229, allocations: 316.6 kB / 1.646 GB, free: 68.26 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.07641/8.305, allocations: 35.13 MB / 1.68 GB, free: 54.32 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.14e-05/8.305, allocations: 0.625 kB / 1.68 GB, free: 54.32 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.03174/8.337, allocations: 14.98 MB / 1.695 GB, free: 47.41 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01249/8.349, allocations: 1.329 MB / 1.696 GB, free: 46.93 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1345/8.484, allocations: 56.75 MB / 1.752 GB, free: 3.715 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.4551/8.939, allocations: 12.81 MB / 1.764 GB, free: 88.73 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01825/8.958, allocations: 0.7542 MB / 1.765 GB, free: 88.73 MB / 0.5261 GB Notification: Performance of SimCode: time 1.954e-06/8.958, allocations: 0 / 1.765 GB, free: 88.73 MB / 0.5261 GB Notification: Performance of Templates: time 1.197/10.15, allocations: 395.4 MB / 2.151 GB, free: 8.055 MB / 0.573 GB