Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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.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.277/2.277, allocations: 234.9 MB / 251.1 MB, free: 9.473 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006395/0.0006396, allocations: 8 kB / 314.9 MB, free: 9.523 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4695/0.4701, allocations: 54.87 MB / 369.8 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1967/0.6669, allocations: 105.6 MB / 475.4 MB, free: 0.9141 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003012/0.6672, allocations: 83.95 kB / 475.5 MB, free: 0.832 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.483/2.15, allocations: 249 MB / 0.7075 GB, free: 31.68 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.125e-06/2.15, allocations: 0 / 0.7075 GB, free: 31.68 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0009169/2.151, allocations: 379.2 kB / 0.7079 GB, free: 31.66 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: 5962 * Number of variables: 5962 Notification: Performance of Generate backend data structure: time 0.06391/2.215, allocations: 16.15 MB / 0.7237 GB, free: 26.18 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.926e-05/2.215, allocations: 7.719 kB / 0.7237 GB, free: 26.18 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05801/2.273, allocations: 8.285 MB / 0.7318 GB, free: 25.13 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04349/2.317, allocations: 12.46 MB / 0.7439 GB, free: 23.67 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001684/2.319, allocations: 1.496 MB / 0.7454 GB, free: 23.62 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009687/2.328, allocations: 1.972 MB / 0.7473 GB, free: 23.61 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1441/2.472, allocations: 42.81 MB / 0.7891 GB, free: 4.535 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001197/2.474, allocations: 150.3 kB / 0.7893 GB, free: 4.391 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008262/2.482, allocations: 0.8857 MB / 0.7901 GB, free: 3.551 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005351/2.487, allocations: 2.39 MB / 0.7925 GB, free: 1.262 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5219/3.009, allocations: 34.02 MB / 0.8257 GB, free: 62.4 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2705/3.28, allocations: 146.7 MB / 0.9689 GB, free: 12.94 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.106/3.386, allocations: 22.52 MB / 0.9909 GB, free: 7.574 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0666/3.453, allocations: 27.34 MB / 1.018 GB, free: 9.922 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.055e-05/3.453, allocations: 78.17 kB / 1.018 GB, free: 9.852 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=372): time 8.666e-06/3.453, allocations: 0 / 1.018 GB, free: 9.852 MB / 0.5417 GB Notification: Performance of matching and sorting (n=486): time 3.379/6.831, allocations: 355.1 MB / 1.365 GB, free: 81.93 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001125/6.832, allocations: 282.5 kB / 1.365 GB, free: 81.6 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02318/6.855, allocations: 10.11 MB / 1.375 GB, free: 71.59 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.002749/6.858, allocations: 97.7 kB / 1.375 GB, free: 71.48 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.007761/6.865, allocations: 10.59 MB / 1.385 GB, free: 60.91 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.004486/6.87, allocations: 1.893 MB / 1.387 GB, free: 59.03 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004305/6.874, allocations: 344 kB / 1.387 GB, free: 58.69 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.00156/6.876, allocations: 1.036 MB / 1.388 GB, free: 57.65 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03367/6.909, allocations: 15.92 MB / 1.404 GB, free: 41.71 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4475/7.357, allocations: 26.55 MB / 1.43 GB, free: 98.6 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04578/7.403, allocations: 19.94 MB / 1.449 GB, free: 98.53 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0008735/7.404, allocations: 107.7 kB / 1.449 GB, free: 98.53 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2206) (initialization): time 0.1021/7.506, allocations: 41.85 MB / 1.49 GB, free: 87.84 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004093/7.506, allocations: 165.9 kB / 1.49 GB, free: 87.84 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007155/7.507, allocations: 376.2 kB / 1.491 GB, free: 87.84 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002352/7.51, allocations: 0.8705 MB / 1.492 GB, free: 87.75 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03903/7.549, allocations: 5.271 MB / 1.497 GB, free: 87.26 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008601/7.557, allocations: 5.76 MB / 1.502 GB, free: 83.45 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02964/7.587, allocations: 2.135 MB / 1.504 GB, free: 83.19 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005082/7.592, allocations: 1.023 MB / 1.505 GB, free: 83.05 MB / 0.5417 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.02439/7.616, allocations: 7.841 MB / 1.513 GB, free: 79.38 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003422/7.62, allocations: 0.8648 MB / 1.514 GB, free: 79.38 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07281/7.693, allocations: 30.27 MB / 1.543 GB, free: 65.39 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002662/7.693, allocations: 97.91 kB / 1.544 GB, free: 65.37 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-05/7.693, allocations: 3.188 kB / 1.544 GB, free: 65.37 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001346/7.693, allocations: 21.8 kB / 1.544 GB, free: 65.37 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1579/7.851, allocations: 72.45 MB / 1.614 GB, free: 1.348 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.123e-05/7.851, allocations: 0 / 1.614 GB, free: 1.348 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02294/7.874, allocations: 2.097 MB / 1.616 GB, free: 32 kB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002364/7.877, allocations: 359.8 kB / 1.617 GB, free: 15.88 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002506/7.879, allocations: 87.22 kB / 1.617 GB, free: 15.8 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4299/8.309, allocations: 4.383 MB / 1.621 GB, free: 116.9 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-06/8.309, allocations: 3.078 kB / 1.621 GB, free: 116.9 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1083/8.417, allocations: 50.63 MB / 1.671 GB, free: 109.3 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01349/8.431, allocations: 3.948 MB / 1.674 GB, free: 107.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005886/8.437, allocations: 80.94 kB / 1.674 GB, free: 107.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02023/8.457, allocations: 1.62 MB / 1.676 GB, free: 107.7 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003282/8.461, allocations: 253.8 kB / 1.676 GB, free: 107.7 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001475/8.462, allocations: 127.3 kB / 1.676 GB, free: 107.6 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.01639/8.478, allocations: 6.247 MB / 1.683 GB, free: 105.5 MB / 0.5573 GB Notification: Performance of sort global known variables: time 8.01e-07/8.478, allocations: 0 / 1.683 GB, free: 105.5 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.02593/8.504, allocations: 4.276 MB / 1.687 GB, free: 105.2 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.003731/8.508, allocations: 313.1 kB / 1.687 GB, free: 105 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.07473/8.583, allocations: 35.13 MB / 1.721 GB, free: 91.07 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.136e-05/8.583, allocations: 5.75 kB / 1.721 GB, free: 91.07 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.03114/8.614, allocations: 14.98 MB / 1.736 GB, free: 80.85 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.012/8.626, allocations: 1.333 MB / 1.737 GB, free: 79.79 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1337/8.76, allocations: 56.76 MB / 1.793 GB, free: 28.7 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03216/8.792, allocations: 11.35 MB / 1.804 GB, free: 20.45 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01673/8.809, allocations: 0.7618 MB / 1.804 GB, free: 19.71 MB / 0.5573 GB Notification: Performance of SimCode: time 1.583e-06/8.809, allocations: 3.469 kB / 1.804 GB, free: 19.71 MB / 0.5573 GB Notification: Performance of Templates: time 1.593/10.4, allocations: 395.5 MB / 2.191 GB, free: 24.73 MB / 0.5886 GB