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


Performing analysis on: 4FGL_J1428.9+5406_daily_bin702
RA = 217.229, Dec = 54.1114
tmin = 421286401, tmax = 421545601
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='546160', job_status='RUN', time_executed='2021-09-09 20:41:26.878570', time_epoch_executed='1631245286.88' WHERE source_name='4FGL J1428.9+5406' and cadence='daily' and bin_id='702'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/546160

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/546160/ft1_4FGL_J1428.9+5406_daily_bin702.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/546160/ft2_4FGL_J1428.9+5406_daily_bin702.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/546160/ft1_4FGL_J1428.9+5406_daily_bin702.fits outfile=/scratch/kocevski/546160/ft1_filteredMKT_4FGL_J1428.9+5406_daily_bin702.fits ra=217.229 dec=54.1114 rad=12.0 tmin=421286401.0 tmax=421545601.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.68
user 3.45
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/546160/ft2_4FGL_J1428.9+5406_daily_bin702.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/546160/ft1_filteredMKT_4FGL_J1428.9+5406_daily_bin702.fits evtable="EVENTS" outfile="/scratch/kocevski/546160/ft1_filtered_4FGL_J1428.9+5406_daily_bin702.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/546160/ft1_filtered_4FGL_J1428.9+5406_daily_bin702.fits" evtable="EVENTS" scfile=/scratch/kocevski/546160/ft2_4FGL_J1428.9+5406_daily_bin702.fits sctable="SC_DATA" outfile=/scratch/kocevski/546160/ltcube_421286401_421545601_4FGL_J1428.9+5406_daily_bin702.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/546160/ft2_4FGL_J1428.9+5406_daily_bin702.fits
.....................!
real 11.92
user 11.54
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/546160/ft1_filtered_4FGL_J1428.9+5406_daily_bin702.fits evtable="EVENTS" scfile=/scratch/kocevski/546160/ft2_4FGL_J1428.9+5406_daily_bin702.fits sctable="SC_DATA" expcube=/scratch/kocevski/546160/ltcube_421286401_421545601_4FGL_J1428.9+5406_daily_bin702.fits outfile=/scratch/kocevski/546160/expmap_421286401_421545601_4FGL_J1428.9+5406_daily_bin702.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/546160/ltcube_421286401_421545601_4FGL_J1428.9+5406_daily_bin702.fits
.....................!
real 190.61
user 185.53
sys 4.69

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/546160/ft1_filtered_4FGL_J1428.9+5406_daily_bin702.fits scfile=/scratch/kocevski/546160/ft2_4FGL_J1428.9+5406_daily_bin702.fits outfile=/scratch/kocevski/546160/cmap_421286401_421545601_4FGL_J1428.9+5406_daily_bin702.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/546160/ft1_filtered_4FGL_J1428.9+5406_daily_bin702.fits scfile=/scratch/kocevski/546160/ft2_4FGL_J1428.9+5406_daily_bin702.fits outfile=/scratch/kocevski/546160/cmap_HighResolution_421286401_421545601_4FGL_J1428.9+5406_daily_bin702.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.8112       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.0463       1.0000         .10000E-03   10000.    
     4 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.472       1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.176       1.0000         .10000E-03   10000.    
     7 'norm      '    7.6441       1.0000         .10000E-03   10000.    
     8 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.8401       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .56249       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11844E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.406       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.976       1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.663       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .39475       1.0000         .10000E-03   10000.    
    23 'norm      '    1.3200       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.5722       1.0000         .10000E-03   10000.    
    27 'norm      '    6.7413       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2001       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .77528       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=   6463.588     FROM MIGRAD    STATUS=CONVERGED    761 CALLS     3714 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.705        .66904E-07** at limit **
   2  Prefactor     7.8128        16.742       -.49626E-05   -.34900E-04
   3  Prefactor     2.0043        85.577        .13107E-04   -.41625E-04
   4  norm          .10000E-03    3.1713        .22278E-06** at limit **
   5  Prefactor     30.476        34.669       -.21678E-06    .29831E-04
   6  Prefactor     17.166        39.696       -.74773E-05    .12046E-04
   7  norm          7.6442        2.2765       -.10170E-06    .13840E-04
   8  norm          .10000E-03    111.99       -.15089E-05** at limit **
   9  norm          1.8403        2.6526       -.31449E-08   -.20797E-03
  10  Prefactor     .10000E-03    435.50        .11356E-03** at limit **
  11  Prefactor     .23876        33.366       -.49808E-05    .26577E-03
  12  Prefactor     .10000E-03    75.552       -.10471E-05** at limit **
  13  Prefactor     .10000E-03    1.4680       -.20433E-07** at limit **
  14  Prefactor     17.401        21.626        .85369E-06    .38931E-04
  15  Prefactor     .10000E-03    1.2349        .26683E-07** at limit **
  16  Prefactor     .10000E-03    6.8420        .19816E-07** at limit **
  17  Prefactor     .10000E-03    10.891        .33570E-07** at limit **
  18  Prefactor     .10000E-03    24.705       -.24436E-07** at limit **
  19  Prefactor     .10000E-03    17.222       -.21740E-06** at limit **
  20  Prefactor     27.973        17.553        .20433E-05    .20182E-03
  21  Prefactor     23.663        16.451       -.13557E-05    .37663E-05
  22  Prefactor     .43194        7.2381       -.18697E-05    .16497E-04
  23  norm          1.3197        1.0852       -.33432E-07    .28142E-03
  24  Prefactor     .10000E-03    6.1018        .14205E-06** at limit **
  25  Prefactor     .10000E-03    6.2746       -.19271E-07** at limit **
  26  Prefactor     9.5704        8.7830       -.19317E-05   -.63119E-04
  27  norm          6.7409        4.8139       -.52129E-07    .81482E-04
  28  Normalizat    1.2002        .17287        .16822E-05    .28443E-03
  29  Prefactor     .77527        .18432       -.39188E-06    .24775E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.81278
  Prefactor  = 2.00433
  norm       = 0.0001
  Prefactor  = 30.4755
  Prefactor  = 17.1659
  norm       = 7.64417
  norm       = 0.0001
  norm       = 1.84032
  Prefactor  = 0.0001
  Prefactor  = 0.238762
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.4006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.9734
  Prefactor  = 23.6627
  Prefactor  = 0.431936
  norm       = 1.31967
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.57042
  norm       = 6.74092
  Normalizat = 1.20016
  Prefactor  = 0.775272
 **********
 **   18 **HESSE 
 **********

 FCN=   6463.588     FROM HESSE     STATUS=OK           559 CALLS     4273 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.8128        16.744        .14347E-03   -1.5149    
   3  Prefactor     2.0043        84.963        .28903E-03   -1.5425    
   4  norm          .10000E-03    3.2388        .27849E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     30.476        34.692        .72582E-04   -1.4603    
   6  Prefactor     17.166        39.972        .96639E-04   -1.4879    
   7  norm          7.6442        2.2746        .63861E-04   -1.5155    
   8  norm          .10000E-03    112.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.8403        2.6271        .15135E-03   -1.5437    
  10  Prefactor     .10000E-03    434.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .23876        37.320        .13883       -1.5610    
  12  Prefactor     .10000E-03    77.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.4714        .95114E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.401        21.762        .95999E-04   -1.4873    
  15  Prefactor     .10000E-03    1.2831        .17415E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.8475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    24.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     27.973        17.515        .75743E-04   -1.4650    
  21  Prefactor     23.663        16.456        .82345E-04   -1.4735    
  22  Prefactor     .43194        47.829        .40675E-02   -1.5577    
  23  norm          1.3197        1.0796        .73306E-04   -1.5478    
  24  Prefactor     .10000E-03    6.1410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6.3816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     9.5704        8.8343        .12953E-03   -1.5089    
  27  norm          6.7409        4.8120        .14495E-03   -1.5189    
  28  Normalizat    1.2002        .20390        .21329E-03   -.86598    
  29  Prefactor     .77527        .21578        .29701E-03   -1.0065    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11611e-09
