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.001122/0.001122, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001334/0.001334, allocations: 192.4 kB / 16.14 MB, free: 6.707 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.413/1.413, allocations: 205.1 MB / 222 MB, free: 4.77 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.001169/0.001169, allocations: 48.39 kB / 278.1 MB, free: 12.76 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2126/0.2138, allocations: 46.63 MB / 324.7 MB, free: 2.062 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.02593/0.2398, allocations: 28.94 MB / 353.6 MB, free: 7.215 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01321/0.253, allocations: 5.973 MB / 359.6 MB, free: 1.223 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007002/0.26, allocations: 115.8 kB / 359.7 MB, free: 1.109 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003458/0.2636, allocations: 1.406 MB / 361.1 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002905/0.2665, allocations: 0.9301 MB / 362.1 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008153/0.2673, allocations: 231.6 kB / 362.3 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003945/0.2713, allocations: 3.296 MB / 365.6 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002335/0.2737, allocations: 1.547 MB / 367.1 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001387/0.2751, allocations: 0.7236 MB / 367.8 MB, free: 8.938 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002006/0.2771, allocations: 1.296 MB / 369.1 MB, free: 7.637 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005207/0.2776, allocations: 116 kB / 369.3 MB, free: 7.523 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001484/0.2791, allocations: 0.6513 MB / 369.9 MB, free: 6.871 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001392/0.2805, allocations: 1.145 MB / 371 MB, free: 5.723 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002757/0.2833, allocations: 1.343 MB / 372.4 MB, free: 4.371 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006303/0.2896, allocations: 4.092 MB / 376.5 MB, free: 272 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.2897, allocations: 0 / 376.5 MB, free: 272 kB / 302.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2897, allocations: 0 / 376.5 MB, free: 272 kB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002277/0.2899, allocations: 0 / 376.5 MB, free: 272 kB / 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.008911/0.2988, allocations: 2.945 MB / 379.4 MB, free: 13.25 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.953e-05/0.2989, allocations: 19.91 kB / 379.4 MB, free: 13.23 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01015/0.3091, allocations: 1.783 MB / 381.2 MB, free: 11.45 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003227/0.3123, allocations: 1.15 MB / 382.4 MB, free: 10.25 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001615/0.3125, allocations: 155.8 kB / 382.5 MB, free: 10.1 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005248/0.3131, allocations: 199.8 kB / 382.7 MB, free: 9.902 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02576/0.3388, allocations: 8.596 MB / 391.3 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001151/0.339, allocations: 35.66 kB / 391.4 MB, free: 0.668 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000382/0.3394, allocations: 107.9 kB / 391.5 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003961/0.3434, allocations: 1.667 MB / 393.1 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02223/0.3656, allocations: 7.178 MB / 400.3 MB, free: 7.711 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03472/0.4004, allocations: 30.18 MB / 430.5 MB, free: 8.641 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02374/0.4241, allocations: 5.044 MB / 435.5 MB, free: 3.418 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001811/0.426, allocations: 1.248 MB / 436.8 MB, free: 2.148 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005773/0.4318, allocations: 3.734 MB / 440.5 MB, free: 14.26 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.756e-05/0.4318, allocations: 54.81 kB / 440.6 MB, free: 14.2 MB / 382.1 MB Notification: Performance of pre-optimization done (n=111): time 3.727e-06/0.4319, allocations: 0 / 440.6 MB, free: 14.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=111): time 0.04699/0.4789, allocations: 9.258 MB / 449.8 MB, free: 4.852 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001278/0.479, allocations: 203.9 kB / 450 MB, free: 4.609 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004312/0.4833, allocations: 3.039 MB / 453.1 MB, free: 1.551 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001942/0.4835, allocations: 41.7 kB / 453.1 MB, free: 1.504 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.192/0.6756, allocations: 2.417 MB / 455.5 MB, free: 116.4 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006948/0.6763, allocations: 0.4912 MB / 456 MB, free: 116.1 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001998/0.6783, allocations: 1.095 MB / 457.1 MB, free: 115.7 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.884e-05/0.6784, allocations: 301.8 kB / 457.4 MB, free: 115.4 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002331/0.6807, allocations: 1.602 MB / 459 MB, free: 114.9 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004667/0.6854, allocations: 5.171 MB / 464.2 MB, free: 109.5 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006904/0.6923, allocations: 7.319 MB / 471.5 MB, free: 102.9 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001253/0.6925, allocations: 38.06 kB / 471.5 MB, free: 102.9 MB / 382.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.008654/0.7011, allocations: 6.445 MB / 478 MB, free: 99.13 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.944e-05/0.7012, allocations: 60 kB / 478 MB, free: 99.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.467e-05/0.7013, allocations: 124 kB / 478.2 MB, free: 98.95 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001176/0.7015, allocations: 168 kB / 478.3 MB, free: 98.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004362/0.7058, allocations: 1.45 MB / 479.8 MB, free: 97.55 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001558/0.706, allocations: 253.4 kB / 480 MB, free: 97.33 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003557/0.7096, allocations: 0.7483 MB / 480.8 MB, free: 96.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003176/0.7099, allocations: 345.7 kB / 481.1 MB, free: 96.26 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001839/0.7117, allocations: 1.579 MB / 482.7 MB, free: 94.74 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003921/0.7121, allocations: 244.8 kB / 482.9 MB, free: 94.5 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00105/0.7132, allocations: 0.8256 MB / 483.8 MB, free: 93.66 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.233e-05/0.7132, allocations: 15.75 kB / 483.8 MB, free: 93.65 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-05/0.7133, allocations: 8.812 kB / 483.8 MB, free: 93.64 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.778e-06/0.7133, allocations: 3.984 kB / 483.8 MB, free: 93.64 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004371/0.7176, allocations: 3.389 MB / 487.2 MB, free: 90.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.747e-06/0.7177, allocations: 0 / 487.2 MB, free: 90.21 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002178/0.7199, allocations: 414.3 kB / 487.6 MB, free: 89.81 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.498e-06/0.7199, allocations: 4 kB / 487.6 MB, free: 89.81 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.078e-05/0.72, allocations: 36.84 kB / 487.6 MB, free: 89.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.631e-06/0.72, allocations: 4 kB / 487.6 MB, free: 89.77 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.72, allocations: 8 kB / 487.6 MB, free: 89.76 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002442/0.7224, allocations: 2.788 MB / 490.4 MB, free: 86.95 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004525/0.7229, allocations: 301.6 kB / 490.7 MB, free: 86.63 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002545/0.7232, allocations: 31.98 kB / 490.7 MB, free: 86.6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008138/0.724, allocations: 43.95 kB / 490.8 MB, free: 86.55 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001117/0.7241, allocations: 54.17 kB / 490.8 MB, free: 86.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.888e-05/0.7242, allocations: 39.81 kB / 490.9 MB, free: 86.47 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001882/0.7261, allocations: 1.845 MB / 492.7 MB, free: 84.62 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7261, allocations: 0 / 492.7 MB, free: 84.62 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003451/0.7295, allocations: 0.827 MB / 493.5 MB, free: 83.8 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.0002903/0.7298, allocations: 181.3 kB / 493.7 MB, free: 83.62 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004127/0.734, allocations: 3.589 MB / 497.3 MB, free: 80.05 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.734, allocations: 448 / 497.3 MB, free: 80.05 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006523/0.7346, allocations: 0.7204 MB / 498 MB, free: 79.34 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001462/0.7361, allocations: 249.5 kB / 498.3 MB, free: 79.09 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009125/0.7453, allocations: 8.436 MB / 0.4948 GB, free: 70.64 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001608/0.7469, allocations: 2.396 MB / 0.4972 GB, free: 68.21 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003141/0.7501, allocations: 1.649 MB / 0.4988 GB, free: 66.56 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003513/0.7504, allocations: 187.4 kB / 0.499 GB, free: 66.38 MB / 382.1 MB Notification: Performance of SimCode: time 1.022e-06/0.7504, allocations: 0 / 0.499 GB, free: 66.38 MB / 382.1 MB Notification: Performance of Templates: time 0.0316/0.782, allocations: 20.64 MB / 0.5191 GB, free: 45.78 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile (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)