/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 2 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 = 7534
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1428.9+5406_daily_bin134
RA = 217.229, Dec = 54.1114
tmin = 274060801, tmax = 274320001
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='542233', job_status='RUN', time_executed='2021-09-09 20:26:39.269827', time_epoch_executed='1631244399.27' WHERE source_name='4FGL J1428.9+5406' and cadence='daily' and bin_id='134'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/542233

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/542233/ft1_4FGL_J1428.9+5406_daily_bin134.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/542233/ft2_4FGL_J1428.9+5406_daily_bin134.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/542233/ft1_4FGL_J1428.9+5406_daily_bin134.fits outfile=/scratch/kocevski/542233/ft1_filteredMKT_4FGL_J1428.9+5406_daily_bin134.fits ra=217.229 dec=54.1114 rad=12.0 tmin=274060801.0 tmax=274320001.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.70
user 3.43
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/542233/ft2_4FGL_J1428.9+5406_daily_bin134.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/542233/ft1_filteredMKT_4FGL_J1428.9+5406_daily_bin134.fits evtable="EVENTS" outfile="/scratch/kocevski/542233/ft1_filtered_4FGL_J1428.9+5406_daily_bin134.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.53
user 0.33
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/542233/ft1_filtered_4FGL_J1428.9+5406_daily_bin134.fits evtable="EVENTS" scfile=/scratch/kocevski/542233/ft2_4FGL_J1428.9+5406_daily_bin134.fits sctable="SC_DATA" expcube=/scratch/kocevski/542233/ltcube_274060801_274320001_4FGL_J1428.9+5406_daily_bin134.fits outfile=/scratch/kocevski/542233/expmap_274060801_274320001_4FGL_J1428.9+5406_daily_bin134.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/542233/ltcube_274060801_274320001_4FGL_J1428.9+5406_daily_bin134.fits
.....................!
real 191.15
user 185.77
sys 4.90

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/542233/ft1_filtered_4FGL_J1428.9+5406_daily_bin134.fits scfile=/scratch/kocevski/542233/ft2_4FGL_J1428.9+5406_daily_bin134.fits outfile=/scratch/kocevski/542233/cmap_274060801_274320001_4FGL_J1428.9+5406_daily_bin134.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.58
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/542233/ft1_filtered_4FGL_J1428.9+5406_daily_bin134.fits scfile=/scratch/kocevski/542233/ft2_4FGL_J1428.9+5406_daily_bin134.fits outfile=/scratch/kocevski/542233/cmap_HighResolution_274060801_274320001_4FGL_J1428.9+5406_daily_bin134.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.57
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/542233/ft1_filtered_4FGL_J1428.9+5406_daily_bin134.fits', '/scratch/kocevski/542233/ft2_4FGL_J1428.9+5406_daily_bin134.fits', expMap='/scratch/kocevski/542233/expmap_274060801_274320001_4FGL_J1428.9+5406_daily_bin134.fits', expCube='/scratch/kocevski/542233/ltcube_274060801_274320001_4FGL_J1428.9+5406_daily_bin134.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/542233/Model_4FGL_J1428.9+5406_daily_bin134.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/542233/ft1_filtered_4FGL_J1428.9+5406_daily_bin134.fits
Spacecraft file(s): /scratch/kocevski/542233/ft2_4FGL_J1428.9+5406_daily_bin134.fits
Exposure map: /scratch/kocevski/542233/expmap_274060801_274320001_4FGL_J1428.9+5406_daily_bin134.fits
Exposure cube: /scratch/kocevski/542233/ltcube_274060801_274320001_4FGL_J1428.9+5406_daily_bin134.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/542233/Model_4FGL_J1428.9+5406_daily_bin134.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) = 6307.55123422

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    48.072       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10284E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .13786E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10500E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.9877       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.986       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.4534       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.5921       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.0563       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10478E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.7702       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .19920E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.636       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.0856       1.0000         .10000E-03   10000.    
    23 'norm      '    1.7301       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.2694       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .92958       1.0000         .10000E-03   10000.    
    27 'norm      '    4.0255       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .83595       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2225       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=   6307.505     FROM MIGRAD    STATUS=CONVERGED    787 CALLS     3803 TOTAL
                     EDM=   .28E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    155.99        .78598E-05** at limit **
   2  Prefactor     48.097        23.254       -.19298E-06   -.82250E-04
   3  Prefactor     .10000E-03    22.970       -.12786E-06** at limit **
   4  norm          .10000E-03    4.1833        .38353E-07** at limit **
   5  Prefactor     .10000E-03    26.044        .11806E-06** at limit **
   6  Prefactor     .10000E-03    13.091        .12730E-07** at limit **
   7  norm          2.9882        1.6973        .13781E-08   -.93897E-04
   8  norm          .10000E-03    31.895       -.58295E-07** at limit **
   9  norm          .10000E-03    2.2439       -.19553E-07** at limit **
  10  Prefactor     .10000E-03    192.31       -.94089E-05** at limit **
  11  Prefactor     23.839        56.807        .10024E-05   -.22653E-05
  12  Prefactor     7.4280        48.108        .48495E-05    .61401E-05
  13  Prefactor     .10000E-03    1.8047       -.12424E-06** at limit **
  14  Prefactor     .10000E-03    7.3424       -.86757E-07** at limit **
  15  Prefactor     2.5964        3.1065        .11813E-08   -.34460E-04
  16  Prefactor     .10000E-03    8.1668        .26925E-07** at limit **
  17  Prefactor     9.0408        19.148       -.35378E-06    .53694E-05
  18  Prefactor     .10000E-03    83.650       -.10977E-05** at limit **
  19  Prefactor     5.7782        21.012        .16414E-05   -.12058E-05
  20  Prefactor     .34332        15.667       -.22187E-06   -.37938E-04
  21  Prefactor     10.638        10.290        .12242E-06   -.15887E-05
  22  Prefactor     8.0066        14.818        .29604E-06    .70589E-04
  23  norm          1.7285        1.4148        .28382E-08    .87561E-04
  24  Prefactor     .10000E-03    4.5130        .45268E-07** at limit **
  25  Prefactor     4.2742        6.3170        .24228E-05   -.16598E-04
  26  Prefactor     .93099        8.0694        .15101E-05    .42770E-05
  27  norm          4.0260        3.3426       -.47210E-07    .18370E-05
  28  Normalizat    .83614        .16119       -.38885E-06   -.14502E-05
  29  Prefactor     1.2219        .18576       -.54950E-06    .22651E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 48.0968
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.98818
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.8388
  Prefactor  = 7.42798
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.59636
  Prefactor  = 0.0001
  Prefactor  = 9.04078
  Prefactor  = 0.0001
  Prefactor  = 5.77816
  Prefactor  = 0.34332
  Prefactor  = 10.6381
  Prefactor  = 8.00663
  norm       = 1.72853
  Prefactor  = 0.0001
  Prefactor  = 4.27416
  Prefactor  = 0.930995
  norm       = 4.02597
  Normalizat = 0.836143
  Prefactor  = 1.22187
 **********
 **   18 **HESSE 
 **********

 FCN=   6307.505     FROM HESSE     STATUS=OK           563 CALLS     4366 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    156.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     48.097        23.270        .57834E-04   -1.4320    
   3  Prefactor     .10000E-03    23.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.2393        .15798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    26.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.9882        1.6957        .75645E-04   -1.5362    
   8  norm          .10000E-03    31.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.2879        .11608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    191.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     23.839        56.491        .81790E-04   -1.4731    
  12  Prefactor     7.4280        48.221        .14690E-03   -1.5163    
  13  Prefactor     .10000E-03    1.8115        .10421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.3567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.5964        3.0635        .13158E-03   -1.5386    
  16  Prefactor     .10000E-03    8.1738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.0408        19.042        .13318E-03   -1.5107    
  18  Prefactor     .10000E-03    83.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.7782        20.995        .83601E-03   -1.5227    
  20  Prefactor     .34332        17.740        .83880E-01   -1.5591    
  21  Prefactor     10.638        10.291        .12285E-03   -1.5056    
  22  Prefactor     8.0066        14.877        .14100E-03   -1.5142    
  23  norm          1.7285        1.4174        .80809E-04   -1.5445    
  24  Prefactor     .10000E-03    4.5313        .16461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.2742        6.3249        .97495E-03   -1.5294    
  26  Prefactor     .93099        8.1345        .42416E-03   -1.5515    
  27  norm          4.0260        3.3440        .12894E-03   -1.5307    
  28  Normalizat    .83614        .18966        .24507E-03   -.98742    
  29  Prefactor     1.2219        .21971        .24636E-03   -.85661    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.01537e-10
