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


Performing analysis on: 4FGL_J1428.9+5406_daily_bin1020
RA = 217.229, Dec = 54.1114
tmin = 503712001, tmax = 503971201
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='548121', job_status='RUN', time_executed='2021-09-09 20:50:30.813007', time_epoch_executed='1631245830.81' WHERE source_name='4FGL J1428.9+5406' and cadence='daily' and bin_id='1020'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/548121

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/548121/ft1_4FGL_J1428.9+5406_daily_bin1020.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/548121/ft2_4FGL_J1428.9+5406_daily_bin1020.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/548121/ft1_4FGL_J1428.9+5406_daily_bin1020.fits outfile=/scratch/kocevski/548121/ft1_filteredMKT_4FGL_J1428.9+5406_daily_bin1020.fits ra=217.229 dec=54.1114 rad=12.0 tmin=503712001.0 tmax=503971201.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 5.54
user 5.30
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/548121/ft2_4FGL_J1428.9+5406_daily_bin1020.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/548121/ft1_filteredMKT_4FGL_J1428.9+5406_daily_bin1020.fits evtable="EVENTS" outfile="/scratch/kocevski/548121/ft1_filtered_4FGL_J1428.9+5406_daily_bin1020.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.48
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/548121/ft1_filtered_4FGL_J1428.9+5406_daily_bin1020.fits" evtable="EVENTS" scfile=/scratch/kocevski/548121/ft2_4FGL_J1428.9+5406_daily_bin1020.fits sctable="SC_DATA" outfile=/scratch/kocevski/548121/ltcube_503712001_503971201_4FGL_J1428.9+5406_daily_bin1020.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/548121/ft2_4FGL_J1428.9+5406_daily_bin1020.fits
.....................!
real 11.70
user 11.36
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/548121/ft1_filtered_4FGL_J1428.9+5406_daily_bin1020.fits evtable="EVENTS" scfile=/scratch/kocevski/548121/ft2_4FGL_J1428.9+5406_daily_bin1020.fits sctable="SC_DATA" expcube=/scratch/kocevski/548121/ltcube_503712001_503971201_4FGL_J1428.9+5406_daily_bin1020.fits outfile=/scratch/kocevski/548121/expmap_503712001_503971201_4FGL_J1428.9+5406_daily_bin1020.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/548121/ltcube_503712001_503971201_4FGL_J1428.9+5406_daily_bin1020.fits
.....................!
real 190.39
user 185.79
sys 4.15

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/548121/ft1_filtered_4FGL_J1428.9+5406_daily_bin1020.fits scfile=/scratch/kocevski/548121/ft2_4FGL_J1428.9+5406_daily_bin1020.fits outfile=/scratch/kocevski/548121/cmap_503712001_503971201_4FGL_J1428.9+5406_daily_bin1020.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.55
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/548121/ft1_filtered_4FGL_J1428.9+5406_daily_bin1020.fits scfile=/scratch/kocevski/548121/ft2_4FGL_J1428.9+5406_daily_bin1020.fits outfile=/scratch/kocevski/548121/cmap_HighResolution_503712001_503971201_4FGL_J1428.9+5406_daily_bin1020.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/548121/ft1_filtered_4FGL_J1428.9+5406_daily_bin1020.fits evtable="EVENTS" scfile=/scratch/kocevski/548121/ft2_4FGL_J1428.9+5406_daily_bin1020.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/548121/Model_4FGL_J1428.9+5406_daily_bin1020.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/548121/ft1_filtered_4FGL_J1428.9+5406_daily_bin1020.fits.....................!
real 43.39
user 42.07
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.058       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    78.005       1.0000         .10000E-03   10000.    
     7 'norm      '    2.0173       1.0000         .10000E-03   10000.    
     8 'norm      '    54.705       1.0000         .10000E-03   10000.    
     9 'norm      '    .60940E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .38232E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.4309       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    67.632       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 '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .96612       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    25.479       1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.0239       1.0000         .10000E-03   10000.    
    27 'norm      '    8.8673       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .90192       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2353       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=   4997.581     FROM MIGRAD    STATUS=CONVERGED    743 CALLS     3745 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.073        41.375       -.15386E-06   -.26520E-04
   2  Prefactor     .10000E-03    19.911       -.10938E-05** at limit **
   3  Prefactor     .10000E-03    58.616        .18968E-05** at limit **
   4  norm          .10000E-03    4.0289        .30195E-06** at limit **
   5  Prefactor     .10000E-03    15.220        .22465E-05** at limit **
   6  Prefactor     78.034        55.367        .24760E-05    .79386E-04
   7  norm          2.0174        2.2298       -.21323E-06   -.14949E-03
   8  norm          54.726        56.638        .26211E-05    .25435E-04
   9  norm          .10002E-03    27.259       -.82371E-05** at limit **
  10  Prefactor     .10000E-03    269.81       -.54588E-05** at limit **
  11  Prefactor     .10000E-03    16.665       -.30641E-06** at limit **
  12  Prefactor     .10000E-03    24.521        .29950E-05** at limit **
  13  Prefactor     .10000E-03    2.8326        .10588E-06** at limit **
  14  Prefactor     .10027E-03    97.614        .13135E-04** at limit **
  15  Prefactor     3.4325        3.4018       -.90342E-07    .95412E-04
  16  Prefactor     .10000E-03    11.174        .77224E-06** at limit **
  17  Prefactor     67.634        34.608        .55267E-07    .33574E-04
  18  Prefactor     .10000E-03    18.872       -.22215E-05** at limit **
  19  Prefactor     .10000E-03    11.919       -.14127E-05** at limit **
  20  Prefactor     .10000E-03    5.4573        .59771E-07** at limit **
  21  Prefactor     .10000E-03    26.653        .30156E-05** at limit **
  22  Prefactor     .10000E-03    7.2123        .52215E-07** at limit **
  23  norm          .96609        1.0256        .32563E-07    .27651E-04
  24  Prefactor     .10000E-03    5.6405       -.10819E-05** at limit **
  25  Prefactor     25.476        10.953        .15890E-07   -.14300E-04
  26  Prefactor     9.0279        9.1322       -.15052E-05   -.21624E-03
  27  norm          8.8672        6.6478        .56091E-07   -.98918E-05
  28  Normalizat    .90205        .21886        .28302E-05   -.10139E-03
  29  Prefactor     1.2352        .24528       -.35001E-05    .97238E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.0734
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 78.034
  norm       = 2.01743
  norm       = 54.7262
  norm       = 0.000100023
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100275
  Prefactor  = 3.43246
  Prefactor  = 0.0001
  Prefactor  = 67.6339
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.966086
  Prefactor  = 0.0001
  Prefactor  = 25.4762
  Prefactor  = 9.02795
  norm       = 8.86724
  Normalizat = 0.902049
  Prefactor  = 1.23523
 **********
 **   18 **HESSE 
 **********

 FCN=   4997.581     FROM HESSE     STATUS=OK           547 CALLS     4292 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.073        41.280        .87283E-04   -1.4790    
   2  Prefactor     .10000E-03    20.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    58.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.1757        .27695E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     78.034        55.934        .45468E-04   -1.3939    
   7  norm          2.0174        2.2134        .10560E-03   -1.5424    
   8  norm          54.726        56.701        .54232E-04   -1.4227    
   9  norm          .10002E-03    37.612        .21048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    269.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    24.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.8630        .11618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10027E-03    241.94        .64209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.4325        3.3692        .11575E-03   -1.5337    
  16  Prefactor     .10000E-03    11.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     67.634        34.552        .48806E-04   -1.4061    
  18  Prefactor     .10000E-03    18.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.4604        .16129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    26.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.2189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .96609        1.0283        .71791E-04   -1.5511    
  24  Prefactor     .10000E-03    5.6777        .16413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     25.476        10.946        .79361E-04   -1.4698    
  26  Prefactor     9.0279        9.1877        .66712E-03   -1.5107    
  27  norm          8.8672        6.6480        .13460E-03   -1.5112    
  28  Normalizat    .90205        .24831        .25406E-03   -.96388    
  29  Prefactor     1.2352        .28136        .26293E-03   -.85254    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00071e-09
