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.0008482/0.0008482, allocations: 91.77 kB / 15.06 MB, free: 1.098 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.0009944/0.0009945, allocations: 172.7 kB / 15.95 MB, free: 208 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.499/1.499, allocations: 205.4 MB / 222.1 MB, free: 5.66 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.0004313/0.0004313, allocations: 14.81 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2391/0.2396, allocations: 47.59 MB / 326.5 MB, free: 1.383 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.02427/0.2639, allocations: 26.15 MB / 352.6 MB, free: 9.277 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01408/0.278, allocations: 5.674 MB / 358.3 MB, free: 3.59 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005244/0.2833, allocations: 115.8 kB / 358.4 MB, free: 3.477 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004388/0.2877, allocations: 1.326 MB / 359.7 MB, free: 2.145 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01231/0.3, allocations: 3.79 MB / 363.5 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001876/0.3019, allocations: 227.6 kB / 363.8 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004154/0.3061, allocations: 2.582 MB / 366.3 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00441/0.3105, allocations: 1.88 MB / 368.2 MB, free: 9.605 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001754/0.3123, allocations: 0.7354 MB / 369 MB, free: 8.867 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002263/0.3146, allocations: 1.203 MB / 370.2 MB, free: 7.66 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006897/0.3153, allocations: 84 kB / 370.2 MB, free: 7.578 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001515/0.3168, allocations: 0.5305 MB / 370.8 MB, free: 7.047 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001465/0.3183, allocations: 1.083 MB / 371.9 MB, free: 5.961 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000884/0.3192, allocations: 0.5546 MB / 372.4 MB, free: 5.398 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003685/0.3229, allocations: 3.251 MB / 375.7 MB, free: 2.141 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.3229, allocations: 0 / 375.7 MB, free: 2.141 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.323, allocations: 3.938 kB / 375.7 MB, free: 2.137 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001792/0.3231, allocations: 0 / 375.7 MB, free: 2.137 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.00429/0.3274, allocations: 2.446 MB / 378.1 MB, free: 15.63 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.3275, allocations: 8.031 kB / 378.1 MB, free: 15.62 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006308/0.3338, allocations: 1.817 MB / 379.9 MB, free: 13.8 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002447/0.3363, allocations: 1.138 MB / 381.1 MB, free: 12.61 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001285/0.3364, allocations: 151.8 kB / 381.2 MB, free: 12.46 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003511/0.3368, allocations: 211.8 kB / 381.4 MB, free: 12.26 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01748/0.3543, allocations: 8.604 MB / 390 MB, free: 3.055 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.381e-05/0.3544, allocations: 35.75 kB / 390.1 MB, free: 3.02 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002686/0.3547, allocations: 103.9 kB / 390.2 MB, free: 2.918 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002736/0.3574, allocations: 1.671 MB / 391.8 MB, free: 1.25 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01734/0.3748, allocations: 7.155 MB / 399 MB, free: 10.08 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04022/0.4151, allocations: 30.18 MB / 429.2 MB, free: 11.02 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02018/0.4353, allocations: 5.111 MB / 434.3 MB, free: 5.727 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002017/0.4373, allocations: 1.24 MB / 435.5 MB, free: 4.465 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006386/0.4438, allocations: 3.742 MB / 439.3 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.89e-05/0.4438, allocations: 50.83 kB / 439.3 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of pre-optimization done (n=111): time 4.509e-06/0.4439, allocations: 0 / 439.3 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of matching and sorting (n=111): time 0.04113/0.485, allocations: 9.391 MB / 448.7 MB, free: 7.035 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.232e-05/0.4851, allocations: 187.9 kB / 448.9 MB, free: 6.809 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006087/0.4912, allocations: 3.023 MB / 451.9 MB, free: 3.766 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000247/0.4915, allocations: 41.7 kB / 452 MB, free: 3.719 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002378/0.4939, allocations: 2.422 MB / 454.4 MB, free: 1.262 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007372/0.4947, allocations: 0.4942 MB / 454.9 MB, free: 0.7617 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004002/0.4951, allocations: 112 kB / 455 MB, free: 0.6523 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0005145/0.4956, allocations: 0.5294 MB / 455.5 MB, free: 120 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.192/0.6876, allocations: 1.578 MB / 457.1 MB, free: 114.9 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005806/0.6935, allocations: 5.144 MB / 462.2 MB, free: 109.7 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005939/0.6995, allocations: 2.798 MB / 465 MB, free: 108.6 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001855/0.6998, allocations: 39.44 kB / 465.1 MB, free: 108.6 MB / 382.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01159/0.7114, allocations: 6.396 MB / 471.5 MB, free: 106.3 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001536/0.7116, allocations: 59.19 kB / 471.5 MB, free: 106.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000185/0.7118, allocations: 125.5 kB / 471.6 MB, free: 106.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001973/0.712, allocations: 186.8 kB / 471.8 MB, free: 106.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004338/0.7163, allocations: 1.455 MB / 473.3 MB, free: 105.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001471/0.7165, allocations: 249.1 kB / 473.5 MB, free: 105 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003449/0.7199, allocations: 0.7526 MB / 474.3 MB, free: 104.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005202/0.7205, allocations: 339 kB / 474.6 MB, free: 104.2 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.002207/0.7227, allocations: 1.576 MB / 476.2 MB, free: 102.8 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003902/0.7231, allocations: 250.6 kB / 476.4 MB, free: 102.6 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001216/0.7243, allocations: 0.8321 MB / 477.3 MB, free: 101.8 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.786e-05/0.7244, allocations: 12 kB / 477.3 MB, free: 101.8 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.446e-05/0.7244, allocations: 11.56 kB / 477.3 MB, free: 101.8 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.388e-05/0.7244, allocations: 4.875 kB / 477.3 MB, free: 101.8 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005953/0.7304, allocations: 3.384 MB / 480.7 MB, free: 98.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.556e-05/0.7304, allocations: 2.188 kB / 480.7 MB, free: 98.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002066/0.7325, allocations: 411.4 kB / 481.1 MB, free: 98.28 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-05/0.7325, allocations: 4 kB / 481.1 MB, free: 98.27 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001279/0.7327, allocations: 44.69 kB / 481.1 MB, free: 98.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.448e-06/0.7327, allocations: 4 kB / 481.1 MB, free: 98.23 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.7327, allocations: 0 / 481.1 MB, free: 98.23 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002644/0.7353, allocations: 2.783 MB / 483.9 MB, free: 95.42 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006228/0.736, allocations: 305.6 kB / 484.2 MB, free: 95.1 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004713/0.7365, allocations: 31.94 kB / 484.2 MB, free: 95.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001017/0.7375, allocations: 47.86 kB / 484.3 MB, free: 95.02 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001015/0.7376, allocations: 59.91 kB / 484.3 MB, free: 94.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.534e-05/0.7377, allocations: 35.98 kB / 484.4 MB, free: 94.93 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002519/0.7402, allocations: 1.825 MB / 486.2 MB, free: 93.1 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.7402, allocations: 0 / 486.2 MB, free: 93.1 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004113/0.7443, allocations: 0.8293 MB / 487 MB, free: 92.27 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.0004605/0.7448, allocations: 169 kB / 487.2 MB, free: 92.1 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005183/0.75, allocations: 3.577 MB / 490.8 MB, free: 88.55 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.281e-06/0.7501, allocations: 0 / 490.8 MB, free: 88.55 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007779/0.7508, allocations: 0.7118 MB / 491.5 MB, free: 87.84 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001998/0.7529, allocations: 252 kB / 491.7 MB, free: 87.59 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01081/0.7637, allocations: 8.497 MB / 0.4885 GB, free: 79.06 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002266/0.766, allocations: 2.387 MB / 0.4908 GB, free: 76.64 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003496/0.7695, allocations: 1.645 MB / 0.4924 GB, free: 74.99 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003981/0.7699, allocations: 183.4 kB / 0.4926 GB, free: 74.81 MB / 382.1 MB Notification: Performance of SimCode: time 1.302e-06/0.7699, allocations: 0 / 0.4926 GB, free: 74.81 MB / 382.1 MB Notification: Performance of Templates: time 0.03201/0.8019, allocations: 20.12 MB / 0.5123 GB, free: 54.73 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)