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


Performing analysis on: 4FGL_J1428.9+5406_daily_bin791
RA = 217.229, Dec = 54.1114
tmin = 444355201, tmax = 444614401
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='546298', job_status='RUN', time_executed='2021-09-09 20:41:41.261191', time_epoch_executed='1631245301.26' WHERE source_name='4FGL J1428.9+5406' and cadence='daily' and bin_id='791'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/546298

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/546298/ft1_4FGL_J1428.9+5406_daily_bin791.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/546298/ft2_4FGL_J1428.9+5406_daily_bin791.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/546298/ft1_4FGL_J1428.9+5406_daily_bin791.fits outfile=/scratch/kocevski/546298/ft1_filteredMKT_4FGL_J1428.9+5406_daily_bin791.fits ra=217.229 dec=54.1114 rad=12.0 tmin=444355201.0 tmax=444614401.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 6.57
user 6.32
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/546298/ft2_4FGL_J1428.9+5406_daily_bin791.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/546298/ft2_4FGL_J1428.9+5406_daily_bin791.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/546298/ft1_filteredMKT_4FGL_J1428.9+5406_daily_bin791.fits evtable="EVENTS" outfile="/scratch/kocevski/546298/ft1_filtered_4FGL_J1428.9+5406_daily_bin791.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/546298/ft1_filtered_4FGL_J1428.9+5406_daily_bin791.fits" evtable="EVENTS" scfile=/scratch/kocevski/546298/ft2_4FGL_J1428.9+5406_daily_bin791.fits sctable="SC_DATA" outfile=/scratch/kocevski/546298/ltcube_444355201_444614401_4FGL_J1428.9+5406_daily_bin791.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/546298/ft2_4FGL_J1428.9+5406_daily_bin791.fits
.....................!
real 11.50
user 11.08
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/546298/ft1_filtered_4FGL_J1428.9+5406_daily_bin791.fits evtable="EVENTS" scfile=/scratch/kocevski/546298/ft2_4FGL_J1428.9+5406_daily_bin791.fits sctable="SC_DATA" expcube=/scratch/kocevski/546298/ltcube_444355201_444614401_4FGL_J1428.9+5406_daily_bin791.fits outfile=/scratch/kocevski/546298/expmap_444355201_444614401_4FGL_J1428.9+5406_daily_bin791.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/546298/ltcube_444355201_444614401_4FGL_J1428.9+5406_daily_bin791.fits
.....................!
real 190.97
user 185.14
sys 5.43

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

Setting source of interest to:
4FGL J1428.9+5406 @ 217.229 54.1114

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/546298/ft1_filtered_4FGL_J1428.9+5406_daily_bin791.fits scfile=/scratch/kocevski/546298/ft2_4FGL_J1428.9+5406_daily_bin791.fits outfile=/scratch/kocevski/546298/cmap_444355201_444614401_4FGL_J1428.9+5406_daily_bin791.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.229 yref=54.1114 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/546298/ft1_filtered_4FGL_J1428.9+5406_daily_bin791.fits scfile=/scratch/kocevski/546298/ft2_4FGL_J1428.9+5406_daily_bin791.fits outfile=/scratch/kocevski/546298/cmap_HighResolution_444355201_444614401_4FGL_J1428.9+5406_daily_bin791.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.229 yref=54.1114 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/546298/ft1_filtered_4FGL_J1428.9+5406_daily_bin791.fits evtable="EVENTS" scfile=/scratch/kocevski/546298/ft2_4FGL_J1428.9+5406_daily_bin791.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/546298/Model_4FGL_J1428.9+5406_daily_bin791.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/546298/ft1_filtered_4FGL_J1428.9+5406_daily_bin791.fits.....................!
real 43.28
user 41.98
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/546298/ft1_filtered_4FGL_J1428.9+5406_daily_bin791.fits', '/scratch/kocevski/546298/ft2_4FGL_J1428.9+5406_daily_bin791.fits', expMap='/scratch/kocevski/546298/expmap_444355201_444614401_4FGL_J1428.9+5406_daily_bin791.fits', expCube='/scratch/kocevski/546298/ltcube_444355201_444614401_4FGL_J1428.9+5406_daily_bin791.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/546298/Model_4FGL_J1428.9+5406_daily_bin791.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1428.9+5406'

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  4.001e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
347        Index:  2.574e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
348        Scale:  8.154e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/546298/ft1_filtered_4FGL_J1428.9+5406_daily_bin791.fits
Spacecraft file(s): /scratch/kocevski/546298/ft2_4FGL_J1428.9+5406_daily_bin791.fits
Exposure map: /scratch/kocevski/546298/expmap_444355201_444614401_4FGL_J1428.9+5406_daily_bin791.fits
Exposure cube: /scratch/kocevski/546298/ltcube_444355201_444614401_4FGL_J1428.9+5406_daily_bin791.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/546298/Model_4FGL_J1428.9+5406_daily_bin791.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) = 4778.86266265

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.801       1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    21.962       1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12428E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.199       1.0000         .10000E-03   10000.    
    14 'Prefactor '    33.793       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.7617       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .19466E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.3309       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10658E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .38143E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    .97737       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    2.8626       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0906       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .96703       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4778.843     FROM MIGRAD    STATUS=CONVERGED    738 CALLS     3704 TOTAL
                     EDM=   .52E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.339       -.18289E-05** at limit **
   2  Prefactor     .10000E-03    8.5335        .37600E-07** at limit **
   3  Prefactor     12.803        32.244       -.31376E-06    .10152E-05
   4  norm          .10000E-03    3.6954       -.15899E-06** at limit **
   5  Prefactor     .10000E-03    18.124        .66841E-06** at limit **
   6  Prefactor     .10000E-03    118.93       -.11576E-04** at limit **
   7  norm          21.962        4.3509        .12373E-07   -.82498E-06
   8  norm          .10000E-03    32.302        .74696E-06** at limit **
   9  norm          .10000E-03    1.6842       -.96845E-07** at limit **
  10  Prefactor     .10000E-03    490.27        .15465E-04** at limit **
  11  Prefactor     .10000E-03    24.118        .41120E-05** at limit **
  12  Prefactor     .10000E-03    33.833       -.93296E-06** at limit **
  13  Prefactor     15.197        8.7867        .39062E-06   -.99282E-05
  14  Prefactor     33.787        32.858        .16059E-06   -.86384E-05
  15  Prefactor     .10000E-03    1.1562       -.32345E-07** at limit **
  16  Prefactor     7.7733        29.485       -.12642E-05    .30728E-05
  17  Prefactor     .10000E-03    21.126       -.36341E-05** at limit **
  18  Prefactor     .10000E-03    285.71        .12618E-04** at limit **
  19  Prefactor     5.3477        76.760       -.49226E-06    .40555E-05
  20  Prefactor     .10000E-03    32.607       -.60652E-06** at limit **
  21  Prefactor     .10000E-03    10.125       -.12608E-06** at limit **
  22  Prefactor     .10000E-03    74.137       -.97053E-05** at limit **
  23  norm          .97787        1.4005        .14624E-06    .37192E-03
  24  Prefactor     .10000E-03    5.9817       -.16730E-06** at limit **
  25  Prefactor     .10000E-03    8.3870       -.63054E-07** at limit **
  26  Prefactor     .10000E-03    7.6830       -.31995E-06** at limit **
  27  norm          2.8612        5.9081       -.10198E-05   -.60071E-04
  28  Normalizat    1.0906        .20503       -.13995E-05    .64654E-04
  29  Prefactor     .96711        .23240        .10048E-05   -.41402E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.8027
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 21.9619
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.1967
  Prefactor  = 33.787
  Prefactor  = 0.0001
  Prefactor  = 7.77331
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.34766
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.977865
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.86121
  Normalizat = 1.09056
  Prefactor  = 0.967114
 **********
 **   18 **HESSE 
 **********

 FCN=   4778.843     FROM HESSE     STATUS=OK           547 CALLS     4251 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.5500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.803        32.232        .11196E-03   -1.4992    
   4  norm          .10000E-03    3.8454        .25939E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    119.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          21.962        4.3505        .61556E-04   -1.4770    
   8  norm          .10000E-03    32.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.6916        .87583E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    491.78        .20613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    24.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    33.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.197        8.7812        .10274E-03   -1.4928    
  14  Prefactor     33.787        32.959        .68934E-04   -1.4545    
  15  Prefactor     .10000E-03    1.1687        .72532E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.7733        29.054        .14393E-03   -1.5150    
  17  Prefactor     .10000E-03    21.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    289.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.3477        74.421        .17407E-03   -1.5245    
  20  Prefactor     .10000E-03    33.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    72.988        .49405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .97787        1.2339        .93540E-03   -1.5510    
  24  Prefactor     .10000E-03    6.0121        .16509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    8.5791        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    7.7919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.8612        5.9533        .23596E-03   -1.5370    
  28  Normalizat    1.0906        .23767        .22900E-03   -.90055    
  29  Prefactor     .96711        .27242        .28101E-03   -.93834    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14061e-10
Minuit parameter uncertainties:
  1  6.54357e-07
  2  4.42439e-06
  3  32.276
  4  4.55667e-06
  5  1.03385e-05
  6  9.47517e-05
  7  4.35053
  8  6.3737e-06
  9  2.32015e-06
  10  0.000524143
  11  3.51167e-05
  12  1.32726e-05
  13  8.78192
  14  32.9765
  15  2.84011e-06
  16  29.1071
  17  9.29623e-06
  18  1.1925e-05
  19  39.9587
  20  3.43409e-05
  21  1.08792e-07
  22  4.40916e-05
  23  1.23395
  24  4.36794e-06
  25  1.57818e-05
  26  1.59424e-05
  27  5.95453
  28  0.237907
  29  0.272808
Done.

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

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  1.000e-04  9.296e-06  1.000e-04  1.000e+04 ( 1.000e-13)
347        Index:  2.574e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
348        Scale:  8.154e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  9.671e-01  2.728e-01  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  1.091e+00  2.379e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 217.229 54.111
Photon Flux Upper Limit: 7.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/546298/likelihoodResults_444355201_444614401_4FGL_J1428.9+5406_daily_bin791.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) = 4778.84275095
delta logL = -0.000224961984713

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4778.84252786
delta logL = -1.86960096471e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10466E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8856       1.0000          .0000       10.000    
     3 'Normalizat'    1.0906       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96712       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6830E+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=   4778.843     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      271 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10859E-03    9.9635        .18142E-01** at limit **
   2  Index         2.7490        6.0406        .50000        .27107E-04
   3  Normalizat    1.0906        .37636E-02    .22900E-03   -.49743E-04
   4  Prefactor     .96712        .43981E-02    .28101E-03   -.28562E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000108592
  Index      = 2.74896
  Normalizat = 1.09056
  Prefactor  = 0.967116
 **********
 **   18 **HESSE 
 **********

 FCN=   4778.843     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      300 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10859E-03    84.446        .26640E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7490        6.9459        .50000       -.46700    
   3  Normalizat    1.0906        .10915E-01    .91602E-05   -.90055    
   4  Prefactor     .96712        .12755E-01    .11240E-04   -.93834    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.04354e-09
Minuit parameter uncertainties:
  1  0.0539485
  2  276.943
  3  0.0109153
  4  0.0127553
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/546298': 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) = 4778.84252705
delta logL = -1.05916569737e-06

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  1.086e-04  5.395e-02  1.000e-04  1.000e+04 ( 1.000e-13)
347        Index:  2.749e+00  2.769e+02  0.000e+00  1.000e+01 (-1.000e+00)
348        Scale:  8.154e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  9.671e-01  1.276e-02  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  1.091e+00  1.092e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 217.229 54.111

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/546298/cmap_HighResolution_444355201_444614401_4FGL_J1428.9+5406_daily_bin791.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.11e-03', job_status='DONE', photon_flux_upper_limit='7.82e-08', time_completed='2021-09-09 20:55:01.204062', job_id='546298', GAL2='0.97', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1631246101.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='-1.06e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='791' AND source_name='4FGL J1428.9+5406' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 20:55:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 546298: <4FGL_J1428.9+5406_daily_bin791> in cluster <slac> Done

Job <4FGL_J1428.9+5406_daily_bin791> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  9 20:41:26 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 20:41:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 20:41:28 2021
Terminated at Thu Sep  9 20:55:01 2021
Results reported at Thu Sep  9 20:55:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1428.9+5406_daily_bin791 217.229 54.1114 444355201 444614401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1428.9+5406 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   795.13 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             327.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            815 sec.

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

