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.005807/0.005807, allocations: 103.5 kB / 15.73 MB, free: 6.039 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.001201/0.001201, allocations: 191.7 kB / 16.67 MB, free: 5.973 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.495/1.495, allocations: 205.1 MB / 222.5 MB, free: 4.539 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.001324/0.001324, allocations: 54.86 kB / 326.6 MB, free: 14.35 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09923/0.1006, allocations: 46.62 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.008473/0.1091, allocations: 6.985 MB / 380.2 MB, free: 10.3 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006188/0.1153, allocations: 3.1 MB / 383.3 MB, free: 7.188 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001057/0.1164, allocations: 31.94 kB / 383.3 MB, free: 7.156 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001731/0.1182, allocations: 0.6614 MB / 384 MB, free: 6.492 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00338/0.1216, allocations: 1.421 MB / 385.4 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001091/0.1227, allocations: 0.4912 MB / 385.9 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003983/0.1267, allocations: 3.129 MB / 389 MB, free: 1.438 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008288/0.1275, allocations: 463.1 kB / 389.4 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001239/0.1288, allocations: 0.8055 MB / 390.3 MB, free: 168 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001679/0.1305, allocations: 1.215 MB / 391.5 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004065/0.1309, allocations: 128 kB / 391.6 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001657/0.1326, allocations: 0.9477 MB / 392.5 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001146/0.1337, allocations: 1.091 MB / 393.6 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001534/0.1353, allocations: 1.23 MB / 394.9 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00426/0.1395, allocations: 4.04 MB / 398.9 MB, free: 7.484 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1396, allocations: 0 / 398.9 MB, free: 7.484 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.1396, allocations: 3.938 kB / 398.9 MB, free: 7.48 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001112/0.1397, allocations: 4 kB / 398.9 MB, free: 7.477 MB / 334.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.007351/0.147, allocations: 3.213 MB / 402.1 MB, free: 4.203 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/0.1471, allocations: 8.031 kB / 402.1 MB, free: 4.195 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007628/0.1547, allocations: 1.889 MB / 404 MB, free: 2.301 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00361/0.1584, allocations: 1.746 MB / 405.8 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001078/0.1585, allocations: 114.6 kB / 405.9 MB, free: 404 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009155/0.1594, allocations: 303.5 kB / 406.2 MB, free: 100 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01399/0.1734, allocations: 8.227 MB / 414.4 MB, free: 7.305 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.284e-05/0.1735, allocations: 39.59 kB / 414.4 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002591/0.1738, allocations: 75.89 kB / 414.5 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001996/0.1758, allocations: 1.397 MB / 415.9 MB, free: 5.789 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01769/0.1935, allocations: 9.542 MB / 425.5 MB, free: 12.24 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2389/0.4324, allocations: 30.54 MB / 456 MB, free: 50.32 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01158/0.444, allocations: 4.378 MB / 460.4 MB, free: 49.64 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002795/0.4469, allocations: 2.118 MB / 462.5 MB, free: 49.6 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.668e-05/0.447, allocations: 9.969 kB / 462.5 MB, free: 49.6 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.943e-05/0.447, allocations: 46.56 kB / 462.5 MB, free: 49.56 MB / 382.1 MB Notification: Performance of pre-optimization done (n=122): time 3.026e-06/0.447, allocations: 0 / 462.5 MB, free: 49.56 MB / 382.1 MB Notification: Performance of matching and sorting (n=136): time 0.04036/0.4874, allocations: 18.33 MB / 480.9 MB, free: 42.6 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001621/0.489, allocations: 3.228 MB / 484.1 MB, free: 39.28 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003527/0.4926, allocations: 3.003 MB / 487.1 MB, free: 36.38 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005474/0.4931, allocations: 45.81 kB / 487.1 MB, free: 36.33 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009412/0.4941, allocations: 2.081 MB / 489.2 MB, free: 34.26 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006851/0.4948, allocations: 0.5679 MB / 489.8 MB, free: 33.7 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001271/0.4961, allocations: 1.019 MB / 490.8 MB, free: 32.68 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.342e-05/0.4961, allocations: 305.1 kB / 491.1 MB, free: 32.38 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002914/0.499, allocations: 2.633 MB / 493.7 MB, free: 29.73 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003765/0.5028, allocations: 5.587 MB / 499.3 MB, free: 22.76 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007595/0.5104, allocations: 8.632 MB / 0.4961 GB, free: 12.82 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.111e-05/0.5105, allocations: 28 kB / 0.4961 GB, free: 12.79 MB / 382.1 MB Notification: Performance of matching and sorting (n=644) (initialization): time 0.02667/0.5372, allocations: 11.77 MB / 0.5076 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.654e-05/0.5373, allocations: 55.91 kB / 0.5076 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02122/0.5585, allocations: 7.017 MB / 0.5145 GB, free: 9.887 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02033/0.5789, allocations: 4.54 MB / 0.5189 GB, free: 5.316 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004242/0.5831, allocations: 1.254 MB / 0.5201 GB, free: 4.062 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01619/0.5993, allocations: 12.53 MB / 0.5324 GB, free: 6.98 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005155/0.6045, allocations: 0.5732 MB / 0.5329 GB, free: 6.406 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008719/0.6054, allocations: 315.9 kB / 0.5332 GB, free: 6.098 MB / 414.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.00286/0.6083, allocations: 1.419 MB / 0.5346 GB, free: 4.672 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007854/0.6091, allocations: 256.7 kB / 0.5349 GB, free: 4.418 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008486/0.61, allocations: 415.2 kB / 0.5353 GB, free: 4.008 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01117/0.6211, allocations: 5.01 MB / 0.5402 GB, free: 14.96 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.74e-05/0.6212, allocations: 11.94 kB / 0.5402 GB, free: 14.95 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-05/0.6212, allocations: 3.984 kB / 0.5402 GB, free: 14.95 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009597/0.6308, allocations: 5.38 MB / 0.5454 GB, free: 9.531 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.398e-06/0.6309, allocations: 0 / 0.5454 GB, free: 9.531 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001729/0.6326, allocations: 367.4 kB / 0.5458 GB, free: 9.172 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00801/0.6406, allocations: 2.383 MB / 0.5481 GB, free: 6.762 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002887/0.6409, allocations: 47.94 kB / 0.5482 GB, free: 6.715 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009582/0.6505, allocations: 9.435 MB / 0.5574 GB, free: 12.74 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002077/0.6526, allocations: 3.071 MB / 0.5604 GB, free: 9.371 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01693/0.6696, allocations: 8.775 MB / 0.5689 GB, free: 0.5352 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001064/0.6707, allocations: 321.8 kB / 0.5692 GB, free: 204 kB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009214/0.6716, allocations: 31.98 kB / 0.5693 GB, free: 172 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002506/0.6741, allocations: 319.4 kB / 0.5696 GB, free: 15.86 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006214/0.6748, allocations: 108.1 kB / 0.5697 GB, free: 15.75 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002885/0.6751, allocations: 47.97 kB / 0.5697 GB, free: 15.7 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003585/0.6787, allocations: 1.879 MB / 0.5716 GB, free: 13.82 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.6787, allocations: 3.938 kB / 0.5716 GB, free: 13.82 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005457/0.6842, allocations: 1.002 MB / 0.5725 GB, free: 12.82 MB / 462.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.0007374/0.6849, allocations: 183.8 kB / 0.5727 GB, free: 12.63 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01417/0.6991, allocations: 7.458 MB / 0.58 GB, free: 5.066 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.144e-06/0.6992, allocations: 3.938 kB / 0.58 GB, free: 5.062 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007354/0.7065, allocations: 3.638 MB / 0.5836 GB, free: 1.281 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003319/0.7099, allocations: 323.9 kB / 0.5839 GB, free: 0.9727 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01461/0.7245, allocations: 8.127 MB / 0.5918 GB, free: 8.801 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003273/0.7278, allocations: 2.31 MB / 0.5941 GB, free: 6.465 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004322/0.7322, allocations: 1.66 MB / 0.5957 GB, free: 4.797 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001083/0.7333, allocations: 199.3 kB / 0.5959 GB, free: 4.602 MB / 478.1 MB Notification: Performance of SimCode: time 8.32e-07/0.7333, allocations: 4 kB / 0.5959 GB, free: 4.598 MB / 478.1 MB Notification: Performance of Templates: time 0.2932/1.026, allocations: 43.4 MB / 0.6383 GB, free: 180.3 MB / 0.4981 GB 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)