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.923/1.923, allocations: 209.3 MB / 224.8 MB, free: 196 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004318/0.0004319, allocations: 19.98 kB / 282.5 MB, free: 9.625 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.277/0.2775, allocations: 48.7 MB / 331.2 MB, free: 6.469 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.RelativeSensor): time 0.1149/0.3925, allocations: 76.68 MB / 407.9 MB, free: 1.66 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0491/0.4416, allocations: 18.98 MB / 426.9 MB, free: 14.62 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01667/0.4583, allocations: 415 kB / 427.3 MB, free: 14.22 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01279/0.4711, allocations: 4.16 MB / 431.4 MB, free: 10.04 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03555/0.5067, allocations: 10.24 MB / 441.7 MB, free: 15.77 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008096/0.5149, allocations: 1.865 MB / 443.5 MB, free: 13.9 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.04404/0.559, allocations: 20.42 MB / 464 MB, free: 9.453 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3329/0.8919, allocations: 39.52 MB / 0.4917 GB, free: 18.32 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005076/0.897, allocations: 3.056 MB / 0.4947 GB, free: 18.32 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006452/0.9035, allocations: 3.945 MB / 0.4985 GB, free: 18.3 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002481/0.906, allocations: 0.5494 MB / 0.499 GB, free: 18.3 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004706/0.9107, allocations: 1.771 MB / 0.5008 GB, free: 18.3 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006317/0.9171, allocations: 6.07 MB / 0.5067 GB, free: 16.48 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004024/0.9212, allocations: 3.3 MB / 0.5099 GB, free: 15.48 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.031/0.9522, allocations: 28.22 MB / 0.5375 GB, free: 7.086 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.771e-06/0.9523, allocations: 0 / 0.5375 GB, free: 7.086 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.859e-06/0.9523, allocations: 0 / 0.5375 GB, free: 7.086 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006605/0.953, allocations: 0 / 0.5375 GB, free: 7.086 MB / 410.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.04384/0.9968, allocations: 16.14 MB / 0.5532 GB, free: 8.465 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.9969, allocations: 12.03 kB / 0.5533 GB, free: 8.453 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1885/1.185, allocations: 16.09 MB / 0.569 GB, free: 9.055 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02507/1.21, allocations: 9.734 MB / 0.5785 GB, free: 2.707 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001392/1.212, allocations: 1.311 MB / 0.5798 GB, free: 1.965 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005714/1.218, allocations: 1.74 MB / 0.5815 GB, free: 0.8125 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1075/1.325, allocations: 41.27 MB / 0.6218 GB, free: 2.773 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007281/1.326, allocations: 95.95 kB / 0.6219 GB, free: 2.719 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004847/1.331, allocations: 0.7565 MB / 0.6226 GB, free: 2.539 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007535/1.338, allocations: 4.06 MB / 0.6266 GB, free: 15.24 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.6077/1.946, allocations: 33.73 MB / 0.6595 GB, free: 165.1 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1728/2.119, allocations: 119.1 MB / 0.7758 GB, free: 57.48 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.06809/2.187, allocations: 22.29 MB / 0.7976 GB, free: 34.73 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04308/2.23, allocations: 27.48 MB / 0.8244 GB, free: 6.918 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.442e-05/2.23, allocations: 80.97 kB / 0.8245 GB, free: 6.828 MB / 490.8 MB Notification: Performance of pre-optimization done (n=372): time 8.842e-06/2.23, allocations: 0 / 0.8245 GB, free: 6.828 MB / 490.8 MB Notification: Performance of matching and sorting (n=486): time 2.09/4.321, allocations: 327.3 MB / 1.144 GB, free: 53.46 MB / 490.9 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001002/4.321, allocations: 289.3 kB / 1.144 GB, free: 53.13 MB / 490.9 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01823/4.339, allocations: 10.41 MB / 1.155 GB, free: 42.72 MB / 490.9 MB Notification: Performance of collectPreVariables (initialization): time 0.001904/4.341, allocations: 105.2 kB / 1.155 GB, free: 42.61 MB / 490.9 MB Notification: Performance of collectInitialEqns (initialization): time 0.006349/4.347, allocations: 10.56 MB / 1.165 GB, free: 32.06 MB / 490.9 MB Notification: Performance of collectInitialBindings (initialization): time 0.003403/4.351, allocations: 1.898 MB / 1.167 GB, free: 30.18 MB / 490.9 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002696/4.354, allocations: 340.9 kB / 1.167 GB, free: 29.84 MB / 490.9 MB Notification: Performance of setup shared object (initialization): time 0.001117/4.355, allocations: 1.03 MB / 1.168 GB, free: 28.8 MB / 490.9 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2985/4.653, allocations: 15.97 MB / 1.184 GB, free: 147.3 MB / 490.9 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03532/4.689, allocations: 26.59 MB / 1.21 GB, free: 126.4 MB / 490.9 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03496/4.724, allocations: 19.98 MB / 1.229 GB, free: 117.2 MB / 490.9 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000303/4.724, allocations: 107.4 kB / 1.229 GB, free: 117.2 MB / 490.9 MB Notification: Performance of matching and sorting (n=2202) (initialization): time 0.08192/4.806, allocations: 42.02 MB / 1.27 GB, free: 89.45 MB / 490.9 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002891/4.806, allocations: 165 kB / 1.271 GB, free: 89.29 MB / 490.9 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004708/4.807, allocations: 376.2 kB / 1.271 GB, free: 88.93 MB / 490.9 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002544/4.809, allocations: 1.011 MB / 1.272 GB, free: 88.03 MB / 490.9 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02433/4.834, allocations: 5.218 MB / 1.277 GB, free: 83.92 MB / 490.9 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008043/4.842, allocations: 6.516 MB / 1.283 GB, free: 77.86 MB / 490.9 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02146/4.863, allocations: 2.115 MB / 1.285 GB, free: 75.92 MB / 490.9 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004011/4.867, allocations: 1.02 MB / 1.286 GB, free: 74.9 MB / 490.9 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1710 * 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 (2146): * Single equations (assignments): 2136 * 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.01677/4.884, allocations: 7.82 MB / 1.294 GB, free: 67.09 MB / 490.9 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002797/4.887, allocations: 0.8761 MB / 1.295 GB, free: 66.68 MB / 490.9 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05369/4.941, allocations: 30.46 MB / 1.325 GB, free: 36.19 MB / 490.9 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001426/4.941, allocations: 91.97 kB / 1.325 GB, free: 36.1 MB / 490.9 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.841e-05/4.941, allocations: 8 kB / 1.325 GB, free: 36.09 MB / 490.9 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.613e-05/4.941, allocations: 27.95 kB / 1.325 GB, free: 36.07 MB / 490.9 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4502/5.391, allocations: 72.8 MB / 1.396 GB, free: 113.2 MB / 490.9 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.098e-05/5.391, allocations: 0 / 1.396 GB, free: 113.2 MB / 490.9 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01551/5.407, allocations: 2.049 MB / 1.398 GB, free: 113.1 MB / 490.9 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001869/5.409, allocations: 462.8 kB / 1.398 GB, free: 113 MB / 490.9 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002045/5.411, allocations: 84.52 kB / 1.398 GB, free: 113 MB / 490.9 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006802/5.418, allocations: 5.146 MB / 1.403 GB, free: 109.4 MB / 490.9 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.739e-06/5.418, allocations: 0 / 1.403 GB, free: 109.4 MB / 490.9 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08357/5.501, allocations: 50.9 MB / 1.453 GB, free: 74.37 MB / 490.9 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01029/5.512, allocations: 3.987 MB / 1.457 GB, free: 70.85 MB / 490.9 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003607/5.515, allocations: 76.94 kB / 1.457 GB, free: 70.77 MB / 490.9 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01243/5.528, allocations: 1.592 MB / 1.459 GB, free: 69.2 MB / 490.9 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002567/5.53, allocations: 262.9 kB / 1.459 GB, free: 68.94 MB / 490.9 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001422/5.532, allocations: 128 kB / 1.459 GB, free: 68.81 MB / 490.9 MB Notification: Performance of sorting global known variables: time 0.01321/5.545, allocations: 6.481 MB / 1.465 GB, free: 62.36 MB / 490.9 MB Notification: Performance of sort global known variables: time 1.2e-06/5.545, allocations: 0 / 1.465 GB, free: 62.36 MB / 490.9 MB Notification: Performance of remove unused functions: time 0.01969/5.565, allocations: 4.305 MB / 1.47 GB, free: 58.07 MB / 490.9 MB 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.002508/5.567, allocations: 306.2 kB / 1.47 GB, free: 57.78 MB / 490.9 MB Notification: Performance of simCode: created initialization part: time 0.05725/5.624, allocations: 35.26 MB / 1.504 GB, free: 22.67 MB / 490.9 MB Notification: Performance of simCode: created event and clocks part: time 9.288e-06/5.625, allocations: 0.625 kB / 1.504 GB, free: 22.67 MB / 490.9 MB Notification: Performance of simCode: created simulation system equations: time 0.02466/5.649, allocations: 15.07 MB / 1.519 GB, free: 7.582 MB / 490.9 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007671/5.657, allocations: 1.337 MB / 1.52 GB, free: 6.25 MB / 490.9 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4242/6.081, allocations: 56.77 MB / 1.576 GB, free: 143.1 MB / 0.495 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02606/6.107, allocations: 11.32 MB / 1.587 GB, free: 139.4 MB / 0.495 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01283/6.12, allocations: 0.7573 MB / 1.588 GB, free: 139.4 MB / 0.495 GB Notification: Performance of SimCode: time 1.89e-06/6.12, allocations: 4 kB / 1.588 GB, free: 139.4 MB / 0.495 GB Notification: Performance of Templates: time 1.13/7.25, allocations: 395.6 MB / 1.974 GB, free: 158 MB / 0.5419 GB