/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 59 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 = 7560
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1428.8+7429_daily_bin56
RA = 217.203, Dec = 74.485
tmin = 253843201, tmax = 254102401
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='528397', job_status='RUN', time_executed='2021-09-09 19:42:21.871381', time_epoch_executed='1631241741.87' WHERE source_name='4FGL J1428.8+7429' and cadence='daily' and bin_id='56'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/528397

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/528397/ft1_4FGL_J1428.8+7429_daily_bin56.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/528397/ft2_4FGL_J1428.8+7429_daily_bin56.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/528397/ft1_4FGL_J1428.8+7429_daily_bin56.fits outfile=/scratch/kocevski/528397/ft1_filteredMKT_4FGL_J1428.8+7429_daily_bin56.fits ra=217.203 dec=74.485 rad=12.0 tmin=253843201.0 tmax=254102401.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 1.47
user 1.28
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/528397/ft2_4FGL_J1428.8+7429_daily_bin56.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/528397/ft2_4FGL_J1428.8+7429_daily_bin56.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/528397/ft1_filteredMKT_4FGL_J1428.8+7429_daily_bin56.fits evtable="EVENTS" outfile="/scratch/kocevski/528397/ft1_filtered_4FGL_J1428.8+7429_daily_bin56.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.51
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/528397/ft1_filtered_4FGL_J1428.8+7429_daily_bin56.fits" evtable="EVENTS" scfile=/scratch/kocevski/528397/ft2_4FGL_J1428.8+7429_daily_bin56.fits sctable="SC_DATA" outfile=/scratch/kocevski/528397/ltcube_253843201_254102401_4FGL_J1428.8+7429_daily_bin56.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/528397/ft2_4FGL_J1428.8+7429_daily_bin56.fits
.....................!
real 12.54
user 12.17
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/528397/ft1_filtered_4FGL_J1428.8+7429_daily_bin56.fits evtable="EVENTS" scfile=/scratch/kocevski/528397/ft2_4FGL_J1428.8+7429_daily_bin56.fits sctable="SC_DATA" expcube=/scratch/kocevski/528397/ltcube_253843201_254102401_4FGL_J1428.8+7429_daily_bin56.fits outfile=/scratch/kocevski/528397/expmap_253843201_254102401_4FGL_J1428.8+7429_daily_bin56.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/528397/ltcube_253843201_254102401_4FGL_J1428.8+7429_daily_bin56.fits
.....................!
real 190.82
user 185.18
sys 5.25

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

Setting source of interest to:
4FGL J1428.8+7429 @ 217.203 74.485

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/528397/ft1_filtered_4FGL_J1428.8+7429_daily_bin56.fits scfile=/scratch/kocevski/528397/ft2_4FGL_J1428.8+7429_daily_bin56.fits outfile=/scratch/kocevski/528397/cmap_253843201_254102401_4FGL_J1428.8+7429_daily_bin56.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.203 yref=74.485 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/528397/ft1_filtered_4FGL_J1428.8+7429_daily_bin56.fits scfile=/scratch/kocevski/528397/ft2_4FGL_J1428.8+7429_daily_bin56.fits outfile=/scratch/kocevski/528397/cmap_HighResolution_253843201_254102401_4FGL_J1428.8+7429_daily_bin56.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.203 yref=74.485 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/528397/ft1_filtered_4FGL_J1428.8+7429_daily_bin56.fits evtable="EVENTS" scfile=/scratch/kocevski/528397/ft2_4FGL_J1428.8+7429_daily_bin56.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/528397/Model_4FGL_J1428.8+7429_daily_bin56.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/528397/ft1_filtered_4FGL_J1428.8+7429_daily_bin56.fits.....................!
real 62.47
user 61.01
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/528397/ft1_filtered_4FGL_J1428.8+7429_daily_bin56.fits', '/scratch/kocevski/528397/ft2_4FGL_J1428.8+7429_daily_bin56.fits', expMap='/scratch/kocevski/528397/expmap_253843201_254102401_4FGL_J1428.8+7429_daily_bin56.fits', expCube='/scratch/kocevski/528397/ltcube_253843201_254102401_4FGL_J1428.8+7429_daily_bin56.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/528397/Model_4FGL_J1428.8+7429_daily_bin56.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1428.8+7429'

4FGL J1428.8+7429
   Spectrum: PowerLaw
