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.0008258/0.0008258, allocations: 86.17 kB / 15.06 MB, free: 1.09 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.0009534/0.0009534, allocations: 168.7 kB / 15.95 MB, free: 204 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.385/1.385, allocations: 205.4 MB / 222.1 MB, free: 5.637 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.0004329/0.000433, allocations: 12 kB / 278.9 MB, free: 12.81 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2398/0.2403, allocations: 47.58 MB / 326.5 MB, free: 1.516 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.02646/0.2668, allocations: 26.15 MB / 352.6 MB, free: 9.387 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01929/0.2861, allocations: 5.67 MB / 358.3 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006155/0.2924, allocations: 115.7 kB / 358.4 MB, free: 3.59 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004565/0.297, allocations: 1.326 MB / 359.7 MB, free: 2.258 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01145/0.3084, allocations: 3.801 MB / 363.5 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001744/0.3102, allocations: 215.7 kB / 363.8 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003912/0.3141, allocations: 2.594 MB / 366.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003308/0.3175, allocations: 1.88 MB / 368.2 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001469/0.319, allocations: 0.7393 MB / 369 MB, free: 8.965 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001925/0.3209, allocations: 1.199 MB / 370.2 MB, free: 7.762 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005619/0.3215, allocations: 88 kB / 370.3 MB, free: 7.676 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001477/0.323, allocations: 0.5304 MB / 370.8 MB, free: 7.145 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001338/0.3243, allocations: 1.083 MB / 371.9 MB, free: 6.059 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008018/0.3251, allocations: 0.5585 MB / 372.4 MB, free: 5.492 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003951/0.3291, allocations: 3.247 MB / 375.7 MB, free: 2.238 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.415e-06/0.3291, allocations: 0 / 375.7 MB, free: 2.238 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.3291, allocations: 0 / 375.7 MB, free: 2.238 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002474/0.3294, allocations: 0 / 375.7 MB, free: 2.238 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.005093/0.3345, allocations: 2.434 MB / 378.1 MB, free: 15.74 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.691e-05/0.3346, allocations: 12.03 kB / 378.1 MB, free: 15.73 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00672/0.3413, allocations: 1.821 MB / 379.9 MB, free: 13.9 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002532/0.3439, allocations: 1.138 MB / 381.1 MB, free: 12.72 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001873/0.3441, allocations: 155.8 kB / 381.2 MB, free: 12.57 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008284/0.3449, allocations: 203.8 kB / 381.4 MB, free: 12.37 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02021/0.3651, allocations: 8.608 MB / 390 MB, free: 3.16 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001052/0.3653, allocations: 31.75 kB / 390.1 MB, free: 3.129 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002842/0.3656, allocations: 115.9 kB / 390.2 MB, free: 3.016 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002732/0.3683, allocations: 1.655 MB / 391.8 MB, free: 1.363 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01708/0.3854, allocations: 7.155 MB / 399 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03579/0.4212, allocations: 30.18 MB / 429.2 MB, free: 11.13 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02019/0.4415, allocations: 5.111 MB / 434.3 MB, free: 5.84 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001761/0.4433, allocations: 1.243 MB / 435.5 MB, free: 4.578 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005445/0.4488, allocations: 3.738 MB / 439.3 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.653e-05/0.4488, allocations: 50.81 kB / 439.3 MB, free: 0.6328 MB / 366.1 MB Notification: Performance of pre-optimization done (n=111): time 3.767e-06/0.4489, allocations: 0 / 439.3 MB, free: 0.6328 MB / 366.1 MB Notification: Performance of matching and sorting (n=111): time 0.04184/0.4907, allocations: 9.392 MB / 448.7 MB, free: 7.152 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001209/0.4909, allocations: 191.9 kB / 448.9 MB, free: 6.922 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004842/0.4957, allocations: 3.027 MB / 451.9 MB, free: 3.875 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002078/0.496, allocations: 41.7 kB / 452 MB, free: 3.828 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00225/0.4982, allocations: 2.414 MB / 454.4 MB, free: 1.375 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007921/0.499, allocations: 0.4942 MB / 454.9 MB, free: 0.875 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000211/0.4992, allocations: 104 kB / 455 MB, free: 0.7734 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0003886/0.4996, allocations: 0.5411 MB / 455.5 MB, free: 232 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2063/0.706, allocations: 1.577 MB / 457.1 MB, free: 114.1 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004187/0.7102, allocations: 5.144 MB / 462.2 MB, free: 109.5 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00391/0.7141, allocations: 2.796 MB / 465 MB, free: 108.5 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.151e-05/0.7142, allocations: 35.41 kB / 465.1 MB, free: 108.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.009037/0.7233, allocations: 6.396 MB / 471.5 MB, free: 106.2 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.944e-05/0.7234, allocations: 60.06 kB / 471.5 MB, free: 106.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001645/0.7236, allocations: 126.2 kB / 471.6 MB, free: 106.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001652/0.7238, allocations: 187.8 kB / 471.8 MB, free: 106.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004189/0.728, allocations: 1.459 MB / 473.3 MB, free: 105 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001392/0.7281, allocations: 250.1 kB / 473.5 MB, free: 104.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003462/0.7316, allocations: 0.7469 MB / 474.3 MB, free: 104.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003908/0.732, allocations: 347.1 kB / 474.6 MB, free: 104 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.001982/0.734, allocations: 1.568 MB / 476.2 MB, free: 102.6 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003439/0.7343, allocations: 257.8 kB / 476.4 MB, free: 102.3 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001096/0.7354, allocations: 0.8312 MB / 477.3 MB, free: 101.6 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.156e-05/0.7355, allocations: 18.3 kB / 477.3 MB, free: 101.6 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.147e-06/0.7355, allocations: 3.953 kB / 477.3 MB, free: 101.6 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.181e-05/0.7355, allocations: 10 kB / 477.3 MB, free: 101.6 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004474/0.74, allocations: 3.372 MB / 480.7 MB, free: 98.46 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.273e-06/0.74, allocations: 8 kB / 480.7 MB, free: 98.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00198/0.742, allocations: 411.4 kB / 481.1 MB, free: 98.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.735e-06/0.742, allocations: 4 kB / 481.1 MB, free: 98.04 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.397e-05/0.7421, allocations: 36.66 kB / 481.1 MB, free: 98.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.412e-06/0.7421, allocations: 4 kB / 481.1 MB, free: 98 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.7421, allocations: 0 / 481.1 MB, free: 98 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002343/0.7445, allocations: 2.789 MB / 483.9 MB, free: 95.19 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004086/0.7449, allocations: 309.5 kB / 484.2 MB, free: 94.87 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002274/0.7451, allocations: 39.31 kB / 484.3 MB, free: 94.83 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007711/0.7459, allocations: 40.66 kB / 484.3 MB, free: 94.79 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.351e-05/0.746, allocations: 56.42 kB / 484.3 MB, free: 94.74 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.309e-05/0.7461, allocations: 41.14 kB / 484.4 MB, free: 94.7 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002019/0.7481, allocations: 1.829 MB / 486.2 MB, free: 92.87 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.7481, allocations: 0 / 486.2 MB, free: 92.87 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004104/0.7522, allocations: 0.824 MB / 487 MB, free: 92.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.0003817/0.7526, allocations: 172.9 kB / 487.2 MB, free: 91.88 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004631/0.7572, allocations: 3.576 MB / 490.8 MB, free: 88.32 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/0.7573, allocations: 0 / 490.8 MB, free: 88.32 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006854/0.758, allocations: 0.7098 MB / 491.5 MB, free: 87.61 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001357/0.7593, allocations: 257.8 kB / 491.7 MB, free: 87.36 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009655/0.769, allocations: 8.484 MB / 0.4885 GB, free: 78.84 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001797/0.7708, allocations: 2.398 MB / 0.4908 GB, free: 76.41 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00338/0.7742, allocations: 1.642 MB / 0.4925 GB, free: 74.77 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003853/0.7746, allocations: 187.4 kB / 0.4926 GB, free: 74.58 MB / 382.1 MB Notification: Performance of SimCode: time 8.21e-07/0.7746, allocations: 0 / 0.4926 GB, free: 74.58 MB / 382.1 MB Notification: Performance of Templates: time 0.03544/0.8101, allocations: 20.12 MB / 0.5123 GB, free: 54.5 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)