/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 3 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 = 7443
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1428.8+7429_daily_bin2
RA = 217.203, Dec = 74.485
tmin = 239846401, tmax = 240105601
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='528321', job_status='RUN', time_executed='2021-09-09 19:41:19.216456', time_epoch_executed='1631241679.22' WHERE source_name='4FGL J1428.8+7429' and cadence='daily' and bin_id='2'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/528321

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/528321/ft1_4FGL_J1428.8+7429_daily_bin2.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/528321/ft2_4FGL_J1428.8+7429_daily_bin2.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/528321/ft1_4FGL_J1428.8+7429_daily_bin2.fits outfile=/scratch/kocevski/528321/ft1_filteredMKT_4FGL_J1428.8+7429_daily_bin2.fits ra=217.203 dec=74.485 rad=12.0 tmin=239846401.0 tmax=240105601.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 1.46
user 1.28
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/528321/ft2_4FGL_J1428.8+7429_daily_bin2.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/528321/ft2_4FGL_J1428.8+7429_daily_bin2.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/528321/ft1_filteredMKT_4FGL_J1428.8+7429_daily_bin2.fits evtable="EVENTS" outfile="/scratch/kocevski/528321/ft1_filtered_4FGL_J1428.8+7429_daily_bin2.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/528321/ft1_filtered_4FGL_J1428.8+7429_daily_bin2.fits" evtable="EVENTS" scfile=/scratch/kocevski/528321/ft2_4FGL_J1428.8+7429_daily_bin2.fits sctable="SC_DATA" outfile=/scratch/kocevski/528321/ltcube_239846401_240105601_4FGL_J1428.8+7429_daily_bin2.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/528321/ft2_4FGL_J1428.8+7429_daily_bin2.fits
.....................!
real 12.79
user 12.44
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/528321/ft1_filtered_4FGL_J1428.8+7429_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/528321/ft2_4FGL_J1428.8+7429_daily_bin2.fits sctable="SC_DATA" expcube=/scratch/kocevski/528321/ltcube_239846401_240105601_4FGL_J1428.8+7429_daily_bin2.fits outfile=/scratch/kocevski/528321/expmap_239846401_240105601_4FGL_J1428.8+7429_daily_bin2.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/528321/ltcube_239846401_240105601_4FGL_J1428.8+7429_daily_bin2.fits
.....................!
real 189.40
user 185.00
sys 3.98

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 218 point sources and 0 extended sources

Setting source of interest to:
4FGL J1428.8+7429 @ 217.203 74.485

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/528321/ft1_filtered_4FGL_J1428.8+7429_daily_bin2.fits scfile=/scratch/kocevski/528321/ft2_4FGL_J1428.8+7429_daily_bin2.fits outfile=/scratch/kocevski/528321/cmap_239846401_240105601_4FGL_J1428.8+7429_daily_bin2.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=217.203 yref=74.485 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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/528321/ft1_filtered_4FGL_J1428.8+7429_daily_bin2.fits scfile=/scratch/kocevski/528321/ft2_4FGL_J1428.8+7429_daily_bin2.fits outfile=/scratch/kocevski/528321/cmap_HighResolution_239846401_240105601_4FGL_J1428.8+7429_daily_bin2.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=217.203 yref=74.485 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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/528321/ft1_filtered_4FGL_J1428.8+7429_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/528321/ft2_4FGL_J1428.8+7429_daily_bin2.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/528321/Model_4FGL_J1428.8+7429_daily_bin2.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/528321/ft1_filtered_4FGL_J1428.8+7429_daily_bin2.fits.....................!
real 65.85
user 64.48
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/528321/ft1_filtered_4FGL_J1428.8+7429_daily_bin2.fits', '/scratch/kocevski/528321/ft2_4FGL_J1428.8+7429_daily_bin2.fits', expMap='/scratch/kocevski/528321/expmap_239846401_240105601_4FGL_J1428.8+7429_daily_bin2.fits', expCube='/scratch/kocevski/528321/ltcube_239846401_240105601_4FGL_J1428.8+7429_daily_bin2.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/528321/Model_4FGL_J1428.8+7429_daily_bin2.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1428.8+7429'

4FGL J1428.8+7429
   Spectrum: PowerLaw
