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


Performing analysis on: 4FGL_J1428.9+5406_daily_bin801
RA = 217.229, Dec = 54.1114
tmin = 446947201, tmax = 447206401
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='546314', job_status='RUN', time_executed='2021-09-09 20:41:43.033797', time_epoch_executed='1631245303.03' WHERE source_name='4FGL J1428.9+5406' and cadence='daily' and bin_id='801'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/546314

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/546314/ft1_4FGL_J1428.9+5406_daily_bin801.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/546314/ft2_4FGL_J1428.9+5406_daily_bin801.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/546314/ft1_4FGL_J1428.9+5406_daily_bin801.fits outfile=/scratch/kocevski/546314/ft1_filteredMKT_4FGL_J1428.9+5406_daily_bin801.fits ra=217.229 dec=54.1114 rad=12.0 tmin=446947201.0 tmax=447206401.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.39
user 3.11
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/546314/ft2_4FGL_J1428.9+5406_daily_bin801.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/546314/ft1_filteredMKT_4FGL_J1428.9+5406_daily_bin801.fits evtable="EVENTS" outfile="/scratch/kocevski/546314/ft1_filtered_4FGL_J1428.9+5406_daily_bin801.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/546314/ft1_filtered_4FGL_J1428.9+5406_daily_bin801.fits" evtable="EVENTS" scfile=/scratch/kocevski/546314/ft2_4FGL_J1428.9+5406_daily_bin801.fits sctable="SC_DATA" outfile=/scratch/kocevski/546314/ltcube_446947201_447206401_4FGL_J1428.9+5406_daily_bin801.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/546314/ft2_4FGL_J1428.9+5406_daily_bin801.fits
.....................!
real 11.80
user 11.44
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/546314/ft1_filtered_4FGL_J1428.9+5406_daily_bin801.fits evtable="EVENTS" scfile=/scratch/kocevski/546314/ft2_4FGL_J1428.9+5406_daily_bin801.fits sctable="SC_DATA" expcube=/scratch/kocevski/546314/ltcube_446947201_447206401_4FGL_J1428.9+5406_daily_bin801.fits outfile=/scratch/kocevski/546314/expmap_446947201_447206401_4FGL_J1428.9+5406_daily_bin801.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/546314/ltcube_446947201_447206401_4FGL_J1428.9+5406_daily_bin801.fits
.....................!
real 190.77
user 185.02
sys 5.36

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/546314/ft1_filtered_4FGL_J1428.9+5406_daily_bin801.fits scfile=/scratch/kocevski/546314/ft2_4FGL_J1428.9+5406_daily_bin801.fits outfile=/scratch/kocevski/546314/cmap_446947201_447206401_4FGL_J1428.9+5406_daily_bin801.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/546314/ft1_filtered_4FGL_J1428.9+5406_daily_bin801.fits scfile=/scratch/kocevski/546314/ft2_4FGL_J1428.9+5406_daily_bin801.fits outfile=/scratch/kocevski/546314/cmap_HighResolution_446947201_447206401_4FGL_J1428.9+5406_daily_bin801.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    61.964       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    9.7292       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.215       1.0000         .10000E-03   10000.    
     7 'norm      '    20.138       1.0000         .10000E-03   10000.    
     8 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.4831       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .53405E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    52.859       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10278E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.6809       1.0000         .10000E-03   10000.    
    17 'Prefactor '    29.261       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.462       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.969       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .90087       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0046       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=   5473.399     FROM MIGRAD    STATUS=CONVERGED    709 CALLS     3650 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     61.953        57.046       -.10069E-04    .64456E-04
   2  Prefactor     .10000E-03    16.178       -.36095E-05** at limit **
   3  Prefactor     .10000E-03    32.364       -.16891E-04** at limit **
   4  norm          9.7304        5.8205       -.15440E-06    .55094E-04
   5  Prefactor     .10000E-03    39.139       -.96250E-06** at limit **
   6  Prefactor     20.223        45.203        .11602E-04    .21435E-04
   7  norm          20.139        3.6341        .19566E-06    .83131E-03
   8  norm          .10000E-03    40.064        .16369E-05** at limit **
   9  norm          7.4813        5.5092       -.27108E-05   -.17889E-03
  10  Prefactor     .10001E-03    2002.4       -.13106E-02** at limit **
  11  Prefactor     52.902        63.511        .47793E-04   -.42956E-06
  12  Prefactor     .10000E-03    20.289        .79434E-05** at limit **
  13  Prefactor     .10000E-03    3.7851       -.49398E-06** at limit **
  14  Prefactor     .10000E-03    41.284        .72555E-05** at limit **
  15  Prefactor     .10000E-03    1.1236       -.37208E-06** at limit **
  16  Prefactor     5.6956        36.916        .10539E-04    .68908E-06
  17  Prefactor     29.259        22.824       -.39281E-05   -.22673E-04
  18  Prefactor     .10000E-03    66.810        .44416E-05** at limit **
  19  Prefactor     26.470        31.193        .15377E-05   -.10190E-04
  20  Prefactor     .10000E-03    10.105        .27324E-06** at limit **
  21  Prefactor     .10000E-03    40.028        .55447E-05** at limit **
  22  Prefactor     11.972        16.488        .87734E-06   -.64639E-04
  23  norm          .10000E-03    .68626        .15637E-07** at limit **
  24  Prefactor     .10000E-03    4.1342        .16799E-07** at limit **
  25  Prefactor     .10000E-03    3.8560        .56717E-07** at limit **
  26  Prefactor     .10000E-03    5.2460        .90482E-07** at limit **
  27  norm          .10000E-03    2.3078       -.18440E-07** at limit **
  28  Normalizat    .90083        .17879       -.30262E-05    .32325E-03
  29  Prefactor     1.0046        .19925       -.25134E-06    .13344E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 61.9527
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 9.73043
  Prefactor  = 0.0001
  Prefactor  = 20.223
  norm       = 20.1392
  norm       = 0.0001
  norm       = 7.48131
  Prefactor  = 0.000100011
  Prefactor  = 52.9024
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.69564
  Prefactor  = 29.2589
  Prefactor  = 0.0001
  Prefactor  = 26.4703
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.9722
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.90083
  Prefactor  = 1.0046
 **********
 **   18 **HESSE 
 **********

 FCN=   5473.399     FROM HESSE     STATUS=OK           543 CALLS     4193 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     61.953        57.034        .50975E-04   -1.4132    
   2  Prefactor     .10000E-03    16.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    32.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          9.7304        5.8135        .12847E-03   -1.5084    
   5  Prefactor     .10000E-03    39.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     20.223        45.303        .89083E-04   -1.4808    
   7  norm          20.139        3.6369        .28924E-03   -1.4810    
   8  norm          .10000E-03    40.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.4813        5.5033        .14042E-03   -1.5161    
  10  Prefactor     .10001E-03    2003.1        .19110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     52.902        63.464        .55166E-04   -1.4252    
  12  Prefactor     .10000E-03    20.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.0723        .27850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    42.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.1299        .76472E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.6956        36.511        .16853E-03   -1.5231    
  17  Prefactor     29.259        22.807        .74066E-04   -1.4626    
  18  Prefactor     .10000E-03    66.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     26.470        31.054        .77876E-04   -1.4679    
  20  Prefactor     .10000E-03    10.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    41.441        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.972        16.515        .11579E-03   -1.5016    
  23  norm          .10000E-03    .70010        .59734E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.1535        .14688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    3.8938        .14171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    5.4105        .33075E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    2.3369        .10975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .90083        .21165        .23528E-03   -.96431    
  29  Prefactor     1.0046        .23497        .26243E-03   -.92576    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.83229e-10
