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


Performing analysis on: 4FGL_J1428.9+5406_daily_bin739
RA = 217.229, Dec = 54.1114
tmin = 430876801, tmax = 431136001
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='546217', job_status='RUN', time_executed='2021-09-09 20:43:39.484720', time_epoch_executed='1631245419.48' WHERE source_name='4FGL J1428.9+5406' and cadence='daily' and bin_id='739'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/546217

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/546217/ft1_4FGL_J1428.9+5406_daily_bin739.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/546217/ft2_4FGL_J1428.9+5406_daily_bin739.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/546217/ft1_4FGL_J1428.9+5406_daily_bin739.fits outfile=/scratch/kocevski/546217/ft1_filteredMKT_4FGL_J1428.9+5406_daily_bin739.fits ra=217.229 dec=54.1114 rad=12.0 tmin=430876801.0 tmax=431136001.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.36
user 5.11
sys 0.23

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/546217/ft1_filtered_4FGL_J1428.9+5406_daily_bin739.fits evtable="EVENTS" scfile=/scratch/kocevski/546217/ft2_4FGL_J1428.9+5406_daily_bin739.fits sctable="SC_DATA" expcube=/scratch/kocevski/546217/ltcube_430876801_431136001_4FGL_J1428.9+5406_daily_bin739.fits outfile=/scratch/kocevski/546217/expmap_430876801_431136001_4FGL_J1428.9+5406_daily_bin739.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/546217/ltcube_430876801_431136001_4FGL_J1428.9+5406_daily_bin739.fits
.....................!
real 189.59
user 185.12
sys 4.12

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/546217/ft1_filtered_4FGL_J1428.9+5406_daily_bin739.fits scfile=/scratch/kocevski/546217/ft2_4FGL_J1428.9+5406_daily_bin739.fits outfile=/scratch/kocevski/546217/cmap_430876801_431136001_4FGL_J1428.9+5406_daily_bin739.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/546217/ft1_filtered_4FGL_J1428.9+5406_daily_bin739.fits scfile=/scratch/kocevski/546217/ft2_4FGL_J1428.9+5406_daily_bin739.fits outfile=/scratch/kocevski/546217/cmap_HighResolution_430876801_431136001_4FGL_J1428.9+5406_daily_bin739.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.6038       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    97.658       1.0000         .10000E-03   10000.    
     7 'norm      '    3.8820       1.0000         .10000E-03   10000.    
     8 'norm      '    12.409       1.0000         .10000E-03   10000.    
     9 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .33938E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.302       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.7507       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.4567       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.2742       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    78.720       1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.302       1.0000         .10000E-03   10000.    
    21 'Prefactor '    38.813       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.7345       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2712       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .67856       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=   5394.537     FROM MIGRAD    STATUS=CONVERGED    734 CALLS     3697 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.933       -.92598E-05** at limit **
   2  Prefactor     .10000E-03    24.375       -.67741E-05** at limit **
   3  Prefactor     .10000E-03    16.889        .66681E-06** at limit **
   4  norm          1.6045        4.0377       -.39109E-06   -.55039E-03
   5  Prefactor     .10000E-03    51.617       -.64671E-05** at limit **
   6  Prefactor     97.641        66.713       -.59882E-05    .23058E-04
   7  norm          3.8821        2.3411        .39464E-07   -.14993E-04
   8  norm          12.523        80.133        .81253E-04    .13455E-05
   9  norm          .10000E-03    3.2651       -.27142E-07** at limit **
  10  Prefactor     .10000E-03    575.20        .10467E-03** at limit **
  11  Prefactor     22.313        56.470        .29715E-05    .16924E-04
  12  Prefactor     .10000E-03    52.084        .73037E-05** at limit **
  13  Prefactor     9.7514        6.2830       -.17960E-06   -.70585E-04
  14  Prefactor     9.4561        14.732       -.12551E-08   -.16913E-04
  15  Prefactor     .10000E-03    2.6955       -.27554E-06** at limit **
  16  Prefactor     .10000E-03    14.280       -.21533E-06** at limit **
  17  Prefactor     8.2690        41.877        .19309E-05    .15475E-04
  18  Prefactor     .10000E-03    28.177        .15001E-04** at limit **
  19  Prefactor     78.724        49.778        .71115E-06    .14897E-04
  20  Prefactor     22.303        18.260       -.55211E-06   -.43646E-04
  21  Prefactor     38.809        27.878        .58542E-05   -.19169E-06
  22  Prefactor     .10000E-03    5.6726        .20048E-07** at limit **
  23  norm          1.7347        1.6806        .43990E-07   -.45147E-03
  24  Prefactor     .10000E-03    9.1374        .28536E-07** at limit **
  25  Prefactor     .10000E-03    2.2120        .18138E-07** at limit **
  26  Prefactor     .10000E-03    3.5614       -.58207E-08** at limit **
  27  norm          .10000E-03    2.7605        .18457E-07** at limit **
  28  Normalizat    1.2716        .19131        .15222E-05   -.94786E-04
  29  Prefactor     .67811        .20898       -.37010E-05    .86982E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.60448
  Prefactor  = 0.0001
  Prefactor  = 97.6412
  norm       = 3.88208
  norm       = 12.5229
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.3134
  Prefactor  = 0.0001
  Prefactor  = 9.75145
  Prefactor  = 9.45611
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.26897
  Prefactor  = 0.0001
  Prefactor  = 78.7241
  Prefactor  = 22.3032
  Prefactor  = 38.8087
  Prefactor  = 0.0001
  norm       = 1.73469
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.27158
  Prefactor  = 0.678107
 **********
 **   18 **HESSE 
 **********

 FCN=   5394.537     FROM HESSE     STATUS=OK           547 CALLS     4244 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    24.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.6045        4.0112        .22617E-03   -1.5455    
   5  Prefactor     .10000E-03    51.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     97.641        67.111        .40676E-04   -1.3728    
   7  norm          3.8821        2.3415        .84587E-04   -1.5314    
   8  norm          12.523        79.876        .11371E-03   -1.5000    
   9  norm          .10000E-03    3.3113        .12947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    575.33        .19691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     22.313        54.907        .84818E-04   -1.4763    
  12  Prefactor     .10000E-03    52.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.7514        6.2803        .12833E-03   -1.5083    
  14  Prefactor     9.4561        14.731        .13032E-03   -1.5093    
  15  Prefactor     .10000E-03    3.8162        .20730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.2690        36.433        .13937E-03   -1.5133    
  18  Prefactor     .10000E-03    28.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     78.724        49.726        .45263E-04   -1.3931    
  20  Prefactor     22.303        18.254        .84817E-04   -1.4763    
  21  Prefactor     38.809        27.865        .64336E-04   -1.4461    
  22  Prefactor     .10000E-03    5.6814        .17082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.7347        1.6657        .88874E-04   -1.5445    
  24  Prefactor     .10000E-03    9.2757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.2294        .10666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    3.5856        .13532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    2.8034        .11914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2716        .23394        .21632E-03   -.84419    
  29  Prefactor     .67811        .25232        .31559E-03   -1.0439    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.68019e-10
