/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 9 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 = 7472
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1051.4-3139_daily_bin567
RA = 162.85, Dec = -31.6507
tmin = 386294401, tmax = 386553601
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='244508', job_status='RUN', time_executed='2021-09-02 18:07:42.020163', time_epoch_executed='1630631262.02' WHERE source_name='4FGL J1051.4-3139' and cadence='daily' and bin_id='567'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/244508

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/244508/ft1_4FGL_J1051.4-3139_daily_bin567.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/244508/ft2_4FGL_J1051.4-3139_daily_bin567.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/244508/ft1_4FGL_J1051.4-3139_daily_bin567.fits outfile=/scratch/kocevski/244508/ft1_filteredMKT_4FGL_J1051.4-3139_daily_bin567.fits ra=162.85 dec=-31.6507 rad=12.0 tmin=386294401.0 tmax=386553601.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.97
user 3.73
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/244508/ft2_4FGL_J1051.4-3139_daily_bin567.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/244508/ft1_filteredMKT_4FGL_J1051.4-3139_daily_bin567.fits evtable="EVENTS" outfile="/scratch/kocevski/244508/ft1_filtered_4FGL_J1051.4-3139_daily_bin567.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.50
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/244508/ft1_filtered_4FGL_J1051.4-3139_daily_bin567.fits" evtable="EVENTS" scfile=/scratch/kocevski/244508/ft2_4FGL_J1051.4-3139_daily_bin567.fits sctable="SC_DATA" outfile=/scratch/kocevski/244508/ltcube_386294401_386553601_4FGL_J1051.4-3139_daily_bin567.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/244508/ft2_4FGL_J1051.4-3139_daily_bin567.fits
.....................!
real 13.51
user 13.12
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/244508/ft1_filtered_4FGL_J1051.4-3139_daily_bin567.fits evtable="EVENTS" scfile=/scratch/kocevski/244508/ft2_4FGL_J1051.4-3139_daily_bin567.fits sctable="SC_DATA" expcube=/scratch/kocevski/244508/ltcube_386294401_386553601_4FGL_J1051.4-3139_daily_bin567.fits outfile=/scratch/kocevski/244508/expmap_386294401_386553601_4FGL_J1051.4-3139_daily_bin567.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/244508/ltcube_386294401_386553601_4FGL_J1051.4-3139_daily_bin567.fits
.....................!
real 190.43
user 185.69
sys 4.29

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/244508/ft1_filtered_4FGL_J1051.4-3139_daily_bin567.fits scfile=/scratch/kocevski/244508/ft2_4FGL_J1051.4-3139_daily_bin567.fits outfile=/scratch/kocevski/244508/cmap_386294401_386553601_4FGL_J1051.4-3139_daily_bin567.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/244508/ft1_filtered_4FGL_J1051.4-3139_daily_bin567.fits scfile=/scratch/kocevski/244508/ft2_4FGL_J1051.4-3139_daily_bin567.fits outfile=/scratch/kocevski/244508/cmap_HighResolution_386294401_386553601_4FGL_J1051.4-3139_daily_bin567.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/244508/ft1_filtered_4FGL_J1051.4-3139_daily_bin567.fits evtable="EVENTS" scfile=/scratch/kocevski/244508/ft2_4FGL_J1051.4-3139_daily_bin567.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/244508/Model_4FGL_J1051.4-3139_daily_bin567.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/244508/ft1_filtered_4FGL_J1051.4-3139_daily_bin567.fits.....................!
real 101.78
user 99.96
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/244508/ft1_filtered_4FGL_J1051.4-3139_daily_bin567.fits', '/scratch/kocevski/244508/ft2_4FGL_J1051.4-3139_daily_bin567.fits', expMap='/scratch/kocevski/244508/expmap_386294401_386553601_4FGL_J1051.4-3139_daily_bin567.fits', expCube='/scratch/kocevski/244508/ltcube_386294401_386553601_4FGL_J1051.4-3139_daily_bin567.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/244508/Model_4FGL_J1051.4-3139_daily_bin567.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/244508/ft1_filtered_4FGL_J1051.4-3139_daily_bin567.fits
Spacecraft file(s): /scratch/kocevski/244508/ft2_4FGL_J1051.4-3139_daily_bin567.fits
Exposure map: /scratch/kocevski/244508/expmap_386294401_386553601_4FGL_J1051.4-3139_daily_bin567.fits
Exposure cube: /scratch/kocevski/244508/ltcube_386294401_386553601_4FGL_J1051.4-3139_daily_bin567.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/244508/Model_4FGL_J1051.4-3139_daily_bin567.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) = 10324.6761733

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.182       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .59166E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.5461       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10123E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.8407       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .85245E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .24844E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.640       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.796       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10795E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.5567       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .86090       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=   10324.67     FROM MIGRAD    STATUS=CONVERGED    418 CALLS     1957 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.183        9.1217        .57363E-07    .10229E-03
   2  Prefactor     .10000E-03    13.432        .17475E-05** at limit **
   3  Prefactor     .10000E-03    13.003        .51077E-06** at limit **
   4  norm          .10019E-03    4.2444       -.13843E-05** at limit **
   5  norm          4.5497        5.3535       -.12479E-06   -.41716E-04
   6  Prefactor     .10000E-03    9.6977        .40770E-05** at limit **
   7  Prefactor     .10000E-03    7.0423       -.13937E-06** at limit **
   8  norm          .10000E-03    1.6995        .36641E-06** at limit **
   9  Prefactor     .10000E-03    5.6761        .64996E-06** at limit **
  10  Prefactor     2.8508        3.6371       -.77862E-06   -.13357E-02
  11  Prefactor     .10001E-03    4.5721        .70336E-06** at limit **
  12  Prefactor     .10010E-03    1.9325       -.13629E-05** at limit **
  13  Prefactor     .10000E-03    5.0865        .36869E-06** at limit **
  14  Prefactor     14.582        36.728       -.49842E-04   -.32339E-04
  15  Prefactor     11.790        14.848        .13852E-04    .99118E-04
  16  Prefactor     .10000E-03    31.700       -.41691E-06** at limit **
  17  Prefactor     .10000E-03    4.3904        .10194E-05** at limit **
  18  Normalizat    1.5572        .19597       -.31919E-06    .71319E-04
  19  Prefactor     .86081        .88146E-01    .15470E-06    .39212E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 16.1833
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100186
  norm       = 4.54971
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.85076
  Prefactor  = 0.00010001
  Prefactor  = 0.000100102
  Prefactor  = 0.0001
  Prefactor  = 14.5815
  Prefactor  = 11.7901
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.55721
  Prefactor  = 0.860812
 **********
 **   18 **HESSE 
 **********

 FCN=   10324.67     FROM HESSE     STATUS=OK           282 CALLS     2239 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.183        9.0967        .99563E-04   -1.4903    
   2  Prefactor     .10000E-03    13.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10019E-03    27.073        .39531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.5497        5.2650        .18881E-03   -1.5281    
   6  Prefactor     .10000E-03    9.8023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.0640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.7146        .25035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.7000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.8508        3.5837        .19625E-03   -1.5370    
  11  Prefactor     .10001E-03    9.0451        .60949E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10010E-03    10.577        .27303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.1737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.582        36.661        .10468E-03   -1.4944    
  15  Prefactor     11.790        14.902        .11664E-03   -1.5021    
  16  Prefactor     .10000E-03    31.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.4084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.5572        .23339        .30521E-03   -.76183    
  19  Prefactor     .86081        .10528        .18560E-03   -.97524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64367e-08
