Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.001213/0.001213, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001362/0.001362, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.416/1.416, allocations: 205.1 MB / 222.4 MB, free: 4.586 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.001233/0.001233, allocations: 55.91 kB / 278.7 MB, free: 12.35 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2373/0.2386, allocations: 46.63 MB / 325.3 MB, free: 1.855 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.009999/0.2486, allocations: 7.958 MB / 333.3 MB, free: 11.6 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.006652/0.2553, allocations: 2.559 MB / 335.8 MB, free: 9.383 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001792/0.2572, allocations: 35.94 kB / 335.9 MB, free: 9.348 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003163/0.2604, allocations: 1.429 MB / 337.3 MB, free: 7.914 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002853/0.2633, allocations: 0.9762 MB / 338.3 MB, free: 6.934 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008336/0.2641, allocations: 267.4 kB / 338.5 MB, free: 6.672 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.003348/0.2675, allocations: 2.181 MB / 340.7 MB, free: 4.484 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002301/0.2698, allocations: 1.557 MB / 342.3 MB, free: 2.91 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00143/0.2713, allocations: 0.8328 MB / 343.1 MB, free: 2.074 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001812/0.2731, allocations: 1.191 MB / 344.3 MB, free: 0.8789 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005795/0.2737, allocations: 160 kB / 344.4 MB, free: 0.7227 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001528/0.2752, allocations: 0.6514 MB / 345.1 MB, free: 72 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001418/0.2767, allocations: 1.173 MB / 346.3 MB, free: 14.89 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00287/0.2795, allocations: 1.374 MB / 347.6 MB, free: 13.51 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00629/0.2859, allocations: 4.115 MB / 351.8 MB, free: 9.383 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.245e-05/0.2859, allocations: 4 kB / 351.8 MB, free: 9.379 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.2859, allocations: 0 / 351.8 MB, free: 9.379 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.0001712/0.2861, allocations: 0 / 351.8 MB, free: 9.379 MB / 286.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.007342/0.2934, allocations: 2.953 MB / 354.7 MB, free: 6.363 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.784e-05/0.2935, allocations: 11.89 kB / 354.7 MB, free: 6.352 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007232/0.3008, allocations: 1.775 MB / 356.5 MB, free: 4.57 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002323/0.3031, allocations: 1.158 MB / 357.7 MB, free: 3.367 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001184/0.3032, allocations: 147.8 kB / 357.8 MB, free: 3.223 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000575/0.3038, allocations: 211.8 kB / 358 MB, free: 3.016 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01901/0.3228, allocations: 8.592 MB / 366.6 MB, free: 9.82 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000114/0.323, allocations: 43.59 kB / 366.6 MB, free: 9.777 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003074/0.3233, allocations: 99.88 kB / 366.7 MB, free: 9.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003031/0.3264, allocations: 1.675 MB / 368.4 MB, free: 8 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01746/0.3438, allocations: 7.163 MB / 375.6 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03679/0.3807, allocations: 30.18 MB / 405.8 MB, free: 1.758 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02241/0.4031, allocations: 5.048 MB / 410.8 MB, free: 12.53 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001839/0.405, allocations: 1.236 MB / 412.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007014/0.412, allocations: 3.746 MB / 415.8 MB, free: 7.379 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.355e-05/0.4121, allocations: 50.73 kB / 415.8 MB, free: 7.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=111): time 4.689e-06/0.4121, allocations: 4 kB / 415.9 MB, free: 7.316 MB / 350.1 MB Notification: Performance of matching and sorting (n=111): time 0.04719/0.4593, allocations: 9.258 MB / 425.1 MB, free: 13.97 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001261/0.4595, allocations: 195.9 kB / 425.3 MB, free: 13.74 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005311/0.4648, allocations: 3.039 MB / 428.3 MB, free: 10.67 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002316/0.4651, allocations: 41.7 kB / 428.4 MB, free: 10.62 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001946/0.467, allocations: 2.422 MB / 430.8 MB, free: 8.16 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007691/0.4678, allocations: 0.494 MB / 431.3 MB, free: 7.66 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001687/0.4695, allocations: 1.091 MB / 432.4 MB, free: 6.559 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001126/0.4697, allocations: 301.1 kB / 432.7 MB, free: 6.262 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002372/0.472, allocations: 1.603 MB / 434.3 MB, free: 4.652 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004901/0.4769, allocations: 5.173 MB / 439.5 MB, free: 13.68 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00833/0.4853, allocations: 7.313 MB / 446.8 MB, free: 4.578 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001235/0.4854, allocations: 36 kB / 446.8 MB, free: 4.543 MB / 382.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.2078/0.6933, allocations: 6.447 MB / 453.3 MB, free: 107 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001295/0.6935, allocations: 59.19 kB / 453.3 MB, free: 107 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002215/0.6937, allocations: 127.1 kB / 453.4 MB, free: 107 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002447/0.6939, allocations: 169.6 kB / 453.6 MB, free: 107 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005421/0.6994, allocations: 1.454 MB / 455.1 MB, free: 107 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003258/0.6997, allocations: 249 kB / 455.3 MB, free: 107 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004418/0.7041, allocations: 0.7499 MB / 456 MB, free: 106.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008117/0.705, allocations: 343.8 kB / 456.4 MB, free: 106.8 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.002813/0.7078, allocations: 1.565 MB / 457.9 MB, free: 106.6 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006974/0.7085, allocations: 247.6 kB / 458.2 MB, free: 106.6 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001249/0.7098, allocations: 0.8343 MB / 459 MB, free: 106.4 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.783e-05/0.7098, allocations: 18.19 kB / 459 MB, free: 106.4 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.208e-05/0.7098, allocations: 3.125 kB / 459 MB, free: 106.4 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.254e-05/0.7098, allocations: 7.422 kB / 459.1 MB, free: 106.4 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005016/0.7149, allocations: 3.387 MB / 462.4 MB, free: 105.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.582e-06/0.7149, allocations: 0.8438 kB / 462.4 MB, free: 105.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002147/0.717, allocations: 415.6 kB / 462.8 MB, free: 105.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.108e-05/0.7171, allocations: 6.969 kB / 462.9 MB, free: 105.2 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.913e-05/0.7172, allocations: 38.81 kB / 462.9 MB, free: 105.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.112e-06/0.7172, allocations: 3.25 kB / 462.9 MB, free: 105.2 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.7172, allocations: 3.938 kB / 462.9 MB, free: 105.2 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002604/0.7198, allocations: 2.778 MB / 465.7 MB, free: 103.9 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005144/0.7203, allocations: 302.9 kB / 466 MB, free: 103.7 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002441/0.7206, allocations: 34.17 kB / 466 MB, free: 103.6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008407/0.7214, allocations: 41.11 kB / 466 MB, free: 103.6 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001132/0.7216, allocations: 62.39 kB / 466.1 MB, free: 103.6 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.039e-05/0.7216, allocations: 42.78 kB / 466.1 MB, free: 103.6 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00221/0.7238, allocations: 1.843 MB / 468 MB, free: 103 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7239, allocations: 0 / 468 MB, free: 103 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003908/0.7278, allocations: 0.8249 MB / 468.8 MB, free: 102.1 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.0003419/0.7281, allocations: 168 kB / 469 MB, free: 102 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004875/0.733, allocations: 3.799 MB / 472.8 MB, free: 98.64 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.993e-06/0.733, allocations: 0 / 472.8 MB, free: 98.64 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000692/0.7337, allocations: 0.7199 MB / 473.5 MB, free: 98.01 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001642/0.7354, allocations: 263.8 kB / 473.8 MB, free: 97.78 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009965/0.7454, allocations: 7.133 MB / 480.9 MB, free: 90.72 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001772/0.7472, allocations: 2.394 MB / 483.3 MB, free: 88.3 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003478/0.7507, allocations: 1.633 MB / 484.9 MB, free: 86.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004054/0.7511, allocations: 183.4 kB / 485.1 MB, free: 86.48 MB / 382.1 MB Notification: Performance of SimCode: time 1.001e-06/0.7511, allocations: 0 / 485.1 MB, free: 86.48 MB / 382.1 MB Notification: Performance of Templates: time 0.03654/0.7877, allocations: 21.42 MB / 0.4946 GB, free: 65.11 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1)