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.PointGravityWithPointMasses.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.PointGravityWithPointMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body1.r_0.1.|body1.r_0.2.|body1.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body2.r_0.1.|body2.r_0.2.|body2.r_0.3.|body2.v_0.1.|body2.v_0.2.|body2.v_0.3.|body3.r_0.1.|body3.r_0.2.|body3.r_0.3.|body3.v_0.1.|body3.v_0.2.|body3.v_0.3.|body4.r_0.1.|body4.r_0.2.|body4.r_0.3.|body4.v_0.1.|body4.v_0.2.|body4.v_0.3.",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") Notification: Performance of loadModel(Modelica): time 1.685/1.685, allocations: 171.3 MB / 179.2 MB, free: 7.504 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.046e-05/2.065e-05, allocations: 4 kB / 222.5 MB, free: 8.691 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07075/0.0708, allocations: 38.78 MB / 261.3 MB, free: 1.832 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2898/0.3607, allocations: 74.58 MB / 335.9 MB, free: 13.75 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00027/0.361, allocations: 82.94 kB / 336 MB, free: 13.71 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1978/0.5588, allocations: 50.02 MB / 386 MB, free: 14.69 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.881e-06/0.5589, allocations: 4 kB / 386 MB, free: 14.68 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.000115/0.559, allocations: 48 kB / 386 MB, free: 14.63 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1094 * Number of variables: 1094 Notification: Performance of Generate backend data structure: time 0.006406/0.5654, allocations: 2.396 MB / 388.4 MB, free: 12.18 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.591e-05/0.5655, allocations: 8.031 kB / 388.4 MB, free: 12.17 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01108/0.5766, allocations: 1.958 MB / 390.4 MB, free: 10.21 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004105/0.5807, allocations: 1.394 MB / 391.8 MB, free: 8.77 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001903/0.5809, allocations: 96 kB / 391.9 MB, free: 8.676 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001147/0.5821, allocations: 179.9 kB / 392.1 MB, free: 8.5 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00975/0.5919, allocations: 4.13 MB / 396.2 MB, free: 4.363 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01548/0.6074, allocations: 6.835 MB / 403 MB, free: 12.63 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001767/0.6076, allocations: 47.53 kB / 403.1 MB, free: 12.58 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00073/0.6084, allocations: 28 kB / 403.1 MB, free: 12.55 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00175/0.6101, allocations: 0.7898 MB / 403.9 MB, free: 11.76 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2361/0.8463, allocations: 35.67 MB / 439.6 MB, free: 67.5 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003304/0.8496, allocations: 1.922 MB / 441.5 MB, free: 66.77 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001677/0.8513, allocations: 0.8644 MB / 442.3 MB, free: 66.72 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.096e-05/0.8514, allocations: 18.81 kB / 442.4 MB, free: 66.72 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.538e-05/0.8515, allocations: 49.84 kB / 442.4 MB, free: 66.68 MB / 346.7 MB Notification: Performance of pre-optimization done (n=112): time 5.736e-06/0.8515, allocations: 1.125 kB / 442.4 MB, free: 66.68 MB / 346.7 MB Notification: Performance of matching and sorting (n=112): time 0.02592/0.8774, allocations: 5.23 MB / 447.6 MB, free: 66.48 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.556e-05/0.8775, allocations: 217.9 kB / 447.8 MB, free: 66.23 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004348/0.8819, allocations: 2.369 MB / 450.2 MB, free: 65.94 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002011/0.8821, allocations: 25.7 kB / 450.2 MB, free: 65.91 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001616/0.8838, allocations: 2.474 MB / 452.7 MB, free: 64.57 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000649/0.8844, allocations: 498.9 kB / 453.2 MB, free: 64.3 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003842/0.8848, allocations: 0 / 453.2 MB, free: 64.3 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003534/0.8852, allocations: 0.5464 MB / 453.8 MB, free: 63.98 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00266/0.8879, allocations: 1.399 MB / 455.1 MB, free: 63.97 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004585/0.8925, allocations: 5.016 MB / 460.2 MB, free: 59.21 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004894/0.8974, allocations: 2.686 MB / 462.9 MB, free: 58.88 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001203/0.8976, allocations: 36.88 kB / 462.9 MB, free: 58.88 MB / 346.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.01292/0.9105, allocations: 5.488 MB / 468.4 MB, free: 57.06 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000108/0.9107, allocations: 61.72 kB / 468.4 MB, free: 57.06 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001512/0.9109, allocations: 136.1 kB / 468.6 MB, free: 57.05 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002123/0.9111, allocations: 189.5 kB / 468.8 MB, free: 57.05 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006924/0.918, allocations: 1.551 MB / 470.3 MB, free: 56.89 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001875/0.9183, allocations: 260.4 kB / 470.6 MB, free: 56.84 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005082/0.9233, allocations: 0.6371 MB / 471.2 MB, free: 56.46 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001014/0.9244, allocations: 356.2 kB / 471.5 MB, free: 56.41 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 598 * Number of states: 0 () * Number of discrete variables: 27 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],body4.sphereColor[3],body4.sphereColor[2],body4.sphereColor[1],body3.sphereColor[3],body3.sphereColor[2],body3.sphereColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (698): * Single equations (assignments): 695 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008779/0.9253, allocations: 425.2 kB / 472 MB, free: 56.06 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000522/0.9258, allocations: 234.8 kB / 472.2 MB, free: 55.93 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001496/0.9273, allocations: 0.6703 MB / 472.9 MB, free: 55.64 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.686e-05/0.9274, allocations: 14.25 kB / 472.9 MB, free: 55.64 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.668e-05/0.9274, allocations: 7.625 kB / 472.9 MB, free: 55.64 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.484e-05/0.9275, allocations: 3.375 kB / 472.9 MB, free: 55.64 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006975/0.9344, allocations: 2.586 MB / 475.5 MB, free: 54.57 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.627e-05/0.9345, allocations: 0.6562 kB / 475.5 MB, free: 54.57 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002834/0.9374, allocations: 383.9 kB / 475.8 MB, free: 54.56 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007409/0.9381, allocations: 139.7 kB / 476 MB, free: 54.52 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002758/0.9384, allocations: 23.52 kB / 476 MB, free: 54.52 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002041/0.9405, allocations: 2.658 MB / 478.7 MB, free: 52.02 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.976e-06/0.9405, allocations: 3.938 kB / 478.7 MB, free: 52.01 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00392/0.9445, allocations: 2.634 MB / 481.3 MB, free: 50.61 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005575/0.9451, allocations: 291.9 kB / 481.6 MB, free: 50.37 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003212/0.9454, allocations: 19.38 kB / 481.6 MB, free: 50.36 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001404/0.9468, allocations: 37.84 kB / 481.6 MB, free: 50.36 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001627/0.947, allocations: 50.92 kB / 481.7 MB, free: 50.36 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000114/0.9471, allocations: 43.17 kB / 481.7 MB, free: 50.35 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003195/0.9503, allocations: 1.524 MB / 483.3 MB, free: 49.76 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.236e-06/0.9504, allocations: 0 / 483.3 MB, free: 49.76 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.005392/0.9558, allocations: 0.7295 MB / 484 MB, free: 49.64 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 24 (body3.r_0[1],body3.r_0[2],body3.r_0[3],body3.v_0[1],body3.v_0[2],body3.v_0[3],body4.r_0[1],body4.r_0[2],body4.r_0[3],body4.v_0[1],body4.v_0[2],body4.v_0[3],body2.r_0[1],body2.r_0[2],body2.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body1.r_0[1],body1.r_0[2],body1.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 81 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004015/0.9562, allocations: 166.1 kB / 484.1 MB, free: 49.53 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.005551/0.9618, allocations: 3.157 MB / 487.3 MB, free: 47.51 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.416e-06/0.9618, allocations: 0 / 487.3 MB, free: 47.51 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001878/0.9637, allocations: 0.8806 MB / 488.2 MB, free: 46.7 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001385/0.9652, allocations: 187.9 kB / 488.4 MB, free: 46.52 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01272/0.9779, allocations: 6.48 MB / 494.8 MB, free: 40.9 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003174/0.9811, allocations: 2.418 MB / 497.3 MB, free: 39 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008006/0.982, allocations: 225.4 kB / 497.5 MB, free: 38.79 MB / 346.7 MB Notification: Performance of SimCode: time 1.805e-06/0.982, allocations: 0 / 497.5 MB, free: 38.79 MB / 346.7 MB Notification: Performance of Templates: time 0.07183/1.054, allocations: 49.17 MB / 0.5338 GB, free: 8.383 MB / 362.7 MB