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


Performing analysis on: 4FGL_J1428.9+5406_daily_bin848
RA = 217.229, Dec = 54.1114
tmin = 459129601, tmax = 459388801
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='547865', job_status='RUN', time_executed='2021-09-09 20:46:46.738275', time_epoch_executed='1631245606.74' WHERE source_name='4FGL J1428.9+5406' and cadence='daily' and bin_id='848'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/547865

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/547865/ft1_4FGL_J1428.9+5406_daily_bin848.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/547865/ft2_4FGL_J1428.9+5406_daily_bin848.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/547865/ft1_4FGL_J1428.9+5406_daily_bin848.fits outfile=/scratch/kocevski/547865/ft1_filteredMKT_4FGL_J1428.9+5406_daily_bin848.fits ra=217.229 dec=54.1114 rad=12.0 tmin=459129601.0 tmax=459388801.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 3.88
user 3.65
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/547865/ft2_4FGL_J1428.9+5406_daily_bin848.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/547865/ft1_filteredMKT_4FGL_J1428.9+5406_daily_bin848.fits evtable="EVENTS" outfile="/scratch/kocevski/547865/ft1_filtered_4FGL_J1428.9+5406_daily_bin848.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/547865/ft1_filtered_4FGL_J1428.9+5406_daily_bin848.fits evtable="EVENTS" scfile=/scratch/kocevski/547865/ft2_4FGL_J1428.9+5406_daily_bin848.fits sctable="SC_DATA" expcube=/scratch/kocevski/547865/ltcube_459129601_459388801_4FGL_J1428.9+5406_daily_bin848.fits outfile=/scratch/kocevski/547865/expmap_459129601_459388801_4FGL_J1428.9+5406_daily_bin848.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/547865/ltcube_459129601_459388801_4FGL_J1428.9+5406_daily_bin848.fits
.....................!
real 192.71
user 187.29
sys 5.01

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/547865/ft1_filtered_4FGL_J1428.9+5406_daily_bin848.fits scfile=/scratch/kocevski/547865/ft2_4FGL_J1428.9+5406_daily_bin848.fits outfile=/scratch/kocevski/547865/cmap_459129601_459388801_4FGL_J1428.9+5406_daily_bin848.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/547865/ft1_filtered_4FGL_J1428.9+5406_daily_bin848.fits scfile=/scratch/kocevski/547865/ft2_4FGL_J1428.9+5406_daily_bin848.fits outfile=/scratch/kocevski/547865/cmap_HighResolution_459129601_459388801_4FGL_J1428.9+5406_daily_bin848.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=217.229 yref=54.1114 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.967       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13932E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    9.0200       1.0000         .10000E-03   10000.    
     5 'Prefactor '    65.527       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.0940       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.516       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.1828       1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.766       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    53.310       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.306       1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.821       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.178       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.5083       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .30756E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    24.554       1.0000         .10000E-03   10000.    
    27 'norm      '    4.2154       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .85157       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .96226       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=   6591.108     FROM MIGRAD    STATUS=CONVERGED    716 CALLS     3695 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.004        39.427        .40984E-04   -.73833E-05
   2  Prefactor     .10000E-03    18.279        .17249E-04** at limit **
   3  Prefactor     .10002E-03    37.329       -.29577E-05** at limit **
   4  norm          9.0209        4.0825       -.22868E-05   -.91385E-03
   5  Prefactor     65.527        54.280        .89030E-06   -.10612E-03
   6  Prefactor     .10000E-03    38.276        .59080E-05** at limit **
   7  norm          6.0941        2.1172       -.25487E-06   -.95988E-04
   8  norm          .10000E-03    37.712        .84395E-06** at limit **
   9  norm          .10000E-03    3.1095       -.34816E-07** at limit **
  10  Prefactor     .10000E-03    117.34       -.72210E-05** at limit **
  11  Prefactor     22.514        24.824        .21649E-06   -.33819E-05
  12  Prefactor     .10000E-03    14.292       -.14162E-04** at limit **
  13  Prefactor     4.1831        3.5410       -.31848E-07    .12453E-03
  14  Prefactor     25.771        20.409       -.20668E-06    .76360E-05
  15  Prefactor     .10000E-03    1.2900       -.19129E-07** at limit **
  16  Prefactor     .10000E-03    12.957        .67639E-05** at limit **
  17  Prefactor     53.305        28.482        .64639E-06   -.14415E-03
  18  Prefactor     .10000E-03    26.024       -.20067E-04** at limit **
  19  Prefactor     13.298        30.888       -.34003E-05   -.97289E-04
  20  Prefactor     16.827        16.865       -.37985E-06    .20721E-04
  21  Prefactor     10.178        13.228        .19880E-06   -.43212E-04
  22  Prefactor     .10000E-03    7.1196       -.24901E-07** at limit **
  23  norm          2.5082        1.3987        .38725E-08   -.24515E-03
  24  Prefactor     .10049E-03    7.1925        .29461E-05** at limit **
  25  Prefactor     .10000E-03    2.5262        .69204E-07** at limit **
  26  Prefactor     24.540        9.2176       -.37369E-06   -.20673E-02
  27  norm          4.2157        3.8126       -.11612E-05    .69644E-04
  28  Normalizat    .85153        .16389       -.27744E-05   -.35840E-03
  29  Prefactor     .96226        .17820        .20385E-05   -.49964E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.0037
  Prefactor  = 0.0001
  Prefactor  = 0.000100022
  norm       = 9.02094
  Prefactor  = 65.5274
  Prefactor  = 0.0001
  norm       = 6.0941
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.5139
  Prefactor  = 0.0001
  Prefactor  = 4.18306
  Prefactor  = 25.7709
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 53.3054
  Prefactor  = 0.0001
  Prefactor  = 13.2975
  Prefactor  = 16.8267
  Prefactor  = 10.1779
  Prefactor  = 0.0001
  norm       = 2.50817
  Prefactor  = 0.000100486
  Prefactor  = 0.0001
  Prefactor  = 24.5401
  norm       = 4.21572
  Normalizat = 0.85153
  Prefactor  = 0.962255
 **********
 **   18 **HESSE 
 **********

 FCN=   6591.108     FROM HESSE     STATUS=OK           547 CALLS     4242 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.004        39.348        .10353E-03   -1.4933    
   2  Prefactor     .10000E-03    18.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10002E-03    37.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          9.0209        4.0997        .10671E-03   -1.5107    
   5  Prefactor     65.527        54.542        .49578E-04   -1.4087    
   6  Prefactor     .10000E-03    38.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.0941        2.1171        .67232E-04   -1.5214    
   8  norm          .10000E-03    37.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.1854        .27922E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    117.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     22.514        24.822        .84414E-04   -1.4759    
  12  Prefactor     .10000E-03    14.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.1831        3.5403        .13572E-03   -1.5299    
  14  Prefactor     25.771        20.516        .78919E-04   -1.4692    
  15  Prefactor     .10000E-03    1.3006        .89367E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     53.305        28.420        .54933E-04   -1.4246    
  18  Prefactor     .10000E-03    25.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.298        30.859        .10981E-03   -1.4978    
  20  Prefactor     16.827        16.857        .97654E-04   -1.4887    
  21  Prefactor     10.178        13.227        .12559E-03   -1.5070    
  22  Prefactor     .10000E-03    7.1425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.5082        1.3950        .69033E-04   -1.5391    
  24  Prefactor     .10049E-03    48.410        .39401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.5418        .12598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     24.540        8.8150        .40420E-03   -1.4717    
  27  norm          4.2157        3.8147        .14659E-03   -1.5297    
  28  Normalizat    .85153        .19387        .23638E-03   -.98185    
  29  Prefactor     .96226        .20977        .26143E-03   -.93998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15206e-08
