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


Performing analysis on: 4FGL_J0428.6-3756_daily_bin557
RA = 67.173, Dec = -37.9403
tmin = 383702401, tmax = 383961601
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='474828', job_status='RUN', time_executed='2021-08-20 16:56:53.056938', time_epoch_executed='1629503813.06' WHERE source_name='4FGL J0428.6-3756' and cadence='daily' and bin_id='557'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/474828

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/474828/ft1_4FGL_J0428.6-3756_daily_bin557.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/474828/ft2_4FGL_J0428.6-3756_daily_bin557.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/474828/ft1_4FGL_J0428.6-3756_daily_bin557.fits outfile=/scratch/kocevski/474828/ft1_filteredMKT_4FGL_J0428.6-3756_daily_bin557.fits ra=67.173 dec=-37.9403 rad=12.0 tmin=383702401.0 tmax=383961601.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 7.68
user 4.20
sys 3.44

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/474828/ft2_4FGL_J0428.6-3756_daily_bin557.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/474828/ft2_4FGL_J0428.6-3756_daily_bin557.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/474828/ft1_filteredMKT_4FGL_J0428.6-3756_daily_bin557.fits evtable="EVENTS" outfile="/scratch/kocevski/474828/ft1_filtered_4FGL_J0428.6-3756_daily_bin557.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 3.74
user 0.33
sys 3.40

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/474828/ft1_filtered_4FGL_J0428.6-3756_daily_bin557.fits" evtable="EVENTS" scfile=/scratch/kocevski/474828/ft2_4FGL_J0428.6-3756_daily_bin557.fits sctable="SC_DATA" outfile=/scratch/kocevski/474828/ltcube_383702401_383961601_4FGL_J0428.6-3756_daily_bin557.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/474828/ft2_4FGL_J0428.6-3756_daily_bin557.fits
.....................!
real 16.13
user 11.64
sys 4.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/474828/ft1_filtered_4FGL_J0428.6-3756_daily_bin557.fits evtable="EVENTS" scfile=/scratch/kocevski/474828/ft2_4FGL_J0428.6-3756_daily_bin557.fits sctable="SC_DATA" expcube=/scratch/kocevski/474828/ltcube_383702401_383961601_4FGL_J0428.6-3756_daily_bin557.fits outfile=/scratch/kocevski/474828/expmap_383702401_383961601_4FGL_J0428.6-3756_daily_bin557.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/474828/ltcube_383702401_383961601_4FGL_J0428.6-3756_daily_bin557.fits
.....................!
real 193.82
user 185.21
sys 8.27

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
Extended source Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 177 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0428.6-3756 @ 67.173 -37.9403

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/474828/ft1_filtered_4FGL_J0428.6-3756_daily_bin557.fits scfile=/scratch/kocevski/474828/ft2_4FGL_J0428.6-3756_daily_bin557.fits outfile=/scratch/kocevski/474828/cmap_383702401_383961601_4FGL_J0428.6-3756_daily_bin557.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=67.173 yref=-37.9403 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 3.67
user 0.36
sys 3.29

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/474828/ft1_filtered_4FGL_J0428.6-3756_daily_bin557.fits scfile=/scratch/kocevski/474828/ft2_4FGL_J0428.6-3756_daily_bin557.fits outfile=/scratch/kocevski/474828/cmap_HighResolution_383702401_383961601_4FGL_J0428.6-3756_daily_bin557.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=67.173 yref=-37.9403 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 3.67
user 0.37
sys 3.29

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/474828/ft1_filtered_4FGL_J0428.6-3756_daily_bin557.fits evtable="EVENTS" scfile=/scratch/kocevski/474828/ft2_4FGL_J0428.6-3756_daily_bin557.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/474828/Model_4FGL_J0428.6-3756_daily_bin557.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/474828/ft1_filtered_4FGL_J0428.6-3756_daily_bin557.fits.....................!
real 107.12
user 101.51
sys 5.41

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/474828/ft1_filtered_4FGL_J0428.6-3756_daily_bin557.fits', '/scratch/kocevski/474828/ft2_4FGL_J0428.6-3756_daily_bin557.fits', expMap='/scratch/kocevski/474828/expmap_383702401_383961601_4FGL_J0428.6-3756_daily_bin557.fits', expCube='/scratch/kocevski/474828/ltcube_383702401_383961601_4FGL_J0428.6-3756_daily_bin557.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/474828/Model_4FGL_J0428.6-3756_daily_bin557.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0428.6-3756'

