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.001255/0.001255, allocations: 100 kB / 15.05 MB, free: 1.105 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.001472/0.001472, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.5/1.5, allocations: 205.4 MB / 222.1 MB, free: 5.75 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.0004599/0.0004599, allocations: 12 kB / 278.9 MB, free: 12.96 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.254/0.2545, allocations: 47.58 MB / 326.4 MB, free: 1.422 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.01197/0.2665, allocations: 11.89 MB / 338.3 MB, free: 7.625 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008803/0.2754, allocations: 4.05 MB / 342.4 MB, free: 3.566 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002683/0.2781, allocations: 55.88 kB / 342.4 MB, free: 3.512 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002114/0.2802, allocations: 0.5405 MB / 343 MB, free: 2.969 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006645/0.2869, allocations: 1.983 MB / 345 MB, free: 0.9805 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00133/0.2883, allocations: 431.3 kB / 345.4 MB, free: 0.5586 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.003672/0.292, allocations: 1.739 MB / 347.1 MB, free: 14.82 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001071/0.293, allocations: 0.5194 MB / 347.6 MB, free: 14.25 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001233/0.2943, allocations: 0.6618 MB / 348.3 MB, free: 13.59 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001614/0.2959, allocations: 0.9659 MB / 349.3 MB, free: 12.62 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004817/0.2964, allocations: 84 kB / 349.3 MB, free: 12.54 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001819/0.2982, allocations: 0.7918 MB / 350.1 MB, free: 11.74 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001313/0.2996, allocations: 0.9819 MB / 351.1 MB, free: 10.76 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001019/0.3006, allocations: 0.4962 MB / 351.6 MB, free: 10.25 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004061/0.3047, allocations: 3.018 MB / 354.6 MB, free: 7.23 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.3047, allocations: 0 / 354.6 MB, free: 7.23 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.689e-06/0.3047, allocations: 0 / 354.6 MB, free: 7.23 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.0001365/0.3048, allocations: 3.938 kB / 354.6 MB, free: 7.227 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.007471/0.3123, allocations: 2.791 MB / 357.4 MB, free: 4.375 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.548e-05/0.3124, allocations: 12.03 kB / 357.4 MB, free: 4.363 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00942/0.3218, allocations: 2.255 MB / 359.7 MB, free: 2.102 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004424/0.3263, allocations: 2.101 MB / 361.8 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001283/0.3264, allocations: 110.6 kB / 361.9 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001308/0.3277, allocations: 307.5 kB / 362.2 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01857/0.3463, allocations: 8.609 MB / 370.8 MB, free: 6.371 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001157/0.3465, allocations: 39.66 kB / 370.9 MB, free: 6.332 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000737/0.3472, allocations: 75.89 kB / 370.9 MB, free: 6.258 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002573/0.3498, allocations: 1.401 MB / 372.3 MB, free: 4.855 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01982/0.3697, allocations: 9.912 MB / 382.2 MB, free: 10.94 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04122/0.4109, allocations: 30.71 MB / 413 MB, free: 11.37 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01229/0.4233, allocations: 4.497 MB / 417.5 MB, free: 6.711 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001537/0.4235, allocations: 13 kB / 417.5 MB, free: 6.699 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.379e-05/0.4235, allocations: 46.56 kB / 417.5 MB, free: 6.645 MB / 350.1 MB Notification: Performance of pre-optimization done (n=122): time 4.91e-06/0.4235, allocations: 4 kB / 417.5 MB, free: 6.641 MB / 350.1 MB Notification: Performance of matching and sorting (n=136): time 0.0474/0.4709, allocations: 18.96 MB / 436.5 MB, free: 3.328 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002371/0.4733, allocations: 3.077 MB / 439.6 MB, free: 15.93 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005433/0.4788, allocations: 3.234 MB / 442.8 MB, free: 12.68 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009053/0.4797, allocations: 41.7 kB / 442.8 MB, free: 12.63 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002121/0.4819, allocations: 2.095 MB / 444.9 MB, free: 10.5 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001328/0.4832, allocations: 0.567 MB / 445.5 MB, free: 9.93 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006851/0.4839, allocations: 92 kB / 445.6 MB, free: 9.84 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0003847/0.4843, allocations: 0.5047 MB / 446.1 MB, free: 9.328 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004749/0.4891, allocations: 2.656 MB / 448.7 MB, free: 6.664 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2087/0.6978, allocations: 5.568 MB / 454.3 MB, free: 106.3 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008362/0.7062, allocations: 3.704 MB / 458 MB, free: 106.1 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002258/0.7065, allocations: 30.12 kB / 458 MB, free: 106.1 MB / 382.1 MB Notification: Performance of matching and sorting (n=636) (initialization): time 0.03637/0.7428, allocations: 11.79 MB / 469.8 MB, free: 103 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000135/0.743, allocations: 53.89 kB / 469.9 MB, free: 103 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02293/0.766, allocations: 7.046 MB / 476.9 MB, free: 97.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02171/0.7878, allocations: 4.555 MB / 481.5 MB, free: 93.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004837/0.7927, allocations: 1.236 MB / 482.7 MB, free: 91.92 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0147/0.8074, allocations: 12.08 MB / 494.8 MB, free: 79.37 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005947/0.8134, allocations: 0.5771 MB / 495.4 MB, free: 78.81 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001681/0.8151, allocations: 315.9 kB / 495.7 MB, free: 78.5 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 (584): * Single equations (assignments): 569 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 4 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004485/0.8196, allocations: 1.413 MB / 497.1 MB, free: 77.14 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001179/0.8208, allocations: 257.5 kB / 497.4 MB, free: 77.02 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001327/0.8222, allocations: 415.4 kB / 497.8 MB, free: 76.62 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01112/0.8333, allocations: 5.012 MB / 0.491 GB, free: 71.57 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.831e-05/0.8334, allocations: 4 kB / 0.491 GB, free: 71.57 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.095e-05/0.8334, allocations: 7.984 kB / 0.491 GB, free: 71.56 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01107/0.8445, allocations: 5.376 MB / 0.4962 GB, free: 66.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.318e-05/0.8446, allocations: 7.984 kB / 0.4963 GB, free: 66.17 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001837/0.8464, allocations: 367.4 kB / 0.4966 GB, free: 65.81 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008334/0.8548, allocations: 2.386 MB / 0.4989 GB, free: 63.39 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006824/0.8555, allocations: 47.94 kB / 0.499 GB, free: 63.35 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007883/0.8634, allocations: 9.004 MB / 0.5078 GB, free: 53.87 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001512/0.8649, allocations: 2.914 MB / 0.5106 GB, free: 50.69 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01693/0.8819, allocations: 8.847 MB / 0.5193 GB, free: 41.75 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001292/0.8833, allocations: 341.5 kB / 0.5196 GB, free: 41.4 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001136/0.8844, allocations: 39.94 kB / 0.5196 GB, free: 41.36 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002828/0.8873, allocations: 315.4 kB / 0.5199 GB, free: 41.05 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006053/0.8879, allocations: 109.1 kB / 0.52 GB, free: 40.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002879/0.8882, allocations: 54.58 kB / 0.5201 GB, free: 40.89 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003902/0.8921, allocations: 2.055 MB / 0.5221 GB, free: 38.84 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.8921, allocations: 0 / 0.5221 GB, free: 38.84 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00632/0.8985, allocations: 1.03 MB / 0.5231 GB, free: 37.81 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 (linear and non-linear blocks): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 4 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009155/0.8994, allocations: 181.3 kB / 0.5233 GB, free: 37.63 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.01265/0.9121, allocations: 7.345 MB / 0.5304 GB, free: 30.17 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.134e-06/0.9121, allocations: 0 / 0.5304 GB, free: 30.17 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006358/0.9185, allocations: 3.617 MB / 0.534 GB, free: 26.41 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002634/0.9212, allocations: 303.5 kB / 0.5343 GB, free: 26.12 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01508/0.9363, allocations: 9.295 MB / 0.5433 GB, free: 16.77 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003677/0.9401, allocations: 2.354 MB / 0.5456 GB, free: 14.38 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0064/0.9465, allocations: 1.671 MB / 0.5473 GB, free: 12.7 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001506/0.948, allocations: 209.3 kB / 0.5475 GB, free: 12.5 MB / 382.1 MB Notification: Performance of SimCode: time 1.954e-06/0.9481, allocations: 0 / 0.5475 GB, free: 12.5 MB / 382.1 MB Notification: Performance of Templates: time 0.08028/1.028, allocations: 43.86 MB / 0.5903 GB, free: 0.625 MB / 414.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: