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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.959/1.959, allocations: 209.4 MB / 217.3 MB, free: 4.145 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.134e-05/2.175e-05, allocations: 4 kB / 271.3 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2788/0.2789, allocations: 48.69 MB / 320 MB, free: 14.41 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1705/0.4495, allocations: 88.55 MB / 408.6 MB, free: 7.883 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002195/0.4497, allocations: 75.95 kB / 408.6 MB, free: 7.809 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5277/0.9775, allocations: 84.94 MB / 493.6 MB, free: 78.84 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.584e-06/0.9775, allocations: 0 / 493.6 MB, free: 78.84 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001483/0.9777, allocations: 70.81 kB / 493.6 MB, free: 78.77 MB / 378.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.01024/0.9879, allocations: 3.692 MB / 497.3 MB, free: 75.02 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.382e-05/0.988, allocations: 12.03 kB / 497.3 MB, free: 75.01 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01904/1.007, allocations: 3.638 MB / 0.4892 GB, free: 71.36 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01332/1.02, allocations: 4.916 MB / 0.494 GB, free: 66.44 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002237/1.021, allocations: 124 kB / 0.4942 GB, free: 66.32 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00183/1.023, allocations: 224 kB / 0.4944 GB, free: 66.1 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0136/1.036, allocations: 7.273 MB / 0.5015 GB, free: 58.82 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02059/1.057, allocations: 9.582 MB / 0.5108 GB, free: 48.74 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000171/1.057, allocations: 31.7 kB / 0.5109 GB, free: 48.71 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001568/1.059, allocations: 16 kB / 0.5109 GB, free: 48.7 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001884/1.06, allocations: 1.19 MB / 0.512 GB, free: 47.51 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05217/1.113, allocations: 33.99 MB / 0.5452 GB, free: 13.08 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005343/1.118, allocations: 4.053 MB / 0.5492 GB, free: 8.805 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003127/1.121, allocations: 2.117 MB / 0.5513 GB, free: 6.688 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001114/1.122, allocations: 1.323 MB / 0.5526 GB, free: 5.145 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.418e-05/1.122, allocations: 60.56 kB / 0.5526 GB, free: 5.074 MB / 378.7 MB Notification: Performance of pre-optimization done (n=247): time 6.714e-06/1.122, allocations: 0 / 0.5526 GB, free: 5.074 MB / 378.7 MB Notification: Performance of matching and sorting (n=264): time 0.04068/1.163, allocations: 14.84 MB / 0.5671 GB, free: 6.125 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.137e-05/1.163, allocations: 73.41 kB / 0.5672 GB, free: 6.039 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004676/1.168, allocations: 2.359 MB / 0.5695 GB, free: 3.668 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004229/1.168, allocations: 25.7 kB / 0.5695 GB, free: 3.637 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002962/1.171, allocations: 2.823 MB / 0.5723 GB, free: 0.7734 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001524/1.173, allocations: 0.944 MB / 0.5732 GB, free: 15.82 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004222/1.173, allocations: 3.938 kB / 0.5732 GB, free: 15.81 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005678/1.174, allocations: 0.5748 MB / 0.5737 GB, free: 15.23 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004952/1.179, allocations: 2.351 MB / 0.576 GB, free: 12.87 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008601/1.188, allocations: 5.593 MB / 0.5815 GB, free: 5.652 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007603/1.195, allocations: 3.669 MB / 0.5851 GB, free: 1.98 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001007/1.195, allocations: 32 kB / 0.5851 GB, free: 1.949 MB / 410.7 MB Notification: Performance of matching and sorting (n=798) (initialization): time 0.02285/1.218, allocations: 8.277 MB / 0.5932 GB, free: 9.656 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001202/1.218, allocations: 56.78 kB / 0.5933 GB, free: 9.602 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01043/1.229, allocations: 3.795 MB / 0.597 GB, free: 5.789 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00553/1.234, allocations: 1.244 MB / 0.5982 GB, free: 4.531 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006022/1.24, allocations: 1.38 MB / 0.5995 GB, free: 3.148 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.247/1.487, allocations: 3.941 MB / 0.6034 GB, free: 111.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005832/1.493, allocations: 290.4 kB / 0.6036 GB, free: 111.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00145/1.495, allocations: 351.9 kB / 0.604 GB, free: 111.3 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 524 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (736): * Single equations (assignments): 724 * 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.001472/1.496, allocations: 399.1 kB / 0.6044 GB, free: 111.2 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006128/1.497, allocations: 285.6 kB / 0.6046 GB, free: 111.2 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01369/1.511, allocations: 5.237 MB / 0.6097 GB, free: 111 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01172/1.522, allocations: 4.521 MB / 0.6142 GB, free: 110.8 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.687e-05/1.522, allocations: 0 / 0.6142 GB, free: 110.8 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.434e-05/1.523, allocations: 11.11 kB / 0.6142 GB, free: 110.8 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0307/1.553, allocations: 13.56 MB / 0.6274 GB, free: 109.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.788e-05/1.553, allocations: 15.34 kB / 0.6274 GB, free: 109.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002471/1.556, allocations: 435.1 kB / 0.6278 GB, free: 109.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005412/1.561, allocations: 1.173 MB / 0.629 GB, free: 109.1 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005378/1.562, allocations: 31.58 kB / 0.629 GB, free: 109.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005296/1.567, allocations: 4.329 MB / 0.6332 GB, free: 106.3 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000958/1.568, allocations: 1.419 MB / 0.6346 GB, free: 104.9 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01637/1.585, allocations: 8.753 MB / 0.6432 GB, free: 101.1 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007989/1.585, allocations: 341.2 kB / 0.6435 GB, free: 100.9 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007788/1.586, allocations: 24.94 kB / 0.6435 GB, free: 100.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002429/1.589, allocations: 160 kB / 0.6437 GB, free: 100.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005828/1.589, allocations: 178.2 kB / 0.6438 GB, free: 100.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002793/1.59, allocations: 80.14 kB / 0.6439 GB, free: 100.9 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003008/1.593, allocations: 1.553 MB / 0.6454 GB, free: 100.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.134e-06/1.593, allocations: 0 / 0.6454 GB, free: 100.3 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006301/1.599, allocations: 0.9445 MB / 0.6464 GB, free: 100.3 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 44 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (205): * Single equations (assignments): 195 * 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.0007065/1.6, allocations: 168.1 kB / 0.6465 GB, free: 100.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01198/1.612, allocations: 6.235 MB / 0.6526 GB, free: 97.88 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.266e-05/1.612, allocations: 0 / 0.6526 GB, free: 97.88 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005588/1.617, allocations: 2.826 MB / 0.6554 GB, free: 95.38 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002006/1.619, allocations: 248.2 kB / 0.6556 GB, free: 95.16 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01923/1.639, allocations: 9.588 MB / 0.665 GB, free: 86.83 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005282/1.644, allocations: 3.395 MB / 0.6683 GB, free: 84.21 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002561/1.647, allocations: 273.2 kB / 0.6686 GB, free: 83.96 MB / 426.7 MB Notification: Performance of SimCode: time 2.904e-06/1.647, allocations: 0 / 0.6686 GB, free: 83.96 MB / 426.7 MB Notification: Performance of Templates: time 0.4003/2.047, allocations: 124.3 MB / 0.7899 GB, free: 126.3 MB / 442.7 MB