Minuit parameter uncertainties:
  1  9.09747
  2  9.89435e-06
  3  1.35325e-05
  4  0.00448524
  5  5.26553
  6  5.51088e-06
  7  1.05424e-05
  8  1.05213e-05
  9  5.96825e-07
  10  3.58396
  11  0.000595711
  12  0.00207888
  13  4.77255e-07
  14  36.7175
  15  14.907
  16  2.27222e-06
  17  4.06274e-07
  18  0.233555
  19  0.105308
Done.

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

Extracting fit parameters...

4FGL J1051.4-3139
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  5.957e-04  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:  8.608e-01  1.053e-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.557e+00  2.336e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 162.850 -31.651
Photon Flux Upper Limit: 9.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/244508/likelihoodResults_386294401_386553601_4FGL_J1051.4-3139_daily_bin567.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): 102
logL (Free Index) = 10324.6652905
delta logL = -2.61789555225e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10322.9624013
delta logL = 1.70286294846

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .57559       1.0000         .10000E-03   10000.    
     2 'Index     '    5.3647       1.0000          .0000       10.000    
     3 'Normalizat'    1.4337       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89586       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.

 FCN=   10322.96     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      277 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .57564        4.1222        .10396E-01    .17112E-02
   2  Index         5.3654        2.6992        .18633        .16998E-03
   3  Normalizat    1.4339        .46005E-01    .71298E-01    .14046E-04
   4  Prefactor     .89577        .21711E-01    .44952E-01    .10374E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.575636
  Index      = 5.36541
  Normalizat = 1.43391
  Prefactor  = 0.89577
 **********
 **   18 **HESSE 
 **********

 FCN=   10322.96     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      312 TOTAL
                     EDM=   .64E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .57564        11.254        .47617E-03   -1.5556    
   2  Index         5.3654        7.4427        .67061E-02    .73147E-01
   3  Normalizat    1.4339        .18674        .31547E-03   -.79653    
   4  Prefactor     .89577        .85813E-01    .18227E-03   -.96289    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.40012e-07
