Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.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) 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.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody") Notification: Performance of loadModel(Modelica): time 1.612/1.612, allocations: 171.3 MB / 179.2 MB, free: 164 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.784e-05/2.808e-05, allocations: 7.938 kB / 222.5 MB, free: 4.75 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2294/0.2295, allocations: 38.77 MB / 261.3 MB, free: 13 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1257/0.3553, allocations: 80.64 MB / 341.9 MB, free: 12.88 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002755/0.3556, allocations: 83.94 kB / 342 MB, free: 12.79 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4515/0.8071, allocations: 69.91 MB / 411.9 MB, free: 65.51 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.482e-06/0.8072, allocations: 0 / 411.9 MB, free: 65.51 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0003125/0.8075, allocations: 68 kB / 412 MB, free: 65.44 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: 1295 * Number of variables: 1295 Notification: Performance of Generate backend data structure: time 0.02947/0.837, allocations: 3.783 MB / 415.8 MB, free: 61.61 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 7e-05/0.8372, allocations: 8.031 kB / 415.8 MB, free: 61.6 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02022/0.8574, allocations: 2.129 MB / 417.9 MB, free: 59.46 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01292/0.8704, allocations: 4.426 MB / 422.3 MB, free: 55.02 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001944/0.8706, allocations: 116 kB / 422.4 MB, free: 54.9 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001373/0.872, allocations: 216 kB / 422.6 MB, free: 54.69 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01045/0.8825, allocations: 5.187 MB / 427.8 MB, free: 49.5 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01566/0.8982, allocations: 8.101 MB / 435.9 MB, free: 40.45 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001655/0.8984, allocations: 55.47 kB / 436 MB, free: 40.4 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008861/0.8993, allocations: 28 kB / 436 MB, free: 40.37 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001302/0.9006, allocations: 0.8725 MB / 436.9 MB, free: 39.5 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04611/0.9467, allocations: 42.17 MB / 479.1 MB, free: 12.03 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004087/0.9509, allocations: 2.292 MB / 481.4 MB, free: 9.59 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002342/0.9532, allocations: 1.271 MB / 482.6 MB, free: 8.305 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.003e-05/0.9534, allocations: 23.2 kB / 482.6 MB, free: 8.289 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.163e-05/0.9534, allocations: 47.12 kB / 482.7 MB, free: 8.234 MB / 330.7 MB Notification: Performance of pre-optimization done (n=124): time 5.199e-06/0.9534, allocations: 0 / 482.7 MB, free: 8.234 MB / 330.7 MB Notification: Performance of matching and sorting (n=131): time 0.02368/0.9771, allocations: 8.533 MB / 491.2 MB, free: 15.58 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001019/0.9773, allocations: 141.1 kB / 491.4 MB, free: 15.41 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005655/0.9829, allocations: 2.77 MB / 494.1 MB, free: 12.64 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000292/0.9833, allocations: 25.7 kB / 494.2 MB, free: 12.61 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002798/0.9861, allocations: 2.793 MB / 496.9 MB, free: 9.777 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008847/0.987, allocations: 0.5324 MB / 497.5 MB, free: 9.238 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003833/0.9874, allocations: 3.938 kB / 497.5 MB, free: 9.234 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000533/0.988, allocations: 0.5462 MB / 498 MB, free: 8.68 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003958/0.9919, allocations: 1.768 MB / 499.8 MB, free: 6.906 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2055/1.197, allocations: 5.285 MB / 0.4932 GB, free: 86.09 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006041/1.204, allocations: 3.043 MB / 0.4962 GB, free: 86.08 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.283e-05/1.204, allocations: 34.12 kB / 0.4963 GB, free: 86.08 MB / 346.7 MB Notification: Performance of matching and sorting (n=725) (initialization): time 0.0171/1.221, allocations: 6.96 MB / 0.503 GB, free: 85.62 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.462e-05/1.221, allocations: 59.05 kB / 0.5031 GB, free: 85.62 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005675/1.227, allocations: 2.335 MB / 0.5054 GB, free: 85.54 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004271/1.231, allocations: 1.121 MB / 0.5065 GB, free: 85.51 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004951/1.236, allocations: 1.276 MB / 0.5077 GB, free: 85.39 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00566/1.242, allocations: 4.531 MB / 0.5121 GB, free: 82.96 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00554/1.247, allocations: 275.2 kB / 0.5124 GB, free: 82.96 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001112/1.248, allocations: 357.1 kB / 0.5128 GB, free: 82.96 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 580 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (687): * Single equations (assignments): 678 * Array equations: 5 * 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.001085/1.25, allocations: 419.3 kB / 0.5132 GB, free: 82.73 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006197/1.25, allocations: 277.9 kB / 0.5134 GB, free: 82.73 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006429/1.257, allocations: 2.58 MB / 0.5159 GB, free: 82.52 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005094/1.262, allocations: 2.21 MB / 0.5181 GB, free: 81.83 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.739e-05/1.262, allocations: 0 / 0.5181 GB, free: 81.83 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.252e-05/1.262, allocations: 6.406 kB / 0.5181 GB, free: 81.83 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01154/1.273, allocations: 5.063 MB / 0.523 GB, free: 79.82 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.83e-05/1.273, allocations: 1.75 kB / 0.523 GB, free: 79.82 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001497/1.275, allocations: 222.6 kB / 0.5233 GB, free: 79.8 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003767/1.279, allocations: 1.016 MB / 0.5243 GB, free: 79.59 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002983/1.279, allocations: 20.45 kB / 0.5243 GB, free: 79.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006278/1.285, allocations: 4.898 MB / 0.5291 GB, free: 76.43 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0009349/1.286, allocations: 1.405 MB / 0.5304 GB, free: 75.05 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009154/1.296, allocations: 4.863 MB / 0.5352 GB, free: 73.18 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008273/1.296, allocations: 337.8 kB / 0.5355 GB, free: 72.96 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005252/1.297, allocations: 14.09 kB / 0.5355 GB, free: 72.95 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001779/1.299, allocations: 106.2 kB / 0.5356 GB, free: 72.95 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000294/1.299, allocations: 81.81 kB / 0.5357 GB, free: 72.94 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000154/1.299, allocations: 38.91 kB / 0.5357 GB, free: 72.93 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003316/1.303, allocations: 1.827 MB / 0.5375 GB, free: 72.13 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.13e-06/1.303, allocations: 0 / 0.5375 GB, free: 72.13 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.006026/1.309, allocations: 0.8452 MB / 0.5383 GB, free: 71.3 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($STATESET0.x[3],$STATESET0.x[2],$STATESET0.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (99): * Single equations (assignments): 92 * 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.0004906/1.309, allocations: 148.1 kB / 0.5385 GB, free: 71.16 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.009257/1.318, allocations: 4.85 MB / 0.5432 GB, free: 66.81 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.641e-06/1.319, allocations: 0 / 0.5432 GB, free: 66.81 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004192/1.323, allocations: 1.977 MB / 0.5451 GB, free: 65.08 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002039/1.325, allocations: 289 kB / 0.5454 GB, free: 64.83 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01493/1.34, allocations: 7.22 MB / 0.5525 GB, free: 58.47 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004635/1.344, allocations: 2.936 MB / 0.5553 GB, free: 56.21 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00097/1.345, allocations: 245.5 kB / 0.5556 GB, free: 55.99 MB / 346.7 MB Notification: Performance of SimCode: time 2.023e-06/1.345, allocations: 0 / 0.5556 GB, free: 55.99 MB / 346.7 MB Notification: Performance of Templates: time 0.3464/1.692, allocations: 107 MB / 0.66 GB, free: 90.86 MB / 362.7 MB