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.00115/0.001149, allocations: 107.7 kB / 17.06 MB, free: 5.996 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.001157/0.001157, allocations: 198.8 kB / 18.01 MB, free: 5.066 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.467/1.467, allocations: 205.1 MB / 223.9 MB, free: 12.23 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.001376/0.001376, allocations: 55.92 kB / 327.9 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09653/0.09792, allocations: 46.62 MB / 374.5 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.2053/0.3032, allocations: 7.001 MB / 381.5 MB, free: 9.664 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005771/0.309, allocations: 3.088 MB / 384.6 MB, free: 8.344 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001076/0.3102, allocations: 36.12 kB / 384.6 MB, free: 8.336 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00178/0.312, allocations: 0.6696 MB / 385.3 MB, free: 8.094 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004526/0.3165, allocations: 1.388 MB / 386.7 MB, free: 7.531 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001462/0.318, allocations: 496.8 kB / 387.2 MB, free: 7.367 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005633/0.3236, allocations: 3.137 MB / 390.3 MB, free: 6.352 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001179/0.3249, allocations: 458.9 kB / 390.7 MB, free: 6.172 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001761/0.3266, allocations: 0.7995 MB / 391.5 MB, free: 5.855 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002066/0.3287, allocations: 1.218 MB / 392.8 MB, free: 5.445 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004903/0.3292, allocations: 130.9 kB / 392.9 MB, free: 5.445 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002519/0.3317, allocations: 0.9478 MB / 393.8 MB, free: 5.219 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001315/0.3331, allocations: 1.09 MB / 394.9 MB, free: 4.867 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001241/0.3343, allocations: 1.227 MB / 396.1 MB, free: 4 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004718/0.339, allocations: 4.06 MB / 400.2 MB, free: 1.555 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.3391, allocations: 0.9375 kB / 400.2 MB, free: 1.555 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3391, allocations: 0 / 400.2 MB, free: 1.555 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.35e-05/0.3392, allocations: 0 / 400.2 MB, free: 1.555 MB / 318.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.006674/0.3458, allocations: 3.298 MB / 403.5 MB, free: 15.23 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.3459, allocations: 10.44 kB / 403.5 MB, free: 15.23 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008119/0.354, allocations: 1.903 MB / 405.4 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003206/0.3572, allocations: 1.757 MB / 407.2 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.919e-05/0.3573, allocations: 118.6 kB / 407.3 MB, free: 13.08 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008254/0.3582, allocations: 308.7 kB / 407.6 MB, free: 12.95 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01448/0.3727, allocations: 8.218 MB / 415.8 MB, free: 5.523 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.542e-05/0.3728, allocations: 35.69 kB / 415.8 MB, free: 5.488 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000271/0.373, allocations: 79.89 kB / 415.9 MB, free: 5.41 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002133/0.3752, allocations: 1.393 MB / 417.3 MB, free: 4.012 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01974/0.3949, allocations: 9.542 MB / 426.9 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03594/0.4309, allocations: 30.58 MB / 457.4 MB, free: 11.04 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01235/0.4433, allocations: 4.383 MB / 461.8 MB, free: 6.496 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002816/0.4462, allocations: 2.117 MB / 463.9 MB, free: 4.363 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.894e-05/0.4463, allocations: 15.98 kB / 464 MB, free: 4.348 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.363e-05/0.4463, allocations: 47.62 kB / 464 MB, free: 4.293 MB / 382.1 MB Notification: Performance of pre-optimization done (n=122): time 3.156e-06/0.4463, allocations: 3.938 kB / 464 MB, free: 4.289 MB / 382.1 MB Notification: Performance of matching and sorting (n=136): time 0.04817/0.4945, allocations: 18.5 MB / 482.5 MB, free: 1.516 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002489/0.497, allocations: 3.24 MB / 485.7 MB, free: 13.94 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004514/0.5016, allocations: 3.007 MB / 488.8 MB, free: 10.91 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000661/0.5023, allocations: 41.7 kB / 488.8 MB, free: 10.87 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001526/0.5038, allocations: 2.171 MB / 491 MB, free: 8.676 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008442/0.5046, allocations: 0.5854 MB / 491.6 MB, free: 8.086 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001549/0.5062, allocations: 1.024 MB / 492.6 MB, free: 7.051 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.828e-05/0.5063, allocations: 301.1 kB / 492.9 MB, free: 6.754 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003929/0.5102, allocations: 2.633 MB / 495.5 MB, free: 4.113 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006117/0.5164, allocations: 5.585 MB / 0.4893 GB, free: 13.05 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01122/0.5276, allocations: 8.627 MB / 0.4978 GB, free: 2.961 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.336e-05/0.5277, allocations: 31.94 kB / 0.4978 GB, free: 2.93 MB / 430.1 MB Notification: Performance of matching and sorting (n=644) (initialization): time 0.03618/0.5639, allocations: 11.79 MB / 0.5093 GB, free: 7.094 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001382/0.5641, allocations: 56.88 kB / 0.5094 GB, free: 7.039 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02439/0.5885, allocations: 7.009 MB / 0.5162 GB, free: 0 / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02261/0.6112, allocations: 4.538 MB / 0.5206 GB, free: 11.43 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00517/0.6164, allocations: 1.252 MB / 0.5219 GB, free: 10.18 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01857/0.635, allocations: 12.54 MB / 0.5341 GB, free: 13.07 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005945/0.641, allocations: 0.5772 MB / 0.5347 GB, free: 12.49 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001376/0.6424, allocations: 323.9 kB / 0.535 GB, free: 12.17 MB / 478.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.004/0.6464, allocations: 1.41 MB / 0.5364 GB, free: 10.75 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000921/0.6473, allocations: 266.2 kB / 0.5366 GB, free: 10.49 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001312/0.6486, allocations: 415.2 kB / 0.537 GB, free: 10.08 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0122/0.6609, allocations: 5.018 MB / 0.5419 GB, free: 5.023 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.844e-05/0.6609, allocations: 8 kB / 0.5419 GB, free: 5.016 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.792e-05/0.6609, allocations: 7.922 kB / 0.5419 GB, free: 5.008 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2386/0.8996, allocations: 5.336 MB / 0.5471 GB, free: 151.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.121e-05/0.8997, allocations: 4.938 kB / 0.5471 GB, free: 151.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002122/0.9018, allocations: 364.1 kB / 0.5475 GB, free: 151.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009312/0.9111, allocations: 2.388 MB / 0.5498 GB, free: 151.3 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006762/0.9118, allocations: 47.39 kB / 0.5499 GB, free: 151.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009502/0.9213, allocations: 9.446 MB / 0.5591 GB, free: 145.8 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001623/0.923, allocations: 3.077 MB / 0.5621 GB, free: 142.9 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01904/0.9421, allocations: 8.787 MB / 0.5707 GB, free: 140.4 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001016/0.9431, allocations: 341.7 kB / 0.571 GB, free: 140.3 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009675/0.9441, allocations: 33.73 kB / 0.571 GB, free: 140.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002532/0.9466, allocations: 326.6 kB / 0.5714 GB, free: 140.2 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000545/0.9472, allocations: 107.5 kB / 0.5715 GB, free: 140.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001978/0.9474, allocations: 54.36 kB / 0.5715 GB, free: 140.2 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00337/0.9508, allocations: 1.881 MB / 0.5733 GB, free: 139.6 MB / 478.1 MB Notification: Performance of sort global known variables: time 6.61e-07/0.9508, allocations: 0 / 0.5733 GB, free: 139.6 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005863/0.9567, allocations: 1.009 MB / 0.5743 GB, free: 139.5 MB / 478.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.0005684/0.9573, allocations: 168.9 kB / 0.5745 GB, free: 139.4 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01122/0.9685, allocations: 7.459 MB / 0.5818 GB, free: 136.5 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.661e-06/0.9685, allocations: 0 / 0.5818 GB, free: 136.5 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005834/0.9744, allocations: 3.651 MB / 0.5853 GB, free: 135 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002537/0.9769, allocations: 313 kB / 0.5856 GB, free: 134.8 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01049/0.9875, allocations: 8.23 MB / 0.5937 GB, free: 127.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001648/0.9892, allocations: 2.299 MB / 0.5959 GB, free: 125 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003311/0.9925, allocations: 1.663 MB / 0.5975 GB, free: 123.3 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000754/0.9932, allocations: 198.5 kB / 0.5977 GB, free: 123.1 MB / 478.1 MB Notification: Performance of SimCode: time 7.11e-07/0.9933, allocations: 4 kB / 0.5977 GB, free: 123.1 MB / 478.1 MB Notification: Performance of Templates: time 0.06041/1.054, allocations: 43.41 MB / 0.6401 GB, free: 79.73 MB / 478.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)