368    Prefactor:  2.627e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-15)
369        Index:  1.859e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
370        Scale:  6.277e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/528321/ft1_filtered_4FGL_J1428.8+7429_daily_bin2.fits
Spacecraft file(s): /scratch/kocevski/528321/ft2_4FGL_J1428.8+7429_daily_bin2.fits
Exposure map: /scratch/kocevski/528321/expmap_239846401_240105601_4FGL_J1428.8+7429_daily_bin2.fits
Exposure cube: /scratch/kocevski/528321/ltcube_239846401_240105601_4FGL_J1428.8+7429_daily_bin2.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/528321/Model_4FGL_J1428.8+7429_daily_bin2.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) = 6148.74040131

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.5850       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.7017       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14832E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    35.676       1.0000         .10000E-03   10000.    
    14 'Prefactor '    133.29       1.0000         .10000E-03   10000.    
    15 'Prefactor '    63.102       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    36.377       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.175       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    10.171       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    23.322       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .65484       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0979       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6148.736     FROM MIGRAD    STATUS=CONVERGED    669 CALLS     3412 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.4650        .19026E-07** at limit **
   2  Prefactor     .10000E-03    38.338        .47899E-05** at limit **
   3  norm          .10000E-03    6.5065        .94596E-07** at limit **
   4  norm          6.5860        4.1198        .42804E-07   -.23290E-03
   5  Prefactor     .10000E-03    21.513        .39123E-05** at limit **
   6  Prefactor     .10000E-03    22.786        .23667E-05** at limit **
   7  Prefactor     7.7016        10.536        .15195E-06   -.38957E-04
   8  Prefactor     .10000E-03    11.784       -.24277E-05** at limit **
   9  Prefactor     .10001E-03    3.8390       -.31941E-05** at limit **
  10  Prefactor     .10000E-03    7.5917       -.80806E-07** at limit **
  11  Prefactor     .10000E-03    14.408       -.22637E-05** at limit **
  12  Prefactor     .10000E-03    3.7921        .73055E-08** at limit **
  13  Prefactor     35.674        19.775        .76110E-06    .71462E-05
  14  Prefactor     133.33        70.223        .32376E-04    .24671E-03
  15  Prefactor     63.099        62.208       -.17849E-05    .44449E-05
  16  Prefactor     .10000E-03    16.345       -.37529E-05** at limit **
  17  Prefactor     36.367        35.505       -.45821E-05    .18203E-04
  18  Prefactor     .10000E-03    17.921       -.73574E-06** at limit **
  19  Prefactor     .10000E-03    21.719        .38200E-05** at limit **
  20  Prefactor     27.174        21.841        .70973E-06    .45382E-05
  21  Prefactor     .10000E-03    12.528        .52126E-05** at limit **
  22  norm          10.170        13.459        .22405E-06    .44600E-05
  23  Prefactor     .10000E-03    127.17        .17057E-05** at limit **
  24  Prefactor     23.315        44.531       -.68360E-05   -.61804E-06
  25  Prefactor     .10000E-03    1.3758        .80418E-07** at limit **
  26  Prefactor     .10000E-03    27.653       -.10611E-04** at limit **
  27  Normalizat    .65495        .16881       -.27739E-05    .41275E-03
  28  Prefactor     1.0979        .13979        .35678E-06    .28014E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.58597
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.70162
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 35.6739
  Prefactor  = 133.334
  Prefactor  = 63.0994
  Prefactor  = 0.0001
  Prefactor  = 36.367
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.1736
  Prefactor  = 0.0001
  norm       = 10.1697
  Prefactor  = 0.0001
  Prefactor  = 23.3152
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.654948
  Prefactor  = 1.09786
 **********
 **   18 **HESSE 
 **********

 FCN=   6148.736     FROM HESSE     STATUS=OK           509 CALLS     3921 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.4723        .14249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    38.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.6840        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.5860        4.1241        .11970E-03   -1.5195    
   5  Prefactor     .10000E-03    21.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.7016        10.536        .14450E-03   -1.5153    
   8  Prefactor     .10000E-03    11.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    11.771        .29416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.6063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.8129        .14909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     35.674        19.783        .67095E-04   -1.4513    
  14  Prefactor     133.33        70.421        .17440E-03   -1.3393    
  15  Prefactor     63.099        62.212        .25258E-03   -1.4118    
  16  Prefactor     .10000E-03    16.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     36.367        35.606        .66448E-04   -1.4501    
  18  Prefactor     .10000E-03    17.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    21.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     27.174        21.907        .76849E-04   -1.4665    
  21  Prefactor     .10000E-03    12.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          10.170        13.457        .12564E-03   -1.5070    
  23  Prefactor     .10000E-03    127.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     23.315        44.565        .82944E-04   -1.4742    
  25  Prefactor     .10000E-03    1.4066        .89731E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    27.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .65495        .18843        .29368E-03   -1.0570    
  28  Prefactor     1.0979        .15784        .19784E-03   -.89535    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14213e-09