368    Prefactor:  2.627e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-15)
369        Index:  1.859e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
370        Scale:  6.277e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/528397/ft1_filtered_4FGL_J1428.8+7429_daily_bin56.fits
Spacecraft file(s): /scratch/kocevski/528397/ft2_4FGL_J1428.8+7429_daily_bin56.fits
Exposure map: /scratch/kocevski/528397/expmap_253843201_254102401_4FGL_J1428.8+7429_daily_bin56.fits
Exposure cube: /scratch/kocevski/528397/ltcube_253843201_254102401_4FGL_J1428.8+7429_daily_bin56.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/528397/Model_4FGL_J1428.8+7429_daily_bin56.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) = 5880.76745829

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.404       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10350E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10274E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11402E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.167       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5045       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.923       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.7432       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.956       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .22493E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10309E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.921       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .24370E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10262E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.582       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12178E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    .10390E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .23896E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.691       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .50219E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.2174       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .89738       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .90462       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6970E+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=   5880.751     FROM MIGRAD    STATUS=CONVERGED   1255 CALLS     4079 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.413        11.920        .98889E-04    .97720E-05
   2  Prefactor     .10000E-03    32.562        .18142E-02** at limit **
   3  norm          .10000E-03    8.2380        .36285E-03** at limit **
   4  norm          .10000E-03    3.1985        .26217E-03** at limit **
   5  Prefactor     .10000E-03    39.336        .18142E-02** at limit **
   6  Prefactor     .10000E-03    14.847        .18142E-02** at limit **
   7  Prefactor     .10000E-03    10.028        .18142E-02** at limit **
   8  Prefactor     26.214        47.455        .78312E-04    .65327E-05
   9  Prefactor     2.5044        4.1538        .19300E-03    .52190E-04
  10  Prefactor     10.917        20.985        .12122E-03    .29073E-04
  11  Prefactor     .10000E-03    8.7977        .18142E-02** at limit **
  12  Prefactor     7.7422        11.085        .72053E-03    .47177E-05
  13  Prefactor     13.957        20.322        .10722E-03    .38490E-04
  14  Prefactor     .10000E-03    89.833        .18142E-02** at limit **
  15  Prefactor     .10000E-03    21.045        .18142E-02** at limit **
  16  Prefactor     25.914        19.489        .39341E-03    .33238E-04
  17  Prefactor     .10694E-03    39.677        .11854    ** at limit **
  18  Prefactor     .10000E-03    13.971        .18142E-02** at limit **
  19  Prefactor     .10000E-03    41.833        .18142E-02** at limit **
  20  Prefactor     21.523        22.800        .86219E-04    .20293E-03
  21  Prefactor     .10916E-03    63.235        .13897    ** at limit **
  22  norm          .10000E-03    6.3637        .18142E-02** at limit **
  23  Prefactor     .10000E-03    184.21        .18142E-02** at limit **
  24  Prefactor     20.718        26.518        .88053E-04    .82631E-05
  25  Prefactor     .11197E-03    3.3251        .28332E-01** at limit **
  26  Prefactor     6.2353        18.415        .16100E-03    .46182E-04
  27  Normalizat    .89728        .20940        .25180E-03    .38977E-03
  28  Prefactor     .90465        .15943        .20819E-03    .48274E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.413
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.2139
  Prefactor  = 2.50436
  Prefactor  = 10.9172
  Prefactor  = 0.0001
  Prefactor  = 7.74218
  Prefactor  = 13.9575
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.9142
  Prefactor  = 0.000106938
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.5227
  Prefactor  = 0.000109159
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.718
  Prefactor  = 0.000111968
  Prefactor  = 6.23527
  Normalizat = 0.897278
  Prefactor  = 0.904654
 **********
 **   18 **HESSE 
 **********

 FCN=   5880.751     FROM HESSE     STATUS=OK           523 CALLS     4602 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.413        11.920        .39556E-05   -1.4897    
   2  Prefactor     .10000E-03    32.563        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    8.2384        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.1985        .52434E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    39.337        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.847        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.031        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     26.214        47.452        .31325E-05   -1.4684    
   9  Prefactor     2.5044        4.1531        .77199E-05   -1.5391    
  10  Prefactor     10.917        20.982        .48489E-05   -1.5047    
  11  Prefactor     .10000E-03    8.7999        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.7422        11.079        .28821E-04   -1.5151    
  13  Prefactor     13.957        20.323        .42887E-05   -1.4961    
  14  Prefactor     .10000E-03    89.880        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    21.045        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     25.914        19.489        .78682E-04   -1.4689    
  17  Prefactor     .10694E-03    38.083        .12172       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.971        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    41.835        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     21.523        22.797        .34488E-05   -1.4780    
  21  Prefactor     .10916E-03    62.782        .13959       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    6.3638        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    184.22        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     20.718        26.518        .35221E-05   -1.4797    
  25  Prefactor     .11197E-03    2.4687        .34296E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     6.2353        18.338        .64398E-05   -1.5209    
  27  Normalizat    .89728        .20951        .50360E-04   -.96556    
  28  Prefactor     .90465        .15953        .41638E-04   -.95979    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69724e-09
