/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 5 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 = 7398
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1428.9+5406_daily_bin168
RA = 217.229, Dec = 54.1114
tmin = 282873601, tmax = 283132801
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='542267', job_status='RUN', time_executed='2021-09-09 20:26:44.653793', time_epoch_executed='1631244404.65' WHERE source_name='4FGL J1428.9+5406' and cadence='daily' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/542267

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/542267/ft1_4FGL_J1428.9+5406_daily_bin168.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/542267/ft2_4FGL_J1428.9+5406_daily_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/542267/ft1_4FGL_J1428.9+5406_daily_bin168.fits outfile=/scratch/kocevski/542267/ft1_filteredMKT_4FGL_J1428.9+5406_daily_bin168.fits ra=217.229 dec=54.1114 rad=12.0 tmin=282873601.0 tmax=283132801.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.30
user 3.08
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/542267/ft1_filtered_4FGL_J1428.9+5406_daily_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/542267/ft2_4FGL_J1428.9+5406_daily_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/542267/ltcube_282873601_283132801_4FGL_J1428.9+5406_daily_bin168.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/542267/ft2_4FGL_J1428.9+5406_daily_bin168.fits
.....................!
real 12.23
user 11.83
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/542267/ft1_filtered_4FGL_J1428.9+5406_daily_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/542267/ft2_4FGL_J1428.9+5406_daily_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/542267/ltcube_282873601_283132801_4FGL_J1428.9+5406_daily_bin168.fits outfile=/scratch/kocevski/542267/expmap_282873601_283132801_4FGL_J1428.9+5406_daily_bin168.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/542267/ltcube_282873601_283132801_4FGL_J1428.9+5406_daily_bin168.fits
.....................!
real 191.97
user 186.01
sys 5.53

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/542267/ft1_filtered_4FGL_J1428.9+5406_daily_bin168.fits scfile=/scratch/kocevski/542267/ft2_4FGL_J1428.9+5406_daily_bin168.fits outfile=/scratch/kocevski/542267/cmap_282873601_283132801_4FGL_J1428.9+5406_daily_bin168.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/542267/ft1_filtered_4FGL_J1428.9+5406_daily_bin168.fits scfile=/scratch/kocevski/542267/ft2_4FGL_J1428.9+5406_daily_bin168.fits outfile=/scratch/kocevski/542267/cmap_HighResolution_282873601_283132801_4FGL_J1428.9+5406_daily_bin168.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/542267/ft1_filtered_4FGL_J1428.9+5406_daily_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/542267/ft2_4FGL_J1428.9+5406_daily_bin168.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/542267/Model_4FGL_J1428.9+5406_daily_bin168.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/542267/ft1_filtered_4FGL_J1428.9+5406_daily_bin168.fits.....................!
real 54.63
user 53.30
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.995       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.6794       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.0318       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.308       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.601       1.0000         .10000E-03   10000.    
     7 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .74766E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.9901       1.0000         .10000E-03   10000.    
    12 'Prefactor '    30.041       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12361E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.317       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2200       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.9162       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.2607       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .15494E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.5360       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10814E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    13.041       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .71132       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3783       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=   6739.355     FROM MIGRAD    STATUS=CONVERGED    730 CALLS     3730 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.022        46.375        .14632E-06    .49273E-04
   2  Prefactor     6.6830        18.049        .47644E-07    .72330E-04
   3  Prefactor     .10000E-03    36.467        .30826E-05** at limit **
   4  norm          5.0322        4.5789        .95858E-07    .18707E-03
   5  Prefactor     15.309        32.628        .63015E-06    .10907E-03
   6  Prefactor     18.529        35.772        .12171E-05    .12001E-03
   7  norm          .10000E-03    .61787        .22432E-06** at limit **
   8  norm          .10000E-03    28.918       -.22326E-06** at limit **
   9  norm          .10027E-03    2.9076       -.17848E-05** at limit **
  10  Prefactor     .10000E-03    111.79       -.56876E-06** at limit **
  11  Prefactor     9.9901        45.621       -.22723E-06    .61981E-04
  12  Prefactor     30.027        35.247       -.46406E-06    .39648E-04
  13  Prefactor     .10000E-03    4.7113       -.41771E-06** at limit **
  14  Prefactor     27.319        21.977       -.40888E-06    .12113E-04
  15  Prefactor     1.2174        2.7242        .11278E-05    .10494E-02
  16  Prefactor     8.9059        16.078        .68108E-06    .14765E-03
  17  Prefactor     7.2712        21.238       -.11848E-05    .76083E-04
  18  Prefactor     .10000E-03    22.122       -.72945E-07** at limit **
  19  Prefactor     .10000E-03    87.040        .33000E-05** at limit **
  20  Prefactor     9.5395        13.062        .22476E-05    .29056E-03
  21  Prefactor     .10000E-03    6.4337        .71751E-07** at limit **
  22  Prefactor     .10000E-03    4.1159        .62223E-07** at limit **
  23  norm          .10000E-03    .33305        .15071E-07** at limit **
  24  Prefactor     .10005E-03    4.3195       -.10067E-05** at limit **
  25  Prefactor     13.042        6.1108       -.62327E-07    .62452E-04
  26  Prefactor     .10000E-03    2.4042        .93418E-07** at limit **
  27  norm          .10000E-03    3.2278        .20040E-06** at limit **
  28  Normalizat    .71087        .17503        .23159E-05    .55867E-03
  29  Prefactor     1.3787        .19623       -.15772E-05    .64289E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.0224
  Prefactor  = 6.68301
  Prefactor  = 0.000100001
  norm       = 5.03224
  Prefactor  = 15.3092
  Prefactor  = 18.5293
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100267
  Prefactor  = 0.000100001
  Prefactor  = 9.99006
  Prefactor  = 30.0266
  Prefactor  = 0.0001
  Prefactor  = 27.3193
  Prefactor  = 1.21738
  Prefactor  = 8.90594
  Prefactor  = 7.27121
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 9.5395
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100046
  Prefactor  = 13.0425
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.710872
  Prefactor  = 1.3787
 **********
 **   18 **HESSE 
 **********

 FCN=   6739.355     FROM HESSE     STATUS=OK           549 CALLS     4279 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.022        46.313        .59120E-04   -1.4350    
   2  Prefactor     6.6830        17.912        .15526E-03   -1.5191    
   3  Prefactor     .10000E-03    36.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.0322        4.5394        .14237E-03   -1.5259    
   5  Prefactor     15.309        32.568        .10237E-03   -1.4925    
   6  Prefactor     18.529        35.790        .92866E-04   -1.4847    
   7  norm          .10000E-03    1.0957        .12396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    28.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10027E-03    20.775        .21411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    111.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.9901        44.281        .12678E-03   -1.5076    
  12  Prefactor     30.027        35.210        .73100E-04   -1.4611    
  13  Prefactor     .10000E-03    4.9192        .34737E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     27.319        22.006        .76649E-04   -1.4662    
  15  Prefactor     1.2174        2.6392        .16465E-03   -1.5487    
  16  Prefactor     8.9059        16.016        .13423E-03   -1.5111    
  17  Prefactor     7.2712        20.733        .14886E-03   -1.5169    
  18  Prefactor     .10000E-03    22.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    88.795        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.5395        13.060        .64887E-03   -1.5090    
  21  Prefactor     .10000E-03    6.4406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.1204        .16262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .33566        .46245E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10005E-03    32.831        .31549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     13.042        6.1101        .11092E-03   -1.4986    
  26  Prefactor     .10000E-03    2.4120        .12424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    3.2702        .14396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .71087        .20318        .26329E-03   -1.0347    
  29  Prefactor     1.3787        .22981        .23573E-03   -.80996    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46959e-08
