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


Performing analysis on: 4FGL_J1428.9+5406_daily_bin1394
RA = 217.229, Dec = 54.1114
tmin = 600652801, tmax = 600912001
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='549998', job_status='RUN', time_executed='2021-09-09 20:51:57.599227', time_epoch_executed='1631245917.6' WHERE source_name='4FGL J1428.9+5406' and cadence='daily' and bin_id='1394'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/549998

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/549998/ft1_4FGL_J1428.9+5406_daily_bin1394.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/549998/ft2_4FGL_J1428.9+5406_daily_bin1394.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/549998/ft1_4FGL_J1428.9+5406_daily_bin1394.fits outfile=/scratch/kocevski/549998/ft1_filteredMKT_4FGL_J1428.9+5406_daily_bin1394.fits ra=217.229 dec=54.1114 rad=12.0 tmin=600652801.0 tmax=600912001.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.68
user 3.44
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/549998/ft1_filtered_4FGL_J1428.9+5406_daily_bin1394.fits" evtable="EVENTS" scfile=/scratch/kocevski/549998/ft2_4FGL_J1428.9+5406_daily_bin1394.fits sctable="SC_DATA" outfile=/scratch/kocevski/549998/ltcube_600652801_600912001_4FGL_J1428.9+5406_daily_bin1394.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/549998/ft2_4FGL_J1428.9+5406_daily_bin1394.fits
.....................!
real 12.24
user 11.48
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/549998/ft1_filtered_4FGL_J1428.9+5406_daily_bin1394.fits evtable="EVENTS" scfile=/scratch/kocevski/549998/ft2_4FGL_J1428.9+5406_daily_bin1394.fits sctable="SC_DATA" expcube=/scratch/kocevski/549998/ltcube_600652801_600912001_4FGL_J1428.9+5406_daily_bin1394.fits outfile=/scratch/kocevski/549998/expmap_600652801_600912001_4FGL_J1428.9+5406_daily_bin1394.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/549998/ltcube_600652801_600912001_4FGL_J1428.9+5406_daily_bin1394.fits
.....................!
real 193.47
user 186.13
sys 5.04

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/549998/ft1_filtered_4FGL_J1428.9+5406_daily_bin1394.fits scfile=/scratch/kocevski/549998/ft2_4FGL_J1428.9+5406_daily_bin1394.fits outfile=/scratch/kocevski/549998/cmap_HighResolution_600652801_600912001_4FGL_J1428.9+5406_daily_bin1394.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.5604       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.6843       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .17992E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.3175       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .32134E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .50535E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.494       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .68781       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.118       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10361E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.842       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.3309       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.881       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.6824       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.2268       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10655E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .80820       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2485       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=   6667.619     FROM MIGRAD    STATUS=CONVERGED    746 CALLS     3728 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.357       -.16453E-05** at limit **
   2  Prefactor     5.5605        13.920        .97360E-07   -.29269E-04
   3  Prefactor     .10000E-03    11.957        .14792E-05** at limit **
   4  norm          3.6850        3.9781        .71197E-07   -.62416E-04
   5  Prefactor     .10000E-03    18.862        .80326E-06** at limit **
   6  Prefactor     .10000E-03    144.98       -.14458E-05** at limit **
   7  norm          3.3177        1.7992        .15841E-07   -.61065E-04
   8  norm          .10000E-03    30.190       -.88129E-06** at limit **
   9  norm          .10006E-03    1.9072        .81336E-06** at limit **
  10  Prefactor     .10001E-03    274.66       -.54948E-05** at limit **
  11  Prefactor     .10000E-03    29.317        .18278E-06** at limit **
  12  Prefactor     11.502        27.150       -.75477E-06   -.28407E-04
  13  Prefactor     .68715        4.0786        .22209E-05   -.79978E-04
  14  Prefactor     20.124        17.996       -.41061E-06   -.66809E-04
  15  Prefactor     .10000E-03    1.4683       -.56945E-06** at limit **
  16  Prefactor     12.842        27.026        .41713E-06    .19288E-04
  17  Prefactor     7.3693        22.356        .20413E-05    .95595E-04
  18  Prefactor     .10000E-03    63.368        .58461E-06** at limit **
  19  Prefactor     16.880        30.809        .38385E-08    .12259E-04
  20  Prefactor     4.6908        15.797        .45643E-06    .11403E-04
  21  Prefactor     .10000E-03    10.176       -.36396E-06** at limit **
  22  Prefactor     .10000E-03    5.9429        .13528E-07** at limit **
  23  norm          2.2269        1.3842        .54180E-08   -.86640E-05
  24  Prefactor     .10000E-03    3.6679       -.32236E-07** at limit **
  25  Prefactor     .10000E-03    2.5290        .97527E-08** at limit **
  26  Prefactor     .10000E-03    8.3841       -.95245E-07** at limit **
  27  norm          .10000E-03    2.2076        .62067E-08** at limit **
  28  Normalizat    .80811        .15824        .82919E-07   -.81480E-04
  29  Prefactor     1.2484        .18436       -.22087E-06   -.54236E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 5.56047
  Prefactor  = 0.000100001
  norm       = 3.68504
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 3.31775
  norm       = 0.0001
  norm       = 0.000100063
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 11.5023
  Prefactor  = 0.68715
  Prefactor  = 20.1237
  Prefactor  = 0.0001
  Prefactor  = 12.8421
  Prefactor  = 7.36933
  Prefactor  = 0.0001
  Prefactor  = 16.8803
  Prefactor  = 4.69078
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.22692
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.808109
  Prefactor  = 1.24843
 **********
 **   18 **HESSE 
 **********

 FCN=   6667.619     FROM HESSE     STATUS=OK           555 CALLS     4283 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.5605        13.823        .17038E-03   -1.5236    
   3  Prefactor     .10000E-03    12.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.6850        3.9455        .14565E-03   -1.5324    
   5  Prefactor     .10000E-03    18.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    149.76        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.3177        1.7968        .77891E-04   -1.5344    
   8  norm          .10000E-03    30.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10006E-03    11.569        .19916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    279.63        .21152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    29.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.502        27.052        .11816E-03   -1.5030    
  13  Prefactor     .68715        4.0187        .31303E-03   -1.5542    
  14  Prefactor     20.124        18.019        .89297E-04   -1.4810    
  15  Prefactor     .10000E-03    4.2368        .16748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.842        26.848        .11178E-03   -1.4991    
  17  Prefactor     7.3693        21.095        .14814E-03   -1.5165    
  18  Prefactor     .10000E-03    63.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.880        30.747        .97479E-04   -1.4886    
  20  Prefactor     4.6908        15.717        .18597E-03   -1.5275    
  21  Prefactor     .10000E-03    10.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.9625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.2269        1.3802        .72768E-04   -1.5410    
  24  Prefactor     .10000E-03    3.6825        .15270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.5591        .12678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    8.7195        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    2.2218        .11847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .80811        .19317        .24095E-03   -.99769    
  29  Prefactor     1.2484        .22577        .23901E-03   -.84854    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.63491e-09
