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.Joints.FreeMotion.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.MultiBody.Joints.FreeMotion") Notification: Performance of loadModel(ModelicaTest): time 2.113/2.113, allocations: 235.1 MB / 243 MB, free: 9.594 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.876e-05/1.89e-05, allocations: 4 kB / 303.2 MB, free: 13.29 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2696/0.2696, allocations: 54.86 MB / 358 MB, free: 14.87 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1433/0.413, allocations: 95.26 MB / 453.3 MB, free: 15.46 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002483/0.4132, allocations: 75.97 kB / 453.4 MB, free: 15.39 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5357/0.9489, allocations: 85.13 MB / 0.5259 GB, free: 42.09 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.012e-06/0.949, allocations: 0 / 0.5259 GB, free: 42.09 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001741/0.9492, allocations: 71.98 kB / 0.526 GB, free: 42.02 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.01072/0.9599, allocations: 3.693 MB / 0.5296 GB, free: 38.26 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.96, allocations: 8.031 kB / 0.5296 GB, free: 38.25 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01993/0.9799, allocations: 3.648 MB / 0.5331 GB, free: 34.59 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01344/0.9934, allocations: 4.937 MB / 0.538 GB, free: 29.61 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002384/0.9937, allocations: 128 kB / 0.5381 GB, free: 29.48 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001937/0.9956, allocations: 224 kB / 0.5383 GB, free: 29.26 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01361/1.009, allocations: 7.278 MB / 0.5454 GB, free: 21.98 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02017/1.029, allocations: 9.571 MB / 0.5547 GB, free: 11.91 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001531/1.03, allocations: 31.73 kB / 0.5548 GB, free: 11.88 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001106/1.031, allocations: 20 kB / 0.5548 GB, free: 11.86 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001674/1.032, allocations: 1.184 MB / 0.556 GB, free: 10.67 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05979/1.092, allocations: 34.01 MB / 0.5892 GB, free: 8.012 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006655/1.099, allocations: 4.04 MB / 0.5931 GB, free: 3.75 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003916/1.103, allocations: 2.12 MB / 0.5952 GB, free: 1.629 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001679/1.105, allocations: 1.319 MB / 0.5965 GB, free: 92 kB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.487e-05/1.105, allocations: 52.56 kB / 0.5965 GB, free: 28 kB / 426.7 MB Notification: Performance of pre-optimization done (n=247): time 9.858e-06/1.105, allocations: 96 / 0.5965 GB, free: 28 kB / 426.7 MB Notification: Performance of matching and sorting (n=264): time 0.04164/1.146, allocations: 14.85 MB / 0.611 GB, free: 1.07 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.94e-05/1.147, allocations: 73.41 kB / 0.6111 GB, free: 0.9844 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004702/1.151, allocations: 2.363 MB / 0.6134 GB, free: 14.61 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000432/1.152, allocations: 25.7 kB / 0.6134 GB, free: 14.58 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002689/1.154, allocations: 2.819 MB / 0.6162 GB, free: 11.72 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001468/1.156, allocations: 0.9479 MB / 0.6171 GB, free: 10.76 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000484/1.156, allocations: 0 / 0.6171 GB, free: 10.76 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0006247/1.157, allocations: 0.571 MB / 0.6177 GB, free: 10.18 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005117/1.162, allocations: 2.358 MB / 0.62 GB, free: 7.812 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00833/1.171, allocations: 5.609 MB / 0.6254 GB, free: 0.582 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.269/1.44, allocations: 3.674 MB / 0.629 GB, free: 111.1 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001054/1.44, allocations: 33.84 kB / 0.6291 GB, free: 111.1 MB / 458.7 MB Notification: Performance of matching and sorting (n=798) (initialization): time 0.02581/1.466, allocations: 8.963 MB / 0.6378 GB, free: 110.7 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.812e-05/1.466, allocations: 54.91 kB / 0.6379 GB, free: 110.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01473/1.48, allocations: 4.483 MB / 0.6422 GB, free: 110.6 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01223/1.493, allocations: 2.054 MB / 0.6442 GB, free: 110.6 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00576/1.499, allocations: 1.381 MB / 0.6456 GB, free: 110.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007571/1.506, allocations: 4.792 MB / 0.6503 GB, free: 108 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005647/1.512, allocations: 299.7 kB / 0.6506 GB, free: 108 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001376/1.513, allocations: 350.8 kB / 0.6509 GB, free: 108 MB / 458.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): 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 prepare postOptimizeDAE: time 0.001505/1.515, allocations: 397.1 kB / 0.6513 GB, free: 107.8 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005971/1.515, allocations: 283.9 kB / 0.6515 GB, free: 107.8 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01339/1.529, allocations: 5.244 MB / 0.6567 GB, free: 107.5 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01115/1.54, allocations: 4.519 MB / 0.6611 GB, free: 107.3 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.755e-05/1.54, allocations: 0 / 0.6611 GB, free: 107.3 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.538e-05/1.54, allocations: 13.39 kB / 0.6611 GB, free: 107.3 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02986/1.57, allocations: 13.56 MB / 0.6743 GB, free: 102.4 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.191e-05/1.57, allocations: 8 kB / 0.6743 GB, free: 102.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002286/1.572, allocations: 427.6 kB / 0.6747 GB, free: 102.1 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004847/1.577, allocations: 1.182 MB / 0.6759 GB, free: 101.3 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004889/1.578, allocations: 35.22 kB / 0.6759 GB, free: 101.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004942/1.583, allocations: 4.347 MB / 0.6802 GB, free: 97.33 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008619/1.584, allocations: 1.407 MB / 0.6816 GB, free: 95.86 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01491/1.599, allocations: 8.742 MB / 0.6901 GB, free: 87.98 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007763/1.599, allocations: 339.7 kB / 0.6904 GB, free: 87.64 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006731/1.6, allocations: 25.91 kB / 0.6904 GB, free: 87.62 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00214/1.602, allocations: 163.9 kB / 0.6906 GB, free: 87.54 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005067/1.603, allocations: 171.8 kB / 0.6908 GB, free: 87.42 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003522/1.603, allocations: 84.25 kB / 0.6908 GB, free: 87.35 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002786/1.606, allocations: 1.558 MB / 0.6924 GB, free: 86 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.146e-06/1.606, allocations: 0 / 0.6924 GB, free: 86 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00626/1.612, allocations: 0.9618 MB / 0.6933 GB, free: 85.05 MB / 458.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.0006745/1.613, allocations: 170.7 kB / 0.6935 GB, free: 84.9 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01119/1.624, allocations: 6.259 MB / 0.6996 GB, free: 79.3 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.273e-05/1.624, allocations: 4 kB / 0.6996 GB, free: 79.3 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005447/1.63, allocations: 2.823 MB / 0.7023 GB, free: 76.8 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001946/1.632, allocations: 244.2 kB / 0.7026 GB, free: 76.59 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02012/1.652, allocations: 9.588 MB / 0.7119 GB, free: 68.09 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006165/1.658, allocations: 3.4 MB / 0.7152 GB, free: 65.31 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001457/1.66, allocations: 275.4 kB / 0.7155 GB, free: 65.04 MB / 458.7 MB Notification: Performance of SimCode: time 1.942e-06/1.66, allocations: 3.938 kB / 0.7155 GB, free: 65.04 MB / 458.7 MB Notification: Performance of Templates: time 0.4306/2.09, allocations: 124.9 MB / 0.8374 GB, free: 137.1 MB / 490.7 MB