Minuit parameter uncertainties:
  1  46.3493
  2  17.9263
  3  0.000402505
  4  4.53975
  5  32.6057
  6  35.8315
  7  1.65482e-05
  8  0.000111661
  9  0.00471596
  10  0.000587769
  11  42.117
  12  35.2346
  13  1.70693e-05
  14  22.0124
  15  2.63943
  16  16.0242
  17  20.7537
  18  7.25685e-06
  19  0.000933479
  20  13.0637
  21  2.70743e-06
  22  1.43555e-06
  23  3.95587e-07
  24  0.00245944
  25  6.11038
  26  2.25846e-06
  27  4.9075e-06
  28  0.203398
  29  0.229984
Done.

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

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  7.271e+00  2.075e+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.379e+00  2.300e-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.109e-01  2.034e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.18
Ra Dec: 217.229 54.111
Photon Flux Upper Limit: 7.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/542267/likelihoodResults_282873601_283132801_4FGL_J1428.9+5406_daily_bin168.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): 0
logL (Free Index) = 6739.35496383
delta logL = 3.1212374779e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6739.35491294
delta logL = 8.20954210212e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1420       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5949       1.0000          .0000       10.000    
     3 'Normalizat'    .71051       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3789       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6739.355     FROM MIGRAD    STATUS=FAILED        86 CALLS      268 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1335        22.246        .15010E-03   -.51898E-03
   2  Index         2.5984        1.9397        .63310E-02   -.40249E-03
   3  Normalizat    .71055        .18985        .26334E-03   -.23873E-02
   4  Prefactor     1.3790        .22759        .23571E-03   -.23908E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6739.355     FROM SIMPLEX   STATUS=UNCHANGED     75 CALLS      343 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1335        22.246        .36680E-03   -1.5174    
   2  Index         2.5984        1.9397        .20329E-02   -.50101    
   3  Normalizat    .71055        .18985        .26639E-03   -1.0348    
   4  Prefactor     1.3790        .22759        .24852E-03   -.80988    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6739.355     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      371 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1319        21.516        .60040E-05   -.12384E-03
   2  Index         2.5987        1.8793        .25324E-03    .93826E-05
   3  Normalizat    .71055        .18994        .52669E-04   -.24132E-04
   4  Prefactor     1.3790        .22769        .47142E-04   -.16736E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.13193
  Index      = 2.59874
  Normalizat = 0.710551
  Prefactor  = 1.37898
 **********
 **   18 **HESSE 
 **********

 FCN=   6739.355     FROM HESSE     STATUS=OK            23 CALLS      394 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1319        21.533        .12008E-05   -1.5174    
   2  Index         2.5987        1.8772        .10130E-04   -.50094    
   3  Normalizat    .71055        .18994        .10534E-04   -1.0348    
   4  Prefactor     1.3790        .22770        .94284E-05   -.80988    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59487e-10