Minuit parameter uncertainties:
  1  11.922
  2  4.55178e-06
  3  3.5869e-05
  4  2.07165e-06
  5  6.56392e-05
  6  5.56216e-06
  7  9.74394e-06
  8  47.5206
  9  4.15353
  10  20.9962
  11  1.24885e-05
  12  11.0823
  13  20.3327
  14  9.05393e-05
  15  5.77421e-06
  16  19.4938
  17  0.0325297
  18  6.44905e-06
  19  3.39678e-05
  20  22.8061
  21  0.0480086
  22  1.12761e-06
  23  0.000508179
  24  26.5329
  25  0.0108715
  26  18.3548
  27  0.209697
  28  0.159613
Done.

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

Extracting fit parameters...

4FGL J1428.8+7429
   Spectrum: PowerLaw
368    Prefactor:  1.000e-04  5.774e-06  1.000e-04  1.000e+04 ( 1.000e-15)
369        Index:  1.859e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
370        Scale:  6.277e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
694    Prefactor:  9.047e-01  1.596e-01  0.000e+00  1.000e+01 ( 1.000e+00)
695        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
696        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
693   Normalization:  8.973e-01  2.097e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 217.203 74.485
Photon Flux Upper Limit: 3.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/528397/likelihoodResults_253843201_254102401_4FGL_J1428.8+7429_daily_bin56.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) = 5880.75119447
delta logL = -0.000226308425226

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5880.75097158
delta logL = -3.41890608979e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19263E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9833       1.0000          .0000       10.000    
     3 'Normalizat'    .89728       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90465       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6970E+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=   5880.751     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      268 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10166E-03    63.660        .18142E-02** at limit **
   2  Index         1.9157        6.6692        .50000        .20234E-04
   3  Normalizat    .89728        .78515E-02    .25180E-03    .20092E-04
   4  Prefactor     .90465        .65532E-02    .20819E-03   -.37679E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101663
  Index      = 1.91574
  Normalizat = 0.897278
  Prefactor  = 0.904653
 **********
 **   18 **HESSE 
 **********

 FCN=   5880.751     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      297 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10166E-03    306.43        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9157        8.8999        .50000       -.66474    
   3  Normalizat    .89728        .17535E-01    .10072E-04   -.96556    
   4  Prefactor     .90465        .14634E-01    .83277E-05   -.95979    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.38145e-09
Minuit parameter uncertainties:
  1  0.0453819
  2  239.804
  3  0.0175352
  4  0.0146346
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/528397': 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) = 5880.75096847
delta logL = -3.05876710627e-07

Extracting fit parameters...

4FGL J1428.8+7429
   Spectrum: PowerLaw
368    Prefactor:  1.017e-04  4.538e-02  1.000e-04  1.000e+04 ( 1.000e-15)
369        Index:  1.916e+00  2.398e+02  0.000e+00  1.000e+01 (-1.000e+00)
370        Scale:  6.277e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
694    Prefactor:  9.047e-01  1.463e-02  0.000e+00  1.000e+01 ( 1.000e+00)
695        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
696        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
693   Normalization:  8.973e-01  1.754e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 217.203 74.485

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/528397/cmap_HighResolution_253843201_254102401_4FGL_J1428.8+7429_daily_bin56.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.29e-03', job_status='DONE', photon_flux_upper_limit='3.09e-08', time_completed='2021-09-09 19:57:32.661260', job_id='528397', GAL2='0.90', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1631242652.66', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='-3.06e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.86' WHERE bin_id='56' AND source_name='4FGL J1428.8+7429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 19:57:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 528397: <4FGL_J1428.8+7429_daily_bin56> in cluster <slac> Done

Job <4FGL_J1428.8+7429_daily_bin56> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  9 19:41:11 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 19:41:13 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 19:41:13 2021
Terminated at Thu Sep  9 19:57:33 2021
Results reported at Thu Sep  9 19:57:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1428.8+7429_daily_bin56 217.203 74.485 253843201 254102401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1428.8+7429 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   907.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             283.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            982 sec.

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

