Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_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_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") Notification: Performance of loadModel(Modelica): time 1.878/1.878, allocations: 171.1 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005058/0.000506, allocations: 8 kB / 233.9 MB, free: 2.379 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09115/0.0917, allocations: 38.78 MB / 272.6 MB, free: 11.52 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.358/0.4498, allocations: 75.31 MB / 348 MB, free: 14.12 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003136/0.4502, allocations: 91.98 kB / 348 MB, free: 14.07 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.215/0.6652, allocations: 51.32 MB / 399.4 MB, free: 416 kB / 314.7 MB Notification: Performance of FrontEnd: time 2.915e-06/0.6652, allocations: 0 / 399.4 MB, free: 416 kB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001424/0.6654, allocations: 52 kB / 399.4 MB, free: 364 kB / 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.009339/0.6747, allocations: 2.474 MB / 401.9 MB, free: 13.82 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.538e-05/0.6748, allocations: 8.031 kB / 401.9 MB, free: 13.81 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02179/0.6966, allocations: 1.954 MB / 403.8 MB, free: 11.85 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006811/0.7035, allocations: 1.396 MB / 405.2 MB, free: 10.41 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000436/0.704, allocations: 221.9 kB / 405.5 MB, free: 10.19 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002163/0.7062, allocations: 307.8 kB / 405.8 MB, free: 9.891 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04519/0.7514, allocations: 8.888 MB / 414.6 MB, free: 60 kB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002169/0.7517, allocations: 59.47 kB / 414.7 MB, free: 0 / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00115/0.7529, allocations: 147.9 kB / 414.8 MB, free: 15.86 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002557/0.7554, allocations: 0.7851 MB / 415.6 MB, free: 15.07 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03148/0.7869, allocations: 7.137 MB / 422.8 MB, free: 7.922 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.295/1.082, allocations: 38.02 MB / 460.8 MB, free: 57.8 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03938/1.121, allocations: 5.242 MB / 466 MB, free: 57.07 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007747/1.129, allocations: 3.345 MB / 469.4 MB, free: 55.55 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.008e-05/1.129, allocations: 51.2 kB / 469.4 MB, free: 55.51 MB / 346.7 MB Notification: Performance of pre-optimization done (n=104): time 5.039e-06/1.129, allocations: 2.781 kB / 469.4 MB, free: 55.51 MB / 346.7 MB Notification: Performance of matching and sorting (n=104): time 0.115/1.244, allocations: 9.845 MB / 479.3 MB, free: 54.67 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000102/1.245, allocations: 194.7 kB / 479.5 MB, free: 54.45 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00913/1.254, allocations: 3.002 MB / 482.5 MB, free: 54.13 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002968/1.254, allocations: 36.14 kB / 482.5 MB, free: 54.1 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002684/1.257, allocations: 2.397 MB / 484.9 MB, free: 52.77 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008533/1.258, allocations: 484.7 kB / 485.4 MB, free: 52.52 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005484/1.258, allocations: 102.5 kB / 485.5 MB, free: 52.52 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0006078/1.259, allocations: 0.5814 MB / 486.1 MB, free: 52.2 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004874/1.264, allocations: 1.479 MB / 487.5 MB, free: 52.19 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005984/1.27, allocations: 5.004 MB / 492.5 MB, free: 47.56 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005924/1.276, allocations: 2.682 MB / 495.2 MB, free: 47.18 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001193/1.276, allocations: 35.69 kB / 495.3 MB, free: 47.18 MB / 346.7 MB Notification: Performance of matching and sorting (n=695) (initialization): time 0.01572/1.292, allocations: 6.17 MB / 0.4897 GB, free: 44.98 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000119/1.292, allocations: 58.25 kB / 0.4897 GB, free: 44.98 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002047/1.292, allocations: 128.8 kB / 0.4898 GB, free: 44.98 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002061/1.292, allocations: 182.4 kB / 0.49 GB, free: 44.98 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009705/1.302, allocations: 1.509 MB / 0.4915 GB, free: 44.82 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002566/1.302, allocations: 246.9 kB / 0.4917 GB, free: 44.77 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005713/1.308, allocations: 0.7477 MB / 0.4925 GB, free: 44.3 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001186/1.309, allocations: 341.7 kB / 0.4928 GB, free: 44.25 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.003734/1.313, allocations: 1.561 MB / 0.4943 GB, free: 43.44 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005946/1.314, allocations: 247.7 kB / 0.4945 GB, free: 43.2 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002065/1.316, allocations: 0.7044 MB / 0.4952 GB, free: 42.59 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.997e-05/1.316, allocations: 16 kB / 0.4953 GB, free: 42.57 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.5e-05/1.316, allocations: 1.188 kB / 0.4953 GB, free: 42.57 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.909e-05/1.316, allocations: 11.47 kB / 0.4953 GB, free: 42.57 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006617/1.322, allocations: 2.267 MB / 0.4975 GB, free: 40.73 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.16e-05/1.323, allocations: 0 / 0.4975 GB, free: 40.73 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004977/1.328, allocations: 467.5 kB / 0.4979 GB, free: 40.41 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.949e-05/1.328, allocations: 4 kB / 0.4979 GB, free: 40.4 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000248/1.328, allocations: 43.59 kB / 0.498 GB, free: 40.37 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.277e-06/1.328, allocations: 4 kB / 0.498 GB, free: 40.37 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/1.328, allocations: 3.688 kB / 0.498 GB, free: 40.37 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004356/1.332, allocations: 2.494 MB / 0.5004 GB, free: 38.09 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008004/1.333, allocations: 301.5 kB / 0.5007 GB, free: 37.78 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005629/1.334, allocations: 27.84 kB / 0.5007 GB, free: 37.76 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001841/1.336, allocations: 52.88 kB / 0.5008 GB, free: 37.72 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002421/1.336, allocations: 65.55 kB / 0.5008 GB, free: 37.68 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001582/1.336, allocations: 27.7 kB / 0.5009 GB, free: 37.66 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0056/1.342, allocations: 1.813 MB / 0.5026 GB, free: 36.15 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.333e-06/1.342, allocations: 0 / 0.5026 GB, free: 36.15 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.008452/1.35, allocations: 0.8161 MB / 0.5034 GB, free: 35.34 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.0006855/1.351, allocations: 167.6 kB / 0.5036 GB, free: 35.18 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01033/1.361, allocations: 3.35 MB / 0.5069 GB, free: 32.25 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.897e-06/1.361, allocations: 0 / 0.5069 GB, free: 32.25 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001921/1.363, allocations: 0.6084 MB / 0.5075 GB, free: 31.72 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002723/1.366, allocations: 231.9 kB / 0.5077 GB, free: 31.51 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02491/1.391, allocations: 8.36 MB / 0.5158 GB, free: 23.39 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005693/1.397, allocations: 2.421 MB / 0.5182 GB, free: 20.95 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.009793/1.407, allocations: 1.625 MB / 0.5198 GB, free: 19.32 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001219/1.408, allocations: 187.4 kB / 0.52 GB, free: 19.13 MB / 346.7 MB Notification: Performance of SimCode: time 1.222e-06/1.408, allocations: 0 / 0.52 GB, free: 19.13 MB / 346.7 MB Notification: Performance of Templates: time 0.08176/1.49, allocations: 19.94 MB / 0.5394 GB, free: 15.48 MB / 362.7 MB