Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") Notification: Performance of loadModel(Modelica): time 1.895/1.895, allocations: 194.9 MB / 211.7 MB, free: 2.98 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003668/0.0003669, allocations: 12 kB / 263.9 MB, free: 13.54 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08244/0.08283, allocations: 44.5 MB / 308.4 MB, free: 0.9727 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3411/0.424, allocations: 80.74 MB / 389.2 MB, free: 18.73 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002562/0.4243, allocations: 96.2 kB / 389.3 MB, free: 18.73 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1785/0.6028, allocations: 51.17 MB / 440.5 MB, free: 15.54 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.488e-06/0.6029, allocations: 0 / 440.5 MB, free: 15.54 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001303/0.603, allocations: 52 kB / 440.5 MB, free: 15.49 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.007795/0.6108, allocations: 2.485 MB / 443 MB, free: 13.14 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.364e-05/0.6109, allocations: 8.031 kB / 443 MB, free: 13.13 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01159/0.6225, allocations: 1.954 MB / 445 MB, free: 11.17 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004198/0.6267, allocations: 1.382 MB / 446.3 MB, free: 10.03 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003159/0.6271, allocations: 229.3 kB / 446.6 MB, free: 9.883 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001405/0.6285, allocations: 296.8 kB / 446.8 MB, free: 9.668 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02705/0.6556, allocations: 8.891 MB / 455.7 MB, free: 1.215 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002159/0.6558, allocations: 55.53 kB / 455.8 MB, free: 1.16 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001099/0.657, allocations: 151.8 kB / 455.9 MB, free: 1.012 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001991/0.659, allocations: 0.7891 MB / 456.7 MB, free: 224 kB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02315/0.6822, allocations: 7.137 MB / 463.9 MB, free: 9.066 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05527/0.7375, allocations: 38.03 MB / 0.4901 GB, free: 1.75 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02595/0.7635, allocations: 5.246 MB / 0.4953 GB, free: 12.32 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007461/0.771, allocations: 3.345 MB / 0.4985 GB, free: 8.883 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.269e-05/0.7711, allocations: 46.56 kB / 0.4986 GB, free: 8.828 MB / 394.7 MB Notification: Performance of pre-optimization done (n=104): time 7.613e-06/0.7711, allocations: 0 / 0.4986 GB, free: 8.828 MB / 394.7 MB Notification: Performance of matching and sorting (n=104): time 0.05327/0.8244, allocations: 9.852 MB / 0.5082 GB, free: 14.83 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001381/0.8246, allocations: 191.9 kB / 0.5084 GB, free: 14.6 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006608/0.8312, allocations: 2.684 MB / 0.511 GB, free: 11.9 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002002/0.8314, allocations: 37.7 kB / 0.511 GB, free: 11.86 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002792/0.8342, allocations: 2.416 MB / 0.5134 GB, free: 9.406 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008421/0.8351, allocations: 478.3 kB / 0.5138 GB, free: 8.934 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005909/0.8357, allocations: 104 kB / 0.5139 GB, free: 8.832 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000666/0.8364, allocations: 0.5418 MB / 0.5145 GB, free: 8.281 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003867/0.8403, allocations: 1.474 MB / 0.5159 GB, free: 6.801 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2339/1.074, allocations: 4.999 MB / 0.5208 GB, free: 112.3 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005443/1.08, allocations: 2.684 MB / 0.5234 GB, free: 112.3 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001167/1.08, allocations: 36.75 kB / 0.5235 GB, free: 112.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=695) (initialization): time 0.01423/1.094, allocations: 6.106 MB / 0.5294 GB, free: 111.8 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000126/1.094, allocations: 60.38 kB / 0.5295 GB, free: 111.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002046/1.095, allocations: 125.9 kB / 0.5296 GB, free: 111.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002708/1.095, allocations: 184 kB / 0.5298 GB, free: 111.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007242/1.102, allocations: 1.508 MB / 0.5312 GB, free: 111.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002889/1.102, allocations: 247.5 kB / 0.5315 GB, free: 111.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005188/1.108, allocations: 0.7534 MB / 0.5322 GB, free: 111.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001065/1.109, allocations: 338 kB / 0.5325 GB, free: 111.6 MB / 410.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.003452/1.112, allocations: 1.558 MB / 0.5341 GB, free: 111.4 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005558/1.113, allocations: 248.1 kB / 0.5343 GB, free: 111.3 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001758/1.115, allocations: 0.7011 MB / 0.535 GB, free: 111.2 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.782e-05/1.115, allocations: 12.88 kB / 0.535 GB, free: 111.2 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.192e-05/1.115, allocations: 3.969 kB / 0.535 GB, free: 111.2 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.786e-05/1.115, allocations: 7.453 kB / 0.535 GB, free: 111.2 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005709/1.12, allocations: 2.275 MB / 0.5372 GB, free: 110.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.727e-05/1.12, allocations: 3.281 kB / 0.5372 GB, free: 110.9 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00336/1.124, allocations: 461.1 kB / 0.5377 GB, free: 110.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.951e-05/1.124, allocations: 3.531 kB / 0.5377 GB, free: 110.9 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000243/1.124, allocations: 39.2 kB / 0.5377 GB, free: 110.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.599e-06/1.124, allocations: 3.625 kB / 0.5377 GB, free: 110.9 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.708e-06/1.124, allocations: 11.7 kB / 0.5377 GB, free: 110.9 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00439/1.129, allocations: 2.588 MB / 0.5402 GB, free: 110.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007383/1.129, allocations: 310.2 kB / 0.5405 GB, free: 109.9 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000452/1.13, allocations: 28.55 kB / 0.5406 GB, free: 109.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00142/1.131, allocations: 51.59 kB / 0.5406 GB, free: 109.9 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002148/1.132, allocations: 57.25 kB / 0.5407 GB, free: 109.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001146/1.132, allocations: 32.58 kB / 0.5407 GB, free: 109.9 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004095/1.136, allocations: 1.813 MB / 0.5425 GB, free: 109.7 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.073e-06/1.136, allocations: 0 / 0.5425 GB, free: 109.7 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005637/1.141, allocations: 0.8137 MB / 0.5433 GB, free: 109.7 MB / 410.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.0004715/1.142, allocations: 176.6 kB / 0.5434 GB, free: 109.6 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006404/1.148, allocations: 3.352 MB / 0.5467 GB, free: 109.2 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.414e-06/1.148, allocations: 0 / 0.5467 GB, free: 109.2 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001182/1.15, allocations: 0.6131 MB / 0.5473 GB, free: 109.1 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00159/1.151, allocations: 229.6 kB / 0.5475 GB, free: 109 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0158/1.167, allocations: 8.64 MB / 0.556 GB, free: 104.3 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003729/1.171, allocations: 2.431 MB / 0.5583 GB, free: 103.2 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008711/1.172, allocations: 228 kB / 0.5586 GB, free: 103.2 MB / 410.7 MB Notification: Performance of SimCode: time 1.787e-06/1.172, allocations: 0 / 0.5586 GB, free: 103.2 MB / 410.7 MB Notification: Performance of Templates: time 0.05936/1.231, allocations: 38.98 MB / 0.5966 GB, free: 79.98 MB / 410.7 MB