Minuit parameter uncertainties:
  1  57.0842
  2  7.24645e-05
  3  0.000306329
  4  5.81383
  5  1.67967e-05
  6  45.3801
  7  3.63692
  8  2.22825e-05
  9  5.50367
  10  0.00994555
  11  63.5452
  12  0.000231152
  13  0.000120941
  14  1.23787e-05
  15  4.02049e-05
  16  28.8667
  17  22.8139
  18  0.000303
  19  31.0728
  20  1.99097e-05
  21  5.20703e-05
  22  16.5211
  23  7.03717e-07
  24  6.26232e-06
  25  8.90804e-06
  26  2.2399e-05
  27  5.31e-06
  28  0.211842
  29  0.23521
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  1.005e+00  2.352e-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:  9.008e-01  2.118e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.28
Ra Dec: 217.229 54.111
Photon Index (Fixed Index): 2.57 +/- 0.00
Photon Flux (Fixed Index): 4.12e-08 +/- 3.21e-08
Energy Flux (Fixed Index): 1.11e-05 +/- 8.64e-06

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) = 5473.18983026
delta logL = 0.2094689392

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5473.18921661
delta logL = 0.210082596403

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.349       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1261       1.0000          .0000       10.000    
     3 'Normalizat'    .91702       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99172       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=   5473.189     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      290 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.350        31.246        .64722E-04   -.20618E-03
   2  Index         2.1261        .64298        .93477E-02   -.92216E-04
   3  Normalizat    .91697        .19975        .23343E-03   -.66773E-04
   4  Prefactor     .99177        .23374        .26392E-03    .10287E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.3503
  Index      = 2.12609
  Normalizat = 0.916974
  Prefactor  = 0.991766
 **********
 **   18 **HESSE 
 **********

 FCN=   5473.189     FROM HESSE     STATUS=OK            23 CALLS      313 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.350        31.014        .12944E-04   -1.4469    
   2  Index         2.1261        .63804        .37391E-03   -.61234    
   3  Normalizat    .91697        .19992        .93371E-05   -.95866    
   4  Prefactor     .99177        .23395        .10557E-04   -.93004    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.87551e-10
