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


Performing analysis on: 4FGL_J1428.9+5406_daily_bin728
RA = 217.229, Dec = 54.1114
tmin = 428025601, tmax = 428284801
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='546200', job_status='RUN', time_executed='2021-09-09 20:43:42.007220', time_epoch_executed='1631245422.01' WHERE source_name='4FGL J1428.9+5406' and cadence='daily' and bin_id='728'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/546200

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/546200/ft1_4FGL_J1428.9+5406_daily_bin728.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/546200/ft2_4FGL_J1428.9+5406_daily_bin728.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/546200/ft1_4FGL_J1428.9+5406_daily_bin728.fits outfile=/scratch/kocevski/546200/ft1_filteredMKT_4FGL_J1428.9+5406_daily_bin728.fits ra=217.229 dec=54.1114 rad=12.0 tmin=428025601.0 tmax=428284801.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 5.60
user 5.27
sys 0.27

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/546200/ft1_filtered_4FGL_J1428.9+5406_daily_bin728.fits evtable="EVENTS" scfile=/scratch/kocevski/546200/ft2_4FGL_J1428.9+5406_daily_bin728.fits sctable="SC_DATA" expcube=/scratch/kocevski/546200/ltcube_428025601_428284801_4FGL_J1428.9+5406_daily_bin728.fits outfile=/scratch/kocevski/546200/expmap_428025601_428284801_4FGL_J1428.9+5406_daily_bin728.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/546200/ltcube_428025601_428284801_4FGL_J1428.9+5406_daily_bin728.fits
.....................!
real 191.01
user 185.84
sys 4.68

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/546200/ft1_filtered_4FGL_J1428.9+5406_daily_bin728.fits scfile=/scratch/kocevski/546200/ft2_4FGL_J1428.9+5406_daily_bin728.fits outfile=/scratch/kocevski/546200/cmap_428025601_428284801_4FGL_J1428.9+5406_daily_bin728.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.56
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/546200/ft1_filtered_4FGL_J1428.9+5406_daily_bin728.fits scfile=/scratch/kocevski/546200/ft2_4FGL_J1428.9+5406_daily_bin728.fits outfile=/scratch/kocevski/546200/cmap_HighResolution_428025601_428284801_4FGL_J1428.9+5406_daily_bin728.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/546200/ft1_filtered_4FGL_J1428.9+5406_daily_bin728.fits evtable="EVENTS" scfile=/scratch/kocevski/546200/ft2_4FGL_J1428.9+5406_daily_bin728.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/546200/Model_4FGL_J1428.9+5406_daily_bin728.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/546200/ft1_filtered_4FGL_J1428.9+5406_daily_bin728.fits.....................!
real 38.72
user 37.22
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    54.392       1.0000         .10000E-03   10000.    
     6 'Prefactor '    59.168       1.0000         .10000E-03   10000.    
     7 'norm      '    5.1153       1.0000         .10000E-03   10000.    
     8 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    136.29       1.0000         .10000E-03   10000.    
    11 'Prefactor '    36.973       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7766       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.7274       1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.372       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.908       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.6754       1.0000         .10000E-03   10000.    
    23 'norm      '    3.8572       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.6020       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.5410       1.0000         .10000E-03   10000.    
    27 'norm      '    7.3787       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0242       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .82812       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=   4122.260     FROM MIGRAD    STATUS=CONVERGED    684 CALLS     4137 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.985       -.85463E-05** at limit **
   2  Prefactor     .10000E-03    5.7690        .22590E-06** at limit **
   3  Prefactor     .10000E-03    12.121       -.74578E-06** at limit **
   4  norm          .10000E-03    2.5975        .18065E-06** at limit **
   5  Prefactor     54.374        64.059       -.20663E-04    .17848E-04
   6  Prefactor     59.143        54.337       -.27113E-04    .22445E-04
   7  norm          5.1151        2.2623       -.22203E-06    .13324E-03
   8  norm          .10000E-03    33.917       -.10097E-04** at limit **
   9  norm          .10000E-03    1.9301        .10407E-05** at limit **
  10  Prefactor     136.37        412.16        .68712E-04    .11987E-05
  11  Prefactor     36.952        71.388       -.31653E-04   -.68119E-06
  12  Prefactor     .10000E-03    20.172        .70424E-06** at limit **
  13  Prefactor     1.7766        3.6175        .61691E-06   -.26392E-03
  14  Prefactor     .10000E-03    11.364        .22596E-05** at limit **
  15  Prefactor     2.7272        3.2030        .17726E-05    .99077E-05
  16  Prefactor     25.368        21.015       -.25977E-05    .96950E-05
  17  Prefactor     .10000E-03    10.141        .53919E-06** at limit **
  18  Prefactor     .10000E-03    26.219        .16868E-04** at limit **
  19  Prefactor     .10000E-03    11.601        .16654E-05** at limit **
  20  Prefactor     23.907        18.239       -.73352E-06   -.23872E-04
  21  Prefactor     .10000E-03    9.7984       -.29337E-05** at limit **
  22  Prefactor     2.6761        12.919       -.14521E-05   -.14952E-03
  23  norm          3.8573        1.9394       -.34690E-07    .79084E-04
  24  Prefactor     .10000E-03    3.0255       -.37239E-06** at limit **
  25  Prefactor     2.6015        6.2174       -.11328E-05   -.38916E-03
  26  Prefactor     4.5397        6.9910       -.12282E-05   -.19265E-03
  27  norm          7.3794        7.9520       -.62610E-06   -.49236E-04
  28  Normalizat    1.0246        .20259        .10012E-04   -.38794E-03
  29  Prefactor     .82768        .22597       -.40462E-05    .27432E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 54.3741
  Prefactor  = 59.1431
  norm       = 5.1151
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 136.373
  Prefactor  = 36.9519
  Prefactor  = 0.0001
  Prefactor  = 1.77656
  Prefactor  = 0.0001
  Prefactor  = 2.72715
  Prefactor  = 25.3676
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.9072
  Prefactor  = 0.0001
  Prefactor  = 2.67608
  norm       = 3.85732
  Prefactor  = 0.0001
  Prefactor  = 2.60149
  Prefactor  = 4.53972
  norm       = 7.37943
  Normalizat = 1.0246
  Prefactor  = 0.82768
 **********
 **   18 **HESSE 
 **********

 FCN=   4122.260     FROM HESSE     STATUS=OK           547 CALLS     4684 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.7747        .15061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.6257        .10101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     54.374        64.126        .54387E-04   -1.4232    
   6  Prefactor     59.143        54.384        .52158E-04   -1.4168    
   7  norm          5.1151        2.2649        .62143E-04   -1.5256    
   8  norm          .10000E-03    33.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.9440        .87176E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     136.37        411.99        .17250E-03   -1.3367    
  11  Prefactor     36.952        71.233        .65912E-04   -1.4491    
  12  Prefactor     .10000E-03    20.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.7766        3.5787        .16918E-03   -1.5441    
  14  Prefactor     .10000E-03    11.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.7272        3.1792        .11227E-03   -1.5378    
  16  Prefactor     25.368        21.006        .79528E-04   -1.4700    
  17  Prefactor     .10000E-03    10.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    26.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     23.907        18.227        .81922E-04   -1.4730    
  21  Prefactor     .10000E-03    9.8162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.6761        12.823        .24914E-03   -1.5381    
  23  norm          3.8573        1.9381        .61023E-04   -1.5315    
  24  Prefactor     .10000E-03    3.0273        .10905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.6015        6.1910        .23682E-03   -1.5385    
  26  Prefactor     4.5397        6.9918        .18892E-03   -1.5282    
  27  norm          7.3794        7.9450        .14765E-03   -1.5165    
  28  Normalizat    1.0246        .23626        .21547E-03   -.92211    
  29  Prefactor     .82768        .26422        .27734E-03   -.98716    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.78432e-09
