Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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 2.332/2.332, allocations: 209.2 MB / 225.4 MB, free: 0.625 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004443/0.0004446, allocations: 8 kB / 283.1 MB, free: 9.699 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3812/0.3817, allocations: 48.7 MB / 331.8 MB, free: 6.477 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1657/0.5475, allocations: 89.3 MB / 421.1 MB, free: 5.137 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000335/0.5479, allocations: 79.95 kB / 421.2 MB, free: 5.059 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6349/1.183, allocations: 86.85 MB / 0.4961 GB, free: 92.24 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.596e-06/1.183, allocations: 0 / 0.4961 GB, free: 92.24 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001792/1.183, allocations: 75.72 kB / 0.4962 GB, free: 92.23 MB / 394.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.01451/1.198, allocations: 3.851 MB / 0.4999 GB, free: 90.15 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.944e-05/1.198, allocations: 13.97 kB / 0.5 GB, free: 90.14 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02739/1.225, allocations: 3.637 MB / 0.5035 GB, free: 89.69 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0177/1.243, allocations: 4.944 MB / 0.5083 GB, free: 87.11 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003718/1.243, allocations: 291.6 kB / 0.5086 GB, free: 87.01 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002841/1.246, allocations: 392.4 kB / 0.509 GB, free: 86.91 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0308/1.277, allocations: 10.37 MB / 0.5191 GB, free: 77.86 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002159/1.277, allocations: 31.75 kB / 0.5192 GB, free: 77.83 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001969/1.279, allocations: 171.1 kB / 0.5193 GB, free: 77.7 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002372/1.282, allocations: 1.19 MB / 0.5205 GB, free: 76.51 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02742/1.309, allocations: 10.15 MB / 0.5304 GB, free: 66.35 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07402/1.383, allocations: 36.46 MB / 0.566 GB, free: 29.22 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01234/1.396, allocations: 4.399 MB / 0.5703 GB, free: 24.59 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001606/1.397, allocations: 1.327 MB / 0.5716 GB, free: 23.05 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.508e-05/1.397, allocations: 52.56 kB / 0.5716 GB, free: 22.99 MB / 394.7 MB Notification: Performance of pre-optimization done (n=245): time 6.062e-06/1.397, allocations: 0 / 0.5716 GB, free: 22.99 MB / 394.7 MB Notification: Performance of matching and sorting (n=261): time 0.06763/1.465, allocations: 17.51 MB / 0.5887 GB, free: 5.227 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001376/1.466, allocations: 1.539 MB / 0.5902 GB, free: 3.527 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005167/1.472, allocations: 2.758 MB / 0.5929 GB, free: 0.7539 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006329/1.472, allocations: 61.14 kB / 0.593 GB, free: 0.6914 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002624/1.475, allocations: 2.727 MB / 0.5957 GB, free: 13.96 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001879/1.477, allocations: 0.9625 MB / 0.5966 GB, free: 13 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007377/1.478, allocations: 104 kB / 0.5967 GB, free: 12.9 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005787/1.478, allocations: 0.5506 MB / 0.5972 GB, free: 12.34 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007093/1.485, allocations: 2.42 MB / 0.5996 GB, free: 9.914 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01139/1.497, allocations: 5.448 MB / 0.6049 GB, free: 2.984 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01009/1.507, allocations: 3.622 MB / 0.6085 GB, free: 15.36 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001342/1.507, allocations: 32 kB / 0.6085 GB, free: 15.33 MB / 426.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.03295/1.54, allocations: 8.721 MB / 0.617 GB, free: 6.598 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001105/1.54, allocations: 52 kB / 0.6171 GB, free: 6.547 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0153/1.556, allocations: 3.915 MB / 0.6209 GB, free: 2.613 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008442/1.564, allocations: 1.248 MB / 0.6221 GB, free: 1.355 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00876/1.573, allocations: 1.287 MB / 0.6234 GB, free: 68 kB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3195/1.892, allocations: 4.173 MB / 0.6274 GB, free: 106 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009234/1.902, allocations: 397.2 kB / 0.6278 GB, free: 106 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001616/1.903, allocations: 323.4 kB / 0.6281 GB, free: 106 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 479 * 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 (688): * Single equations (assignments): 676 * 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.00786/1.911, allocations: 2.104 MB / 0.6302 GB, free: 105.9 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009654/1.912, allocations: 279.2 kB / 0.6304 GB, free: 105.9 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02154/1.934, allocations: 5.384 MB / 0.6357 GB, free: 105.7 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01606/1.95, allocations: 4.636 MB / 0.6402 GB, free: 105.6 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.522e-05/1.95, allocations: 3.875 kB / 0.6402 GB, free: 105.6 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.034e-05/1.95, allocations: 15.05 kB / 0.6402 GB, free: 105.6 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04131/1.991, allocations: 14.63 MB / 0.6545 GB, free: 101.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.363e-05/1.991, allocations: 9.594 kB / 0.6545 GB, free: 101.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003676/1.995, allocations: 427.5 kB / 0.6549 GB, free: 101.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007885/2.003, allocations: 1.189 MB / 0.6561 GB, free: 101.2 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007222/2.004, allocations: 69.19 kB / 0.6562 GB, free: 101.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007013/2.011, allocations: 4.544 MB / 0.6606 GB, free: 98.14 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0012/2.012, allocations: 1.474 MB / 0.6621 GB, free: 96.73 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02253/2.035, allocations: 8.021 MB / 0.6699 GB, free: 93.87 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001052/2.036, allocations: 340 kB / 0.6702 GB, free: 93.71 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001265/2.037, allocations: 57.05 kB / 0.6703 GB, free: 93.68 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003219/2.04, allocations: 193.1 kB / 0.6704 GB, free: 93.65 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006494/2.041, allocations: 172.8 kB / 0.6706 GB, free: 93.63 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002839/2.041, allocations: 78.19 kB / 0.6707 GB, free: 93.61 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003757/2.045, allocations: 1.682 MB / 0.6723 GB, free: 93.03 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.92e-07/2.045, allocations: 0 / 0.6723 GB, free: 93.03 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007001/2.052, allocations: 1.061 MB / 0.6734 GB, free: 92.92 MB / 426.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.0009845/2.053, allocations: 198.5 kB / 0.6736 GB, free: 92.8 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01618/2.069, allocations: 6.432 MB / 0.6798 GB, free: 90.72 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.456e-05/2.069, allocations: 3.938 kB / 0.6798 GB, free: 90.72 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00883/2.078, allocations: 2.907 MB / 0.6827 GB, free: 88.67 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003306/2.082, allocations: 355.1 kB / 0.683 GB, free: 88.38 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02912/2.111, allocations: 13.05 MB / 0.6958 GB, free: 76.66 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007423/2.118, allocations: 3.391 MB / 0.6991 GB, free: 74.05 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001984/2.12, allocations: 277.6 kB / 0.6993 GB, free: 73.8 MB / 426.7 MB Notification: Performance of SimCode: time 1.282e-06/2.12, allocations: 0 / 0.6993 GB, free: 73.8 MB / 426.7 MB Notification: Performance of Templates: time 0.5184/2.639, allocations: 125.3 MB / 0.8217 GB, free: 111.4 MB / 442.7 MB