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


Performing analysis on: 4FGL_J1428.8+7429_daily_bin37
RA = 217.203, Dec = 74.485
tmin = 248918401, tmax = 249177601
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='528370', job_status='RUN', time_executed='2021-09-09 19:42:11.064473', time_epoch_executed='1631241731.06' WHERE source_name='4FGL J1428.8+7429' and cadence='daily' and bin_id='37'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/528370

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/528370/ft1_4FGL_J1428.8+7429_daily_bin37.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/528370/ft2_4FGL_J1428.8+7429_daily_bin37.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/528370/ft1_4FGL_J1428.8+7429_daily_bin37.fits outfile=/scratch/kocevski/528370/ft1_filteredMKT_4FGL_J1428.8+7429_daily_bin37.fits ra=217.203 dec=74.485 rad=12.0 tmin=248918401.0 tmax=249177601.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.95
user 1.76
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/528370/ft2_4FGL_J1428.8+7429_daily_bin37.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/528370/ft2_4FGL_J1428.8+7429_daily_bin37.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/528370/ft1_filteredMKT_4FGL_J1428.8+7429_daily_bin37.fits evtable="EVENTS" outfile="/scratch/kocevski/528370/ft1_filtered_4FGL_J1428.8+7429_daily_bin37.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/528370/ft1_filtered_4FGL_J1428.8+7429_daily_bin37.fits" evtable="EVENTS" scfile=/scratch/kocevski/528370/ft2_4FGL_J1428.8+7429_daily_bin37.fits sctable="SC_DATA" outfile=/scratch/kocevski/528370/ltcube_248918401_249177601_4FGL_J1428.8+7429_daily_bin37.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/528370/ft2_4FGL_J1428.8+7429_daily_bin37.fits
.....................!
real 12.74
user 12.38
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/528370/ft1_filtered_4FGL_J1428.8+7429_daily_bin37.fits evtable="EVENTS" scfile=/scratch/kocevski/528370/ft2_4FGL_J1428.8+7429_daily_bin37.fits sctable="SC_DATA" expcube=/scratch/kocevski/528370/ltcube_248918401_249177601_4FGL_J1428.8+7429_daily_bin37.fits outfile=/scratch/kocevski/528370/expmap_248918401_249177601_4FGL_J1428.8+7429_daily_bin37.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/528370/ltcube_248918401_249177601_4FGL_J1428.8+7429_daily_bin37.fits
.....................!
real 191.30
user 185.41
sys 5.53

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 218 point sources and 0 extended sources

Setting source of interest to:
4FGL J1428.8+7429 @ 217.203 74.485

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/528370/ft1_filtered_4FGL_J1428.8+7429_daily_bin37.fits scfile=/scratch/kocevski/528370/ft2_4FGL_J1428.8+7429_daily_bin37.fits outfile=/scratch/kocevski/528370/cmap_248918401_249177601_4FGL_J1428.8+7429_daily_bin37.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.203 yref=74.485 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/528370/ft1_filtered_4FGL_J1428.8+7429_daily_bin37.fits scfile=/scratch/kocevski/528370/ft2_4FGL_J1428.8+7429_daily_bin37.fits outfile=/scratch/kocevski/528370/cmap_HighResolution_248918401_249177601_4FGL_J1428.8+7429_daily_bin37.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.203 yref=74.485 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/528370/ft1_filtered_4FGL_J1428.8+7429_daily_bin37.fits evtable="EVENTS" scfile=/scratch/kocevski/528370/ft2_4FGL_J1428.8+7429_daily_bin37.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/528370/Model_4FGL_J1428.8+7429_daily_bin37.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/528370/ft1_filtered_4FGL_J1428.8+7429_daily_bin37.fits.....................!
real 68.80
user 67.31
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/528370/ft1_filtered_4FGL_J1428.8+7429_daily_bin37.fits', '/scratch/kocevski/528370/ft2_4FGL_J1428.8+7429_daily_bin37.fits', expMap='/scratch/kocevski/528370/expmap_248918401_249177601_4FGL_J1428.8+7429_daily_bin37.fits', expCube='/scratch/kocevski/528370/ltcube_248918401_249177601_4FGL_J1428.8+7429_daily_bin37.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/528370/Model_4FGL_J1428.8+7429_daily_bin37.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1428.8+7429'

4FGL J1428.8+7429
   Spectrum: PowerLaw
