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


Performing analysis on: 4FGL_J1428.9+5406_daily_bin54
RA = 217.229, Dec = 54.1114
tmin = 253324801, tmax = 253584001
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='542152', job_status='RUN', time_executed='2021-09-09 20:28:23.696860', time_epoch_executed='1631244503.7' WHERE source_name='4FGL J1428.9+5406' and cadence='daily' and bin_id='54'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/542152

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/542152/ft1_4FGL_J1428.9+5406_daily_bin54.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/542152/ft2_4FGL_J1428.9+5406_daily_bin54.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/542152/ft1_4FGL_J1428.9+5406_daily_bin54.fits outfile=/scratch/kocevski/542152/ft1_filteredMKT_4FGL_J1428.9+5406_daily_bin54.fits ra=217.229 dec=54.1114 rad=12.0 tmin=253324801.0 tmax=253584001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.41
user 1.22
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/542152/ft1_filtered_4FGL_J1428.9+5406_daily_bin54.fits evtable="EVENTS" scfile=/scratch/kocevski/542152/ft2_4FGL_J1428.9+5406_daily_bin54.fits sctable="SC_DATA" expcube=/scratch/kocevski/542152/ltcube_253324801_253584001_4FGL_J1428.9+5406_daily_bin54.fits outfile=/scratch/kocevski/542152/expmap_253324801_253584001_4FGL_J1428.9+5406_daily_bin54.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/542152/ltcube_253324801_253584001_4FGL_J1428.9+5406_daily_bin54.fits
.....................!
real 191.67
user 186.23
sys 4.87

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/542152/ft1_filtered_4FGL_J1428.9+5406_daily_bin54.fits scfile=/scratch/kocevski/542152/ft2_4FGL_J1428.9+5406_daily_bin54.fits outfile=/scratch/kocevski/542152/cmap_253324801_253584001_4FGL_J1428.9+5406_daily_bin54.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/542152/ft1_filtered_4FGL_J1428.9+5406_daily_bin54.fits scfile=/scratch/kocevski/542152/ft2_4FGL_J1428.9+5406_daily_bin54.fits outfile=/scratch/kocevski/542152/cmap_HighResolution_253324801_253584001_4FGL_J1428.9+5406_daily_bin54.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    55.126       1.0000         .10000E-03   10000.    
     4 'norm      '    .82675E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.694       1.0000         .10000E-03   10000.    
     7 'norm      '    .37143E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.2929       1.0000         .10000E-03   10000.    
    10 'Prefactor '    36.709       1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.253       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.526       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2772       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .30480E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10262E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .38836       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    20.002       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1119       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .73804       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=   3884.552     FROM MIGRAD    STATUS=CONVERGED    763 CALLS     4286 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.699        .62461E-05** at limit **
   2  Prefactor     .10000E-03    7.8476       -.47964E-07** at limit **
   3  Prefactor     55.196        47.527       -.10632E-04    .17821E-04
   4  norm          .11200E-02    2.5697       -.25239E-06** at limit **
   5  Prefactor     .10000E-03    18.516       -.51592E-05** at limit **
   6  Prefactor     18.694        51.914        .66349E-05    .45319E-04
   7  norm          .10043E-03    1.0540       -.16530E-06** at limit **
   8  norm          .10000E-03    29.600       -.18716E-04** at limit **
   9  norm          1.2919        5.2464       -.23426E-05   -.63471E-03
  10  Prefactor     36.421        2000.9       -.46999E-03    .40263E-05
  11  Prefactor     23.289        57.118       -.30055E-05    .42473E-04
  12  Prefactor     16.556        54.547       -.12309E-04   -.84512E-05
  13  Prefactor     .10000E-03    2.0871       -.36235E-07** at limit **
  14  Prefactor     .10000E-03    34.414        .26802E-04** at limit **
  15  Prefactor     1.2730        3.7780        .21658E-07   -.22410E-04
  16  Prefactor     .10006E-03    22.170       -.12452E-05** at limit **
  17  Prefactor     .10000E-03    54.607       -.21984E-04** at limit **
  18  Prefactor     .10000E-03    83.435        .16177E-04** at limit **
  19  Prefactor     .10000E-03    13.598        .84088E-06** at limit **
  20  Prefactor     .10000E-03    11.311       -.50013E-06** at limit **
  21  Prefactor     .10000E-03    9.1090       -.46518E-07** at limit **
  22  Prefactor     .10000E-03    21.560        .10448E-04** at limit **
  23  norm          .38799        1.3065       -.77595E-06   -.12591E-02
  24  Prefactor     .10000E-03    4.3463       -.12278E-06** at limit **
  25  Prefactor     .10000E-03    5.5410       -.16408E-06** at limit **
  26  Prefactor     19.997        12.550       -.45149E-06    .83835E-04
  27  norm          .10000E-03    5.0592       -.15409E-06** at limit **
  28  Normalizat    1.1118        .20383        .49109E-05   -.10109E-03
  29  Prefactor     .73824        .21384       -.13820E-06    .16924E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 55.1962
  norm       = 0.00112004
  Prefactor  = 0.0001
  Prefactor  = 18.6938
  norm       = 0.000100434
  norm       = 0.0001
  norm       = 1.29192
  Prefactor  = 36.4208
  Prefactor  = 23.2892
  Prefactor  = 16.5562
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.273
  Prefactor  = 0.000100064
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.387989
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.997
  norm       = 0.0001
  Normalizat = 1.11183
  Prefactor  = 0.738237
 **********
 **   18 **HESSE 
 **********

 FCN=   3884.552     FROM HESSE     STATUS=OK           559 CALLS     4845 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    50.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.8604        .17047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     55.196        47.092        .54025E-04   -1.4221    
   4  norm          .11200E-02    5.8328        .33741E-01   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.694        51.894        .92635E-04   -1.4843    
   7  norm          .10043E-03    32.801        .12110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    29.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.2919        5.1473        .25756E-03   -1.5481    
  10  Prefactor     36.421        2003.5        .33074E-03   -1.4500    
  11  Prefactor     23.289        56.519        .83068E-04   -1.4742    
  12  Prefactor     16.556        54.763        .98521E-04   -1.4894    
  13  Prefactor     .10000E-03    2.0895        .87907E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    34.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.2730        3.6139        .17915E-03   -1.5482    
  16  Prefactor     .10006E-03    94.073        .55639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    54.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    83.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.1127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    21.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .38799        1.3548        .12529E-02   -1.5583    
  24  Prefactor     .10000E-03    4.3485        .12686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    5.6110        .14322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     19.997        12.615        .89556E-04   -1.4813    
  27  norm          .10000E-03    5.1080        .13688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1118        .24280        .20271E-03   -.89373    
  29  Prefactor     .73824        .25417        .27575E-03   -1.0205    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.605e-08