Minuit parameter uncertainties:
  1  5.12878e-05
  2  16.7543
  3  26.1384
  4  3.70597e-05
  5  34.715
  6  40.0347
  7  2.27467
  8  1.87848e-05
  9  2.62725
  10  0.000113617
  11  5.97264
  12  5.80574e-05
  13  2.46869e-06
  14  21.7715
  15  3.00324e-06
  16  1.33081e-06
  17  3.09722e-07
  18  4.42637e-05
  19  5.76888e-07
  20  17.5179
  21  16.459
  22  9.09689
  23  1.07961
  24  2.92521e-05
  25  9.32539e-06
  26  8.83555
  27  4.81226
  28  0.204039
  29  0.216014
Done.

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

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  1.000e-04  3.097e-07  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:  7.753e-01  2.160e-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.200e+00  2.040e-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: 5.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/546160/likelihoodResults_421286401_421545601_4FGL_J1428.9+5406_daily_bin702.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) = 6463.5884324
delta logL = -0.000435985802142

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6463.58799868
delta logL = -2.27422970056e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13211E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5556       1.0000          .0000       10.000    
     3 'Normalizat'    1.1999       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77555       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=   6463.588     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      254 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.128        .18142E-01** at limit **
   2  Index         2.1041        7.0527        .50000        .30445E-07
   3  Normalizat    1.2002        .62860E-02    .21329E-03   -.62149E-04
   4  Prefactor     .77527        .72220E-02    .29701E-03   -.42755E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.10414
  Normalizat = 1.20016
  Prefactor  = 0.775271
 **********
 **   18 **HESSE 
 **********

 FCN=   6463.588     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      283 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    345.76        .28323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1041        8.0171        .50000       -.61771    
   3  Normalizat    1.2002        .20886E-01    .42658E-04   -.86598    
   4  Prefactor     .77527        .23996E-01    .11880E-04   -1.0065    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.46924e-10
Minuit parameter uncertainties:
  1  0.000980065
  2  1114.3
  3  0.0208861
  4  0.0239966
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/546160': 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) = 6463.58799565
delta logL = 7.56625922804e-07

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  1.000e-04  9.801e-04  1.000e-04  1.000e+04 ( 1.000e-13)
347        Index:  2.104e+00  1.114e+03  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:  7.753e-01  2.400e-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.200e+00  2.089e-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/546160/cmap_HighResolution_421286401_421545601_4FGL_J1428.9+5406_daily_bin702.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.17e-03', job_status='DONE', photon_flux_upper_limit='5.34e-08', time_completed='2021-09-09 20:57:10.701179', job_id='546160', GAL2='0.78', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1631246230.7', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='7.57e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='702' AND source_name='4FGL J1428.9+5406' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 20:57:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 546160: <4FGL_J1428.9+5406_daily_bin702> in cluster <slac> Done

Job <4FGL_J1428.9+5406_daily_bin702> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  9 20:41:14 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 20:41:16 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:16 2021
Terminated at Thu Sep  9 20:57:11 2021
Results reported at Thu Sep  9 20:57:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1428.9+5406_daily_bin702 217.229 54.1114 421286401 421545601 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 :                                   940.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             362.10 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.