Minuit parameter uncertainties:
  1  0.000265501
  2  23.2742
  3  1.08463e-05
  4  6.81162e-06
  5  7.99404e-06
  6  2.86404e-06
  7  1.69576
  8  1.47852e-06
  9  5.74425e-07
  10  0.000103631
  11  56.6186
  12  37.8959
  13  6.90096e-06
  14  9.8458e-06
  15  3.06371
  16  1.38623e-06
  17  19.055
  18  0.00016787
  19  21.0215
  20  4.93664
  21  10.2931
  22  14.8835
  23  1.41746
  24  7.06976e-07
  25  6.32584
  26  5.50459
  27  3.34419
  28  0.189806
  29  0.219878
Done.

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

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  9.041e+00  1.905e+01  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:  1.222e+00  2.199e-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:  8.361e-01  1.898e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/542233/likelihoodResults_274060801_274320001_4FGL_J1428.9+5406_daily_bin134.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) = 6307.50436198
delta logL = 0.000357207554771

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6307.50416088
delta logL = 0.00055830535166

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.6221       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6231       1.0000          .0000       10.000    
     3 'Normalizat'    .83541       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2223       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6307.504     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      289 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5949        24.167        .68257E-03   -.86609E-05
   2  Index         2.6297        1.7921        .98543E-02    .82649E-04
   3  Normalizat    .83549        .18364        .24516E-03   -.13601E-03
   4  Prefactor     1.2224        .21799        .24631E-03   -.18878E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.5949
  Index      = 2.6297
  Normalizat = 0.835494
  Prefactor  = 1.22244
 **********
 **   18 **HESSE 
 **********

 FCN=   6307.504     FROM HESSE     STATUS=OK            25 CALLS      314 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5949        22.334        .27303E-04   -1.5122    
   2  Index         2.6297        1.6627        .19709E-02   -.49390    
   3  Normalizat    .83549        .18374        .98064E-05   -.98765    
   4  Prefactor     1.2224        .21810        .98524E-05   -.85644    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.30237e-11