Minuit parameter uncertainties:
  1  0.000255246
  2  13.8307
  3  0.000215662
  4  3.94578
  5  0.000139516
  6  0.000758791
  7  1.79688
  8  0.00020576
  9  0.00170515
  10  0.00383786
  11  3.64885e-05
  12  27.0811
  13  3.32362
  14  18.0236
  15  2.22127e-05
  16  26.8732
  17  21.1166
  18  0.000127792
  19  30.776
  20  15.7308
  21  4.63074e-05
  22  3.35091e-06
  23  1.38017
  24  1.96128e-06
  25  2.47365e-07
  26  8.05798e-06
  27  1.20659e-07
  28  0.193331
  29  0.225949
Done.

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

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  7.369e+00  2.112e+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.248e+00  2.259e-01  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  8.081e-01  1.933e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/549998/likelihoodResults_600652801_600912001_4FGL_J1428.9+5406_daily_bin1394.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) = 6667.46018766
delta logL = 0.158444369093

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6667.40792361
delta logL = 0.21070841892

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2396       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6661       1.0000          .0000       10.000    
     3 'Normalizat'    .78369       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2675       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=   6667.408     FROM MIGRAD    STATUS=FAILED        80 CALLS      242 TOTAL
                     EDM=   .30E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2384        312.07        .19666E-03   -.30367E-02
   2  Index         3.6687        5.6624        .77072E-02   -.69879E-03
   3  Normalizat    .78336        .17867        .24435E-03   -.13509E-02
   4  Prefactor     1.2679        .21740        .23741E-03   -.96731E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6667.408     FROM SIMPLEX   STATUS=UNCHANGED     88 CALLS      330 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2384        312.07        .32981E-03   -.30367E-02
   2  Index         3.6687        5.6624        .24501E-02   -.69879E-03
   3  Normalizat    .78336        .17867        .11534E-03   -.13509E-02
   4  Prefactor     1.2679        .21740        .75082E-04   -.96731E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6667.408     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      361 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2375        11.847        .78666E-05   -.19886E-03
   2  Index         3.6689        2.0028        .30829E-03   -.30350E-04
   3  Normalizat    .78337        .19159        .48871E-04   -.27078E-04
   4  Prefactor     1.2679        .22722        .47482E-04    .14366E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.23748
  Index      = 3.66894
  Normalizat = 0.783367
  Prefactor  = 1.26786
 **********
 **   18 **HESSE 
 **********

 FCN=   6667.408     FROM HESSE     STATUS=OK            23 CALLS      384 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2375        11.609        .15733E-05   -1.5348    
   2  Index         3.6689        1.9647        .12332E-04   -.26946    
   3  Normalizat    .78337        .19164        .97742E-05   -1.0069    
   4  Prefactor     1.2679        .22726        .94964E-05   -.84268    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6173e-11
Minuit parameter uncertainties:
  1  11.6166
  2  2.02361
  3  0.191809
  4  0.22744
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/549998': 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) = 6667.40791809
delta logL = 0.210713943502

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  3.237e+00  1.162e+01  1.000e-04  1.000e+04 ( 1.000e-13)
347        Index:  3.669e+00  2.024e+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.268e+00  2.274e-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.834e-01  1.918e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.355e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.614e-03 [aplpy.core]
Saving /scratch/kocevski/549998/cmap_HighResolution_600652801_600912001_4FGL_J1428.9+5406_daily_bin1394.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.09e-03', job_status='DONE', photon_flux_upper_limit='7.80e-08', time_completed='2021-09-09 21:07:59.575340', job_id='549998', GAL2='1.27', fit_tolerance='1e-08', EG2='0.78', EG='0.81', time_epoch_completed='1631246879.58', return_code2='0', ts='0.15', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='2.11e-01', ts2='0.63', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='1394' AND source_name='4FGL J1428.9+5406' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 21:07:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 549998: <4FGL_J1428.9+5406_daily_bin1394> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1428.9+5406_daily_bin1394 217.229 54.1114 600652801 600912001 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 :                                   952.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             341.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            980 sec.

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

