Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001189/0.001189, allocations: 91.36 kB / 16.65 MB, free: 6.535 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.001529/0.001529, allocations: 178.5 kB / 17.56 MB, free: 6.18 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.419/1.419, allocations: 205.4 MB / 223.7 MB, free: 13.06 MB / 190.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.0004319/0.0004319, allocations: 8 kB / 280.7 MB, free: 3.41 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08914/0.08958, allocations: 47.59 MB / 328.3 MB, free: 3.75 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.01238/0.102, allocations: 13.39 MB / 341.7 MB, free: 6.297 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008985/0.111, allocations: 4.243 MB / 346 MB, free: 2.043 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00262/0.1137, allocations: 51.88 kB / 346 MB, free: 1.992 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009549/0.1147, allocations: 274.8 kB / 346.3 MB, free: 1.723 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003585/0.1183, allocations: 1.308 MB / 347.6 MB, free: 420 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009954/0.1193, allocations: 471.4 kB / 348 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005012/0.1243, allocations: 4.146 MB / 352.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009674/0.1253, allocations: 0.5465 MB / 352.7 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001166/0.1265, allocations: 0.6885 MB / 353.4 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001888/0.1284, allocations: 1.32 MB / 354.8 MB, free: 9.188 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002735/0.1287, allocations: 84 kB / 354.8 MB, free: 9.105 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001978/0.1307, allocations: 0.9514 MB / 355.8 MB, free: 8.152 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001052/0.1317, allocations: 1.075 MB / 356.9 MB, free: 7.074 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001116/0.1329, allocations: 1.224 MB / 358.1 MB, free: 5.836 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003788/0.1367, allocations: 3.78 MB / 361.9 MB, free: 2.043 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.1367, allocations: 0 / 361.9 MB, free: 2.043 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.1367, allocations: 0 / 361.9 MB, free: 2.043 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.604e-05/0.1367, allocations: 0 / 361.9 MB, free: 2.043 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: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.005298/0.142, allocations: 2.714 MB / 364.6 MB, free: 15.27 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.1421, allocations: 8.031 kB / 364.6 MB, free: 15.26 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00803/0.1501, allocations: 1.943 MB / 366.5 MB, free: 13.31 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003012/0.1532, allocations: 1.719 MB / 368.2 MB, free: 11.55 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.954e-05/0.1533, allocations: 118.5 kB / 368.4 MB, free: 11.43 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009205/0.1542, allocations: 307.5 kB / 368.7 MB, free: 11.13 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01424/0.1685, allocations: 8.238 MB / 376.9 MB, free: 2.328 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.064e-05/0.1686, allocations: 39.66 kB / 376.9 MB, free: 2.289 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002684/0.1688, allocations: 75.89 kB / 377 MB, free: 2.215 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002195/0.171, allocations: 1.397 MB / 378.4 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.199/0.3701, allocations: 9.529 MB / 387.9 MB, free: 47.77 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03107/0.4012, allocations: 30.59 MB / 418.5 MB, free: 22.23 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01093/0.4122, allocations: 4.423 MB / 423 MB, free: 17.64 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002577/0.4148, allocations: 2.113 MB / 425.1 MB, free: 15.52 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.637e-05/0.4149, allocations: 15.27 kB / 425.1 MB, free: 15.5 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.918e-05/0.4149, allocations: 51.31 kB / 425.1 MB, free: 15.45 MB / 318.1 MB Notification: Performance of pre-optimization done (n=122): time 3.537e-06/0.4149, allocations: 0 / 425.1 MB, free: 15.45 MB / 318.1 MB Notification: Performance of matching and sorting (n=136): time 0.04468/0.4596, allocations: 18.44 MB / 443.6 MB, free: 12.71 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002225/0.4619, allocations: 3.051 MB / 446.6 MB, free: 9.344 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004655/0.4665, allocations: 2.998 MB / 449.6 MB, free: 6.324 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006212/0.4672, allocations: 47.11 kB / 449.7 MB, free: 6.273 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001423/0.4686, allocations: 2.078 MB / 451.7 MB, free: 4.203 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008343/0.4695, allocations: 0.5662 MB / 452.3 MB, free: 3.641 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006025/0.4701, allocations: 438.2 kB / 452.7 MB, free: 3.207 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.642e-05/0.4702, allocations: 301.1 kB / 453 MB, free: 2.91 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004165/0.4743, allocations: 2.629 MB / 455.7 MB, free: 280 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005805/0.4802, allocations: 5.586 MB / 461.3 MB, free: 9.211 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0121/0.4923, allocations: 8.621 MB / 469.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001538/0.4925, allocations: 32 kB / 469.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=644) (initialization): time 0.03486/0.5274, allocations: 11.78 MB / 481.7 MB, free: 3.285 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000121/0.5276, allocations: 48 kB / 481.7 MB, free: 3.238 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02492/0.5525, allocations: 7.017 MB / 488.7 MB, free: 12.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02384/0.5764, allocations: 4.55 MB / 493.3 MB, free: 7.617 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004704/0.5811, allocations: 1.24 MB / 494.5 MB, free: 6.375 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01642/0.5976, allocations: 11.48 MB / 0.4942 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006063/0.6037, allocations: 0.5817 MB / 0.4947 GB, free: 9.785 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001393/0.6051, allocations: 319.5 kB / 0.495 GB, free: 9.477 MB / 398.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.003252/0.6084, allocations: 1.41 MB / 0.4964 GB, free: 8.055 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006633/0.6091, allocations: 260.7 kB / 0.4967 GB, free: 7.797 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009615/0.61, allocations: 411.2 kB / 0.497 GB, free: 7.391 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01257/0.6226, allocations: 5.017 MB / 0.5019 GB, free: 2.336 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.843e-05/0.6227, allocations: 8 kB / 0.502 GB, free: 2.328 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.078e-05/0.6227, allocations: 3.984 kB / 0.502 GB, free: 2.324 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009419/0.6321, allocations: 5.365 MB / 0.5072 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.776e-06/0.6322, allocations: 0 / 0.5072 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00188/0.6341, allocations: 371.4 kB / 0.5076 GB, free: 12.54 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009206/0.6433, allocations: 2.382 MB / 0.5099 GB, free: 10.13 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004949/0.6438, allocations: 50.48 kB / 0.5099 GB, free: 10.09 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009585/0.6534, allocations: 8.846 MB / 0.5186 GB, free: 0.7109 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00201/0.6555, allocations: 2.895 MB / 0.5214 GB, free: 13.53 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01776/0.6732, allocations: 8.766 MB / 0.53 GB, free: 4.711 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009751/0.6743, allocations: 333.5 kB / 0.5303 GB, free: 4.363 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005199/0.6748, allocations: 41.08 kB / 0.5303 GB, free: 4.324 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00216/0.677, allocations: 315.4 kB / 0.5306 GB, free: 4.016 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00043/0.6774, allocations: 103.8 kB / 0.5307 GB, free: 3.914 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001662/0.6776, allocations: 61.92 kB / 0.5308 GB, free: 3.855 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002665/0.6802, allocations: 1.879 MB / 0.5326 GB, free: 1.973 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.6803, allocations: 0 / 0.5326 GB, free: 1.973 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003866/0.6841, allocations: 1.004 MB / 0.5336 GB, free: 0.9727 MB / 430.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.0004416/0.6846, allocations: 176.3 kB / 0.5338 GB, free: 0.793 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.1739/0.8585, allocations: 7.381 MB / 0.541 GB, free: 146.4 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.232e-06/0.8586, allocations: 1.5 kB / 0.541 GB, free: 146.4 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006378/0.865, allocations: 3.622 MB / 0.5445 GB, free: 145.3 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002487/0.8675, allocations: 295.6 kB / 0.5448 GB, free: 145.1 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01079/0.8783, allocations: 9.637 MB / 0.5542 GB, free: 140.2 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00162/0.8799, allocations: 2.297 MB / 0.5564 GB, free: 139.1 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003382/0.8833, allocations: 1.664 MB / 0.5581 GB, free: 139 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006795/0.884, allocations: 205.9 kB / 0.5583 GB, free: 139 MB / 430.1 MB Notification: Performance of SimCode: time 7.21e-07/0.884, allocations: 3.938 kB / 0.5583 GB, free: 139 MB / 430.1 MB Notification: Performance of Templates: time 0.0577/0.9417, allocations: 43.81 MB / 0.601 GB, free: 99.43 MB / 430.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe 2>&1)