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.12/2.12, allocations: 234.9 MB / 250.5 MB, free: 9.602 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004304/0.0004306, allocations: 12 kB / 314.3 MB, free: 9.652 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2841/0.2845, allocations: 54.86 MB / 369.2 MB, free: 12.77 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.RelativeSensor): time 0.1006/0.3852, allocations: 76.71 MB / 445.9 MB, free: 15.84 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.045/0.4302, allocations: 19.03 MB / 464.9 MB, free: 12.77 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01527/0.4456, allocations: 415 kB / 465.3 MB, free: 12.36 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0125/0.4581, allocations: 4.152 MB / 469.5 MB, free: 8.188 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03429/0.4924, allocations: 10.26 MB / 479.7 MB, free: 13.9 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007848/0.5003, allocations: 1.833 MB / 481.6 MB, free: 12.07 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.044/0.5444, allocations: 20.43 MB / 0.4902 GB, free: 7.617 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3548/0.8992, allocations: 39.52 MB / 0.5288 GB, free: 18.1 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004814/0.9041, allocations: 3.06 MB / 0.5318 GB, free: 18.1 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005965/0.9101, allocations: 3.954 MB / 0.5357 GB, free: 18.09 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001851/0.912, allocations: 0.548 MB / 0.5362 GB, free: 18.09 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004032/0.916, allocations: 1.763 MB / 0.5379 GB, free: 18.09 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005949/0.922, allocations: 6.073 MB / 0.5439 GB, free: 16.4 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003466/0.9255, allocations: 3.3 MB / 0.5471 GB, free: 15.4 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03019/0.9557, allocations: 28.23 MB / 0.5747 GB, free: 6.988 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.383e-06/0.9558, allocations: 3.938 kB / 0.5747 GB, free: 6.984 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.598e-06/0.9558, allocations: 0 / 0.5747 GB, free: 6.984 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006815/0.9565, allocations: 0 / 0.5747 GB, free: 6.984 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: 5962 * Number of variables: 5962 Notification: Performance of Generate backend data structure: time 0.04393/1, allocations: 16.14 MB / 0.5904 GB, free: 8.355 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/1, allocations: 12.03 kB / 0.5904 GB, free: 8.344 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.186/1.186, allocations: 16.09 MB / 0.6061 GB, free: 8.949 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02534/1.212, allocations: 9.741 MB / 0.6157 GB, free: 2.598 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001408/1.213, allocations: 1.317 MB / 0.6169 GB, free: 1.855 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005912/1.219, allocations: 1.736 MB / 0.6186 GB, free: 0.7031 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1087/1.328, allocations: 41.28 MB / 0.659 GB, free: 2.656 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007045/1.329, allocations: 96.64 kB / 0.6591 GB, free: 2.602 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004796/1.334, allocations: 0.7582 MB / 0.6598 GB, free: 2.422 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007675/1.341, allocations: 4.052 MB / 0.6637 GB, free: 14.82 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.6443/1.986, allocations: 33.73 MB / 0.6967 GB, free: 184.7 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1775/2.163, allocations: 119.1 MB / 0.813 GB, free: 88.21 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06827/2.231, allocations: 22.3 MB / 0.8348 GB, free: 65.44 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04494/2.276, allocations: 27.48 MB / 0.8616 GB, free: 37.63 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.573e-05/2.277, allocations: 72.98 kB / 0.8617 GB, free: 37.55 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=372): time 9.383e-06/2.277, allocations: 0 / 0.8617 GB, free: 37.55 MB / 0.5262 GB Notification: Performance of matching and sorting (n=486): time 2.191/4.467, allocations: 327.3 MB / 1.181 GB, free: 118.7 MB / 0.5263 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.357e-05/4.467, allocations: 290 kB / 1.182 GB, free: 118.3 MB / 0.5263 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01881/4.486, allocations: 10.41 MB / 1.192 GB, free: 107.9 MB / 0.5263 GB Notification: Performance of collectPreVariables (initialization): time 0.001924/4.488, allocations: 100.7 kB / 1.192 GB, free: 107.8 MB / 0.5263 GB Notification: Performance of collectInitialEqns (initialization): time 0.006185/4.494, allocations: 10.58 MB / 1.202 GB, free: 97.25 MB / 0.5263 GB Notification: Performance of collectInitialBindings (initialization): time 0.00334/4.498, allocations: 1.886 MB / 1.204 GB, free: 95.38 MB / 0.5263 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002825/4.501, allocations: 338.6 kB / 1.204 GB, free: 95.05 MB / 0.5263 GB Notification: Performance of setup shared object (initialization): time 0.001493/4.502, allocations: 1.034 MB / 1.205 GB, free: 94 MB / 0.5263 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0269/4.529, allocations: 15.97 MB / 1.221 GB, free: 78.02 MB / 0.5263 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03222/4.561, allocations: 26.59 MB / 1.247 GB, free: 46.18 MB / 0.5263 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03232/4.594, allocations: 19.98 MB / 1.266 GB, free: 26.19 MB / 0.5263 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002575/4.594, allocations: 108 kB / 1.267 GB, free: 26.09 MB / 0.5263 GB Notification: Performance of matching and sorting (n=2202) (initialization): time 0.434/5.028, allocations: 42.02 MB / 1.308 GB, free: 140.6 MB / 0.5263 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003033/5.028, allocations: 165.1 kB / 1.308 GB, free: 140.6 MB / 0.5263 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004596/5.029, allocations: 374.2 kB / 1.308 GB, free: 140.6 MB / 0.5263 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0027/5.031, allocations: 1.011 MB / 1.309 GB, free: 140.5 MB / 0.5263 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0249/5.056, allocations: 5.213 MB / 1.314 GB, free: 140 MB / 0.5263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008694/5.065, allocations: 6.518 MB / 1.321 GB, free: 136 MB / 0.5263 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02166/5.087, allocations: 2.111 MB / 1.323 GB, free: 135.7 MB / 0.5263 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003847/5.091, allocations: 1.02 MB / 1.324 GB, free: 135.6 MB / 0.5263 GB 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.01787/5.109, allocations: 7.836 MB / 1.331 GB, free: 131.9 MB / 0.5263 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003094/5.112, allocations: 0.8691 MB / 1.332 GB, free: 131.9 MB / 0.5263 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05689/5.169, allocations: 30.46 MB / 1.362 GB, free: 109.2 MB / 0.5263 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001625/5.169, allocations: 95.73 kB / 1.362 GB, free: 109.1 MB / 0.5263 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.233e-05/5.169, allocations: 7.953 kB / 1.362 GB, free: 109.1 MB / 0.5263 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.204e-05/5.169, allocations: 22.17 kB / 1.362 GB, free: 109.1 MB / 0.5263 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1194/5.288, allocations: 72.81 MB / 1.433 GB, free: 35.11 MB / 0.5263 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.752e-05/5.288, allocations: 0 / 1.433 GB, free: 35.11 MB / 0.5263 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01411/5.303, allocations: 2.047 MB / 1.435 GB, free: 33.06 MB / 0.5263 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001725/5.304, allocations: 458.5 kB / 1.436 GB, free: 32.61 MB / 0.5263 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00204/5.306, allocations: 85.16 kB / 1.436 GB, free: 32.53 MB / 0.5263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006593/5.313, allocations: 5.151 MB / 1.441 GB, free: 27.16 MB / 0.5263 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/5.313, allocations: 0 / 1.441 GB, free: 27.16 MB / 0.5263 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4765/5.79, allocations: 50.91 MB / 1.49 GB, free: 160.1 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01054/5.8, allocations: 3.977 MB / 1.494 GB, free: 158.6 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003721/5.804, allocations: 76.75 kB / 1.494 GB, free: 158.6 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01288/5.817, allocations: 1.59 MB / 1.496 GB, free: 158.5 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002658/5.82, allocations: 255.8 kB / 1.496 GB, free: 158.5 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001884/5.821, allocations: 125.1 kB / 1.496 GB, free: 158.5 MB / 0.5419 GB Notification: Performance of sorting global known variables: time 0.01402/5.835, allocations: 6.488 MB / 1.503 GB, free: 156.2 MB / 0.5419 GB Notification: Performance of sort global known variables: time 1.424e-06/5.836, allocations: 0.6562 kB / 1.503 GB, free: 156.2 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.02257/5.858, allocations: 4.302 MB / 1.507 GB, free: 155.9 MB / 0.5419 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.002745/5.861, allocations: 311.7 kB / 1.507 GB, free: 155.8 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.06127/5.922, allocations: 35.27 MB / 1.541 GB, free: 140.8 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 1.031e-05/5.922, allocations: 0.625 kB / 1.541 GB, free: 140.8 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 0.02512/5.947, allocations: 15.06 MB / 1.556 GB, free: 127.6 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007996/5.955, allocations: 1.34 MB / 1.557 GB, free: 126.5 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09912/6.055, allocations: 56.78 MB / 1.613 GB, free: 73.46 MB / 0.5419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02428/6.079, allocations: 11.33 MB / 1.624 GB, free: 62.09 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0127/6.092, allocations: 0.7572 MB / 1.625 GB, free: 61.33 MB / 0.5419 GB Notification: Performance of SimCode: time 1.834e-06/6.092, allocations: 0 / 1.625 GB, free: 61.33 MB / 0.5419 GB Notification: Performance of Templates: time 1.175/7.267, allocations: 395.6 MB / 2.011 GB, free: 97.89 MB / 0.5732 GB