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


Performing analysis on: 4FGL_J1428.9+5406_daily_bin576
RA = 217.229, Dec = 54.1114
tmin = 388627201, tmax = 388886401
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='544837', job_status='RUN', time_executed='2021-09-09 20:36:40.178002', time_epoch_executed='1631245000.18' WHERE source_name='4FGL J1428.9+5406' and cadence='daily' and bin_id='576'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/544837

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/544837/ft1_4FGL_J1428.9+5406_daily_bin576.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/544837/ft2_4FGL_J1428.9+5406_daily_bin576.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/544837/ft1_4FGL_J1428.9+5406_daily_bin576.fits outfile=/scratch/kocevski/544837/ft1_filteredMKT_4FGL_J1428.9+5406_daily_bin576.fits ra=217.229 dec=54.1114 rad=12.0 tmin=388627201.0 tmax=388886401.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 4.05
user 3.79
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/544837/ft1_filtered_4FGL_J1428.9+5406_daily_bin576.fits" evtable="EVENTS" scfile=/scratch/kocevski/544837/ft2_4FGL_J1428.9+5406_daily_bin576.fits sctable="SC_DATA" outfile=/scratch/kocevski/544837/ltcube_388627201_388886401_4FGL_J1428.9+5406_daily_bin576.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/544837/ft2_4FGL_J1428.9+5406_daily_bin576.fits
.....................!
real 12.66
user 12.23
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/544837/ft1_filtered_4FGL_J1428.9+5406_daily_bin576.fits evtable="EVENTS" scfile=/scratch/kocevski/544837/ft2_4FGL_J1428.9+5406_daily_bin576.fits sctable="SC_DATA" expcube=/scratch/kocevski/544837/ltcube_388627201_388886401_4FGL_J1428.9+5406_daily_bin576.fits outfile=/scratch/kocevski/544837/expmap_388627201_388886401_4FGL_J1428.9+5406_daily_bin576.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/544837/ltcube_388627201_388886401_4FGL_J1428.9+5406_daily_bin576.fits
.....................!
real 190.53
user 185.14
sys 4.82

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/544837/ft1_filtered_4FGL_J1428.9+5406_daily_bin576.fits scfile=/scratch/kocevski/544837/ft2_4FGL_J1428.9+5406_daily_bin576.fits outfile=/scratch/kocevski/544837/cmap_388627201_388886401_4FGL_J1428.9+5406_daily_bin576.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.59
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/544837/ft1_filtered_4FGL_J1428.9+5406_daily_bin576.fits scfile=/scratch/kocevski/544837/ft2_4FGL_J1428.9+5406_daily_bin576.fits outfile=/scratch/kocevski/544837/cmap_HighResolution_388627201_388886401_4FGL_J1428.9+5406_daily_bin576.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.61
user 0.36
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.8956       1.0000         .10000E-03   10000.    
     4 'norm      '    .12370E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    88.228       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10525E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.5001       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .76151       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.831       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10802E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.3793       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11607E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.0018       1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.347       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    22.506       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10717E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    6.4072       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .85013       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3104       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=   5568.458     FROM MIGRAD    STATUS=CONVERGED    731 CALLS     3698 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.387        .94790E-05** at limit **
   2  Prefactor     .10000E-03    11.319       -.38305E-05** at limit **
   3  Prefactor     6.8863        22.597        .54140E-05   -.43003E-04
   4  norm          .10001E-03    1.9778        .21067E-06** at limit **
   5  Prefactor     88.224        54.226       -.16026E-05   -.29337E-04
   6  Prefactor     .10000E-03    54.304        .35523E-04** at limit **
   7  norm          7.5000        2.4454       -.74258E-07   -.12279E-03
   8  norm          .10000E-03    45.209       -.37805E-04** at limit **
   9  norm          .76253        2.3118       -.45647E-06   -.82663E-03
  10  Prefactor     .10000E-03    250.30       -.13931E-03** at limit **
  11  Prefactor     .10000E-03    17.310       -.15260E-04** at limit **
  12  Prefactor     17.830        46.603       -.90727E-06   -.37836E-04
  13  Prefactor     .10000E-03    4.2128        .17094E-07** at limit **
  14  Prefactor     .10000E-03    14.270        .10075E-04** at limit **
  15  Prefactor     .10000E-03    1.5787        .66888E-06** at limit **
  16  Prefactor     .10000E-03    6.6428        .12976E-06** at limit **
  17  Prefactor     4.3969        28.421       -.16337E-04   -.10657E-03
  18  Prefactor     .10000E-03    193.55        .78108E-04** at limit **
  19  Prefactor     .10000E-03    21.890        .41183E-05** at limit **
  20  Prefactor     1.0035        12.495       -.18406E-05   -.19235E-03
  21  Prefactor     13.347        13.453       -.10992E-06    .73764E-05
  22  Prefactor     .10000E-03    9.1388        .11027E-05** at limit **
  23  norm          .10000E-03    .55628       -.33670E-08** at limit **
  24  Prefactor     22.504        14.283        .20704E-06   -.29809E-05
  25  Prefactor     .10000E-03    2.8740       -.33522E-07** at limit **
  26  Prefactor     .10000E-03    8.0479       -.33361E-06** at limit **
  27  norm          6.4076        6.1585        .32527E-07   -.14088E-03
  28  Normalizat    .85006        .17984        .13525E-05   -.26805E-03
  29  Prefactor     1.3104        .20733       -.23069E-06   -.16868E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.88634
  norm       = 0.000100014
  Prefactor  = 88.2244
  Prefactor  = 0.0001
  norm       = 7.5
  norm       = 0.0001
  norm       = 0.762534
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.8301
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.39692
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.00345
  Prefactor  = 13.3471
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 22.5036
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.40758
  Normalizat = 0.850057
  Prefactor  = 1.31045
 **********
 **   18 **HESSE 
 **********

 FCN=   5568.458     FROM HESSE     STATUS=OK           545 CALLS     4243 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.8863        22.538        .15278E-03   -1.5183    
   4  norm          .10001E-03    15.077        .20260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     88.224        54.126        .42775E-04   -1.3827    
   6  Prefactor     .10000E-03    54.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.5000        2.4461        .64471E-04   -1.5160    
   8  norm          .10000E-03    45.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .76253        2.2689        .18993E-03   -1.5533    
  10  Prefactor     .10000E-03    249.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.830        46.588        .94849E-04   -1.4863    
  13  Prefactor     .10000E-03    4.2946        .14933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.6092        .18078E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.6455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.3969        27.795        .19246E-03   -1.5289    
  18  Prefactor     .10000E-03    195.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    21.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.0035        41.399        .49956E-02   -1.5508    
  21  Prefactor     13.347        13.453        .10964E-03   -1.4977    
  22  Prefactor     .10000E-03    9.1708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .56504        .54318E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     22.504        14.270        .84433E-04   -1.4759    
  25  Prefactor     .10000E-03    2.8915        .12352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    8.1088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          6.4076        6.1566        .15856E-03   -1.5202    
  28  Normalizat    .85006        .21462        .24978E-03   -.98238    
  29  Prefactor     1.3104        .24932        .24898E-03   -.82997    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46961e-09
