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


Performing analysis on: 4FGL_J1428.8+7429_daily_bin767
RA = 217.203, Dec = 74.485
tmin = 438134401, tmax = 438393601
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='535620', job_status='RUN', time_executed='2021-09-09 20:09:33.110344', time_epoch_executed='1631243373.11' WHERE source_name='4FGL J1428.8+7429' and cadence='daily' and bin_id='767'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/535620

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/535620/ft1_4FGL_J1428.8+7429_daily_bin767.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/535620/ft2_4FGL_J1428.8+7429_daily_bin767.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/535620/ft1_4FGL_J1428.8+7429_daily_bin767.fits outfile=/scratch/kocevski/535620/ft1_filteredMKT_4FGL_J1428.8+7429_daily_bin767.fits ra=217.203 dec=74.485 rad=12.0 tmin=438134401.0 tmax=438393601.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 6.29
user 6.00
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/535620/ft1_filtered_4FGL_J1428.8+7429_daily_bin767.fits evtable="EVENTS" scfile=/scratch/kocevski/535620/ft2_4FGL_J1428.8+7429_daily_bin767.fits sctable="SC_DATA" expcube=/scratch/kocevski/535620/ltcube_438134401_438393601_4FGL_J1428.8+7429_daily_bin767.fits outfile=/scratch/kocevski/535620/expmap_438134401_438393601_4FGL_J1428.8+7429_daily_bin767.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/535620/ltcube_438134401_438393601_4FGL_J1428.8+7429_daily_bin767.fits
.....................!
real 191.61
user 186.06
sys 5.18

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/535620/ft1_filtered_4FGL_J1428.8+7429_daily_bin767.fits scfile=/scratch/kocevski/535620/ft2_4FGL_J1428.8+7429_daily_bin767.fits outfile=/scratch/kocevski/535620/cmap_438134401_438393601_4FGL_J1428.8+7429_daily_bin767.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/535620/ft1_filtered_4FGL_J1428.8+7429_daily_bin767.fits scfile=/scratch/kocevski/535620/ft2_4FGL_J1428.8+7429_daily_bin767.fits outfile=/scratch/kocevski/535620/cmap_HighResolution_438134401_438393601_4FGL_J1428.8+7429_daily_bin767.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.82
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.000       1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.444       1.0000         .10000E-03   10000.    
     3 'norm      '    7.0819       1.0000         .10000E-03   10000.    
     4 'norm      '    2.9288       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    34.938       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.681       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10524E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.911       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.761       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10329E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11591E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    179.87       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14754E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11289E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.240       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .17802E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    109.13       1.0000         .10000E-03   10000.    
    22 'norm      '    21.421       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10429E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    137.10       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.7558       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.5197       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1518       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .90649       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=   3551.502     FROM MIGRAD    STATUS=CONVERGED    691 CALLS     3474 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.008        14.897        .12267E-06    .15067E-05
   2  Prefactor     23.440        77.005        .11581E-06   -.26855E-06
   3  norm          7.0844        7.9218        .19985E-05    .14184E-03
   4  norm          2.9288        3.9479        .10818E-06    .42845E-04
   5  Prefactor     .10000E-03    54.889       -.84918E-07** at limit **
   6  Prefactor     35.035        83.555        .16093E-05    .11139E-04
   7  Prefactor     14.677        17.561        .86523E-07    .12801E-04
   8  Prefactor     .10000E-03    131.14        .36146E-06** at limit **
   9  Prefactor     19.912        16.916        .56703E-06   -.31016E-05
  10  Prefactor     15.765        36.947       -.78786E-06   -.25304E-04
  11  Prefactor     .10000E-03    35.358       -.65664E-07** at limit **
  12  Prefactor     .10000E-03    13.093        .10058E-06** at limit **
  13  Prefactor     .10000E-03    35.867        .21612E-05** at limit **
  14  Prefactor     179.89        129.89        .57669E-06    .36399E-05
  15  Prefactor     .10000E-03    192.36        .42604E-06** at limit **
  16  Prefactor     .10000E-03    13.805       -.76194E-07** at limit **
  17  Prefactor     .10000E-03    33.518       -.15870E-06** at limit **
  18  Prefactor     22.445        82.323        .41523E-05    .27578E-04
  19  Prefactor     .10001E-03    525.65        .12895E-04** at limit **
  20  Prefactor     .10000E-03    21.342       -.43476E-06** at limit **
  21  Prefactor     109.10        67.873        .13182E-06   -.69765E-05
  22  norm          21.418        21.302       -.13714E-07    .71871E-06
  23  Prefactor     .10000E-03    112.36        .10731E-06** at limit **
  24  Prefactor     137.09        94.478        .96837E-07   -.31938E-05
  25  Prefactor     2.7566        6.2371        .78447E-06    .71809E-04
  26  Prefactor     4.5217        140.54       -.22826E-05   -.58299E-05
  27  Normalizat    1.1515        .28540       -.47455E-05    .62594E-04
  28  Prefactor     .90647        .22119        .33295E-05   -.10184E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.0078
  Prefactor  = 23.4397
  norm       = 7.08444
  norm       = 2.92881
  Prefactor  = 0.0001
  Prefactor  = 35.035
  Prefactor  = 14.6771
  Prefactor  = 0.0001
  Prefactor  = 19.9122
  Prefactor  = 15.7648
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 179.887
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.4454
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 109.096
  norm       = 21.4178
  Prefactor  = 0.0001
  Prefactor  = 137.091
  Prefactor  = 2.7566
  Prefactor  = 4.52169
  Normalizat = 1.1515
  Prefactor  = 0.906467
 **********
 **   18 **HESSE 
 **********

 FCN=   3551.502     FROM HESSE     STATUS=OK           521 CALLS     3995 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.008        14.870        .80116E-04   -1.4707    
   2  Prefactor     23.440        77.116        .82727E-04   -1.4739    
   3  norm          7.0844        7.9882        .75370E-03   -1.5176    
   4  norm          2.9288        3.9384        .12811E-03   -1.5366    
   5  Prefactor     .10000E-03    54.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     35.035        83.649        .67798E-04   -1.4523    
   7  Prefactor     14.677        17.603        .10453E-03   -1.4942    
   8  Prefactor     .10000E-03    131.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     19.912        16.900        .89761E-04   -1.4815    
  10  Prefactor     15.765        37.149        .10089E-03   -1.4914    
  11  Prefactor     .10000E-03    35.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    36.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     179.89        129.92        .15049E-03   -1.3017    
  15  Prefactor     .10000E-03    192.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    33.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     22.445        82.513        .84935E-04   -1.4760    
  19  Prefactor     .10001E-03    532.34        .18223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    21.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     109.10        67.878        .19251E-03   -1.3615    
  22  norm          21.418        21.288        .86542E-04   -1.4782    
  23  Prefactor     .10000E-03    112.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     137.09        94.521        .34399E-04   -1.3361    
  25  Prefactor     2.7566        5.9812        .15886E-03   -1.5376    
  26  Prefactor     4.5217        128.68        .18937E-03   -1.5283    
  27  Normalizat    1.1515        .30522        .26897E-03   -.88115    
  28  Prefactor     .90647        .23779        .24089E-03   -.95915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57913e-10