Minuit parameter uncertainties:
  1  21.556
  2  1.93984
  3  0.190116
  4  0.227867
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/542267': 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) = 6739.35491011
delta logL = 8.49307598401e-05

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  7.132e+00  2.156e+01  1.000e-04  1.000e+04 ( 1.000e-13)
347        Index:  2.599e+00  1.940e+00  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.379e+00  2.279e-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.106e-01  1.901e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.18
Ra Dec: 217.229 54.111

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/542267/cmap_HighResolution_282873601_283132801_4FGL_J1428.9+5406_daily_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.99e-03', job_status='DONE', photon_flux_upper_limit='7.66e-08', time_completed='2021-09-09 20:43:04.359677', job_id='542267', GAL2='1.38', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1631245384.36', return_code2='0', ts='0.18', comment='SUCCESS', return_code='0', GAL='1.38', dlogl='8.49e-05', ts2='0.18', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='168' AND source_name='4FGL J1428.9+5406' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 20:43:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 542267: <4FGL_J1428.9+5406_daily_bin168> in cluster <slac> Done

Job <4FGL_J1428.9+5406_daily_bin168> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  9 20:26:30 2021
Job was executed on host(s) <bullet0110>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 20:26:31 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:26:31 2021
Terminated at Thu Sep  9 20:43:05 2021
Results reported at Thu Sep  9 20:43:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1428.9+5406_daily_bin168 217.229 54.1114 282873601 283132801 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 :                                   973.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             334.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            995 sec.

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