Minuit parameter uncertainties:
  1  3.71628e-06
  2  2.56976e-05
  3  2.72964e-05
  4  4.1243
  5  1.11818e-05
  6  7.63039e-06
  7  10.5388
  8  7.20389e-06
  9  0.000840203
  10  3.47226e-05
  11  0.000430807
  12  2.2706e-06
  13  19.7864
  14  70.4656
  15  62.2757
  16  2.20098e-05
  17  35.6272
  18  1.80405e-05
  19  1.36513e-05
  20  21.9138
  21  2.86743e-06
  22  13.4613
  23  0.00012535
  24  44.6288
  25  9.49062e-06
  26  0.000130527
  27  0.18862
  28  0.157909
Done.

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

Extracting fit parameters...

4FGL J1428.8+7429
   Spectrum: PowerLaw
368    Prefactor:  6.310e+01  6.228e+01  1.000e-04  1.000e+04 ( 1.000e-15)
369        Index:  1.859e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
370        Scale:  6.277e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
694    Prefactor:  1.098e+00  1.579e-01  0.000e+00  1.000e+01 ( 1.000e+00)
695        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
696        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
693   Normalization:  6.549e-01  1.886e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.04
Ra Dec: 217.203 74.485
Photon Index (Fixed Index): 1.86 +/- 0.00
Photon Flux (Fixed Index): 1.61e-08 +/- 1.59e-08
Energy Flux (Fixed Index): 1.62e-05 +/- 1.60e-05

TS (Fixed Index): 3.04
Ra Dec: 217.203 74.485
Photon Flux Upper Limit: 6.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/528321/likelihoodResults_239846401_240105601_4FGL_J1428.8+7429_daily_bin2.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) = 6148.73005854
delta logL = 0.00632100436815

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6148.71519615
delta logL = 0.0211833918947

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6148.715     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      273 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     83.690        140.90        .21957E-03   -.91366E-04
   2  Index         1.7103        .75444        .74390E-02   -.10255E-03
   3  Normalizat    .65773        .17873        .29309E-03    .33576E-03
   4  Prefactor     1.0964        .15331        .19794E-03    .56599E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 83.6897
  Index      = 1.71032
  Normalizat = 0.657732
  Prefactor  = 1.09642
 **********
 **   18 **HESSE 
 **********

 FCN=   6148.715     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     83.690        127.71        .43914E-04   -1.3876    
   2  Index         1.7103        .68423        .29756E-03   -.71807    
   3  Normalizat    .65773        .17868        .11724E-04   -1.0559    
   4  Prefactor     1.0964        .15335        .39589E-04   -.89581    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.56858e-10
Minuit parameter uncertainties:
  1  128.136
  2  0.68805
  3  0.178842
  4  0.153412
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/528321': 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) = 6148.71519355
delta logL = 0.0211859952087

Extracting fit parameters...

4FGL J1428.8+7429
   Spectrum: PowerLaw
368    Prefactor:  8.369e+01  1.281e+02  1.000e-04  1.000e+04 ( 1.000e-15)
369        Index:  1.710e+00  6.881e-01  0.000e+00  1.000e+01 (-1.000e+00)
370        Scale:  6.277e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
694    Prefactor:  1.096e+00  1.534e-01  0.000e+00  1.000e+01 ( 1.000e+00)
695        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
696        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
693   Normalization:  6.577e-01  1.788e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.08
Ra Dec: 217.203 74.485
Photon Index (Free Index): 1.71 +/- 0.69
Photon Flux (Free Index): 1.39e-08 +/- 1.70e-08
Energy Flux (Free Index): 2.20e-05 +/- 3.84e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/528321/cmap_HighResolution_239846401_240105601_4FGL_J1428.8+7429_daily_bin2.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.55e-03', comment='SUCCESS', photon_flux='1.61e-08', energy_flux2='2.20e-05', photon_flux_error='1.59e-08', dlogl='2.12e-02', energy_flux='1.62e-05', photon_flux2='1.39e-08', job_status='DONE', time_completed='2021-09-09 19:55:45.930349', photon_index_error2='0.69', photon_index2='1.71', ts='3.04', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='6.14e-08', energy_flux_error2='3.84e-05', EG='0.65', time_epoch_completed='1631242545.93', return_code='0', job_id='528321', GAL2='1.10', EG2='0.66', return_code2='0', energy_flux_error='1.60e-05', photon_flux_error2='1.70e-08', ts2='3.08', photon_index='1.86' WHERE bin_id='2' AND source_name='4FGL J1428.8+7429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 19:55:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 528321: <4FGL_J1428.8+7429_daily_bin2> in cluster <slac> Done

Job <4FGL_J1428.8+7429_daily_bin2> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  9 19:41:05 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 19:41:07 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 19:41:07 2021
Terminated at Thu Sep  9 19:55:46 2021
Results reported at Thu Sep  9 19:55:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1428.8+7429_daily_bin2 217.203 74.485 239846401 240105601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1428.8+7429 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   863.20 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             349.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            881 sec.

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

