Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001071/0.001071, allocations: 112.2 kB / 16.51 MB, free: 6.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001131/0.001131, allocations: 186.5 kB / 17.42 MB, free: 6.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.368/1.368, allocations: 205.1 MB / 223.3 MB, free: 12.41 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001121/0.001122, allocations: 51.92 kB / 279.3 MB, free: 3.555 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08586/0.08699, allocations: 46.62 MB / 326 MB, free: 4.871 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.0245/0.1115, allocations: 28.94 MB / 354.9 MB, free: 7.809 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01286/0.1244, allocations: 5.988 MB / 360.9 MB, free: 1.801 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005272/0.1298, allocations: 115.8 kB / 361 MB, free: 1.688 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003035/0.1329, allocations: 1.406 MB / 362.4 MB, free: 284 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002587/0.1355, allocations: 0.9301 MB / 363.3 MB, free: 15.34 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006348/0.1361, allocations: 235.6 kB / 363.6 MB, free: 15.11 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003372/0.1395, allocations: 3.289 MB / 366.9 MB, free: 11.81 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00186/0.1414, allocations: 1.546 MB / 368.4 MB, free: 10.25 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001055/0.1425, allocations: 0.7275 MB / 369.1 MB, free: 9.516 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001644/0.1441, allocations: 1.292 MB / 370.4 MB, free: 8.219 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002981/0.1444, allocations: 116 kB / 370.5 MB, free: 8.105 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001399/0.1458, allocations: 0.6513 MB / 371.2 MB, free: 7.453 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009964/0.1468, allocations: 1.141 MB / 372.3 MB, free: 6.309 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001167/0.148, allocations: 1.347 MB / 373.7 MB, free: 4.953 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00374/0.1518, allocations: 4.088 MB / 377.8 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.191e-06/0.1518, allocations: 0 / 377.8 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.1518, allocations: 3.938 kB / 377.8 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.913e-05/0.1519, allocations: 0 / 377.8 MB, free: 0.8477 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1113 * Number of variables: 1113 Notification: Performance of Generate backend data structure: time 0.1634/0.3152, allocations: 2.944 MB / 380.7 MB, free: 55.27 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.318e-05/0.3153, allocations: 10.38 kB / 380.7 MB, free: 55.27 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007827/0.3232, allocations: 1.777 MB / 382.5 MB, free: 55.03 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00308/0.3263, allocations: 1.156 MB / 383.6 MB, free: 54.34 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001858/0.3265, allocations: 151.9 kB / 383.8 MB, free: 54.3 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004986/0.327, allocations: 209.4 kB / 384 MB, free: 54.25 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01939/0.3464, allocations: 8.599 MB / 392.6 MB, free: 49.82 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001132/0.3466, allocations: 43.5 kB / 392.6 MB, free: 49.79 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003043/0.3469, allocations: 105.4 kB / 392.7 MB, free: 49.72 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002641/0.3495, allocations: 1.669 MB / 394.4 MB, free: 49.05 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01646/0.366, allocations: 7.164 MB / 401.6 MB, free: 42.02 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02788/0.3939, allocations: 30.19 MB / 431.8 MB, free: 10.99 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02048/0.4145, allocations: 5.041 MB / 436.8 MB, free: 5.77 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001243/0.4157, allocations: 1.246 MB / 438.1 MB, free: 4.504 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004334/0.4201, allocations: 3.744 MB / 441.8 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.478e-05/0.4201, allocations: 42.89 kB / 441.8 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of pre-optimization done (n=111): time 2.896e-06/0.4201, allocations: 0 / 441.8 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of matching and sorting (n=111): time 0.04514/0.4653, allocations: 9.27 MB / 451.1 MB, free: 7.207 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.438e-05/0.4654, allocations: 191.9 kB / 451.3 MB, free: 6.977 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004293/0.4697, allocations: 3.039 MB / 454.3 MB, free: 3.918 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001905/0.4699, allocations: 37.7 kB / 454.4 MB, free: 3.875 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001666/0.4716, allocations: 2.422 MB / 456.8 MB, free: 1.414 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00057/0.4722, allocations: 0.4979 MB / 457.3 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001195/0.4734, allocations: 1.083 MB / 458.4 MB, free: 15.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.535e-05/0.4735, allocations: 309.1 kB / 458.7 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002113/0.4756, allocations: 1.603 MB / 460.3 MB, free: 13.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004348/0.48, allocations: 5.173 MB / 465.5 MB, free: 6.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007737/0.4877, allocations: 7.319 MB / 472.8 MB, free: 13.83 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.502e-05/0.4878, allocations: 36 kB / 472.8 MB, free: 13.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.009646/0.4975, allocations: 6.45 MB / 479.3 MB, free: 7.336 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.799e-05/0.4976, allocations: 60 kB / 479.3 MB, free: 7.277 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001211/0.4977, allocations: 128 kB / 479.4 MB, free: 7.152 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001469/0.4979, allocations: 168 kB / 479.6 MB, free: 6.988 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004464/0.5023, allocations: 1.458 MB / 481.1 MB, free: 5.527 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001819/0.5025, allocations: 247.1 kB / 481.3 MB, free: 5.285 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003621/0.5062, allocations: 0.7463 MB / 482.1 MB, free: 4.531 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000406/0.5066, allocations: 344 kB / 482.4 MB, free: 4.195 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 580 * Number of states: 0 () * Number of discrete variables: 30 (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.groundColor[3],world.groundColor[2],world.groundColor[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 (681): * Single equations (assignments): 678 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002165/0.5088, allocations: 1.579 MB / 484 MB, free: 2.602 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003983/0.5092, allocations: 248.8 kB / 484.2 MB, free: 2.355 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001159/0.5103, allocations: 0.8218 MB / 485 MB, free: 1.527 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-05/0.5104, allocations: 19.98 kB / 485 MB, free: 1.508 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.588e-06/0.5104, allocations: 0 / 485 MB, free: 1.508 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/0.5104, allocations: 7.984 kB / 485.1 MB, free: 1.5 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005337/0.5157, allocations: 3.388 MB / 488.4 MB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.224e-06/0.5158, allocations: 4 kB / 488.4 MB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00234/0.5181, allocations: 403.5 kB / 488.8 MB, free: 13.65 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.054e-05/0.5181, allocations: 8 kB / 488.9 MB, free: 13.64 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.339e-05/0.5182, allocations: 43.95 kB / 488.9 MB, free: 13.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.018e-05/0.5183, allocations: 11.92 kB / 488.9 MB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.352e-06/0.5183, allocations: 3.938 kB / 488.9 MB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003397/0.5217, allocations: 2.78 MB / 491.7 MB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005997/0.5223, allocations: 301.7 kB / 492 MB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002461/0.5225, allocations: 27.98 kB / 492 MB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008456/0.5234, allocations: 39.95 kB / 492 MB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001322/0.5235, allocations: 59.84 kB / 492.1 MB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.09e-05/0.5236, allocations: 35.98 kB / 492.1 MB, free: 10.3 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00241/0.526, allocations: 1.841 MB / 494 MB, free: 8.457 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.526, allocations: 4 kB / 494 MB, free: 8.453 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003822/0.5299, allocations: 0.8316 MB / 494.8 MB, free: 7.625 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 24 (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]) * 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 (87): * Single equations (assignments): 84 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003607/0.5302, allocations: 169.6 kB / 495 MB, free: 7.453 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005115/0.5354, allocations: 3.593 MB / 498.6 MB, free: 3.891 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.5354, allocations: 3.938 kB / 498.6 MB, free: 3.887 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008561/0.5362, allocations: 0.7142 MB / 499.3 MB, free: 3.172 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001578/0.5378, allocations: 264 kB / 499.6 MB, free: 2.922 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01203/0.5499, allocations: 8.432 MB / 0.4961 GB, free: 10.45 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002616/0.5525, allocations: 2.391 MB / 0.4984 GB, free: 8.027 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.004642/0.5572, allocations: 1.641 MB / 0.5 GB, free: 6.379 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005297/0.5577, allocations: 191.4 kB / 0.5002 GB, free: 6.191 MB / 398.1 MB Notification: Performance of SimCode: time 1.272e-06/0.5578, allocations: 0 / 0.5002 GB, free: 6.191 MB / 398.1 MB Notification: Performance of Templates: time 0.04162/0.5994, allocations: 20.65 MB / 0.5204 GB, free: 1.531 MB / 414.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1)