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.172/2.172, allocations: 235 MB / 248.1 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.875e-05/2.894e-05, allocations: 4 kB / 309.7 MB, free: 1.312 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3255/0.3255, allocations: 54.85 MB / 364.5 MB, free: 5.551 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1595/0.4851, allocations: 105.5 MB / 470.1 MB, free: 6.871 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002514/0.4854, allocations: 79.94 kB / 470.2 MB, free: 6.793 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.03/1.516, allocations: 248.5 MB / 0.7019 GB, free: 5.023 MB / 474.7 MB Notification: Performance of FrontEnd: time 5.437e-06/1.516, allocations: 4 kB / 0.7019 GB, free: 5.02 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0007816/1.517, allocations: 375.9 kB / 0.7022 GB, free: 4.652 MB / 474.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.7449/2.261, allocations: 15.6 MB / 0.7175 GB, free: 30.59 MB / 474.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/2.262, allocations: 9.625 kB / 0.7175 GB, free: 30.59 MB / 474.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04349/2.305, allocations: 8.297 MB / 0.7256 GB, free: 29.56 MB / 474.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03604/2.341, allocations: 12.41 MB / 0.7377 GB, free: 28.2 MB / 474.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001575/2.343, allocations: 1.494 MB / 0.7392 GB, free: 28.15 MB / 474.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007397/2.35, allocations: 1.973 MB / 0.7411 GB, free: 28.14 MB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1175/2.468, allocations: 42.29 MB / 0.7824 GB, free: 21.57 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001088/2.469, allocations: 157.2 kB / 0.7825 GB, free: 21.55 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006841/2.476, allocations: 0.8829 MB / 0.7834 GB, free: 21.55 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003965/2.48, allocations: 2.377 MB / 0.7857 GB, free: 21.52 MB / 474.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.09388/2.574, allocations: 33.57 MB / 0.8185 GB, free: 11.65 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.018/3.591, allocations: 146.8 MB / 0.9619 GB, free: 25.99 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.07732/3.669, allocations: 22.43 MB / 0.9838 GB, free: 23.6 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01474/3.684, allocations: 6.736 MB / 0.9904 GB, free: 23.55 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05215/3.736, allocations: 27.34 MB / 1.017 GB, free: 18.79 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.473e-05/3.736, allocations: 83.48 kB / 1.017 GB, free: 18.75 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=372): time 9.447e-06/3.736, allocations: 0 / 1.017 GB, free: 18.75 MB / 0.5419 GB Notification: Performance of matching and sorting (n=486): time 1.482/5.218, allocations: 280.7 MB / 1.291 GB, free: 75.35 MB / 0.5732 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.193e-05/5.218, allocations: 284.3 kB / 1.292 GB, free: 75.02 MB / 0.5732 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0202/5.238, allocations: 8.942 MB / 1.3 GB, free: 66.08 MB / 0.5732 GB Notification: Performance of collectPreVariables (initialization): time 0.002057/5.24, allocations: 108.4 kB / 1.3 GB, free: 65.97 MB / 0.5732 GB Notification: Performance of collectInitialEqns (initialization): time 0.006754/5.247, allocations: 10.59 MB / 1.311 GB, free: 55.39 MB / 0.5732 GB Notification: Performance of collectInitialBindings (initialization): time 0.00345/5.251, allocations: 1.892 MB / 1.313 GB, free: 53.52 MB / 0.5732 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003281/5.254, allocations: 341.2 kB / 1.313 GB, free: 53.18 MB / 0.5732 GB Notification: Performance of setup shared object (initialization): time 0.002037/5.256, allocations: 1.034 MB / 1.314 GB, free: 52.14 MB / 0.5732 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.3787/5.635, allocations: 15.7 MB / 1.329 GB, free: 126.4 MB / 0.5732 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03576/5.671, allocations: 26.27 MB / 1.355 GB, free: 112.8 MB / 0.5732 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03666/5.707, allocations: 19.83 MB / 1.374 GB, free: 111.8 MB / 0.5732 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003651/5.708, allocations: 111 kB / 1.374 GB, free: 111.8 MB / 0.5732 GB Notification: Performance of matching and sorting (n=2206) (initialization): time 0.08772/5.796, allocations: 41.4 MB / 1.415 GB, free: 95.84 MB / 0.5732 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002956/5.796, allocations: 166.9 kB / 1.415 GB, free: 95.84 MB / 0.5732 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004636/5.796, allocations: 380.4 kB / 1.415 GB, free: 95.84 MB / 0.5732 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002113/5.798, allocations: 0.8728 MB / 1.416 GB, free: 95.75 MB / 0.5732 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02617/5.825, allocations: 5.288 MB / 1.421 GB, free: 95.26 MB / 0.5732 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007389/5.832, allocations: 5.658 MB / 1.427 GB, free: 91.5 MB / 0.5732 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02345/5.856, allocations: 2.158 MB / 1.429 GB, free: 91.23 MB / 0.5732 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004468/5.86, allocations: 1.022 MB / 1.43 GB, free: 91.1 MB / 0.5732 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.007556/5.868, allocations: 1.395 MB / 1.431 GB, free: 90.01 MB / 0.5732 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00316/5.871, allocations: 0.8698 MB / 1.432 GB, free: 90.01 MB / 0.5732 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06031/5.931, allocations: 29.98 MB / 1.461 GB, free: 74.69 MB / 0.5732 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000177/5.931, allocations: 90.66 kB / 1.461 GB, free: 74.61 MB / 0.5732 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.242e-05/5.931, allocations: 4 kB / 1.461 GB, free: 74.6 MB / 0.5732 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001092/5.932, allocations: 26.81 kB / 1.462 GB, free: 74.6 MB / 0.5732 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5523/6.484, allocations: 74.19 MB / 1.534 GB, free: 111.1 MB / 0.5732 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.384e-05/6.484, allocations: 1.281 kB / 1.534 GB, free: 111.1 MB / 0.5732 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01567/6.5, allocations: 2.117 MB / 1.536 GB, free: 111.1 MB / 0.5732 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001456/6.501, allocations: 314.5 kB / 1.536 GB, free: 111.1 MB / 0.5732 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002077/6.503, allocations: 85.58 kB / 1.536 GB, free: 111.1 MB / 0.5732 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005605/6.509, allocations: 4.295 MB / 1.541 GB, free: 108.6 MB / 0.5732 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/6.509, allocations: 3.562 kB / 1.541 GB, free: 108.6 MB / 0.5732 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08953/6.598, allocations: 50.36 MB / 1.59 GB, free: 100.6 MB / 0.5732 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01088/6.609, allocations: 3.949 MB / 1.594 GB, free: 99.11 MB / 0.5732 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004096/6.614, allocations: 78.7 kB / 1.594 GB, free: 99.05 MB / 0.5732 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0134/6.627, allocations: 1.634 MB / 1.595 GB, free: 99 MB / 0.5732 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00279/6.63, allocations: 256.8 kB / 1.596 GB, free: 98.96 MB / 0.5732 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001953/6.632, allocations: 132.3 kB / 1.596 GB, free: 98.93 MB / 0.5732 GB Notification: Performance of sorting global known variables: time 0.01531/6.647, allocations: 6.162 MB / 1.602 GB, free: 96.73 MB / 0.5732 GB Notification: Performance of sort global known variables: time 1.205e-06/6.647, allocations: 0 / 1.602 GB, free: 96.73 MB / 0.5732 GB Notification: Performance of remove unused functions: time 0.02292/6.67, allocations: 4.279 MB / 1.606 GB, free: 96.4 MB / 0.5732 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.002756/6.673, allocations: 302.5 kB / 1.606 GB, free: 96.25 MB / 0.5732 GB Notification: Performance of simCode: created initialization part: time 0.06362/6.737, allocations: 34.77 MB / 1.64 GB, free: 82.32 MB / 0.5732 GB Notification: Performance of simCode: created event and clocks part: time 1.112e-05/6.737, allocations: 0.625 kB / 1.64 GB, free: 82.32 MB / 0.5732 GB Notification: Performance of simCode: created simulation system equations: time 0.02614/6.763, allocations: 14.84 MB / 1.655 GB, free: 74.95 MB / 0.5732 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0084/6.771, allocations: 1.329 MB / 1.656 GB, free: 73.9 MB / 0.5732 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09752/6.869, allocations: 44.28 MB / 1.699 GB, free: 34.4 MB / 0.5732 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0292/6.898, allocations: 11.35 MB / 1.71 GB, free: 26.15 MB / 0.5732 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01262/6.911, allocations: 0.7531 MB / 1.711 GB, free: 25.43 MB / 0.5732 GB Notification: Performance of SimCode: time 1.907e-06/6.911, allocations: 0 / 1.711 GB, free: 25.43 MB / 0.5732 GB Notification: Performance of Templates: time 1.256/8.167, allocations: 395.6 MB / 2.097 GB, free: 8.43 MB / 0.5732 GB