Minuit parameter uncertainties:
  1  31.0274
  2  0.640658
  3  0.20008
  4  0.234194
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/546314': 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) = 5473.18921659
delta logL = 0.210082618353

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  3.835e+01  3.103e+01  1.000e-04  1.000e+04 ( 1.000e-13)
347        Index:  2.126e+00  6.407e-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:  9.918e-01  2.342e-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:  9.170e-01  2.001e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.69
Ra Dec: 217.229 54.111
Photon Index (Free Index): 2.13 +/- 0.64
Photon Flux (Free Index): 2.95e-08 +/- 2.97e-08
Energy Flux (Free Index): 1.53e-05 +/- 1.63e-05

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/546314/cmap_HighResolution_446947201_447206401_4FGL_J1428.9+5406_daily_bin801.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.12e-08', energy_flux2='1.53e-05', photon_flux_error='3.21e-08', dlogl='2.10e-01', energy_flux='1.11e-05', photon_flux2='2.95e-08', job_status='DONE', time_completed='2021-09-09 20:54:15.153097', photon_index_error2='0.64', photon_index2='2.13', ts='4.28', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='1.63e-05', EG='0.90', time_epoch_completed='1631246055.15', return_code='0', job_id='546314', GAL2='0.99', EG2='0.92', return_code2='0', energy_flux_error='8.64e-06', photon_flux_error2='2.97e-08', ts2='4.69', photon_index='2.57' WHERE bin_id='801' AND source_name='4FGL J1428.9+5406' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 20:54:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 546314: <4FGL_J1428.9+5406_daily_bin801> in cluster <slac> Done

Job <4FGL_J1428.9+5406_daily_bin801> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  9 20:41:28 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 20:41:30 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:41:30 2021
Terminated at Thu Sep  9 20:54:15 2021
Results reported at Thu Sep  9 20:54:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1428.9+5406_daily_bin801 217.229 54.1114 446947201 447206401 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 :                                   748.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             345.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   765 sec.
    Turnaround time :                            767 sec.

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

