/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 233 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7371
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1051.4-3139_daily_bin835
RA = 162.85, Dec = -31.6507
tmin = 455760001, tmax = 456019201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='245872', job_status='RUN', time_executed='2021-09-02 18:15:35.775990', time_epoch_executed='1630631735.78' WHERE source_name='4FGL J1051.4-3139' and cadence='daily' and bin_id='835'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/245872

Creating custom pfile directory:
/scratch/kocevski/245872/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=455760001.0 && nMetStart<456019201.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=455760001.0 && nMetStart<456019201.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/245872/ft1_4FGL_J1051.4-3139_daily_bin835.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=455760001.0 && nMetStart<456019201.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/245872/ft2_4FGL_J1051.4-3139_daily_bin835.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/245872/ft1_4FGL_J1051.4-3139_daily_bin835.fits outfile=/scratch/kocevski/245872/ft1_filteredMKT_4FGL_J1051.4-3139_daily_bin835.fits ra=162.85 dec=-31.6507 rad=12.0 tmin=455760001.0 tmax=456019201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.44
user 3.21
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/245872/ft2_4FGL_J1051.4-3139_daily_bin835.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/245872/ft2_4FGL_J1051.4-3139_daily_bin835.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/245872/ft1_filteredMKT_4FGL_J1051.4-3139_daily_bin835.fits evtable="EVENTS" outfile="/scratch/kocevski/245872/ft1_filtered_4FGL_J1051.4-3139_daily_bin835.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/245872/ft1_filtered_4FGL_J1051.4-3139_daily_bin835.fits" evtable="EVENTS" scfile=/scratch/kocevski/245872/ft2_4FGL_J1051.4-3139_daily_bin835.fits sctable="SC_DATA" outfile=/scratch/kocevski/245872/ltcube_455760001_456019201_4FGL_J1051.4-3139_daily_bin835.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/245872/ft2_4FGL_J1051.4-3139_daily_bin835.fits
.....................!
real 17.14
user 16.27
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/245872/ft1_filtered_4FGL_J1051.4-3139_daily_bin835.fits evtable="EVENTS" scfile=/scratch/kocevski/245872/ft2_4FGL_J1051.4-3139_daily_bin835.fits sctable="SC_DATA" expcube=/scratch/kocevski/245872/ltcube_455760001_456019201_4FGL_J1051.4-3139_daily_bin835.fits outfile=/scratch/kocevski/245872/expmap_455760001_456019201_4FGL_J1051.4-3139_daily_bin835.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/245872/ltcube_455760001_456019201_4FGL_J1051.4-3139_daily_bin835.fits
.....................!
real 193.98
user 188.38
sys 4.77

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 182 point sources and 0 extended sources

Setting source of interest to:
4FGL J1051.4-3139 @ 162.85 -31.6507

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/245872/ft1_filtered_4FGL_J1051.4-3139_daily_bin835.fits scfile=/scratch/kocevski/245872/ft2_4FGL_J1051.4-3139_daily_bin835.fits outfile=/scratch/kocevski/245872/cmap_455760001_456019201_4FGL_J1051.4-3139_daily_bin835.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=162.85 yref=-31.6507 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/245872/ft1_filtered_4FGL_J1051.4-3139_daily_bin835.fits scfile=/scratch/kocevski/245872/ft2_4FGL_J1051.4-3139_daily_bin835.fits outfile=/scratch/kocevski/245872/cmap_HighResolution_455760001_456019201_4FGL_J1051.4-3139_daily_bin835.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=162.85 yref=-31.6507 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.62
user 0.42
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/245872/ft1_filtered_4FGL_J1051.4-3139_daily_bin835.fits evtable="EVENTS" scfile=/scratch/kocevski/245872/ft2_4FGL_J1051.4-3139_daily_bin835.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/245872/Model_4FGL_J1051.4-3139_daily_bin835.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/245872/ft1_filtered_4FGL_J1051.4-3139_daily_bin835.fits.....................!
real 74.95
user 73.18
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/245872/ft1_filtered_4FGL_J1051.4-3139_daily_bin835.fits', '/scratch/kocevski/245872/ft2_4FGL_J1051.4-3139_daily_bin835.fits', expMap='/scratch/kocevski/245872/expmap_455760001_456019201_4FGL_J1051.4-3139_daily_bin835.fits', expCube='/scratch/kocevski/245872/ltcube_455760001_456019201_4FGL_J1051.4-3139_daily_bin835.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/245872/Model_4FGL_J1051.4-3139_daily_bin835.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1051.4-3139'

