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


Performing analysis on: 4FGL_J1428.8+7429_daily_bin36
RA = 217.203, Dec = 74.485
tmin = 248659201, tmax = 248918401
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='528369', job_status='RUN', time_executed='2021-09-09 19:41:34.399682', time_epoch_executed='1631241694.4' WHERE source_name='4FGL J1428.8+7429' and cadence='daily' and bin_id='36'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/528369

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/528369/ft1_4FGL_J1428.8+7429_daily_bin36.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/528369/ft2_4FGL_J1428.8+7429_daily_bin36.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/528369/ft1_4FGL_J1428.8+7429_daily_bin36.fits outfile=/scratch/kocevski/528369/ft1_filteredMKT_4FGL_J1428.8+7429_daily_bin36.fits ra=217.203 dec=74.485 rad=12.0 tmin=248659201.0 tmax=248918401.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.42
user 1.23
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/528369/ft2_4FGL_J1428.8+7429_daily_bin36.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/528369/ft1_filteredMKT_4FGL_J1428.8+7429_daily_bin36.fits evtable="EVENTS" outfile="/scratch/kocevski/528369/ft1_filtered_4FGL_J1428.8+7429_daily_bin36.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.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/528369/ft1_filtered_4FGL_J1428.8+7429_daily_bin36.fits" evtable="EVENTS" scfile=/scratch/kocevski/528369/ft2_4FGL_J1428.8+7429_daily_bin36.fits sctable="SC_DATA" outfile=/scratch/kocevski/528369/ltcube_248659201_248918401_4FGL_J1428.8+7429_daily_bin36.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/528369/ft2_4FGL_J1428.8+7429_daily_bin36.fits
.....................!
real 12.53
user 12.18
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/528369/ft1_filtered_4FGL_J1428.8+7429_daily_bin36.fits evtable="EVENTS" scfile=/scratch/kocevski/528369/ft2_4FGL_J1428.8+7429_daily_bin36.fits sctable="SC_DATA" expcube=/scratch/kocevski/528369/ltcube_248659201_248918401_4FGL_J1428.8+7429_daily_bin36.fits outfile=/scratch/kocevski/528369/expmap_248659201_248918401_4FGL_J1428.8+7429_daily_bin36.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/528369/ltcube_248659201_248918401_4FGL_J1428.8+7429_daily_bin36.fits
.....................!
real 190.33
user 185.23
sys 4.73

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/528369/ft1_filtered_4FGL_J1428.8+7429_daily_bin36.fits scfile=/scratch/kocevski/528369/ft2_4FGL_J1428.8+7429_daily_bin36.fits outfile=/scratch/kocevski/528369/cmap_248659201_248918401_4FGL_J1428.8+7429_daily_bin36.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.55
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/528369/ft1_filtered_4FGL_J1428.8+7429_daily_bin36.fits scfile=/scratch/kocevski/528369/ft2_4FGL_J1428.8+7429_daily_bin36.fits outfile=/scratch/kocevski/528369/cmap_HighResolution_248659201_248918401_4FGL_J1428.8+7429_daily_bin36.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/528369/ft1_filtered_4FGL_J1428.8+7429_daily_bin36.fits evtable="EVENTS" scfile=/scratch/kocevski/528369/ft2_4FGL_J1428.8+7429_daily_bin36.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/528369/Model_4FGL_J1428.8+7429_daily_bin36.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/528369/ft1_filtered_4FGL_J1428.8+7429_daily_bin36.fits.....................!
real 68.09
user 66.69
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/528369/ft1_filtered_4FGL_J1428.8+7429_daily_bin36.fits', '/scratch/kocevski/528369/ft2_4FGL_J1428.8+7429_daily_bin36.fits', expMap='/scratch/kocevski/528369/expmap_248659201_248918401_4FGL_J1428.8+7429_daily_bin36.fits', expCube='/scratch/kocevski/528369/ltcube_248659201_248918401_4FGL_J1428.8+7429_daily_bin36.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/528369/Model_4FGL_J1428.8+7429_daily_bin36.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/528369/ft1_filtered_4FGL_J1428.8+7429_daily_bin36.fits
Spacecraft file(s): /scratch/kocevski/528369/ft2_4FGL_J1428.8+7429_daily_bin36.fits
Exposure map: /scratch/kocevski/528369/expmap_248659201_248918401_4FGL_J1428.8+7429_daily_bin36.fits
Exposure cube: /scratch/kocevski/528369/ltcube_248659201_248918401_4FGL_J1428.8+7429_daily_bin36.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/528369/Model_4FGL_J1428.8+7429_daily_bin36.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) = 6081.21217963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.0761       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10769E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.920       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.808       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .18820E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7032       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14111E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.412       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .64609E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.5588       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.3680       1.0000         .10000E-03   10000.    
    18 'Prefactor '    28.168       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10809E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.177       1.0000         .10000E-03   10000.    
    22 'norm      '    .10149E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0649       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .91736       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.

 FCN=   6081.209     FROM MIGRAD    STATUS=CONVERGED    671 CALLS     3435 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.0778        11.503        .76024E-06   -.13310E-04
   2  Prefactor     .10000E-03    51.980       -.24727E-07** at limit **
   3  norm          .10000E-03    1.0715        .34435E-08** at limit **
   4  norm          .10000E-03    2.1291        .68879E-07** at limit **
   5  Prefactor     31.902        57.758       -.24858E-05   -.14178E-03
   6  Prefactor     .10000E-03    34.720        .38155E-06** at limit **
   7  Prefactor     26.813        18.310        .65084E-06    .23459E-04
   8  Prefactor     .10002E-03    107.02       -.24159E-05** at limit **
   9  Prefactor     1.7052        5.9605        .89600E-05   -.80032E-03
  10  Prefactor     .10000E-03    14.378       -.92807E-06** at limit **
  11  Prefactor     .10000E-03    21.732        .44024E-06** at limit **
  12  Prefactor     .10000E-03    3.5195       -.41883E-07** at limit **
  13  Prefactor     .10000E-03    9.5473       -.39497E-07** at limit **
  14  Prefactor     11.427        44.362       -.72447E-05   -.17874E-03
  15  Prefactor     .10001E-03    405.90        .48705E-05** at limit **
  16  Prefactor     6.5644        23.123        .18469E-05    .45784E-04
  17  Prefactor     2.3645        43.983        .74397E-05    .16726E-04
  18  Prefactor     28.164        44.504        .10383E-05   -.46296E-04
  19  Prefactor     .10000E-03    71.933       -.21839E-05** at limit **
  20  Prefactor     .10000E-03    25.677       -.22042E-05** at limit **
  21  Prefactor     17.173        47.560        .64928E-05    .26940E-03
  22  norm          .10000E-03    32.189        .20255E-06** at limit **
  23  Prefactor     .10000E-03    46.490        .73194E-06** at limit **
  24  Prefactor     .10000E-03    38.125        .94328E-06** at limit **
  25  Prefactor     .10000E-03    2.0541        .16988E-06** at limit **
  26  Prefactor     .10000E-03    14.439        .46313E-07** at limit **
  27  Normalizat    1.0647        .17783       -.39017E-05   -.88979E-03
  28  Prefactor     .91740        .14148        .31177E-06   -.10664E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.07784
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 31.9023
  Prefactor  = 0.0001
  Prefactor  = 26.8125
  Prefactor  = 0.000100017
  Prefactor  = 1.70519
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.4267
  Prefactor  = 0.000100009
  Prefactor  = 6.56444
  Prefactor  = 2.36448
  Prefactor  = 28.1642
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 17.1726
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.06468
  Prefactor  = 0.917404
 **********
 **   18 **HESSE 
 **********

 FCN=   6081.209     FROM HESSE     STATUS=OK           503 CALLS     3938 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.0778        11.155        .13304E-03   -1.5105    
   2  Prefactor     .10000E-03    52.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.0724        .78831E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.2822        .21330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     31.902        57.797        .70921E-04   -1.4578    
   6  Prefactor     .10000E-03    34.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.813        18.369        .77372E-04   -1.4672    
   8  Prefactor     .10002E-03    109.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.7052        6.0266        .16113E-02   -1.5447    
  10  Prefactor     .10000E-03    14.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    22.415        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.5311        .14285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.5707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.427        44.590        .11859E-03   -1.5032    
  15  Prefactor     .10001E-03    407.47        .21024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.5644        23.116        .78350E-03   -1.5195    
  17  Prefactor     2.3645        44.075        .13314E-02   -1.5400    
  18  Prefactor     28.164        44.521        .75486E-04   -1.4646    
  19  Prefactor     .10000E-03    72.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    26.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     17.173        48.393        .96637E-04   -1.4879    
  22  norm          .10000E-03    32.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    46.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    38.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.1240        .21819E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    14.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0647        .20000        .24524E-03   -.90894    
  28  Prefactor     .91740        .16041        .21804E-03   -.95536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84805e-09