368    Prefactor:  2.627e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-15)
369        Index:  1.859e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
370        Scale:  6.277e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/528370/ft1_filtered_4FGL_J1428.8+7429_daily_bin37.fits
Spacecraft file(s): /scratch/kocevski/528370/ft2_4FGL_J1428.8+7429_daily_bin37.fits
Exposure map: /scratch/kocevski/528370/expmap_248918401_249177601_4FGL_J1428.8+7429_daily_bin37.fits
Exposure cube: /scratch/kocevski/528370/ltcube_248918401_249177601_4FGL_J1428.8+7429_daily_bin37.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/528370/Model_4FGL_J1428.8+7429_daily_bin37.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) = 6248.45507253

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6471       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.7377       1.0000         .10000E-03   10000.    
     4 'norm      '    .98010       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.4721       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.9954       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10246E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.637       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .36877E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10377E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    47.298       1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.506       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10023E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    32.742       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .18634       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2950       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .79695       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6248.443     FROM MIGRAD    STATUS=CONVERGED    653 CALLS     3456 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6545        10.219       -.12020E-05   -.74409E-04
   2  Prefactor     .10000E-03    33.714       -.24235E-05** at limit **
   3  norm          4.7373        4.4447       -.26856E-06    .54911E-04
   4  norm          .97507        2.4266       -.11624E-06   -.77052E-03
   5  Prefactor     7.4735        95.174        .34453E-05   -.42832E-05
   6  Prefactor     .10000E-03    30.556       -.10423E-04** at limit **
   7  Prefactor     5.9955        14.933       -.70166E-06   -.21152E-04
   8  Prefactor     .10000E-03    30.614       -.10434E-04** at limit **
   9  Prefactor     .10000E-03    3.7989       -.20437E-08** at limit **
  10  Prefactor     12.635        21.410       -.14533E-05   -.80640E-04
  11  Prefactor     .10001E-03    5.9766       -.39058E-06** at limit **
  12  Prefactor     .10026E-03    6.7549        .26131E-05** at limit **
  13  Prefactor     47.283        23.925       -.55613E-05    .83191E-04
  14  Prefactor     19.504        40.851       -.31056E-05    .93978E-05
  15  Prefactor     .10000E-03    40.339        .11960E-04** at limit **
  16  Prefactor     .10000E-03    26.053       -.10084E-04** at limit **
  17  Prefactor     .10000E-03    44.278        .12013E-04** at limit **
  18  Prefactor     .10005E-03    183.02       -.19021E-03** at limit **
  19  Prefactor     .10000E-03    32.288       -.63772E-05** at limit **
  20  Prefactor     32.741        25.629       -.16473E-05   -.42002E-04
  21  Prefactor     .10000E-03    23.209        .13742E-04** at limit **
  22  norm          .10000E-03    9.0855       -.31678E-08** at limit **
  23  Prefactor     .10000E-03    49.367        .24077E-05** at limit **
  24  Prefactor     .10000E-03    50.479       -.20146E-05** at limit **
  25  Prefactor     .16560        1.4574       -.62000E-06    .30190E-03
  26  Prefactor     .10000E-03    35.526        .31356E-05** at limit **
  27  Normalizat    1.2952        .18610        .16146E-05    .39425E-03
  28  Prefactor     .79680        .14039        .83143E-06    .63664E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.65446
  Prefactor  = 0.0001
  norm       = 4.7373
  norm       = 0.975075
  Prefactor  = 7.47348
  Prefactor  = 0.0001
  Prefactor  = 5.99552
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.6345
  Prefactor  = 0.000100008
  Prefactor  = 0.000100263
  Prefactor  = 47.2828
  Prefactor  = 19.5043
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100047
  Prefactor  = 0.0001
  Prefactor  = 32.7409
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.165604
  Prefactor  = 0.0001
  Normalizat = 1.29521
  Prefactor  = 0.796798
 **********
 **   18 **HESSE 
 **********

 FCN=   6248.443     FROM HESSE     STATUS=OK           517 CALLS     3973 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6545        9.7715        .15564E-03   -1.5192    
   2  Prefactor     .10000E-03    33.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.7373        4.4535        .15651E-03   -1.5273    
   4  norm          .97507        1.8981        .17471E-02   -1.5510    
   5  Prefactor     7.4735        94.821        .14672E-03   -1.5161    
   6  Prefactor     .10000E-03    30.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.9955        14.901        .16399E-03   -1.5218    
   8  Prefactor     .10000E-03    30.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.8612        .15022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.635        21.335        .11268E-03   -1.4997    
  11  Prefactor     .10001E-03    37.986        .36733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10026E-03    42.086        .38628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     47.283        23.858        .58303E-04   -1.4332    
  14  Prefactor     19.504        40.479        .90687E-04   -1.4824    
  15  Prefactor     .10000E-03    40.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    26.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    44.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10005E-03    183.21        .20761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    32.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     32.741        25.769        .70028E-04   -1.4563    
  21  Prefactor     .10000E-03    23.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    9.0922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    49.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    50.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .16560        12.923        .17975E-02   -1.5627    
  26  Prefactor     .10000E-03    35.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.2952        .21251        .24353E-03   -.83709    
  28  Prefactor     .79680        .16093        .23964E-03   -.99846    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.75397e-09