Minuit parameter uncertainties:
  1  22.3558
  2  1.70499
  3  0.183881
  4  0.218263
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/542233': 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) = 6307.50414911
delta logL = 0.000570081327169

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  8.595e+00  2.236e+01  1.000e-04  1.000e+04 ( 1.000e-13)
347        Index:  2.630e+00  1.705e+00  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:  1.222e+00  2.183e-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:  8.355e-01  1.839e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.32
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/542233/cmap_HighResolution_274060801_274320001_4FGL_J1428.9+5406_daily_bin134.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.42e-03', job_status='DONE', photon_flux_upper_limit='8.21e-08', time_completed='2021-09-09 20:42:22.546980', job_id='542233', GAL2='1.22', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1631245342.55', return_code2='0', ts='0.32', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='5.70e-04', ts2='0.32', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='134' AND source_name='4FGL J1428.9+5406' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 20:42:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 542233: <4FGL_J1428.9+5406_daily_bin134> in cluster <slac> Done

Job <4FGL_J1428.9+5406_daily_bin134> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  9 20:26:26 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 20:26: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:26:28 2021
Terminated at Thu Sep  9 20:42:23 2021
Results reported at Thu Sep  9 20:42:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1428.9+5406_daily_bin134 217.229 54.1114 274060801 274320001 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 :                                   937.30 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             336.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   954 sec.
    Turnaround time :                            957 sec.

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