Minuit parameter uncertainties:
  1  11.1576
  2  7.03896e-05
  3  5.92554e-07
  4  1.52116e-05
  5  57.8983
  6  7.39939e-05
  7  18.3726
  8  0.00274366
  9  6.02871
  10  0.000265531
  11  6.25343e-05
  12  4.31202e-06
  13  6.14178e-06
  14  44.72
  15  0.00394779
  16  23.1472
  17  20.4342
  18  44.5735
  19  0.000208411
  20  0.00052958
  21  48.5041
  22  0.000148349
  23  0.000144524
  24  0.000165778
  25  2.07191e-05
  26  3.04323e-05
  27  0.200145
  28  0.160493
Done.

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

Extracting fit parameters...

4FGL J1428.8+7429
   Spectrum: PowerLaw
368    Prefactor:  1.000e-04  3.948e-03  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.174e-01  1.605e-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:  1.065e+00  2.001e-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: 5.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/528369/likelihoodResults_248659201_248918401_4FGL_J1428.8+7429_daily_bin36.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) = 6081.20897946
delta logL = -1.15415368782e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6081.20897946
delta logL = -1.15414368338e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96366E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8594       1.0000          .0000       10.000    
     3 'Normalizat'    1.0647       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91740       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.

 FCN=   6081.209     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      213 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10010E-03    17.620        .90712E-02** at limit **
   2  Index         1.9818        8.1032        .50000       -.22971E-05
   3  Normalizat    1.0647        .59848E-03    .39665E-01   -.17757E-03
   4  Prefactor     .91741        .50033E-03    .45226E-01   -.64541E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100098
  Index      = 1.98181
  Normalizat = 1.06468
  Prefactor  = 0.917407
 **********
 **   18 **HESSE 
 **********

 FCN=   6081.209     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      244 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10010E-03    6787.7        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9818        8.8029        .50000       -.64806    
   3  Normalizat    1.0647        .89837E-02    .24524E-03   -.90894    
   4  Prefactor     .91741        .75090E-02    .21804E-03   -.95535    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.988e-09