Minuit parameter uncertainties:
  1  1.74589e-05
  2  0.000133717
  3  5.69463e-06
  4  4.01184
  5  3.0791e-05
  6  67.1627
  7  2.34155
  8  63.3784
  9  3.78537e-06
  10  9.12292e-05
  11  55.0312
  12  3.48781e-05
  13  6.28072
  14  14.7364
  15  5.42067e-05
  16  5.72975e-06
  17  34.7493
  18  3.64594e-06
  19  49.7524
  20  18.2585
  21  27.874
  22  3.94474e-06
  23  1.66571
  24  2.8669e-06
  25  3.20604e-06
  26  8.49443e-07
  27  4.19406e-06
  28  0.234138
  29  0.252742
Done.

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

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  8.269e+00  3.475e+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:  6.781e-01  2.527e-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.272e+00  2.341e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/546217/likelihoodResults_430876801_431136001_4FGL_J1428.9+5406_daily_bin739.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) = 5394.52544563
delta logL = 0.0118590193033

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5394.52371679
delta logL = 0.0135878632309

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7898       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9003       1.0000          .0000       10.000    
     3 'Normalizat'    1.2666       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68190       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=   5394.524     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      339 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7927        38.968        .15398E-03    .15158E-03
   2  Index         2.9005        2.2396        .82973E-02    .12053E-03
   3  Normalizat    1.2665        .22941        .21668E-03    .95789E-03
   4  Prefactor     .68200        .24892        .31476E-03    .53990E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.79269
  Index      = 2.90046
  Normalizat = 1.2665
  Prefactor  = 0.682001
 **********
 **   18 **HESSE 
 **********

 FCN=   5394.524     FROM HESSE     STATUS=OK            23 CALLS      362 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7927        32.184        .61593E-05   -1.5187    
   2  Index         2.9005        2.0499        .33189E-03   -.43334    
   3  Normalizat    1.2665        .22972        .43336E-04   -.84572    
   4  Prefactor     .68200        .24903        .62951E-04   -1.0424    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79161e-09
Minuit parameter uncertainties:
  1  29.597
  2  2.12696
  3  0.2299
  4  0.249438
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/546217': 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) = 5394.52371669
delta logL = 0.0135879621066

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  6.793e+00  2.960e+01  1.000e-04  1.000e+04 ( 1.000e-13)
347        Index:  2.900e+00  2.127e+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:  6.820e-01  2.494e-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.267e+00  2.299e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
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/546217/cmap_HighResolution_430876801_431136001_4FGL_J1428.9+5406_daily_bin739.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.39e-03', job_status='DONE', photon_flux_upper_limit='1.20e-07', time_completed='2021-09-09 20:57:21.390222', job_id='546217', GAL2='0.68', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1631246241.39', return_code2='0', ts='0.07', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='1.36e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='739' AND source_name='4FGL J1428.9+5406' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 20:57:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 546217: <4FGL_J1428.9+5406_daily_bin739> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1428.9+5406_daily_bin739 217.229 54.1114 430876801 431136001 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 :                                   820.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   958 sec.
    Turnaround time :                            962 sec.

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

