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.798/1.798, allocations: 209.3 MB / 222.4 MB, free: 7.73 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.634e-05/2.669e-05, allocations: 4 kB / 277.8 MB, free: 15.3 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08629/0.08634, allocations: 48.7 MB / 326.5 MB, free: 14.51 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3554/0.4418, allocations: 98.7 MB / 425.3 MB, free: 9.164 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000235/0.4421, allocations: 77.08 kB / 425.3 MB, free: 9.125 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.04/1.482, allocations: 248.4 MB / 0.6579 GB, free: 23.9 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.752e-06/1.482, allocations: 0 / 0.6579 GB, free: 23.9 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0006197/1.483, allocations: 371.9 kB / 0.6583 GB, free: 23.54 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: 5960 * Number of variables: 5960 Notification: Performance of Generate backend data structure: time 0.04443/1.528, allocations: 15.62 MB / 0.6736 GB, free: 7.801 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.075e-05/1.528, allocations: 12.03 kB / 0.6736 GB, free: 7.789 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03985/1.567, allocations: 8.29 MB / 0.6817 GB, free: 15.46 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03815/1.606, allocations: 12.41 MB / 0.6938 GB, free: 2.957 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001957/1.608, allocations: 1.501 MB / 0.6952 GB, free: 1.453 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.3109/1.919, allocations: 1.966 MB / 0.6972 GB, free: 49.66 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1249/2.043, allocations: 42.28 MB / 0.7385 GB, free: 43.09 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001031/2.045, allocations: 143.4 kB / 0.7386 GB, free: 43.09 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006398/2.051, allocations: 0.8876 MB / 0.7395 GB, free: 43.09 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003556/2.055, allocations: 2.381 MB / 0.7418 GB, free: 43.05 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0846/2.139, allocations: 33.56 MB / 0.7746 GB, free: 35.75 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5617/2.701, allocations: 146.7 MB / 0.9178 GB, free: 30.18 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.07217/2.773, allocations: 22.43 MB / 0.9397 GB, free: 27.8 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009949/2.783, allocations: 6.733 MB / 0.9463 GB, free: 27.75 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05021/2.833, allocations: 27.33 MB / 0.973 GB, free: 23.39 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.218e-05/2.834, allocations: 79.08 kB / 0.973 GB, free: 23.35 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=372): time 9.058e-06/2.834, allocations: 0 / 0.973 GB, free: 23.35 MB / 0.4948 GB Notification: Performance of matching and sorting (n=486): time 1.325/4.159, allocations: 280.7 MB / 1.247 GB, free: 86.56 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.979e-05/4.159, allocations: 282.6 kB / 1.247 GB, free: 86.23 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01928/4.178, allocations: 8.95 MB / 1.256 GB, free: 77.29 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.00197/4.18, allocations: 104 kB / 1.256 GB, free: 77.18 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.006713/4.187, allocations: 10.58 MB / 1.267 GB, free: 66.61 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.003396/4.19, allocations: 1.896 MB / 1.268 GB, free: 64.73 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003138/4.193, allocations: 336 kB / 1.269 GB, free: 64.4 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.001775/4.195, allocations: 1.038 MB / 1.27 GB, free: 63.35 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.3386/4.534, allocations: 15.69 MB / 1.285 GB, free: 142.4 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0359/4.57, allocations: 26.27 MB / 1.311 GB, free: 128.7 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03465/4.604, allocations: 19.84 MB / 1.33 GB, free: 125.3 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003862/4.605, allocations: 108.2 kB / 1.33 GB, free: 125.3 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2206) (initialization): time 0.08483/4.69, allocations: 41.4 MB / 1.371 GB, free: 109.1 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003489/4.69, allocations: 165.9 kB / 1.371 GB, free: 109.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005439/4.691, allocations: 376.3 kB / 1.371 GB, free: 109.1 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002254/4.693, allocations: 0.8672 MB / 1.372 GB, free: 109 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02705/4.72, allocations: 5.29 MB / 1.377 GB, free: 108.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007135/4.727, allocations: 5.656 MB / 1.383 GB, free: 104.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03026/4.758, allocations: 2.153 MB / 1.385 GB, free: 104.5 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004426/4.762, allocations: 1.018 MB / 1.386 GB, free: 104.3 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 () * 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.007077/4.769, allocations: 1.398 MB / 1.387 GB, free: 103.2 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00308/4.772, allocations: 0.8769 MB / 1.388 GB, free: 103.2 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05542/4.828, allocations: 29.98 MB / 1.417 GB, free: 84.14 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001703/4.828, allocations: 90.89 kB / 1.417 GB, free: 84.05 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.065e-05/4.828, allocations: 4 kB / 1.417 GB, free: 84.05 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.213e-05/4.828, allocations: 24.08 kB / 1.417 GB, free: 84.05 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4534/5.281, allocations: 72.19 MB / 1.488 GB, free: 129 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.702e-05/5.281, allocations: 2.938 kB / 1.488 GB, free: 129 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01482/5.296, allocations: 2.119 MB / 1.49 GB, free: 129 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001411/5.298, allocations: 315.1 kB / 1.49 GB, free: 129 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002008/5.3, allocations: 83.64 kB / 1.49 GB, free: 129 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005156/5.305, allocations: 4.292 MB / 1.495 GB, free: 126.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.71e-06/5.305, allocations: 0 / 1.495 GB, free: 126.5 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08679/5.392, allocations: 50.36 MB / 1.544 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01053/5.402, allocations: 3.951 MB / 1.548 GB, free: 105 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003967/5.406, allocations: 77.88 kB / 1.548 GB, free: 104.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01317/5.42, allocations: 1.632 MB / 1.549 GB, free: 104.9 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002756/5.422, allocations: 258 kB / 1.55 GB, free: 104.8 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001828/5.424, allocations: 123.7 kB / 1.55 GB, free: 104.8 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.02013/5.444, allocations: 6.161 MB / 1.556 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.093e-06/5.444, allocations: 3.656 kB / 1.556 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.03913/5.484, allocations: 4.278 MB / 1.56 GB, free: 102.3 MB / 0.5417 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 () * 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.005273/5.489, allocations: 301.1 kB / 1.56 GB, free: 102.1 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.06108/5.55, allocations: 34.77 MB / 1.594 GB, free: 77.54 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.111e-05/5.55, allocations: 7.344 kB / 1.594 GB, free: 77.54 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.04862/5.599, allocations: 14.82 MB / 1.609 GB, free: 63.9 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01548/5.614, allocations: 1.336 MB / 1.61 GB, free: 62.84 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4333/6.048, allocations: 46.85 MB / 1.656 GB, free: 135.9 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03204/6.08, allocations: 11.35 MB / 1.667 GB, free: 134.8 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01289/6.093, allocations: 0.7529 MB / 1.667 GB, free: 134.8 MB / 0.5417 GB Notification: Performance of SimCode: time 2.249e-06/6.093, allocations: 0 / 1.667 GB, free: 134.8 MB / 0.5417 GB Notification: Performance of Templates: time 1.254/7.346, allocations: 395.4 MB / 2.054 GB, free: 128.7 MB / 0.5417 GB