Minuit parameter uncertainties:
  1  5.09113
  2  5.9947
  3  0.18683
  4  0.0858257
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/244508': 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): 102
logL (Free Index) = 10322.9623989
delta logL = 1.70286535002

Extracting fit parameters...

4FGL J1051.4-3139
   Spectrum: PowerLaw
294    Prefactor:  5.756e-01  5.091e+00  1.000e-04  1.000e+04 ( 1.000e-12)
295        Index:  5.365e+00  5.995e+00  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:  8.958e-01  8.583e-02  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.434e+00  1.868e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.64
Ra Dec: 162.850 -31.651
Photon Index (Free Index): 5.37 +/- 5.99
Photon Flux (Free Index): 9.03e-08 +/- 6.26e-08
Energy Flux (Free Index): 1.17e-05 +/- 1.12e-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/244508/cmap_HighResolution_386294401_386553601_4FGL_J1051.4-3139_daily_bin567.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.54e-03', comment='SUCCESS', energy_flux2='1.17e-05', dlogl='1.70e+00', photon_flux2='9.03e-08', job_status='DONE', time_completed='2021-09-02 18:21:36.384566', photon_index_error2='5.99', photon_index2='5.37', ts='-0.00', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='9.57e-08', energy_flux_error2='1.12e-05', EG='1.56', time_epoch_completed='1630632096.38', return_code='0', job_id='244508', GAL2='0.90', EG2='1.43', return_code2='102', photon_flux_error2='6.26e-08', ts2='3.64', photon_index='2.72' WHERE bin_id='567' AND source_name='4FGL J1051.4-3139' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:21:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 244508: <4FGL_J1051.4-3139_daily_bin567> in cluster <slac> Done

Job <4FGL_J1051.4-3139_daily_bin567> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 18:06:33 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:07:23 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:07:23 2021
Terminated at Thu Sep  2 18:21:37 2021
Results reported at Thu Sep  2 18:21:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.4-3139_daily_bin567 162.85 -31.6507 386294401 386553601 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 :                                   832.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             353.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            904 sec.

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

