Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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) 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.689/1.689, allocations: 171.1 MB / 187.3 MB, free: 1.141 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003603/0.0003605, allocations: 8 kB / 233.8 MB, free: 3.078 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08319/0.08358, allocations: 38.77 MB / 272.6 MB, free: 12.23 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3526/0.4362, allocations: 75.32 MB / 347.9 MB, free: 14.82 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000308/0.4366, allocations: 86.95 kB / 348 MB, free: 14.77 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2099/0.6465, allocations: 51.33 MB / 399.3 MB, free: 1.039 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.6466, allocations: 0 / 399.3 MB, free: 1.039 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001567/0.6467, allocations: 56 kB / 399.3 MB, free: 0.9844 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: 1094 * Number of variables: 1094 Notification: Performance of Generate backend data structure: time 0.008305/0.655, allocations: 2.478 MB / 401.8 MB, free: 14.45 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.907e-05/0.6551, allocations: 11.97 kB / 401.8 MB, free: 14.43 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01488/0.67, allocations: 1.946 MB / 403.8 MB, free: 12.48 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004953/0.675, allocations: 1.396 MB / 405.2 MB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003012/0.6754, allocations: 217.9 kB / 405.4 MB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001714/0.6771, allocations: 311.8 kB / 405.7 MB, free: 10.52 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03335/0.7105, allocations: 8.908 MB / 414.6 MB, free: 0.668 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001869/0.7107, allocations: 47.53 kB / 414.6 MB, free: 0.6211 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006867/0.7114, allocations: 147.9 kB / 414.8 MB, free: 488 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002185/0.7136, allocations: 0.8007 MB / 415.6 MB, free: 15.68 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03004/0.7437, allocations: 7.126 MB / 422.7 MB, free: 8.539 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2965/1.04, allocations: 38.01 MB / 460.7 MB, free: 58.41 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03837/1.079, allocations: 5.242 MB / 466 MB, free: 57.68 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007725/1.086, allocations: 3.337 MB / 469.3 MB, free: 56.16 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.666e-05/1.087, allocations: 54.45 kB / 469.4 MB, free: 56.12 MB / 346.7 MB Notification: Performance of pre-optimization done (n=104): time 5.22e-06/1.087, allocations: 0 / 469.4 MB, free: 56.12 MB / 346.7 MB Notification: Performance of matching and sorting (n=104): time 0.07826/1.165, allocations: 9.85 MB / 479.2 MB, free: 55.29 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.79e-05/1.165, allocations: 189.3 kB / 479.4 MB, free: 55.07 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005797/1.171, allocations: 3.001 MB / 482.4 MB, free: 54.75 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002322/1.171, allocations: 38.23 kB / 482.4 MB, free: 54.71 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001675/1.173, allocations: 2.405 MB / 484.8 MB, free: 53.32 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000614/1.173, allocations: 489.2 kB / 485.3 MB, free: 53.07 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003285/1.174, allocations: 103.6 kB / 485.4 MB, free: 53.07 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000302/1.174, allocations: 0.5331 MB / 485.9 MB, free: 52.75 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003121/1.177, allocations: 1.477 MB / 487.4 MB, free: 52.73 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005073/1.182, allocations: 5.027 MB / 492.4 MB, free: 48.12 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005602/1.188, allocations: 2.68 MB / 495.1 MB, free: 47.86 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001249/1.188, allocations: 36.72 kB / 495.2 MB, free: 47.86 MB / 346.7 MB Notification: Performance of matching and sorting (n=695) (initialization): time 0.01549/1.204, allocations: 6.118 MB / 0.4895 GB, free: 45.71 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.861e-05/1.204, allocations: 59.06 kB / 0.4896 GB, free: 45.71 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001535/1.204, allocations: 135.1 kB / 0.4897 GB, free: 45.71 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002/1.204, allocations: 182.8 kB / 0.4899 GB, free: 45.71 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009399/1.214, allocations: 1.504 MB / 0.4914 GB, free: 45.55 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003142/1.214, allocations: 249.9 kB / 0.4916 GB, free: 45.5 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005706/1.22, allocations: 0.7527 MB / 0.4923 GB, free: 45.02 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001156/1.221, allocations: 339.7 kB / 0.4927 GB, free: 44.98 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 577 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (671): * Single equations (assignments): 668 * 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.004321/1.225, allocations: 1.562 MB / 0.4942 GB, free: 44.2 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006883/1.226, allocations: 244.9 kB / 0.4944 GB, free: 43.98 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002019/1.228, allocations: 0.7126 MB / 0.4951 GB, free: 43.37 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-05/1.228, allocations: 16 kB / 0.4951 GB, free: 43.35 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.345e-05/1.228, allocations: 3.938 kB / 0.4951 GB, free: 43.35 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.394e-05/1.228, allocations: 11.27 kB / 0.4951 GB, free: 43.35 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005629/1.234, allocations: 2.264 MB / 0.4974 GB, free: 41.52 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.175e-05/1.234, allocations: 0 / 0.4974 GB, free: 41.52 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004936/1.239, allocations: 468.2 kB / 0.4978 GB, free: 41.19 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.818e-05/1.239, allocations: 4 kB / 0.4978 GB, free: 41.19 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002503/1.239, allocations: 35.92 kB / 0.4978 GB, free: 41.16 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.408e-06/1.239, allocations: 4 kB / 0.4978 GB, free: 41.16 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/1.239, allocations: 0 / 0.4978 GB, free: 41.16 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00421/1.243, allocations: 2.492 MB / 0.5003 GB, free: 38.88 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000736/1.244, allocations: 301.6 kB / 0.5006 GB, free: 38.57 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004876/1.245, allocations: 27.98 kB / 0.5006 GB, free: 38.55 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001604/1.246, allocations: 51.94 kB / 0.5006 GB, free: 38.51 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001643/1.246, allocations: 69.52 kB / 0.5007 GB, free: 38.47 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001206/1.247, allocations: 28.95 kB / 0.5007 GB, free: 38.45 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.004241/1.251, allocations: 1.815 MB / 0.5025 GB, free: 36.94 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.392e-06/1.251, allocations: 0 / 0.5025 GB, free: 36.94 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.006246/1.257, allocations: 0.8172 MB / 0.5033 GB, free: 36.13 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (81): * Single equations (assignments): 78 * 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 Backend phase and start with SimCode phase: time 0.0005573/1.258, allocations: 170.9 kB / 0.5035 GB, free: 35.97 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.007754/1.265, allocations: 3.349 MB / 0.5067 GB, free: 33.03 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.01e-05/1.266, allocations: 0 / 0.5067 GB, free: 33.03 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00133/1.267, allocations: 0.6112 MB / 0.5073 GB, free: 32.5 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001723/1.269, allocations: 217.6 kB / 0.5075 GB, free: 32.3 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01788/1.287, allocations: 8.692 MB / 0.516 GB, free: 23.8 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003816/1.29, allocations: 2.421 MB / 0.5184 GB, free: 21.36 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001093/1.292, allocations: 235.4 kB / 0.5186 GB, free: 21.13 MB / 346.7 MB Notification: Performance of SimCode: time 1.142e-06/1.292, allocations: 0 / 0.5186 GB, free: 21.13 MB / 346.7 MB Notification: Performance of Templates: time 0.3171/1.609, allocations: 38.96 MB / 0.5567 GB, free: 78.31 MB / 362.7 MB