Minuit parameter uncertainties:
  1  6.69345e-05
  2  5.10471e-06
  3  22.5662
  4  0.000910938
  5  54.1565
  6  0.000218201
  7  2.44613
  8  1.09509e-05
  9  2.26912
  10  8.04076e-06
  11  3.14548e-05
  12  46.6827
  13  4.48452e-07
  14  2.81942e-05
  15  8.32621e-05
  16  2.15637e-05
  17  22.1246
  18  0.000208765
  19  2.59858e-05
  20  12.8995
  21  13.4564
  22  7.58761e-06
  23  1.05615e-06
  24  14.2718
  25  1.43246e-06
  26  8.75733e-06
  27  6.15725
  28  0.214831
  29  0.249544
Done.

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

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  4.397e+00  2.212e+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.310e+00  2.495e-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.501e-01  2.148e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/544837/likelihoodResults_388627201_388886401_4FGL_J1428.9+5406_daily_bin576.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) = 5568.40597952
delta logL = 0.0524969955741

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5568.40363229
delta logL = 0.0548442251838

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6002       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2175       1.0000          .0000       10.000    
     3 'Normalizat'    .83994       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3171       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=   5568.404     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      261 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5943        37.315        .10648E-02   -.33271E-03
   2  Index         3.2222        2.9715        .13037E-01   -.62363E-04
   3  Normalizat    .84005        .20731        .25113E-03   -.11662E-03
   4  Prefactor     1.3170        .24747        .24844E-03   -.25488E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.59426
  Index      = 3.22217
  Normalizat = 0.840047
  Prefactor  = 1.31698
 **********
 **   18 **HESSE 
 **********

 FCN=   5568.404     FROM HESSE     STATUS=OK            25 CALLS      286 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5943        14.135        .42592E-04   -1.5329    
   2  Index         3.2222        1.9088        .52148E-03   -.36352    
   3  Normalizat    .84005        .20767        .10045E-04   -.98600    
   4  Prefactor     1.3170        .24775        .99377E-05   -.82804    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.44005e-10
Minuit parameter uncertainties:
  1  14.1482
  2  1.96627
  3  0.207864
  4  0.247974
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/544837': 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) = 5568.40362698
delta logL = 0.0548495344574

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  3.594e+00  1.415e+01  1.000e-04  1.000e+04 ( 1.000e-13)
347        Index:  3.222e+00  1.966e+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.317e+00  2.480e-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.400e-01  2.079e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/544837/cmap_HighResolution_388627201_388886401_4FGL_J1428.9+5406_daily_bin576.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.54e-03', job_status='DONE', photon_flux_upper_limit='8.37e-08', time_completed='2021-09-09 20:50:59.329061', job_id='544837', GAL2='1.32', fit_tolerance='1e-08', EG2='0.84', EG='0.85', time_epoch_completed='1631245859.33', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='1.31', dlogl='5.48e-02', ts2='0.16', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='576' AND source_name='4FGL J1428.9+5406' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 20:50:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 544837: <4FGL_J1428.9+5406_daily_bin576> in cluster <slac> Done

Job <4FGL_J1428.9+5406_daily_bin576> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  9 20:36:25 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 20:36:27 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:36:27 2021
Terminated at Thu Sep  9 20:50:59 2021
Results reported at Thu Sep  9 20:50:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1428.9+5406_daily_bin576 217.229 54.1114 388627201 388886401 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 :                                   854.37 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             331.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            874 sec.

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