4FGL J1051.4-3139
   Spectrum: PowerLaw
294    Prefactor:  1.422e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
295        Index:  2.716e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
296        Scale:  5.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/245872/ft1_filtered_4FGL_J1051.4-3139_daily_bin835.fits
Spacecraft file(s): /scratch/kocevski/245872/ft2_4FGL_J1051.4-3139_daily_bin835.fits
Exposure map: /scratch/kocevski/245872/expmap_455760001_456019201_4FGL_J1051.4-3139_daily_bin835.fits
Exposure cube: /scratch/kocevski/245872/ltcube_455760001_456019201_4FGL_J1051.4-3139_daily_bin835.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/245872/Model_4FGL_J1051.4-3139_daily_bin835.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 6925.13597908

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 6925.13240948

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.700       1.0000         .10000E-03   10000.    
     2 'Prefactor '    26.239       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    15.754       1.0000         .10000E-03   10000.    
     5 'norm      '    .22755E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .21343E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    41.525       1.0000         .10000E-03   10000.    
     8 'norm      '    1.7926       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7916       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10302E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.7658       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.8924       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10536E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10339E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1498       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .91527       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6925.132     FROM MIGRAD    STATUS=CONVERGED    393 CALLS     1929 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.698        13.109       -.31947E-07   -.13161E-03
   2  Prefactor     26.277        32.745        .29370E-05    .18868E-03
   3  Prefactor     .10000E-03    7.1471        .20045E-06** at limit **
   4  norm          15.751        13.169       -.25919E-06   -.26489E-03
   5  norm          .10006E-03    4.5084        .16263E-05** at limit **
   6  Prefactor     .10026E-03    19.447       -.54521E-05** at limit **
   7  Prefactor     41.536        32.123       -.15212E-05    .12180E-03
   8  norm          1.7940        5.5557        .29007E-05    .47885E-03
   9  Prefactor     1.7061        61.305        .74143E-05    .16743E-03
  10  Prefactor     .10000E-03    3.0781        .13177E-06** at limit **
  11  Prefactor     8.7672        10.523        .15827E-06   -.91285E-05
  12  Prefactor     9.8885        7.6647       -.66492E-09    .12578E-03
  13  Prefactor     .10000E-03    3.9187       -.21484E-07** at limit **
  14  Prefactor     .10000E-03    31.305       -.19391E-05** at limit **
  15  Prefactor     .10000E-03    6.3649       -.61899E-07** at limit **
  16  Prefactor     .10000E-03    42.020        .30724E-05** at limit **
  17  Prefactor     .10000E-03    13.741       -.51932E-06** at limit **
  18  Normalizat    1.1494        .25224       -.10688E-05    .16593E-03
  19  Prefactor     .91543        .10877        .30487E-06    .13882E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 21.6978
  Prefactor  = 26.2768
  Prefactor  = 0.0001
  norm       = 15.7511
  norm       = 0.00010006
  Prefactor  = 0.000100263
  Prefactor  = 41.5364
  norm       = 1.79399
  Prefactor  = 1.70605
  Prefactor  = 0.0001
  Prefactor  = 8.76725
  Prefactor  = 9.88853
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Normalizat = 1.1494
  Prefactor  = 0.915434
 **********
 **   18 **HESSE 
 **********

 FCN=   6925.132     FROM HESSE     STATUS=OK           266 CALLS     2195 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.698        13.095        .85985E-04   -1.4776    
   2  Prefactor     26.277        33.180        .78206E-04   -1.4682    
   3  Prefactor     .10000E-03    7.1495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          15.751        12.998        .10091E-03   -1.4914    
   5  norm          .10006E-03    15.226        .31333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10026E-03    81.694        .59236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     41.536        31.189        .62207E-04   -1.4418    
   8  norm          1.7940        5.4776        .26173E-03   -1.5440    
   9  Prefactor     1.7061        58.752        .31248E-03   -1.5447    
  10  Prefactor     .10000E-03    3.0949        .14212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.7672        10.510        .13538E-03   -1.5116    
  12  Prefactor     9.8885        7.6957        .12740E-03   -1.5079    
  13  Prefactor     .10000E-03    3.9383        .16086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    31.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.3778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    42.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1494        .29974        .34881E-03   -.88181    
  19  Prefactor     .91543        .13030        .17714E-03   -.95604    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.88588e-09