Minuit parameter uncertainties:
  1  41.3358
  2  4.97874e-06
  3  3.88801e-05
  4  1.12317e-05
  5  2.7815e-05
  6  55.9716
  7  2.21351
  8  56.7567
  9  0.00184773
  10  0.0004645
  11  3.45754e-06
  12  9.30227e-05
  13  7.67712e-06
  14  0.0163733
  15  3.36938
  16  1.44877e-05
  17  34.5621
  18  4.58045e-05
  19  2.28918e-05
  20  3.14513e-06
  21  0.000100437
  22  4.4019e-06
  23  1.02829
  24  1.72835e-05
  25  10.9473
  26  9.18912
  27  6.64856
  28  0.248628
  29  0.2817
Done.

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

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  6.763e+01  3.456e+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.235e+00  2.817e-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:  9.020e-01  2.486e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.50
Ra Dec: 217.229 54.111
Photon Index (Fixed Index): 2.57 +/- 0.00
Photon Flux (Fixed Index): 9.53e-08 +/- 4.87e-08
Energy Flux (Fixed Index): 2.56e-05 +/- 1.31e-05

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) = 4996.73376502
delta logL = 0.847538394132

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4996.73261947
delta logL = 0.848683946942

Fit tolerance = 1e-08

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

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

 FCN=   4996.733     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      233 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     100.95        145.62        .10011E-02   -.17602E-05
   2  Index         2.0457        .98537        .13958        .25924E-04
   3  Normalizat    .93569        .19844        .45357E-01    .10294E-04
   4  Prefactor     1.2058        .23322        .60047E-01    .47229E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 100.949
  Index      = 2.04573
  Normalizat = 0.935692
  Prefactor  = 1.20584
 **********
 **   18 **HESSE 
 **********

 FCN=   4996.733     FROM HESSE     STATUS=OK            31 CALLS      264 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     100.95        50.704        .40045E-04   -1.3695    
   2  Index         2.0457        .37666        .56230E-02   -.63212    
   3  Normalizat    .93569        .23393        .25004E-03   -.95217    
   4  Prefactor     1.2058        .27754        .26556E-03   -.86152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07041e-10