4FGL J0428.6-3756
   Spectrum: LogParabola
257         norm:  4.206e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  1.995e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
259         beta:  8.169e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
260           Eb:  8.090e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/474828/ft1_filtered_4FGL_J0428.6-3756_daily_bin557.fits
Spacecraft file(s): /scratch/kocevski/474828/ft2_4FGL_J0428.6-3756_daily_bin557.fits
Exposure map: /scratch/kocevski/474828/expmap_383702401_383961601_4FGL_J0428.6-3756_daily_bin557.fits
Exposure cube: /scratch/kocevski/474828/ltcube_383702401_383961601_4FGL_J0428.6-3756_daily_bin557.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/474828/Model_4FGL_J0428.6-3756_daily_bin557.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) = 4764.03025165

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .44657E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .19695       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5594       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .43687E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.2639       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.9239       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10973E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.1612       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .55811       1.0000         .10000E-03   10000.    
    24 'norm      '    5.1633       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3594       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .94285       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4763.939     FROM MIGRAD    STATUS=CONVERGED    637 CALLS     2681 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.0960       -.17338E-08** at limit **
   2  norm          .44633E-01    .57141        .28523E-06   -.50810E-03
   3  Prefactor     .10000E-03    13.749       -.14088E-06** at limit **
   4  Prefactor     .10000E-03    28.154       -.63804E-07** at limit **
   5  norm          .19707        .31702        .58185E-07    .73685E-04
   6  norm          .10000E-03    2.4548       -.10290E-07** at limit **
   7  Prefactor     2.5512        75.214        .24306E-05    .32489E-05
   8  Prefactor     .10000E-03    19.496       -.23971E-06** at limit **
   9  Prefactor     .10000E-03    5.9588       -.33694E-08** at limit **
  10  norm          3.2643        .91065        .22314E-07    .11530E-03
  11  Prefactor     .10000E-03    .90531       -.17357E-07** at limit **
  12  norm          .10000E-03    8.6102       -.42096E-07** at limit **
  13  norm          .10000E-03    111.34        .82070E-05** at limit **
  14  norm          5.9238        2.2108        .20258E-07   -.88787E-05
  15  Prefactor     .10000E-03    1.1789       -.88944E-08** at limit **
  16  Prefactor     .10000E-03    13.497        .35852E-06** at limit **
  17  norm          .10005E-03    4.0212        .12189E-05** at limit **
  18  norm          .10000E-03    3.4279       -.28029E-07** at limit **
  19  Prefactor     .10000E-03    20.933        .11502E-05** at limit **
  20  Prefactor     4.1555        9.0505        .36834E-05    .13757E-03
  21  Prefactor     .10000E-03    94.921       -.68342E-05** at limit **
  22  Prefactor     .10000E-03    1.0274       -.73475E-08** at limit **
  23  Prefactor     .55749        3.6796       -.32272E-07   -.36706E-04
  24  norm          5.1634        3.5558        .30180E-06    .19960E-03
  25  Normalizat    1.3593        .22029       -.13723E-05   -.10571E-03
  26  Prefactor     .94287        .22125        .32333E-06   -.10687E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.044633
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.197066
  norm       = 0.0001
  Prefactor  = 2.55116
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.26435
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 5.92383
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100047
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.15553
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.557493
  norm       = 5.16343
  Normalizat = 1.3593
  Prefactor  = 0.94287
 **********
 **   18 **HESSE 
 **********

 FCN=   4763.939     FROM HESSE     STATUS=OK           458 CALLS     3139 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.0995        .70559E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .44633E-01    3.7856        .97763E-03   -1.5666    
   3  Prefactor     .10000E-03    13.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    28.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .19707        .29857        .46513E-03   -1.5619    
   6  norm          .10000E-03    2.4577        .10559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.5512        75.507        .25519E-03   -1.5389    
   8  Prefactor     .10000E-03    20.287        .42445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.0029        .16440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.2643        .90996        .33424E-04   -1.5347    
  11  Prefactor     .10000E-03    .91218        .64116E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    8.7174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    111.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.9238        2.2075        .60806E-04   -1.5221    
  15  Prefactor     .10000E-03    1.1908        .73052E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10005E-03    18.423        .23912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.4698        .12475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    20.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.1555        9.1103        .98792E-03   -1.5300    
  21  Prefactor     .10000E-03    95.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.0313        .68317E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .55749        16.461        .24171E-02   -1.5559    
  24  norm          5.1634        3.5831        .49976E-03   -1.5253    
  25  Normalizat    1.3593        .25841        .23880E-03   -.81813    
  26  Prefactor     .94287        .26221        .29632E-03   -.94659    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34629e-08
