Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_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.1_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.1_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.0009455/0.0009455, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.0009677/0.0009678, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.337/1.337, allocations: 205.4 MB / 222.1 MB, free: 5.887 MB / 174.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.0004406/0.0004408, allocations: 15.98 kB / 278.9 MB, free: 13.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2155/0.216, allocations: 47.59 MB / 326.5 MB, free: 1.391 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.0235/0.2395, allocations: 24.76 MB / 351.2 MB, free: 10.73 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01295/0.2525, allocations: 5.914 MB / 357.1 MB, free: 4.809 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004273/0.2568, allocations: 111.8 kB / 357.2 MB, free: 4.699 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003697/0.2606, allocations: 1.198 MB / 358.4 MB, free: 3.496 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01028/0.2709, allocations: 3.518 MB / 362 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001253/0.2722, allocations: 187.6 kB / 362.1 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002378/0.2745, allocations: 1.283 MB / 363.4 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002891/0.2775, allocations: 1.868 MB / 365.3 MB, free: 12.59 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001018/0.2785, allocations: 0.6033 MB / 365.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001323/0.2798, allocations: 0.8369 MB / 366.7 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003808/0.2802, allocations: 84 kB / 366.8 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001279/0.2815, allocations: 0.5187 MB / 367.3 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00111/0.2826, allocations: 1.005 MB / 368.3 MB, free: 9.535 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007556/0.2834, allocations: 0.5585 MB / 368.9 MB, free: 8.969 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003639/0.2871, allocations: 3.24 MB / 372.1 MB, free: 5.723 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.2871, allocations: 0 / 372.1 MB, free: 5.723 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.2871, allocations: 0 / 372.1 MB, free: 5.723 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001804/0.2873, allocations: 0 / 372.1 MB, free: 5.723 MB / 302.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.005168/0.2925, allocations: 2.442 MB / 374.6 MB, free: 3.219 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.458e-05/0.2925, allocations: 11.97 kB / 374.6 MB, free: 3.207 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008268/0.3008, allocations: 2.114 MB / 376.7 MB, free: 1.086 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003215/0.3041, allocations: 1.138 MB / 377.8 MB, free: 15.9 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001562/0.3042, allocations: 151.8 kB / 378 MB, free: 15.75 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006682/0.3049, allocations: 203.8 kB / 378.2 MB, free: 15.55 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02003/0.325, allocations: 8.663 MB / 386.8 MB, free: 6.293 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001401/0.3252, allocations: 35.75 kB / 386.9 MB, free: 6.258 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006043/0.3258, allocations: 103.9 kB / 387 MB, free: 6.156 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002966/0.3288, allocations: 1.675 MB / 388.7 MB, free: 4.484 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01829/0.3471, allocations: 7.221 MB / 395.9 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04001/0.3871, allocations: 30.22 MB / 426.1 MB, free: 14.15 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02244/0.4096, allocations: 5.134 MB / 431.2 MB, free: 8.836 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006816/0.4165, allocations: 3.754 MB / 435 MB, free: 4.934 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.757e-05/0.4166, allocations: 50.83 kB / 435 MB, free: 4.875 MB / 366.1 MB Notification: Performance of pre-optimization done (n=111): time 3.336e-06/0.4166, allocations: 0 / 435 MB, free: 4.875 MB / 366.1 MB Notification: Performance of matching and sorting (n=111): time 0.0462/0.4628, allocations: 9.649 MB / 444.7 MB, free: 11.09 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001472/0.463, allocations: 196 kB / 444.9 MB, free: 10.85 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005563/0.4686, allocations: 3.031 MB / 447.9 MB, free: 7.801 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002206/0.4688, allocations: 41.7 kB / 447.9 MB, free: 7.754 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001922/0.4707, allocations: 2.422 MB / 450.4 MB, free: 5.293 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007544/0.4715, allocations: 0.4902 MB / 450.9 MB, free: 4.797 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003803/0.4719, allocations: 108 kB / 451 MB, free: 4.691 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0004294/0.4723, allocations: 0.5294 MB / 451.5 MB, free: 4.156 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002626/0.475, allocations: 1.58 MB / 453.1 MB, free: 2.57 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1863/0.6612, allocations: 5.122 MB / 458.2 MB, free: 109 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005729/0.667, allocations: 2.796 MB / 461 MB, free: 108.4 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001457/0.6672, allocations: 39.55 kB / 461 MB, free: 108.4 MB / 382.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01056/0.6778, allocations: 6.391 MB / 467.4 MB, free: 106.1 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.193e-05/0.6779, allocations: 60.94 kB / 467.5 MB, free: 106.1 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000123/0.678, allocations: 129.6 kB / 467.6 MB, free: 106.1 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001569/0.6782, allocations: 183.8 kB / 467.8 MB, free: 106.1 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004427/0.6826, allocations: 1.457 MB / 469.2 MB, free: 105.9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001365/0.6828, allocations: 250.7 kB / 469.5 MB, free: 105.9 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003108/0.6859, allocations: 0.7617 MB / 470.2 MB, free: 105.6 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003391/0.6862, allocations: 342.7 kB / 470.6 MB, free: 105.6 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001997/0.6882, allocations: 1.568 MB / 472.2 MB, free: 104.8 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003345/0.6886, allocations: 255 kB / 472.4 MB, free: 104.7 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00102/0.6896, allocations: 0.8385 MB / 473.2 MB, free: 104.2 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-05/0.6896, allocations: 16 kB / 473.3 MB, free: 104.2 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.426e-06/0.6897, allocations: 3.953 kB / 473.3 MB, free: 104.2 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.017e-05/0.6897, allocations: 3.891 kB / 473.3 MB, free: 104.2 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004769/0.6944, allocations: 3.375 MB / 476.6 MB, free: 101.4 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.184e-06/0.6945, allocations: 4 kB / 476.6 MB, free: 101.4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002082/0.6966, allocations: 416.3 kB / 477 MB, free: 101.1 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.054e-05/0.6966, allocations: 4 kB / 477.1 MB, free: 101.1 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.898e-05/0.6967, allocations: 36.42 kB / 477.1 MB, free: 101.1 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.911e-06/0.6967, allocations: 4 kB / 477.1 MB, free: 101.1 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.6967, allocations: 3.938 kB / 477.1 MB, free: 101 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00237/0.6991, allocations: 2.873 MB / 480 MB, free: 98.2 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004565/0.6995, allocations: 313.6 kB / 480.3 MB, free: 97.88 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002347/0.6998, allocations: 29.94 kB / 480.3 MB, free: 97.85 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008409/0.7006, allocations: 47.91 kB / 480.4 MB, free: 97.8 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.744e-05/0.7007, allocations: 55.91 kB / 480.4 MB, free: 97.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.788e-05/0.7008, allocations: 39.36 kB / 480.4 MB, free: 97.71 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002118/0.7029, allocations: 1.829 MB / 482.3 MB, free: 95.88 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.7029, allocations: 0 / 482.3 MB, free: 95.88 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003865/0.7068, allocations: 0.8321 MB / 483.1 MB, free: 95.05 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 (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.0003677/0.7072, allocations: 165.7 kB / 483.3 MB, free: 94.89 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004778/0.712, allocations: 3.582 MB / 486.8 MB, free: 91.33 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/0.712, allocations: 0 / 486.8 MB, free: 91.33 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007167/0.7127, allocations: 0.7104 MB / 487.6 MB, free: 90.62 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001313/0.714, allocations: 234.8 kB / 487.8 MB, free: 90.39 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01011/0.7242, allocations: 8.464 MB / 496.3 MB, free: 81.89 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001831/0.7261, allocations: 2.441 MB / 498.7 MB, free: 79.43 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00346/0.7295, allocations: 1.645 MB / 0.4886 GB, free: 77.77 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003784/0.7299, allocations: 187.4 kB / 0.4888 GB, free: 77.59 MB / 382.1 MB Notification: Performance of SimCode: time 1.683e-06/0.7299, allocations: 0 / 0.4888 GB, free: 77.59 MB / 382.1 MB Notification: Performance of Templates: time 0.0329/0.7628, allocations: 20.11 MB / 0.5084 GB, free: 57.52 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) Environment - environmentSimulation: