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.Joints.FreeMotion.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.Joints.FreeMotion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.Q.1.|freeMotion.Q.2.|freeMotion.Q.3.|freeMotion.Q.4.|freeMotion.r_rel_a.1.|freeMotion.r_rel_a.2.|freeMotion.r_rel_a.3.|freeMotion.v_rel_a.1.|freeMotion.v_rel_a.2.|freeMotion.v_rel_a.3.|freeMotion.w_rel_b.1.|freeMotion.w_rel_b.2.|freeMotion.w_rel_b.3.",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.FreeMotion") Notification: Performance of loadModel(ModelicaTest): time 1.975/1.975, allocations: 209.2 MB / 224.8 MB, free: 0.5352 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004392/0.0004393, allocations: 16 kB / 282.5 MB, free: 9.688 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2829/0.2834, allocations: 48.7 MB / 331.2 MB, free: 6.504 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion): time 0.03126/0.3147, allocations: 24.37 MB / 355.6 MB, free: 4.941 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0172/0.3319, allocations: 6.491 MB / 362 MB, free: 15.63 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005201/0.3372, allocations: 115.8 kB / 362.2 MB, free: 15.52 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004056/0.3412, allocations: 1.26 MB / 363.4 MB, free: 14.25 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01321/0.3545, allocations: 3.775 MB / 367.2 MB, free: 10.46 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002049/0.3566, allocations: 439.2 kB / 367.6 MB, free: 10.04 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004703/0.3613, allocations: 2.213 MB / 369.8 MB, free: 7.82 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003862/0.3652, allocations: 2.194 MB / 372 MB, free: 5.566 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001627/0.3669, allocations: 0.8914 MB / 372.9 MB, free: 4.672 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002043/0.3689, allocations: 1.246 MB / 374.2 MB, free: 3.422 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004744/0.3694, allocations: 136 kB / 374.3 MB, free: 3.289 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002082/0.3715, allocations: 0.866 MB / 375.2 MB, free: 2.422 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001803/0.3733, allocations: 1.465 MB / 376.6 MB, free: 0.9531 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009887/0.3743, allocations: 0.7686 MB / 377.4 MB, free: 180 kB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007493/0.3819, allocations: 4.907 MB / 382.3 MB, free: 11.26 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.361e-06/0.3819, allocations: 0 / 382.3 MB, free: 11.26 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.3819, allocations: 0 / 382.3 MB, free: 11.26 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001137/0.382, allocations: 0 / 382.3 MB, free: 11.26 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1557 * Number of variables: 1557 Notification: Performance of Generate backend data structure: time 0.008546/0.3906, allocations: 3.664 MB / 386 MB, free: 7.523 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.3907, allocations: 8.031 kB / 386 MB, free: 7.516 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01746/0.4081, allocations: 3.844 MB / 389.8 MB, free: 3.656 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006317/0.4145, allocations: 2.411 MB / 392.2 MB, free: 1.199 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002774/0.4148, allocations: 188.7 kB / 392.4 MB, free: 1.012 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001496/0.4163, allocations: 347.3 kB / 392.8 MB, free: 0.6719 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02296/0.4393, allocations: 10.83 MB / 403.6 MB, free: 5.359 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001138/0.4395, allocations: 27.8 kB / 403.6 MB, free: 5.332 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000676/0.4401, allocations: 119.8 kB / 403.7 MB, free: 5.215 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00545/0.4456, allocations: 2.557 MB / 406.3 MB, free: 2.656 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02578/0.4714, allocations: 10.33 MB / 416.6 MB, free: 8.316 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0677/0.5392, allocations: 35.86 MB / 452.5 MB, free: 3.578 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0112/0.5504, allocations: 4.43 MB / 456.9 MB, free: 14.92 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001752/0.5522, allocations: 1.323 MB / 458.2 MB, free: 13.38 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.093e-05/0.5523, allocations: 56.52 kB / 458.3 MB, free: 13.32 MB / 394.7 MB Notification: Performance of pre-optimization done (n=245): time 7.245e-06/0.5523, allocations: 0 / 458.3 MB, free: 13.32 MB / 394.7 MB Notification: Performance of matching and sorting (n=261): time 0.05745/0.6098, allocations: 17.63 MB / 475.9 MB, free: 11.43 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001808/0.6116, allocations: 1.55 MB / 477.5 MB, free: 9.719 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006038/0.6177, allocations: 2.973 MB / 480.4 MB, free: 6.73 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004677/0.6182, allocations: 57.7 kB / 480.5 MB, free: 6.668 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002727/0.621, allocations: 2.727 MB / 483.2 MB, free: 3.902 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001517/0.6225, allocations: 0.9599 MB / 484.2 MB, free: 2.93 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000469/0.623, allocations: 112 kB / 484.3 MB, free: 2.82 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005336/0.6235, allocations: 0.5545 MB / 484.8 MB, free: 2.254 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2311/0.8547, allocations: 2.422 MB / 487.3 MB, free: 128.1 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006979/0.8617, allocations: 5.462 MB / 492.7 MB, free: 123.9 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007155/0.8689, allocations: 3.633 MB / 496.4 MB, free: 122.6 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001293/0.8691, allocations: 36.09 kB / 496.4 MB, free: 122.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=751) (initialization): time 0.02173/0.8908, allocations: 8.82 MB / 0.4934 GB, free: 119.7 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001069/0.8909, allocations: 50.56 kB / 0.4934 GB, free: 119.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0103/0.9013, allocations: 3.994 MB / 0.4973 GB, free: 118.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006235/0.9075, allocations: 1.402 MB / 0.4987 GB, free: 118.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00553/0.9131, allocations: 1.286 MB / 0.5 GB, free: 118.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005364/0.9185, allocations: 4.41 MB / 0.5043 GB, free: 115.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004851/0.9234, allocations: 403 kB / 0.5046 GB, free: 115.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007764/0.9242, allocations: 323.3 kB / 0.505 GB, free: 115.1 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 478 * Number of states: 0 () * Number of discrete variables: 21 (frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (689): * Single equations (assignments): 677 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {3 1} Notification: Performance of prepare postOptimizeDAE: time 0.003898/0.9281, allocations: 2.104 MB / 0.507 GB, free: 113.9 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000533/0.9286, allocations: 281.7 kB / 0.5073 GB, free: 113.8 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01168/0.9403, allocations: 5.428 MB / 0.5126 GB, free: 108.3 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01049/0.9509, allocations: 4.686 MB / 0.5172 GB, free: 103.6 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.415e-05/0.9509, allocations: 0 / 0.5172 GB, free: 103.6 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.099e-05/0.951, allocations: 12.75 kB / 0.5172 GB, free: 103.6 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02861/0.9796, allocations: 14.72 MB / 0.5315 GB, free: 88.71 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.8e-05/0.9796, allocations: 12 kB / 0.5316 GB, free: 88.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002386/0.982, allocations: 423.3 kB / 0.532 GB, free: 88.29 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005157/0.9872, allocations: 1.244 MB / 0.5332 GB, free: 87.03 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00046/0.9877, allocations: 65.22 kB / 0.5332 GB, free: 86.97 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005147/0.9929, allocations: 4.529 MB / 0.5377 GB, free: 82.2 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0009124/0.9938, allocations: 1.485 MB / 0.5391 GB, free: 80.59 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01502/1.009, allocations: 8.149 MB / 0.5471 GB, free: 72.36 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006929/1.01, allocations: 352.9 kB / 0.5474 GB, free: 71.99 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006232/1.01, allocations: 55.98 kB / 0.5475 GB, free: 71.94 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001876/1.012, allocations: 195.7 kB / 0.5476 GB, free: 71.75 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003986/1.013, allocations: 169.6 kB / 0.5478 GB, free: 71.58 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002694/1.013, allocations: 83.97 kB / 0.5479 GB, free: 71.5 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002737/1.016, allocations: 1.853 MB / 0.5497 GB, free: 69.64 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.79e-07/1.016, allocations: 0 / 0.5497 GB, free: 69.64 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005256/1.021, allocations: 1.077 MB / 0.5507 GB, free: 68.57 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],freeMotion.r_rel_a[1],freeMotion.r_rel_a[2],freeMotion.r_rel_a[3],freeMotion.v_rel_a[1],freeMotion.v_rel_a[2],freeMotion.v_rel_a[3],freeMotion.w_rel_b[1],freeMotion.w_rel_b[2],freeMotion.w_rel_b[3]) * 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 (202): * Single equations (assignments): 192 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006963/1.022, allocations: 215.5 kB / 0.5509 GB, free: 68.36 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01178/1.033, allocations: 6.45 MB / 0.5572 GB, free: 61.86 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.037e-05/1.033, allocations: 4 kB / 0.5573 GB, free: 61.86 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005719/1.039, allocations: 2.9 MB / 0.5601 GB, free: 58.89 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002054/1.041, allocations: 356.7 kB / 0.5604 GB, free: 58.55 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02069/1.062, allocations: 13 MB / 0.5731 GB, free: 45.37 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004487/1.067, allocations: 3.39 MB / 0.5764 GB, free: 41.95 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001502/1.068, allocations: 283.4 kB / 0.5767 GB, free: 41.67 MB / 410.7 MB Notification: Performance of SimCode: time 2.28e-06/1.068, allocations: 0 / 0.5767 GB, free: 41.67 MB / 410.7 MB Notification: Performance of Templates: time 0.3976/1.466, allocations: 125.9 MB / 0.6997 GB, free: 83.13 MB / 426.7 MB