Minuit parameter uncertainties:
  1  1.39782e-07
  2  0.821232
  3  3.79744e-06
  4  9.07459e-07
  5  0.298568
  6  5.15597e-07
  7  27.7963
  8  2.35885e-05
  9  1.53446e-07
  10  0.909968
  11  2.36481e-07
  12  5.77292e-07
  13  0.000522516
  14  2.20752
  15  1.08052e-07
  16  7.89332e-06
  17  0.00185936
  18  3.14668e-08
  19  3.34669e-05
  20  9.11338
  21  0.000322882
  22  1.22666e-07
  23  6.05999
  24  3.58322
  25  0.258658
  26  0.262564
Done.

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

Extracting fit parameters...

4FGL J0428.6-3756
   Spectrum: LogParabola
257         norm:  3.264e+00  9.100e-01  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  1.995e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
259         beta:  8.169e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
260           Eb:  8.090e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  9.429e-01  2.626e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
569   Normalization:  1.359e+00  2.587e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 43.96
Ra Dec: 67.173 -37.940
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 1.80e-07 +/- 5.00e-08
Energy Flux (Fixed Index): 1.03e-04 +/- 2.87e-05

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) = 4763.75280075
delta logL = 0.185950527072

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4763.72852728
delta logL = 0.210223994319

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3945       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8445       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3751       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93425       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4763.729     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      202 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3945        1.0927        .54899E-02    .32457E-04
   2  alpha         1.8444        .25432        .14251        .71827E-05
   3  Normalizat    1.3751        .20754        .53772E-01    .16545E-05
   4  Prefactor     .93425        .21984        .67282E-01    .11859E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.39451
  alpha      = 1.84444
  Normalizat = 1.37508
  Prefactor  = 0.934253
 **********
 **   18 **HESSE 
 **********

 FCN=   4763.729     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .72E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3945        .96393        .34635E-04   -1.5339    
   2  alpha         1.8444        .22890        .61704E-03   -.26533    
   3  Normalizat    1.3751        .24514        .23775E-03   -.81352    
   4  Prefactor     .93425        .25934        .29761E-03   -.94954    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.18628e-14
Minuit parameter uncertainties:
  1  0.963931
  2  0.229247
  3  0.245349
  4  0.259689
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/474828': 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) = 4763.72852725
delta logL = 0.210224029036

Extracting fit parameters...

4FGL J0428.6-3756
   Spectrum: LogParabola
257         norm:  3.395e+00  9.639e-01  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  1.844e+00  2.292e-01  0.000e+00  5.000e+00 ( 1.000e+00)
259         beta:  8.169e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
260           Eb:  8.090e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  9.343e-01  2.597e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
569   Normalization:  1.375e+00  2.453e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 44.34
Ra Dec: 67.173 -37.940
Photon Index (Free Index): 1.84 +/- 0.23
Photon Flux (Free Index): 1.61e-07 +/- 5.38e-08
Energy Flux (Free Index): 1.23e-04 +/- 5.04e-05

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/474828/cmap_HighResolution_383702401_383961601_4FGL_J0428.6-3756_daily_bin557.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.80e-07', energy_flux2='1.23e-04', photon_flux_error='5.00e-08', dlogl='2.10e-01', energy_flux='1.03e-04', photon_flux2='1.61e-07', job_status='DONE', time_completed='2021-08-20 17:07:48.746938', photon_index_error2='0.23', photon_index2='1.84', ts='43.96', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='5.04e-05', EG='1.36', time_epoch_completed='1629504468.75', return_code='0', job_id='474828', GAL2='0.93', EG2='1.38', return_code2='0', energy_flux_error='2.87e-05', photon_flux_error2='5.38e-08', ts2='44.34', photon_index='1.99' WHERE bin_id='557' AND source_name='4FGL J0428.6-3756' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 17:07:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 474828: <4FGL_J0428.6-3756_daily_bin557> in cluster <slac> Done

Job <4FGL_J0428.6-3756_daily_bin557> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Aug 20 16:55:48 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 16:55:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 16:55:50 2021
Terminated at Fri Aug 20 17:07:49 2021
Results reported at Fri Aug 20 17:07:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0428.6-3756_daily_bin557 67.173 -37.9403 383702401 383961601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0428.6-3756 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   705.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             273.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   719 sec.
    Turnaround time :                            721 sec.

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

