Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.819/1.819, allocations: 194.8 MB / 212.3 MB, free: 3.02 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003309/0.0003309, allocations: 8 kB / 264.5 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08951/0.08986, allocations: 44.49 MB / 309 MB, free: 1.07 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4012/0.4912, allocations: 80.74 MB / 389.7 MB, free: 14.82 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002873/0.4915, allocations: 94.36 kB / 389.8 MB, free: 14.82 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1829/0.6745, allocations: 51.31 MB / 441.1 MB, free: 10.56 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.086e-06/0.6745, allocations: 0 / 441.1 MB, free: 10.56 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001245/0.6746, allocations: 59.52 kB / 441.2 MB, free: 10.51 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.007932/0.6826, allocations: 2.484 MB / 443.7 MB, free: 8.172 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.414e-05/0.6827, allocations: 8.031 kB / 443.7 MB, free: 8.164 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01524/0.6979, allocations: 1.95 MB / 445.6 MB, free: 6.211 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004719/0.7027, allocations: 1.394 MB / 447 MB, free: 5.07 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002338/0.703, allocations: 219.7 kB / 447.2 MB, free: 4.949 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001238/0.7042, allocations: 299.4 kB / 447.5 MB, free: 4.754 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03237/0.7366, allocations: 8.916 MB / 456.4 MB, free: 12.09 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001935/0.7368, allocations: 55.45 kB / 456.5 MB, free: 12.03 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007689/0.7376, allocations: 146.8 kB / 456.6 MB, free: 11.91 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002204/0.7398, allocations: 0.7887 MB / 457.4 MB, free: 11.12 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03006/0.7699, allocations: 7.137 MB / 464.6 MB, free: 3.973 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05714/0.8271, allocations: 38.04 MB / 0.4908 GB, free: 12.8 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03953/0.8667, allocations: 5.226 MB / 0.4959 GB, free: 7.391 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007755/0.8745, allocations: 3.351 MB / 0.4992 GB, free: 3.961 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.763e-05/0.8746, allocations: 42.5 kB / 0.4992 GB, free: 3.91 MB / 394.7 MB Notification: Performance of pre-optimization done (n=104): time 5.19e-06/0.8746, allocations: 4 kB / 0.4992 GB, free: 3.906 MB / 394.7 MB Notification: Performance of matching and sorting (n=104): time 0.08229/0.9569, allocations: 9.842 MB / 0.5088 GB, free: 9.918 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001159/0.9571, allocations: 195.9 kB / 0.509 GB, free: 9.684 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006396/0.9635, allocations: 2.994 MB / 0.512 GB, free: 6.668 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002294/0.9637, allocations: 33.7 kB / 0.512 GB, free: 6.629 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002415/0.9662, allocations: 2.413 MB / 0.5143 GB, free: 4.223 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007907/0.967, allocations: 485.8 kB / 0.5148 GB, free: 3.754 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003876/0.9674, allocations: 108 kB / 0.5149 GB, free: 3.648 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004271/0.9678, allocations: 0.5301 MB / 0.5154 GB, free: 3.109 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003678/0.9715, allocations: 1.486 MB / 0.5169 GB, free: 1.617 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2666/1.238, allocations: 5.011 MB / 0.5218 GB, free: 113.1 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006563/1.245, allocations: 2.69 MB / 0.5244 GB, free: 113.1 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001742/1.245, allocations: 35.19 kB / 0.5244 GB, free: 113.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=695) (initialization): time 0.01622/1.261, allocations: 6.112 MB / 0.5304 GB, free: 112.5 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001278/1.261, allocations: 58.34 kB / 0.5305 GB, free: 112.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002155/1.262, allocations: 126.3 kB / 0.5306 GB, free: 112.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002398/1.262, allocations: 184.4 kB / 0.5308 GB, free: 112.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009751/1.272, allocations: 1.508 MB / 0.5322 GB, free: 112.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000213/1.272, allocations: 245.4 kB / 0.5325 GB, free: 112.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005231/1.277, allocations: 0.7535 MB / 0.5332 GB, free: 112.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008725/1.278, allocations: 340.6 kB / 0.5335 GB, free: 112.3 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.003042/1.281, allocations: 1.561 MB / 0.535 GB, free: 112.1 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005503/1.282, allocations: 242.2 kB / 0.5353 GB, free: 112 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001589/1.283, allocations: 0.7096 MB / 0.536 GB, free: 111.9 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-05/1.283, allocations: 13.39 kB / 0.536 GB, free: 111.9 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.055e-05/1.283, allocations: 0 / 0.536 GB, free: 111.9 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.309e-05/1.283, allocations: 9.625 kB / 0.536 GB, free: 111.9 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00489/1.288, allocations: 2.273 MB / 0.5382 GB, free: 111.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.167e-05/1.288, allocations: 3.703 kB / 0.5382 GB, free: 111.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004816/1.293, allocations: 460.5 kB / 0.5387 GB, free: 111.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.132e-05/1.293, allocations: 7.156 kB / 0.5387 GB, free: 111.7 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001264/1.293, allocations: 36.64 kB / 0.5387 GB, free: 111.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.004e-05/1.293, allocations: 3.25 kB / 0.5387 GB, free: 111.7 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/1.293, allocations: 11.33 kB / 0.5387 GB, free: 111.7 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004101/1.297, allocations: 2.476 MB / 0.5411 GB, free: 111 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000624/1.298, allocations: 306.4 kB / 0.5414 GB, free: 110.8 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004627/1.299, allocations: 29.73 kB / 0.5414 GB, free: 110.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001536/1.3, allocations: 51.88 kB / 0.5415 GB, free: 110.8 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001741/1.3, allocations: 58.27 kB / 0.5416 GB, free: 110.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001165/1.3, allocations: 38.41 kB / 0.5416 GB, free: 110.8 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003699/1.304, allocations: 1.813 MB / 0.5434 GB, free: 110.6 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.12e-07/1.304, allocations: 0 / 0.5434 GB, free: 110.6 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005065/1.309, allocations: 0.8211 MB / 0.5442 GB, free: 110.6 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.0004784/1.31, allocations: 165 kB / 0.5443 GB, free: 110.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00707/1.317, allocations: 3.359 MB / 0.5476 GB, free: 110.1 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.263e-06/1.317, allocations: 1.312 kB / 0.5476 GB, free: 110.1 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001227/1.318, allocations: 0.6137 MB / 0.5482 GB, free: 109.9 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001652/1.32, allocations: 225.9 kB / 0.5484 GB, free: 109.8 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01751/1.337, allocations: 8.678 MB / 0.5569 GB, free: 105.1 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003111/1.341, allocations: 2.431 MB / 0.5593 GB, free: 104 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00109/1.342, allocations: 232.8 kB / 0.5595 GB, free: 104 MB / 410.7 MB Notification: Performance of SimCode: time 1.383e-06/1.342, allocations: 3.938 kB / 0.5595 GB, free: 104 MB / 410.7 MB Notification: Performance of Templates: time 0.07447/1.416, allocations: 38.96 MB / 0.5975 GB, free: 80.02 MB / 410.7 MB