Minuit parameter uncertainties:
  1  0.000643025
  2  2.08518e-06
  3  47.1239
  4  0.154284
  5  1.45991e-05
  6  52.0194
  7  0.00755407
  8  2.47088e-07
  9  5.14908
  10  561.333
  11  56.6492
  12  54.9297
  13  3.46896e-06
  14  0.000255706
  15  3.61447
  16  0.00491856
  17  0.000120625
  18  4.66856e-06
  19  2.57836e-06
  20  1.81481e-05
  21  5.05639e-06
  22  0.000130467
  23  1.35491
  24  3.19088e-06
  25  3.97899e-05
  26  12.6164
  27  2.98137e-05
  28  0.243047
  29  0.254568
Done.

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

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  1.000e-04  1.206e-04  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:  7.382e-01  2.546e-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:  1.112e+00  2.430e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 217.229 54.111
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/542152/likelihoodResults_253324801_253584001_4FGL_J1428.9+5406_daily_bin54.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) = 3884.55252442
delta logL = -8.70405228852e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3884.55243751
delta logL = -1.29785803438e-07

Fit tolerance = 1e-08

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

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

 FCN=   3884.552     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      247 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    46.591        .90712E-02** at limit **
   2  Index         2.8084        6.3380        .50000        .41169E-05
   3  Normalizat    1.1118        .45350E-02    .37538E-01    .66162E-04
   4  Prefactor     .73823        .51545E-02    .62339E-01    .43698E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.80843
  Normalizat = 1.11183
  Prefactor  = 0.738231
 **********
 **   18 **HESSE 
 **********

 FCN=   3884.552     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      278 TOTAL
                     EDM=   .88E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    263.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8084        6.4039        .50000       -.45372    
   3  Normalizat    1.1118        .10783E-01    .20271E-03   -.89373    
   4  Prefactor     .73823        .12240E-01    .27575E-03   -1.0205    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.80372e-08
Minuit parameter uncertainties:
  1  0.00182906
  2  343.799
  3  0.010783
  4  0.0122403
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/542152': 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) = 3884.55243746
delta logL = -8.50841388456e-08

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  1.000e-04  1.829e-03  1.000e-04  1.000e+04 ( 1.000e-13)
347        Index:  2.808e+00  3.438e+02  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:  7.382e-01  1.224e-02  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:  1.112e+00  1.078e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 217.229 54.111

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/542152/cmap_HighResolution_253324801_253584001_4FGL_J1428.9+5406_daily_bin54.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.02e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-09 20:40:10.621739', job_id='542152', GAL2='0.74', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1631245210.62', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='-8.51e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='54' AND source_name='4FGL J1428.9+5406' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 20:40:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 542152: <4FGL_J1428.9+5406_daily_bin54> in cluster <slac> Done

Job <4FGL_J1428.9+5406_daily_bin54> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  9 20:26:15 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 20:26:16 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:16 2021
Terminated at Thu Sep  9 20:40:11 2021
Results reported at Thu Sep  9 20:40:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1428.9+5406_daily_bin54 217.229 54.1114 253324801 253584001 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 :                                   704.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             296.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            836 sec.

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