Minuit parameter uncertainties:
  1  50.7256
  2  0.377214
  3  0.234181
  4  0.27788
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/548121': 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) = 4996.73261477
delta logL = 0.848688646273

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  1.009e+02  5.073e+01  1.000e-04  1.000e+04 ( 1.000e-13)
347        Index:  2.046e+00  3.772e-01  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.206e+00  2.779e-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:  9.357e-01  2.342e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.26
Ra Dec: 217.229 54.111
Photon Index (Free Index): 2.05 +/- 0.38
Photon Flux (Free Index): 7.06e-08 +/- 4.09e-08
Energy Flux (Free Index): 4.38e-05 +/- 3.26e-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/548121/cmap_HighResolution_503712001_503971201_4FGL_J1428.9+5406_daily_bin1020.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.53e-08', energy_flux2='4.38e-05', photon_flux_error='4.87e-08', dlogl='8.49e-01', energy_flux='2.56e-05', photon_flux2='7.06e-08', job_status='DONE', time_completed='2021-09-09 21:02:37.807259', photon_index_error2='0.38', photon_index2='2.05', ts='9.50', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', energy_flux_error2='3.26e-05', EG='0.90', time_epoch_completed='1631246557.81', return_code='0', job_id='548121', GAL2='1.21', EG2='0.94', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='4.09e-08', ts2='11.26', photon_index='2.57' WHERE bin_id='1020' AND source_name='4FGL J1428.9+5406' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 21:02:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 548121: <4FGL_J1428.9+5406_daily_bin1020> in cluster <slac> Done

Job <4FGL_J1428.9+5406_daily_bin1020> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  9 20:46:24 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 20:46:26 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:46:26 2021
Terminated at Thu Sep  9 21:02:38 2021
Results reported at Thu Sep  9 21:02:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1428.9+5406_daily_bin1020 217.229 54.1114 503712001 503971201 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 :                                   712.41 sec.
    Max Memory :                                 1106 MB
    Average Memory :                             257.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            974 sec.

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

