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.001537/0.001537, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002071/0.002071, allocations: 193.2 kB / 16.25 MB, free: 6.625 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.436/1.436, allocations: 205.1 MB / 222.1 MB, free: 4.734 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.001162/0.001162, allocations: 51.94 kB / 278.2 MB, free: 12.67 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2509/0.2521, allocations: 46.64 MB / 324.9 MB, free: 1.906 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.01354/0.2657, allocations: 13.98 MB / 338.8 MB, free: 6.078 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008441/0.2742, allocations: 4.199 MB / 343 MB, free: 1.867 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002392/0.2766, allocations: 51.88 kB / 343.1 MB, free: 1.816 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001679/0.2783, allocations: 0.623 MB / 343.7 MB, free: 1.191 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003763/0.2821, allocations: 1.312 MB / 345 MB, free: 15.87 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001098/0.2832, allocations: 479.3 kB / 345.5 MB, free: 15.4 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00411/0.2873, allocations: 3.136 MB / 348.6 MB, free: 12.26 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008004/0.2881, allocations: 467.1 kB / 349.1 MB, free: 11.79 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001288/0.2894, allocations: 0.8133 MB / 349.9 MB, free: 10.97 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001748/0.2912, allocations: 1.371 MB / 351.3 MB, free: 9.598 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002446/0.2915, allocations: 136 kB / 351.4 MB, free: 9.465 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001917/0.2934, allocations: 0.9555 MB / 352.3 MB, free: 8.508 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001001/0.2944, allocations: 1.114 MB / 353.5 MB, free: 7.391 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001065/0.2955, allocations: 1.25 MB / 354.7 MB, free: 6.133 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003891/0.2994, allocations: 3.907 MB / 358.6 MB, free: 2.215 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.2994, allocations: 0 / 358.6 MB, free: 2.215 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2994, allocations: 0 / 358.6 MB, free: 2.215 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.373e-05/0.2995, allocations: 0 / 358.6 MB, free: 2.215 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.006235/0.3058, allocations: 3.22 MB / 361.8 MB, free: 14.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.3058, allocations: 15.97 kB / 361.9 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00776/0.3136, allocations: 1.889 MB / 363.7 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003221/0.3168, allocations: 1.727 MB / 365.5 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.427e-05/0.317, allocations: 118.6 kB / 365.6 MB, free: 11.14 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008165/0.3178, allocations: 303.5 kB / 365.9 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0143/0.3321, allocations: 8.219 MB / 374.1 MB, free: 2.055 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.742e-05/0.3322, allocations: 31.75 kB / 374.1 MB, free: 2.023 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003044/0.3325, allocations: 79.88 kB / 374.2 MB, free: 1.945 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002144/0.3347, allocations: 1.405 MB / 375.6 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01761/0.3523, allocations: 9.53 MB / 385.1 MB, free: 6.996 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03567/0.388, allocations: 30.63 MB / 415.8 MB, free: 7.512 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01195/0.4, allocations: 4.395 MB / 420.2 MB, free: 2.957 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002975/0.403, allocations: 2.105 MB / 422.3 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001212/0.4032, allocations: 8 kB / 422.3 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.58e-05/0.4032, allocations: 58.48 kB / 422.3 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of pre-optimization done (n=122): time 4.308e-06/0.4032, allocations: 0 / 422.3 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of matching and sorting (n=136): time 0.05025/0.4535, allocations: 18.33 MB / 440.7 MB, free: 14.14 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00244/0.456, allocations: 3.235 MB / 443.9 MB, free: 10.57 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00495/0.4609, allocations: 3.01 MB / 446.9 MB, free: 7.543 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001039/0.462, allocations: 41.7 kB / 447 MB, free: 7.496 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002208/0.4642, allocations: 2.072 MB / 449 MB, free: 5.395 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00127/0.4655, allocations: 0.5709 MB / 449.6 MB, free: 4.816 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002298/0.4678, allocations: 1.019 MB / 450.6 MB, free: 3.785 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001037/0.4679, allocations: 305.1 kB / 450.9 MB, free: 3.484 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003971/0.4719, allocations: 2.633 MB / 453.5 MB, free: 0.8438 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.269/0.7409, allocations: 5.578 MB / 459.1 MB, free: 108.7 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009738/0.7507, allocations: 8.627 MB / 467.7 MB, free: 102.5 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002544/0.751, allocations: 35.47 kB / 467.8 MB, free: 102.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=644) (initialization): time 0.03075/0.7817, allocations: 11.78 MB / 479.6 MB, free: 97.11 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.174e-05/0.7818, allocations: 48 kB / 479.6 MB, free: 97.06 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02208/0.8039, allocations: 7.009 MB / 486.6 MB, free: 90.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02037/0.8243, allocations: 4.55 MB / 491.2 MB, free: 85.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003973/0.8284, allocations: 1.244 MB / 492.4 MB, free: 84.19 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01368/0.8421, allocations: 12.55 MB / 0.4931 GB, free: 71.14 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005835/0.8479, allocations: 0.5766 MB / 0.4937 GB, free: 70.58 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001157/0.8491, allocations: 311.9 kB / 0.494 GB, free: 70.27 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.002334/0.8515, allocations: 1.424 MB / 0.4954 GB, free: 68.91 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005832/0.8521, allocations: 250.3 kB / 0.4956 GB, free: 68.8 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007959/0.8529, allocations: 415.9 kB / 0.496 GB, free: 68.39 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009605/0.8625, allocations: 5.022 MB / 0.5009 GB, free: 63.34 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.293e-05/0.8625, allocations: 4 kB / 0.5009 GB, free: 63.34 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.94e-05/0.8626, allocations: 7.984 kB / 0.5009 GB, free: 63.33 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006862/0.8694, allocations: 5.362 MB / 0.5062 GB, free: 57.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.194e-06/0.8695, allocations: 0 / 0.5062 GB, free: 57.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001603/0.8711, allocations: 371.4 kB / 0.5065 GB, free: 57.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007464/0.8786, allocations: 2.39 MB / 0.5089 GB, free: 55.18 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004287/0.879, allocations: 51.77 kB / 0.5089 GB, free: 55.14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007306/0.8863, allocations: 9.444 MB / 0.5181 GB, free: 45.19 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001465/0.8878, allocations: 3.062 MB / 0.5211 GB, free: 41.85 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01441/0.9023, allocations: 8.781 MB / 0.5297 GB, free: 33.04 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008905/0.9032, allocations: 325.7 kB / 0.53 GB, free: 32.7 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005116/0.9037, allocations: 31.98 kB / 0.53 GB, free: 32.67 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001959/0.9057, allocations: 319.4 kB / 0.5303 GB, free: 32.36 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004466/0.9061, allocations: 107.8 kB / 0.5304 GB, free: 32.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001616/0.9063, allocations: 55.89 kB / 0.5305 GB, free: 32.2 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002174/0.9085, allocations: 1.881 MB / 0.5323 GB, free: 30.32 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.9085, allocations: 0 / 0.5323 GB, free: 30.32 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004304/0.9128, allocations: 1.006 MB / 0.5333 GB, free: 29.32 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.0004722/0.9133, allocations: 171.4 kB / 0.5335 GB, free: 29.14 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.01126/0.9246, allocations: 7.741 MB / 0.541 GB, free: 21.3 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.284e-06/0.9246, allocations: 0 / 0.541 GB, free: 21.3 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00535/0.93, allocations: 3.645 MB / 0.5446 GB, free: 17.53 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002391/0.9324, allocations: 305 kB / 0.5449 GB, free: 17.23 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01196/0.9444, allocations: 9.332 MB / 0.554 GB, free: 7.855 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002023/0.9465, allocations: 2.297 MB / 0.5562 GB, free: 5.527 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003911/0.9504, allocations: 1.667 MB / 0.5579 GB, free: 3.852 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007361/0.9511, allocations: 199.3 kB / 0.5581 GB, free: 3.656 MB / 382.1 MB Notification: Performance of SimCode: time 1.754e-06/0.9512, allocations: 0 / 0.5581 GB, free: 3.656 MB / 382.1 MB Notification: Performance of Templates: time 0.08074/1.032, allocations: 46.3 MB / 0.6033 GB, free: 5.355 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)