Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.body.frame_a.r_0.1.|body.body.frame_a.r_0.2.|body.body.frame_a.r_0.3.|body.body.w_a.1.|body.body.w_a.2.|body.body.w_a.3.|body.v_0.1.|body.v_0.2.|body.v_0.3.",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody") Notification: Performance of loadModel(Modelica): time 1.804/1.804, allocations: 194.8 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003349/0.0003349, allocations: 15.98 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08905/0.0894, allocations: 44.49 MB / 309 MB, free: 1.059 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3983/0.4877, allocations: 87.02 MB / 396 MB, free: 14.76 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002923/0.4881, allocations: 93.66 kB / 396.1 MB, free: 14.76 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.271/0.7591, allocations: 72.12 MB / 468.2 MB, free: 3.219 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.444e-06/0.7592, allocations: 0 / 468.2 MB, free: 3.219 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002277/0.7594, allocations: 68 kB / 468.3 MB, free: 3.152 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1295 * Number of variables: 1295 Notification: Performance of Generate backend data structure: time 0.02051/0.7799, allocations: 3.996 MB / 472.3 MB, free: 15.12 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.555e-05/0.78, allocations: 8.031 kB / 472.3 MB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01639/0.7964, allocations: 2.144 MB / 474.4 MB, free: 12.96 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01736/0.8138, allocations: 4.464 MB / 478.9 MB, free: 8.488 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002988/0.8142, allocations: 277.8 kB / 479.2 MB, free: 8.242 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001223/0.8154, allocations: 358.2 kB / 479.5 MB, free: 7.914 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02363/0.839, allocations: 9.104 MB / 488.6 MB, free: 13.92 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001877/0.8393, allocations: 55.47 kB / 488.7 MB, free: 13.86 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007562/0.84, allocations: 182.1 kB / 488.8 MB, free: 13.71 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001914/0.842, allocations: 0.8724 MB / 489.7 MB, free: 12.84 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02208/0.8641, allocations: 7.351 MB / 497.1 MB, free: 5.477 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3432/1.207, allocations: 43.17 MB / 0.5276 GB, free: 69.43 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01227/1.22, allocations: 3.157 MB / 0.5307 GB, free: 68.76 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01275/1.232, allocations: 6.053 MB / 0.5366 GB, free: 67.21 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.628e-05/1.233, allocations: 50.34 kB / 0.5366 GB, free: 67.17 MB / 410.7 MB Notification: Performance of pre-optimization done (n=118): time 5.37e-06/1.233, allocations: 0 / 0.5366 GB, free: 67.17 MB / 410.7 MB Notification: Performance of matching and sorting (n=125): time 0.03844/1.271, allocations: 10.91 MB / 0.5473 GB, free: 64.28 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001291/1.272, allocations: 1.636 MB / 0.5489 GB, free: 62.76 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006256/1.279, allocations: 3.52 MB / 0.5523 GB, free: 62.43 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003493/1.279, allocations: 42.38 kB / 0.5523 GB, free: 62.4 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001703/1.281, allocations: 2.728 MB / 0.555 GB, free: 60.85 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007213/1.281, allocations: 0.5173 MB / 0.5555 GB, free: 60.57 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003694/1.282, allocations: 108.5 kB / 0.5556 GB, free: 60.57 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002987/1.282, allocations: 0.5382 MB / 0.5561 GB, free: 60.25 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003632/1.286, allocations: 1.863 MB / 0.558 GB, free: 60.23 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005415/1.291, allocations: 5.305 MB / 0.5631 GB, free: 55.79 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005992/1.297, allocations: 3.075 MB / 0.5661 GB, free: 55.76 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.469e-05/1.297, allocations: 39.5 kB / 0.5662 GB, free: 55.76 MB / 410.7 MB Notification: Performance of matching and sorting (n=695) (initialization): time 0.02721/1.325, allocations: 8.248 MB / 0.5742 GB, free: 55.38 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.664e-05/1.325, allocations: 60.19 kB / 0.5743 GB, free: 55.38 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01567/1.34, allocations: 3.095 MB / 0.5773 GB, free: 54.61 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01594/1.356, allocations: 1.945 MB / 0.5792 GB, free: 54.39 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006498/1.363, allocations: 1.223 MB / 0.5804 GB, free: 54.24 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01213/1.375, allocations: 5.959 MB / 0.5862 GB, free: 50.57 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005911/1.381, allocations: 369.4 kB / 0.5866 GB, free: 50.47 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006637/1.382, allocations: 345.9 kB / 0.5869 GB, free: 50.43 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 556 * Number of states: 0 () * Number of discrete variables: 33 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[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 (657): * Single equations (assignments): 648 * Array equations: 5 * 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.003753/1.385, allocations: 1.822 MB / 0.5887 GB, free: 49.55 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006661/1.386, allocations: 298.4 kB / 0.589 GB, free: 49.38 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007924/1.394, allocations: 2.666 MB / 0.5916 GB, free: 48.45 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006667/1.401, allocations: 2.264 MB / 0.5938 GB, free: 47.71 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.2e-05/1.401, allocations: 3.562 kB / 0.5938 GB, free: 47.71 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-05/1.401, allocations: 3.375 kB / 0.5938 GB, free: 47.71 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006861/1.408, allocations: 3.351 MB / 0.5971 GB, free: 46.47 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-05/1.408, allocations: 0 / 0.5971 GB, free: 46.47 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001775/1.41, allocations: 202.4 kB / 0.5973 GB, free: 46.46 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004989/1.415, allocations: 1.045 MB / 0.5983 GB, free: 46.24 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001676/1.415, allocations: 39.34 kB / 0.5983 GB, free: 46.22 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007817/1.423, allocations: 5.076 MB / 0.6033 GB, free: 42.88 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001054/1.424, allocations: 1.489 MB / 0.6047 GB, free: 41.42 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01106/1.435, allocations: 4.806 MB / 0.6094 GB, free: 37.99 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000913/1.436, allocations: 362.8 kB / 0.6098 GB, free: 37.62 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005949/1.436, allocations: 27.16 kB / 0.6098 GB, free: 37.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002278/1.439, allocations: 127.4 kB / 0.6099 GB, free: 37.53 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002692/1.439, allocations: 77.66 kB / 0.61 GB, free: 37.49 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001431/1.439, allocations: 42.39 kB / 0.61 GB, free: 37.45 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004061/1.443, allocations: 2.171 MB / 0.6121 GB, free: 35.67 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.51e-07/1.443, allocations: 0 / 0.6121 GB, free: 35.67 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005614/1.449, allocations: 0.945 MB / 0.6131 GB, free: 34.74 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.v_0[1],body.v_0[2],body.v_0[3],body.body.frame_a.r_0[1],body.body.frame_a.r_0[2],body.body.frame_a.r_0[3],body.body.w_a[1],body.body.w_a[2],body.body.w_a[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 (93): * Single equations (assignments): 86 * Array equations: 3 * 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 {(3,100.0%),(4,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.0005202/1.449, allocations: 160.3 kB / 0.6132 GB, free: 34.58 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01199/1.461, allocations: 5.099 MB / 0.6182 GB, free: 30.16 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/1.461, allocations: 4 kB / 0.6182 GB, free: 30.16 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005746/1.467, allocations: 2.008 MB / 0.6202 GB, free: 28.42 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002531/1.47, allocations: 346.6 kB / 0.6205 GB, free: 28.12 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01817/1.488, allocations: 10.08 MB / 0.6303 GB, free: 19 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003702/1.492, allocations: 2.933 MB / 0.6332 GB, free: 16.74 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001249/1.493, allocations: 251 kB / 0.6334 GB, free: 16.51 MB / 410.7 MB Notification: Performance of SimCode: time 1.322e-06/1.493, allocations: 0 / 0.6334 GB, free: 16.51 MB / 410.7 MB Notification: Performance of Templates: time 0.4283/1.921, allocations: 109 MB / 0.7399 GB, free: 108.7 MB / 442.7 MB