Minuit parameter uncertainties:
  1  9.77387
  2  1.32816e-05
  3  4.45383
  4  1.89819
  5  53.3449
  6  6.07607e-05
  7  14.9102
  8  5.49188e-06
  9  4.13371e-06
  10  21.3474
  11  0.00110612
  12  0.0066566
  13  23.8628
  14  40.5362
  15  2.95587e-05
  16  4.92184e-05
  17  5.65428e-05
  18  0.00586947
  19  1.96429e-05
  20  25.7774
  21  1.23155e-05
  22  1.55885e-06
  23  7.44087e-06
  24  5.28347e-05
  25  2.92564
  26  1.05599e-05
  27  0.212649
  28  0.161026
Done.

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

Extracting fit parameters...

4FGL J1428.8+7429
   Spectrum: PowerLaw
368    Prefactor:  1.000e-04  2.956e-05  1.000e-04  1.000e+04 ( 1.000e-15)
369        Index:  1.859e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
370        Scale:  6.277e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
694    Prefactor:  7.968e-01  1.610e-01  0.000e+00  1.000e+01 ( 1.000e+00)
695        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
696        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
693   Normalization:  1.295e+00  2.126e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 217.203 74.485
Photon Flux Upper Limit: 4.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/528370/likelihoodResults_248918401_249177601_4FGL_J1428.8+7429_daily_bin37.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) = 6248.44276955
delta logL = -0.000117952504297

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6248.44265266
delta logL = -1.06751667772e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17917E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9145       1.0000          .0000       10.000    
     3 'Normalizat'    1.2952       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79680       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6248.443     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      235 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    220.68        .90712E-02** at limit **
   2  Index         1.8966        6.3610        .50000        .35253E-05
   3  Normalizat    1.2952        .11356E-01    .55074E-01    .66104E-06
   4  Prefactor     .79680        .90472E-02    .43676E-01    .13331E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.89663
  Normalizat = 1.29521
  Prefactor  = 0.796795
 **********
 **   18 **HESSE 
 **********

 FCN=   6248.443     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      268 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6404.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8966        7.0938        .50000       -.66960    
   3  Normalizat    1.2952        .46743E-01    .24353E-03   -.83709    
   4  Prefactor     .79680        .37242E-01    .23964E-03   -.99847    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.108e-10
Minuit parameter uncertainties:
  1  0.000896668
  2  35.1802
  3  0.046745
  4  0.0372427
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/528370': 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) = 6248.44265163
delta logL = -3.28645910486e-08

Extracting fit parameters...

4FGL J1428.8+7429
   Spectrum: PowerLaw
368    Prefactor:  1.000e-04  8.967e-04  1.000e-04  1.000e+04 ( 1.000e-15)
369        Index:  1.897e+00  3.518e+01  0.000e+00  1.000e+01 (-1.000e+00)
370        Scale:  6.277e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
694    Prefactor:  7.968e-01  3.724e-02  0.000e+00  1.000e+01 ( 1.000e+00)
695        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
696        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
693   Normalization:  1.295e+00  4.674e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 217.203 74.485

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/528370/cmap_HighResolution_248918401_249177601_4FGL_J1428.8+7429_daily_bin37.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.31e-03', job_status='DONE', photon_flux_upper_limit='4.47e-08', time_completed='2021-09-09 19:56:54.120145', job_id='528370', GAL2='0.80', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1631242614.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='-3.29e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.86' WHERE bin_id='37' AND source_name='4FGL J1428.8+7429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 19:56:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 528370: <4FGL_J1428.8+7429_daily_bin37> in cluster <slac> Done

Job <4FGL_J1428.8+7429_daily_bin37> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  9 19:41:09 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 19:41:11 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 19:41:11 2021
Terminated at Thu Sep  9 19:56:54 2021
Results reported at Thu Sep  9 19:56:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1428.8+7429_daily_bin37 217.203 74.485 248918401 249177601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1428.8+7429 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   881.35 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             320.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            945 sec.

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