Minuit parameter uncertainties:
  1  39.4159
  2  8.74768e-05
  3  0.00182583
  4  4.09984
  5  54.5841
  6  2.52947e-05
  7  2.11712
  8  1.50177e-06
  9  4.46113e-06
  10  5.04284e-06
  11  24.8338
  12  8.17422e-06
  13  3.54052
  14  20.5216
  15  6.82709e-07
  16  2.67e-05
  17  28.4275
  18  2.28852e-05
  19  30.8959
  20  16.862
  21  13.2309
  22  1.40607e-05
  23  1.39504
  24  0.00970735
  25  6.01335e-06
  26  8.81546
  27  3.81489
  28  0.194025
  29  0.209943
Done.

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

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  5.331e+01  2.843e+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:  9.623e-01  2.099e-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.515e-01  1.940e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.56
Ra Dec: 217.229 54.111
Photon Index (Fixed Index): 2.57 +/- 0.00
Photon Flux (Fixed Index): 7.51e-08 +/- 4.00e-08
Energy Flux (Fixed Index): 2.02e-05 +/- 1.08e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6589.05390283
delta logL = 2.05430826035

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6589.04388955
delta logL = 2.06432153501

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6589.044     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      293 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.169        36.541        .10079E-03   -.26563E-03
   2  Index         3.8790        1.8438        .33383E-02   -.15444E-03
   3  Normalizat    .77089        .18482        .24664E-03   -.27748E-03
   4  Prefactor     1.0285        .21368        .25381E-03   -.26274E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.1685
  Index      = 3.87901
  Normalizat = 0.770892
  Prefactor  = 1.02852
 **********
 **   18 **HESSE 
 **********

 FCN=   6589.044     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.169        15.748        .40316E-05   -1.5039    
   2  Index         3.8790        .80915        .13353E-03   -.22612    
   3  Normalizat    .77089        .18341        .98658E-05   -1.0116    
   4  Prefactor     1.0285        .21075        .50762E-04   -.91785    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.14565e-10
