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 2.056/2.056, allocations: 194.8 MB / 211.6 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003605/0.0003608, allocations: 8 kB / 263.9 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08408/0.08447, allocations: 44.51 MB / 308.4 MB, free: 1.027 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.03217/0.1167, allocations: 23.57 MB / 331.9 MB, free: 9.379 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01402/0.1308, allocations: 5.419 MB / 337.4 MB, free: 3.949 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00429/0.1351, allocations: 115.8 kB / 337.5 MB, free: 3.836 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003717/0.1388, allocations: 1.17 MB / 338.6 MB, free: 2.66 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01099/0.1499, allocations: 3.191 MB / 341.8 MB, free: 15.46 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001479/0.1514, allocations: 207.6 kB / 342 MB, free: 15.26 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002871/0.1543, allocations: 1.291 MB / 343.3 MB, free: 13.96 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003391/0.1577, allocations: 1.841 MB / 345.2 MB, free: 12.08 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001046/0.1588, allocations: 0.5916 MB / 345.8 MB, free: 11.49 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001495/0.1604, allocations: 0.8292 MB / 346.6 MB, free: 10.66 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000332/0.1607, allocations: 84 kB / 346.7 MB, free: 10.57 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001349/0.1621, allocations: 0.5188 MB / 347.2 MB, free: 10.05 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001371/0.1635, allocations: 0.9819 MB / 348.2 MB, free: 9.07 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007403/0.1642, allocations: 0.5468 MB / 348.7 MB, free: 8.516 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004902/0.1692, allocations: 3.203 MB / 351.9 MB, free: 5.305 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.772e-06/0.1692, allocations: 0 / 351.9 MB, free: 5.305 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.452e-06/0.1692, allocations: 0 / 351.9 MB, free: 5.305 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.132e-05/0.1693, allocations: 4 kB / 351.9 MB, free: 5.301 MB / 298.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.004925/0.1743, allocations: 2.395 MB / 354.3 MB, free: 2.848 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.1743, allocations: 8.031 kB / 354.3 MB, free: 2.84 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009917/0.1842, allocations: 2.106 MB / 356.4 MB, free: 0.7266 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002799/0.1871, allocations: 1.114 MB / 357.5 MB, free: 15.56 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001812/0.1873, allocations: 151.6 kB / 357.7 MB, free: 15.42 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008248/0.1881, allocations: 199.8 kB / 357.9 MB, free: 15.22 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02323/0.2114, allocations: 8.535 MB / 366.4 MB, free: 6.086 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001271/0.2116, allocations: 39.66 kB / 366.5 MB, free: 6.047 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003898/0.212, allocations: 103.8 kB / 366.6 MB, free: 5.945 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003742/0.2157, allocations: 1.647 MB / 368.2 MB, free: 4.301 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2293/0.445, allocations: 7.111 MB / 375.3 MB, free: 59.48 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03777/0.4828, allocations: 29.85 MB / 405.2 MB, free: 36.56 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02646/0.5093, allocations: 4.966 MB / 410.1 MB, free: 33.3 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005677/0.515, allocations: 3.42 MB / 413.6 MB, free: 29.81 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.911e-05/0.5151, allocations: 38.56 kB / 413.6 MB, free: 29.77 MB / 314.7 MB Notification: Performance of pre-optimization done (n=104): time 5.69e-06/0.5151, allocations: 0 / 413.6 MB, free: 29.77 MB / 314.7 MB Notification: Performance of matching and sorting (n=104): time 0.0509/0.566, allocations: 9.482 MB / 423.1 MB, free: 20.14 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.388e-05/0.5662, allocations: 195.9 kB / 423.3 MB, free: 19.91 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004732/0.5709, allocations: 2.994 MB / 426.3 MB, free: 16.89 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001698/0.5711, allocations: 41.7 kB / 426.3 MB, free: 16.84 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001488/0.5726, allocations: 2.406 MB / 428.7 MB, free: 14.45 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005559/0.5732, allocations: 483.2 kB / 429.2 MB, free: 13.98 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003152/0.5735, allocations: 105.2 kB / 429.3 MB, free: 13.88 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002954/0.5738, allocations: 0.5339 MB / 429.8 MB, free: 13.33 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002775/0.5766, allocations: 1.576 MB / 431.4 MB, free: 11.75 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004566/0.5812, allocations: 5.111 MB / 436.5 MB, free: 4.844 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004723/0.586, allocations: 2.799 MB / 439.3 MB, free: 2.047 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.657e-05/0.5861, allocations: 36 kB / 439.3 MB, free: 2.012 MB / 314.7 MB Notification: Performance of matching and sorting (n=695) (initialization): time 0.01473/0.6009, allocations: 6.296 MB / 445.6 MB, free: 11.7 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001361/0.6011, allocations: 64.06 kB / 445.7 MB, free: 11.64 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001921/0.6013, allocations: 128 kB / 445.8 MB, free: 11.52 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002551/0.6015, allocations: 180 kB / 446 MB, free: 11.34 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006634/0.6082, allocations: 1.435 MB / 447.4 MB, free: 9.902 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003008/0.6085, allocations: 247 kB / 447.7 MB, free: 9.66 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005054/0.6136, allocations: 0.7354 MB / 448.4 MB, free: 8.922 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009445/0.6146, allocations: 344 kB / 448.8 MB, free: 8.586 MB / 330.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.00349/0.6181, allocations: 1.56 MB / 450.3 MB, free: 7.016 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006034/0.6187, allocations: 244.9 kB / 450.6 MB, free: 6.773 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001818/0.6206, allocations: 0.805 MB / 451.4 MB, free: 5.961 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.486e-05/0.6206, allocations: 13.25 kB / 451.4 MB, free: 5.949 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.243e-05/0.6207, allocations: 11.88 kB / 451.4 MB, free: 5.938 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.54e-05/0.6207, allocations: 3.984 kB / 451.4 MB, free: 5.934 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005659/0.6263, allocations: 2.355 MB / 453.7 MB, free: 3.543 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.656e-05/0.6264, allocations: 4 kB / 453.7 MB, free: 3.539 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003101/0.6295, allocations: 399.5 kB / 454.1 MB, free: 3.148 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.768e-05/0.6296, allocations: 4 kB / 454.1 MB, free: 3.145 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001814/0.6298, allocations: 35.97 kB / 454.2 MB, free: 3.109 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.026e-05/0.6298, allocations: 4 kB / 454.2 MB, free: 3.105 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.085e-06/0.6298, allocations: 4 kB / 454.2 MB, free: 3.102 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004674/0.6345, allocations: 2.731 MB / 456.9 MB, free: 352 kB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007179/0.6353, allocations: 305.6 kB / 457.2 MB, free: 24 kB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004214/0.6357, allocations: 32.03 kB / 457.2 MB, free: 15.99 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001263/0.637, allocations: 41.36 kB / 457.3 MB, free: 15.95 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000151/0.6372, allocations: 51.95 kB / 457.3 MB, free: 15.9 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001157/0.6373, allocations: 37.16 kB / 457.4 MB, free: 15.87 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003913/0.6412, allocations: 1.809 MB / 459.2 MB, free: 14.05 MB / 346.7 MB Notification: Performance of sort global known variables: time 9.68e-07/0.6413, allocations: 0 / 459.2 MB, free: 14.05 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.005248/0.6465, allocations: 0.8215 MB / 460 MB, free: 13.24 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.0005007/0.6471, allocations: 159.2 kB / 460.2 MB, free: 13.08 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.007705/0.6548, allocations: 3.536 MB / 463.7 MB, free: 9.574 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.255e-06/0.6548, allocations: 0 / 463.7 MB, free: 9.574 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001394/0.6562, allocations: 0.6923 MB / 464.4 MB, free: 8.883 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001618/0.6579, allocations: 248.5 kB / 464.6 MB, free: 8.645 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01784/0.6757, allocations: 8.673 MB / 473.3 MB, free: 15.91 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004432/0.6802, allocations: 2.429 MB / 475.7 MB, free: 13.45 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009248/0.6812, allocations: 227.4 kB / 475.9 MB, free: 13.23 MB / 362.7 MB Notification: Performance of SimCode: time 1.827e-06/0.6812, allocations: 4 kB / 476 MB, free: 13.23 MB / 362.7 MB Notification: Performance of Templates: time 0.07486/0.7561, allocations: 38.92 MB / 0.5028 GB, free: 6.305 MB / 394.7 MB