Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.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.PointGravity,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001574/0.001574, allocations: 108 kB / 15.6 MB, free: 132 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.001945/0.001945, allocations: 193.4 kB / 16.53 MB, free: 6.391 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.45/1.45, allocations: 205.1 MB / 222.4 MB, free: 4.574 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.001447/0.001447, allocations: 51.92 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2116/0.2131, allocations: 46.64 MB / 325.3 MB, free: 1.969 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.007213/0.2203, allocations: 6.994 MB / 332.3 MB, free: 12.47 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.005384/0.2257, allocations: 3.091 MB / 335.4 MB, free: 9.914 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007481/0.2266, allocations: 35.94 kB / 335.4 MB, free: 9.879 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001271/0.2278, allocations: 0.6652 MB / 336.1 MB, free: 9.211 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002489/0.2303, allocations: 1.386 MB / 337.5 MB, free: 7.82 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008112/0.2312, allocations: 0.4952 MB / 338 MB, free: 7.324 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002944/0.2341, allocations: 3.129 MB / 341.1 MB, free: 4.188 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006148/0.2347, allocations: 459.1 kB / 341.6 MB, free: 3.727 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008242/0.2356, allocations: 0.79 MB / 342.3 MB, free: 2.934 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001179/0.2368, allocations: 1.222 MB / 343.6 MB, free: 1.707 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002245/0.237, allocations: 135.9 kB / 343.7 MB, free: 1.574 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001375/0.2384, allocations: 0.9399 MB / 344.6 MB, free: 0.6328 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009281/0.2393, allocations: 1.091 MB / 345.7 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009687/0.2403, allocations: 1.238 MB / 347 MB, free: 14.29 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003414/0.2437, allocations: 3.864 MB / 350.8 MB, free: 10.42 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.2437, allocations: 3.938 kB / 350.8 MB, free: 10.41 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.2438, allocations: 0 / 350.8 MB, free: 10.41 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.36e-05/0.2438, allocations: 0 / 350.8 MB, free: 10.41 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: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.005551/0.2494, allocations: 3.213 MB / 354.1 MB, free: 7.141 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.304e-05/0.2494, allocations: 12.03 kB / 354.1 MB, free: 7.129 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007611/0.257, allocations: 1.889 MB / 356 MB, free: 5.234 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002793/0.2598, allocations: 1.723 MB / 357.7 MB, free: 3.469 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.757e-05/0.26, allocations: 118.6 kB / 357.8 MB, free: 3.352 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000899/0.2609, allocations: 299.5 kB / 358.1 MB, free: 3.059 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01493/0.2758, allocations: 8.227 MB / 366.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.193e-05/0.2759, allocations: 39.58 kB / 366.4 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002776/0.2762, allocations: 75.89 kB / 366.4 MB, free: 10.15 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002195/0.2784, allocations: 1.393 MB / 367.8 MB, free: 8.758 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01884/0.2973, allocations: 9.546 MB / 377.4 MB, free: 15.19 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03787/0.3352, allocations: 30.62 MB / 408 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01193/0.3472, allocations: 4.383 MB / 412.4 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003085/0.3503, allocations: 2.113 MB / 414.5 MB, free: 9.055 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.465e-05/0.3504, allocations: 11.98 kB / 414.5 MB, free: 9.043 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.92e-05/0.3504, allocations: 58.44 kB / 414.5 MB, free: 8.977 MB / 350.1 MB Notification: Performance of pre-optimization done (n=122): time 3.687e-06/0.3505, allocations: 4 kB / 414.5 MB, free: 8.973 MB / 350.1 MB Notification: Performance of matching and sorting (n=136): time 0.04959/0.4001, allocations: 18.32 MB / 432.9 MB, free: 6.355 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002383/0.4025, allocations: 3.223 MB / 436.1 MB, free: 2.793 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004549/0.4071, allocations: 3.006 MB / 439.1 MB, free: 15.77 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009382/0.408, allocations: 45.69 kB / 439.1 MB, free: 15.71 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001694/0.4097, allocations: 2.087 MB / 441.2 MB, free: 13.6 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009405/0.4107, allocations: 0.5671 MB / 441.8 MB, free: 13.02 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001453/0.4121, allocations: 1.015 MB / 442.8 MB, free: 12 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001157/0.4123, allocations: 301.1 kB / 443.1 MB, free: 11.7 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003849/0.4161, allocations: 2.633 MB / 445.7 MB, free: 9.059 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006223/0.4223, allocations: 5.588 MB / 451.3 MB, free: 1.992 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2175/0.6399, allocations: 8.614 MB / 459.9 MB, free: 103.1 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.082e-05/0.64, allocations: 33.94 kB / 460 MB, free: 103.1 MB / 382.1 MB Notification: Performance of matching and sorting (n=644) (initialization): time 0.03034/0.6704, allocations: 11.79 MB / 471.8 MB, free: 99.95 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.696e-05/0.6705, allocations: 46.69 kB / 471.8 MB, free: 99.95 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02093/0.6914, allocations: 7.01 MB / 478.8 MB, free: 93.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02134/0.7128, allocations: 4.547 MB / 483.4 MB, free: 89.24 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004044/0.7169, allocations: 1.248 MB / 484.6 MB, free: 87.99 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01398/0.7309, allocations: 12.55 MB / 497.2 MB, free: 74.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005167/0.7361, allocations: 0.5804 MB / 497.7 MB, free: 74.39 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007067/0.7368, allocations: 323.5 kB / 498.1 MB, free: 74.08 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 475 * Number of states: 0 () * Number of discrete variables: 18 (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 (592): * Single equations (assignments): 577 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 4 systems {(4,100.0%), (3,100.0%), (4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 2 systems {4, 4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001776/0.7386, allocations: 1.412 MB / 499.5 MB, free: 72.71 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004796/0.7391, allocations: 256.7 kB / 499.7 MB, free: 72.6 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008219/0.7399, allocations: 411.2 kB / 0.4884 GB, free: 72.2 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01064/0.7505, allocations: 5.02 MB / 0.4933 GB, free: 67.15 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.085e-05/0.7506, allocations: 4 kB / 0.4933 GB, free: 67.14 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.771e-05/0.7506, allocations: 3.984 kB / 0.4933 GB, free: 67.14 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007527/0.7582, allocations: 5.374 MB / 0.4986 GB, free: 61.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.206e-06/0.7582, allocations: 0 / 0.4986 GB, free: 61.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00159/0.7598, allocations: 371.4 kB / 0.4989 GB, free: 61.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007933/0.7678, allocations: 2.386 MB / 0.5012 GB, free: 58.99 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003931/0.7682, allocations: 51.88 kB / 0.5013 GB, free: 58.94 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007504/0.7757, allocations: 9.441 MB / 0.5105 GB, free: 49 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00159/0.7773, allocations: 3.085 MB / 0.5135 GB, free: 45.64 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01525/0.7926, allocations: 8.765 MB / 0.5221 GB, free: 36.85 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008616/0.7935, allocations: 325.7 kB / 0.5224 GB, free: 36.51 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004186/0.7939, allocations: 43.98 kB / 0.5224 GB, free: 36.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002025/0.796, allocations: 315.4 kB / 0.5227 GB, free: 36.16 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004158/0.7964, allocations: 103.8 kB / 0.5228 GB, free: 36.05 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001579/0.7965, allocations: 58.62 kB / 0.5229 GB, free: 36 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002282/0.7988, allocations: 1.879 MB / 0.5247 GB, free: 34.12 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.7988, allocations: 4 kB / 0.5247 GB, free: 34.11 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003648/0.8025, allocations: 1.003 MB / 0.5257 GB, free: 33.11 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 24 ($STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.w_a[3],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[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 (92): * Single equations (assignments): 81 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 4 systems {(3,100.0%), (4,100.0%), (3,100.0%), (4,100.0%)} * Non-linear Jacobian (size): 2 systems {4, 4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004045/0.8029, allocations: 176.8 kB / 0.5259 GB, free: 32.94 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.01062/0.8135, allocations: 7.73 MB / 0.5334 GB, free: 25.11 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.8136, allocations: 4 kB / 0.5334 GB, free: 25.11 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005548/0.8191, allocations: 3.638 MB / 0.537 GB, free: 21.33 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002138/0.8213, allocations: 311 kB / 0.5373 GB, free: 21.03 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01034/0.8316, allocations: 8.207 MB / 0.5453 GB, free: 12.78 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001571/0.8332, allocations: 2.302 MB / 0.5475 GB, free: 10.44 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003383/0.8366, allocations: 1.656 MB / 0.5492 GB, free: 8.777 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006925/0.8373, allocations: 203.3 kB / 0.5494 GB, free: 8.578 MB / 382.1 MB Notification: Performance of SimCode: time 1.072e-06/0.8374, allocations: 0 / 0.5494 GB, free: 8.578 MB / 382.1 MB Notification: Performance of Templates: time 0.07728/0.9146, allocations: 45.87 MB / 0.5941 GB, free: 10.7 MB / 430.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe 2>&1)