Minuit parameter uncertainties:
  1  0.0401706
  2  189.898
  3  0.00898374
  4  0.00750896
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/528369': 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) = 6081.20896785
delta logL = 7.14144334779e-08

Extracting fit parameters...

4FGL J1428.8+7429
   Spectrum: PowerLaw
368    Prefactor:  1.001e-04  4.017e-02  1.000e-04  1.000e+04 ( 1.000e-15)
369        Index:  1.982e+00  1.899e+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.174e-01  7.509e-03  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:  1.065e+00  8.984e-03  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/528369/cmap_HighResolution_248659201_248918401_4FGL_J1428.8+7429_daily_bin36.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.40e-03', job_status='DONE', photon_flux_upper_limit='5.94e-08', time_completed='2021-09-09 19:56:06.907427', job_id='528369', GAL2='0.92', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1631242566.91', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='7.14e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.86' WHERE bin_id='36' AND source_name='4FGL J1428.8+7429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 19:56:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 528369: <4FGL_J1428.8+7429_daily_bin36> in cluster <slac> Done

Job <4FGL_J1428.8+7429_daily_bin36> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  9 19:41:09 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 19:41:11 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:11 2021
Terminated at Thu Sep  9 19:56:07 2021
Results reported at Thu Sep  9 19:56:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1428.8+7429_daily_bin36 217.203 74.485 248659201 248918401 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 :                                   869.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             336.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            898 sec.

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

