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.001493/0.001492, 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.001796/0.001796, allocations: 191.9 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.398/1.398, allocations: 205.1 MB / 222 MB, free: 4.738 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.001704/0.001704, allocations: 56.25 kB / 278.1 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2999/0.3016, allocations: 46.62 MB / 324.7 MB, free: 2.152 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.02073/0.3224, allocations: 13.98 MB / 338.7 MB, free: 6.273 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01282/0.3352, allocations: 4.289 MB / 342.9 MB, free: 1.973 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003161/0.3385, allocations: 59.81 kB / 343 MB, free: 1.914 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002034/0.3405, allocations: 0.6268 MB / 343.6 MB, free: 1.285 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004682/0.3452, allocations: 1.308 MB / 344.9 MB, free: 15.97 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001747/0.347, allocations: 467.3 kB / 345.4 MB, free: 15.52 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006987/0.354, allocations: 4.147 MB / 349.5 MB, free: 11.36 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001251/0.3553, allocations: 423.1 kB / 350 MB, free: 10.93 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001739/0.3571, allocations: 0.6924 MB / 350.7 MB, free: 10.23 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002699/0.3598, allocations: 1.316 MB / 352 MB, free: 8.914 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005188/0.3603, allocations: 87.94 kB / 352.1 MB, free: 8.828 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00252/0.3629, allocations: 0.9514 MB / 353 MB, free: 7.875 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001718/0.3646, allocations: 1.075 MB / 354.1 MB, free: 6.797 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002056/0.3667, allocations: 1.195 MB / 355.3 MB, free: 5.594 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005478/0.3722, allocations: 3.84 MB / 359.1 MB, free: 1.742 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.3722, allocations: 0 / 359.1 MB, free: 1.742 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3722, allocations: 0 / 359.1 MB, free: 1.742 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.792e-05/0.3723, allocations: 0 / 359.1 MB, free: 1.742 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.009601/0.3819, allocations: 3.22 MB / 362.3 MB, free: 14.46 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.057e-05/0.382, allocations: 8.031 kB / 362.3 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01276/0.3948, allocations: 1.885 MB / 364.2 MB, free: 12.56 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004551/0.3993, allocations: 1.727 MB / 366 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000167/0.3995, allocations: 118.6 kB / 366.1 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001506/0.4011, allocations: 303.4 kB / 366.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02199/0.4231, allocations: 8.223 MB / 374.6 MB, free: 1.59 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.906e-05/0.4232, allocations: 31.69 kB / 374.6 MB, free: 1.559 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004/0.4236, allocations: 79.89 kB / 374.7 MB, free: 1.48 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003226/0.4268, allocations: 1.405 MB / 376.1 MB, free: 76 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01884/0.4457, allocations: 9.534 MB / 385.6 MB, free: 6.523 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04452/0.4903, allocations: 30.62 MB / 416.3 MB, free: 7.055 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.011/0.5013, allocations: 4.395 MB / 420.7 MB, free: 2.5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002523/0.5038, allocations: 2.105 MB / 422.8 MB, free: 388 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.801e-05/0.5039, allocations: 12 kB / 422.8 MB, free: 376 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.156e-05/0.504, allocations: 54.5 kB / 422.8 MB, free: 312 kB / 350.1 MB Notification: Performance of pre-optimization done (n=122): time 3.426e-06/0.504, allocations: 0 / 422.8 MB, free: 312 kB / 350.1 MB Notification: Performance of matching and sorting (n=136): time 0.04286/0.5468, allocations: 18.33 MB / 441.1 MB, free: 13.69 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002294/0.5492, allocations: 3.069 MB / 444.2 MB, free: 10.3 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003975/0.5532, allocations: 3.002 MB / 447.2 MB, free: 7.273 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005928/0.5538, allocations: 41.7 kB / 447.3 MB, free: 7.227 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001487/0.5553, allocations: 2.083 MB / 449.3 MB, free: 5.113 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008451/0.5561, allocations: 0.5632 MB / 449.9 MB, free: 4.543 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001362/0.5575, allocations: 1.019 MB / 450.9 MB, free: 3.512 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.966e-05/0.5576, allocations: 301.1 kB / 451.2 MB, free: 3.215 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003646/0.5613, allocations: 2.641 MB / 453.9 MB, free: 0.5664 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1807/0.742, allocations: 5.577 MB / 459.4 MB, free: 109 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009087/0.7511, allocations: 8.62 MB / 468.1 MB, free: 102.7 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.477e-05/0.7512, allocations: 30 kB / 468.1 MB, free: 102.7 MB / 382.1 MB Notification: Performance of matching and sorting (n=644) (initialization): time 0.02711/0.7783, allocations: 11.79 MB / 479.9 MB, free: 96.98 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.518e-05/0.7784, allocations: 48 kB / 479.9 MB, free: 96.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02/0.7984, allocations: 7.014 MB / 486.9 MB, free: 89.89 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02148/0.8199, allocations: 4.538 MB / 491.5 MB, free: 85.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005965/0.8259, allocations: 1.248 MB / 492.7 MB, free: 84.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01832/0.8443, allocations: 11.48 MB / 0.4924 GB, free: 72.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007918/0.8522, allocations: 0.5742 MB / 0.4929 GB, free: 71.56 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001551/0.8538, allocations: 315.9 kB / 0.4932 GB, free: 71.25 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.004034/0.8579, allocations: 1.415 MB / 0.4946 GB, free: 69.89 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001121/0.859, allocations: 258.8 kB / 0.4949 GB, free: 69.77 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001343/0.8604, allocations: 419.2 kB / 0.4953 GB, free: 69.36 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01123/0.8716, allocations: 5.018 MB / 0.5002 GB, free: 64.32 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.464e-05/0.8717, allocations: 4 kB / 0.5002 GB, free: 64.31 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.156e-05/0.8717, allocations: 7.969 kB / 0.5002 GB, free: 64.3 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007634/0.8794, allocations: 5.363 MB / 0.5054 GB, free: 58.94 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.355e-05/0.8794, allocations: 4 kB / 0.5054 GB, free: 58.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001686/0.8811, allocations: 363.4 kB / 0.5058 GB, free: 58.58 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007628/0.8887, allocations: 2.386 MB / 0.5081 GB, free: 56.16 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000462/0.8892, allocations: 47.89 kB / 0.5081 GB, free: 56.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007291/0.8965, allocations: 8.815 MB / 0.5168 GB, free: 46.82 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00131/0.8979, allocations: 2.892 MB / 0.5196 GB, free: 43.67 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01477/0.9127, allocations: 8.773 MB / 0.5281 GB, free: 34.88 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008694/0.9136, allocations: 329.6 kB / 0.5285 GB, free: 34.53 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007908/0.9144, allocations: 31.98 kB / 0.5285 GB, free: 34.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002385/0.9168, allocations: 326.9 kB / 0.5288 GB, free: 34.18 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005204/0.9173, allocations: 107.8 kB / 0.5289 GB, free: 34.08 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002199/0.9176, allocations: 51.97 kB / 0.529 GB, free: 34.03 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002882/0.9205, allocations: 1.879 MB / 0.5308 GB, free: 32.14 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.61e-07/0.9205, allocations: 0 / 0.5308 GB, free: 32.14 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004346/0.9248, allocations: 1.005 MB / 0.5318 GB, free: 31.14 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.0005016/0.9253, allocations: 167.5 kB / 0.5319 GB, free: 30.98 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0109/0.9363, allocations: 7.429 MB / 0.5392 GB, free: 23.44 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/0.9363, allocations: 0 / 0.5392 GB, free: 23.44 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005493/0.9418, allocations: 3.632 MB / 0.5427 GB, free: 19.67 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002758/0.9446, allocations: 297.1 kB / 0.543 GB, free: 19.38 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01168/0.9563, allocations: 9.324 MB / 0.5521 GB, free: 10.01 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002326/0.9586, allocations: 2.306 MB / 0.5544 GB, free: 7.672 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.004423/0.9631, allocations: 1.66 MB / 0.556 GB, free: 6.004 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001172/0.9643, allocations: 199.3 kB / 0.5562 GB, free: 5.809 MB / 382.1 MB Notification: Performance of SimCode: time 1.463e-06/0.9643, allocations: 4 kB / 0.5562 GB, free: 5.805 MB / 382.1 MB Notification: Performance of Templates: time 0.06847/1.033, allocations: 44.4 MB / 0.5995 GB, free: 9.402 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)