Minuit parameter uncertainties:
  1  14.8717
  2  77.4464
  3  7.98936
  4  3.93878
  5  6.15646e-06
  6  83.9307
  7  17.6091
  8  0.000134522
  9  16.9043
  10  37.2033
  11  1.46662e-05
  12  2.46701e-05
  13  8.73867e-05
  14  130.126
  15  0.000132748
  16  2.81345e-07
  17  2.02166e-06
  18  82.9372
  19  0.00398939
  20  6.0463e-06
  21  67.9268
  22  21.296
  23  0.000229552
  24  94.6252
  25  5.98251
  26  48.357
  27  0.30569
  28  0.238067
Done.

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

Extracting fit parameters...

4FGL J1428.8+7429
   Spectrum: PowerLaw
368    Prefactor:  1.000e-04  1.327e-04  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.065e-01  2.381e-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.151e+00  3.057e-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: 8.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/535620/likelihoodResults_438134401_438393601_4FGL_J1428.8+7429_daily_bin767.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) = 3551.50155565
delta logL = -2.45706351052e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3551.50155565
delta logL = -2.45696464845e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96361E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8594       1.0000          .0000       10.000    
     3 'Normalizat'    1.1515       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90647       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=   3551.502     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      205 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.535        .90712E-02** at limit **
   2  Index         1.8516        5.4584        .50000        .30129E-06
   3  Normalizat    1.1515        .27305E-02    .60815E-01    .75446E-05
   4  Prefactor     .90647        .22092E-02    .45087E-01    .88488E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.85155
  Normalizat = 1.15149
  Prefactor  = 0.90647
 **********
 **   18 **HESSE 
 **********

 FCN=   3551.502     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      238 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    218.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8516        7.7303        .50000       -.68115    
   3  Normalizat    1.1515        .69802E-02    .26898E-03   -.88115    
   4  Prefactor     .90647        .56501E-02    .24089E-03   -.95915    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.23244e-11
Minuit parameter uncertainties:
  1  2.04221e-05
  2  60.2349
  3  0.00698025
  4  0.00565012
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/535620': 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) = 3551.50153108
delta logL = 6.74390321365e-10

Extracting fit parameters...

4FGL J1428.8+7429
   Spectrum: PowerLaw
368    Prefactor:  1.000e-04  2.042e-05  1.000e-04  1.000e+04 ( 1.000e-15)
369        Index:  1.852e+00  6.023e+01  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.065e-01  5.650e-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.151e+00  6.980e-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/535620/cmap_HighResolution_438134401_438393601_4FGL_J1428.8+7429_daily_bin767.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.98e-03', job_status='DONE', photon_flux_upper_limit='8.07e-08', time_completed='2021-09-09 20:20:52.846452', job_id='535620', GAL2='0.91', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1631244052.85', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='6.74e-10', ts2='-0.00', photon_index_error='0.00', photon_index='1.86' WHERE bin_id='767' AND source_name='4FGL J1428.8+7429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 20:20:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 535620: <4FGL_J1428.8+7429_daily_bin767> in cluster <slac> Done

Job <4FGL_J1428.8+7429_daily_bin767> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep  9 20:06:06 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 20:06:08 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:06:08 2021
Terminated at Thu Sep  9 20:20:53 2021
Results reported at Thu Sep  9 20:20:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1428.8+7429_daily_bin767 217.203 74.485 438134401 438393601 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 :                                   678.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             262.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            887 sec.

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