Minuit parameter uncertainties:
  1  15.7534
  2  0.81292
  3  0.183556
  4  0.21092
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/547865': 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) = 6589.0438877
delta logL = 2.06432338827

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  1.117e+01  1.575e+01  1.000e-04  1.000e+04 ( 1.000e-13)
347        Index:  3.879e+00  8.129e-01  0.000e+00  1.000e+01 (-1.000e+00)
348        Scale:  8.154e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  1.029e+00  2.109e-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:  7.709e-01  1.836e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.18
Ra Dec: 217.229 54.111
Photon Index (Free Index): 3.88 +/- 0.81
Photon Flux (Free Index): 1.33e-07 +/- 5.44e-08
Energy Flux (Free Index): 2.04e-05 +/- 8.36e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/547865/cmap_HighResolution_459129601_459388801_4FGL_J1428.9+5406_daily_bin848.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.51e-08', energy_flux2='2.04e-05', photon_flux_error='4.00e-08', dlogl='2.06e+00', energy_flux='2.02e-05', photon_flux2='1.33e-07', job_status='DONE', time_completed='2021-09-09 21:00:49.872336', photon_index_error2='0.81', photon_index2='3.88', ts='5.56', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='8.36e-06', EG='0.85', time_epoch_completed='1631246449.87', return_code='0', job_id='547865', GAL2='1.03', EG2='0.77', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='5.44e-08', ts2='10.18', photon_index='2.57' WHERE bin_id='848' AND source_name='4FGL J1428.9+5406' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 21:00:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 547865: <4FGL_J1428.9+5406_daily_bin848> in cluster <slac> Done

Job <4FGL_J1428.9+5406_daily_bin848> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  9 20:46:06 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 20:46:07 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 20:46:07 2021
Terminated at Thu Sep  9 21:00:50 2021
Results reported at Thu Sep  9 21:00:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1428.9+5406_daily_bin848 217.229 54.1114 459129601 459388801 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 :                                   837.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             359.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            884 sec.

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