Minuit parameter uncertainties:
  1  13.0969
  2  33.2034
  3  8.10439e-06
  4  13.0004
  5  0.00190463
  6  0.00928817
  7  31.2012
  8  5.4791
  9  20.0442
  10  6.95294e-06
  11  10.5124
  12  7.6965
  13  1.31769e-06
  14  0.000308365
  15  1.97758e-06
  16  0.000590088
  17  4.01812e-05
  18  0.300184
  19  0.130345
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 6925.13237888

Extracting fit parameters...

4FGL J1051.4-3139
   Spectrum: PowerLaw
294    Prefactor:  8.767e+00  1.051e+01  1.000e-04  1.000e+04 ( 1.000e-12)
295        Index:  2.716e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
296        Scale:  5.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  9.154e-01  1.303e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  1.149e+00  3.002e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.97
Ra Dec: 162.850 -31.651
Photon Flux Upper Limit: 1.65e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.30e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/245872/likelihoodResults_455760001_456019201_4FGL_J1051.4-3139_daily_bin835.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6924.73582412
delta logL = 0.396554756661

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6924.65514235
delta logL = 0.477236524489

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.418       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0362       1.0000          .0000       10.000    
     3 'Normalizat'    1.1712       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90519       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6924.655     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      208 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 24.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.419        11.342        .25572E-05   -.73226E-03
   2  Index         2.0364        .42218       -.58703E-05   -.34829E-03
   3  Normalizat    1.1713        .23447        .10541E-07    .35892E-03
   4  Prefactor     .90514        .10812       -.33884E-06    .75460E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.4192
  Index      = 2.03635
  Normalizat = 1.17134
  Prefactor  = 0.905141
 **********
 **   18 **HESSE 
 **********

 FCN=   6924.655     FROM HESSE     STATUS=OK            27 CALLS      235 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.419        12.594        .10935E-03   -1.4975    
   2  Index         2.0364        .57415        .89944E-02   -.63444    
   3  Normalizat    1.1713        .27868        .34586E-03   -.87493    
   4  Prefactor     .90514        .12860        .17793E-03   -.95962    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.95391e-09
Minuit parameter uncertainties:
  1  12.5965
  2  0.576108
  3  0.279037
  4  0.128641
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/245872': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6924.65514208
delta logL = 0.477236794934

Extracting fit parameters...

4FGL J1051.4-3139
   Spectrum: PowerLaw
294    Prefactor:  1.342e+01  1.260e+01  1.000e-04  1.000e+04 ( 1.000e-12)
295        Index:  2.036e+00  5.761e-01  0.000e+00  1.000e+01 (-1.000e+00)
296        Scale:  5.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  9.051e-01  1.286e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  1.171e+00  2.790e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.93
Ra Dec: 162.850 -31.651
Photon Index (Free Index): 2.04 +/- 0.58
Photon Flux (Free Index): 3.69e-08 +/- 3.89e-08
Energy Flux (Free Index): 2.33e-05 +/- 2.96e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/245872/cmap_HighResolution_455760001_456019201_4FGL_J1051.4-3139_daily_bin835.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/245872

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.30e-02', comment='SUCCESS', energy_flux2='2.33e-05', dlogl='4.77e-01', photon_flux2='3.69e-08', job_status='DONE', time_completed='2021-09-02 18:26:29.232191', photon_index_error2='0.58', photon_index2='2.04', ts='0.97', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.65e-07', energy_flux_error2='2.96e-05', EG='1.15', time_epoch_completed='1630632389.23', return_code='0', job_id='245872', GAL2='0.91', EG2='1.17', return_code2='0', photon_flux_error2='3.89e-08', ts2='1.93', photon_index='2.72' WHERE bin_id='835' AND source_name='4FGL J1051.4-3139' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:26:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 245872: <4FGL_J1051.4-3139_daily_bin835> in cluster <slac> Done

Job <4FGL_J1051.4-3139_daily_bin835> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  2 18:11:07 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:11:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 18:11:33 2021
Terminated at Thu Sep  2 18:26:30 2021
Results reported at Thu Sep  2 18:26:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.4-3139_daily_bin835 162.85 -31.6507 455760001 456019201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1051.4-3139 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   651.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            923 sec.

The output (if any) is above this job summary.

