Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_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_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") Notification: Performance of loadModel(Modelica): time 1.916/1.916, allocations: 194.8 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003415/0.0003417, allocations: 8 kB / 264.6 MB, free: 12.93 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.1201, allocations: 44.5 MB / 309.1 MB, free: 368 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4118/0.532, allocations: 80.74 MB / 389.8 MB, free: 15.38 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002499/0.5323, allocations: 87.84 kB / 389.9 MB, free: 15.38 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1925/0.7248, allocations: 51.32 MB / 441.2 MB, free: 10.26 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.644e-06/0.7249, allocations: 0 / 441.2 MB, free: 10.26 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001398/0.725, allocations: 56 kB / 441.3 MB, free: 10.2 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.008407/0.7334, allocations: 2.483 MB / 443.7 MB, free: 7.871 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/0.7335, allocations: 8.031 kB / 443.7 MB, free: 7.863 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01524/0.7488, allocations: 1.95 MB / 445.7 MB, free: 5.91 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004909/0.7537, allocations: 1.389 MB / 447.1 MB, free: 4.77 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002607/0.754, allocations: 223.3 kB / 447.3 MB, free: 4.648 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00145/0.7555, allocations: 300.6 kB / 447.6 MB, free: 4.453 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03234/0.7878, allocations: 8.889 MB / 456.5 MB, free: 11.71 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001857/0.7881, allocations: 55.47 kB / 456.5 MB, free: 11.66 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007627/0.7888, allocations: 154.3 kB / 456.7 MB, free: 11.53 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002162/0.791, allocations: 0.7812 MB / 457.5 MB, free: 10.74 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0299/0.8209, allocations: 7.145 MB / 464.6 MB, free: 3.59 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07406/0.8951, allocations: 38.03 MB / 0.4909 GB, free: 12.42 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03987/0.935, allocations: 5.238 MB / 0.496 GB, free: 7.004 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008205/0.9432, allocations: 3.343 MB / 0.4992 GB, free: 3.578 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5e-05/0.9433, allocations: 46.69 kB / 0.4993 GB, free: 3.523 MB / 394.7 MB Notification: Performance of pre-optimization done (n=104): time 5.189e-06/0.9434, allocations: 4 kB / 0.4993 GB, free: 3.52 MB / 394.7 MB Notification: Performance of matching and sorting (n=104): time 0.08129/1.025, allocations: 9.842 MB / 0.5089 GB, free: 9.531 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001239/1.025, allocations: 203.8 kB / 0.5091 GB, free: 9.289 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00641/1.031, allocations: 2.994 MB / 0.512 GB, free: 6.273 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002598/1.032, allocations: 37.7 kB / 0.5121 GB, free: 6.23 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003118/1.035, allocations: 2.394 MB / 0.5144 GB, free: 3.844 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00101/1.036, allocations: 489 kB / 0.5149 GB, free: 3.367 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007731/1.037, allocations: 108 kB / 0.515 GB, free: 3.262 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000766/1.037, allocations: 0.5769 MB / 0.5155 GB, free: 2.676 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004301/1.042, allocations: 1.474 MB / 0.517 GB, free: 1.195 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2695/1.311, allocations: 5.001 MB / 0.5219 GB, free: 113.4 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006648/1.318, allocations: 2.69 MB / 0.5245 GB, free: 113.4 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002709/1.318, allocations: 36.5 kB / 0.5245 GB, free: 113.4 MB / 410.7 MB Notification: Performance of matching and sorting (n=695) (initialization): time 0.01746/1.336, allocations: 6.163 MB / 0.5305 GB, free: 112.8 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001493/1.336, allocations: 58.69 kB / 0.5306 GB, free: 112.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002244/1.336, allocations: 126.4 kB / 0.5307 GB, free: 112.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002608/1.336, allocations: 183.6 kB / 0.5309 GB, free: 112.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01004/1.346, allocations: 1.508 MB / 0.5324 GB, free: 112.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002843/1.347, allocations: 248.7 kB / 0.5326 GB, free: 112.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00603/1.353, allocations: 0.7455 MB / 0.5333 GB, free: 112.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001368/1.354, allocations: 348.6 kB / 0.5337 GB, free: 112.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.0043/1.359, allocations: 1.562 MB / 0.5352 GB, free: 112.4 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000606/1.359, allocations: 238.8 kB / 0.5354 GB, free: 112.3 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002092/1.361, allocations: 0.7082 MB / 0.5361 GB, free: 112.2 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.192e-05/1.361, allocations: 19.19 kB / 0.5361 GB, free: 112.2 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.078e-05/1.361, allocations: 0 / 0.5361 GB, free: 112.2 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.921e-05/1.361, allocations: 3.422 kB / 0.5361 GB, free: 112.2 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005956/1.367, allocations: 2.27 MB / 0.5383 GB, free: 111.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.078e-05/1.368, allocations: 1.906 kB / 0.5383 GB, free: 111.9 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005001/1.373, allocations: 466.4 kB / 0.5388 GB, free: 111.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.891e-05/1.373, allocations: 4.328 kB / 0.5388 GB, free: 111.9 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002686/1.373, allocations: 32.95 kB / 0.5388 GB, free: 111.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-05/1.373, allocations: 8.359 kB / 0.5388 GB, free: 111.9 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/1.373, allocations: 10.27 kB / 0.5388 GB, free: 111.9 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007716/1.381, allocations: 2.476 MB / 0.5413 GB, free: 111.3 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001226/1.382, allocations: 303.8 kB / 0.5415 GB, free: 111 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001327/1.383, allocations: 31.22 kB / 0.5416 GB, free: 111 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003132/1.386, allocations: 50.56 kB / 0.5416 GB, free: 111 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004539/1.387, allocations: 55.56 kB / 0.5417 GB, free: 111 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001981/1.387, allocations: 34.38 kB / 0.5417 GB, free: 111 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004528/1.392, allocations: 1.814 MB / 0.5435 GB, free: 110.9 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.92e-07/1.392, allocations: 0 / 0.5435 GB, free: 110.9 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0058/1.398, allocations: 0.8229 MB / 0.5443 GB, free: 110.8 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.000559/1.398, allocations: 173.7 kB / 0.5445 GB, free: 110.7 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007577/1.406, allocations: 3.354 MB / 0.5477 GB, free: 110.3 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.973e-06/1.406, allocations: 4.031 kB / 0.5477 GB, free: 110.3 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001297/1.407, allocations: 0.6003 MB / 0.5483 GB, free: 110.1 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001769/1.409, allocations: 242.1 kB / 0.5485 GB, free: 110 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01901/1.428, allocations: 8.357 MB / 0.5567 GB, free: 105.5 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004719/1.433, allocations: 2.425 MB / 0.5591 GB, free: 104.4 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.007085/1.44, allocations: 1.637 MB / 0.5607 GB, free: 104.3 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009582/1.441, allocations: 178.8 kB / 0.5608 GB, free: 104.3 MB / 410.7 MB Notification: Performance of SimCode: time 1.603e-06/1.441, allocations: 0 / 0.5608 GB, free: 104.3 MB / 410.7 MB Notification: Performance of Templates: time 0.074/1.515, allocations: 19.93 MB / 0.5803 GB, free: 97.56 MB / 410.7 MB