Minuit parameter uncertainties:
  1  8.86818e-06
  2  2.68235e-05
  3  7.17886e-06
  4  2.08836e-06
  5  64.2078
  6  54.4297
  7  2.26491
  8  2.27431e-05
  9  5.99985e-05
  10  421.189
  11  71.398
  12  6.43137e-05
  13  3.57909
  14  4.45892e-05
  15  3.17943
  16  21.0121
  17  2.29536e-05
  18  1.02001e-05
  19  7.59224e-07
  20  18.2315
  21  2.91505e-05
  22  11.7198
  23  1.93815
  24  2.78283e-06
  25  6.19253
  26  6.99308
  27  7.94612
  28  0.236504
  29  0.26463
Done.

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

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  1.000e-04  2.295e-05  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:  8.277e-01  2.646e-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.025e+00  2.365e-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: 6.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/546200/likelihoodResults_428025601_428284801_4FGL_J1428.9+5406_daily_bin728.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) = 4122.26000309
delta logL = -0.000468529854516

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4122.25953498
delta logL = -4.2652754928e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10809E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5564       1.0000          .0000       10.000    
     3 'Normalizat'    1.0245       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82778       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=   4122.260     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      250 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.265        .18142E-01** at limit **
   2  Index         2.0120        5.7057        .50000        .68690E-07
   3  Normalizat    1.0246        .81368E-02    .21547E-03    .10622E-03
   4  Prefactor     .82767        .95612E-02    .27734E-03    .84073E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.01199
  Normalizat = 1.02461
  Prefactor  = 0.827668
 **********
 **   18 **HESSE 
 **********

 FCN=   4122.260     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    334.21        .22159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0120        8.6261        .50000       -.64051    
   3  Normalizat    1.0246        .24789E-01    .43094E-04   -.92211    
   4  Prefactor     .82767        .29129E-01    .11094E-04   -.98716    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.79781e-10
Minuit parameter uncertainties:
  1  3.56708e-06
  2  1126.85
  3  0.0247897
  4  0.0291299
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/546200': 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) = 4122.25953363
delta logL = 9.26998836803e-07

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  1.000e-04  3.567e-06  1.000e-04  1.000e+04 ( 1.000e-13)
347        Index:  2.012e+00  1.127e+03  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:  8.277e-01  2.913e-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.025e+00  2.479e-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/546200/cmap_HighResolution_428025601_428284801_4FGL_J1428.9+5406_daily_bin728.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.21e-03', job_status='DONE', photon_flux_upper_limit='6.67e-08', time_completed='2021-09-09 20:56:20.239020', job_id='546200', GAL2='0.83', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1631246180.24', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='9.27e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='728' AND source_name='4FGL J1428.9+5406' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 20:56:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 546200: <4FGL_J1428.9+5406_daily_bin728> in cluster <slac> Done

Job <4FGL_J1428.9+5406_daily_bin728> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  9 20:41:18 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 20:41:19 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:19 2021
Terminated at Thu Sep  9 20:56:21 2021
Results reported at Thu Sep  9 20:56:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1428.9+5406_daily_bin728 217.229 54.1114 428025601 428284801 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 :                                   756.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             287.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            903 sec.

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

