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


Performing analysis on: 4FGL_J0505.8-0419_daily_bin10
RA = 76.4598, Dec = -4.3182
tmin = 241920001, tmax = 242179201
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='968638', job_status='RUN', time_executed='2021-08-21 20:30:40.572091', time_epoch_executed='1629603040.57' WHERE source_name='4FGL J0505.8-0419' and cadence='daily' and bin_id='10'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/968638

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/968638/ft1_4FGL_J0505.8-0419_daily_bin10.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/968638/ft2_4FGL_J0505.8-0419_daily_bin10.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/968638/ft1_4FGL_J0505.8-0419_daily_bin10.fits outfile=/scratch/kocevski/968638/ft1_filteredMKT_4FGL_J0505.8-0419_daily_bin10.fits ra=76.4598 dec=-4.3182 rad=12.0 tmin=241920001.0 tmax=242179201.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 2.07
user 1.23
sys 0.81

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/968638/ft2_4FGL_J0505.8-0419_daily_bin10.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/968638/ft2_4FGL_J0505.8-0419_daily_bin10.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/968638/ft1_filteredMKT_4FGL_J0505.8-0419_daily_bin10.fits evtable="EVENTS" outfile="/scratch/kocevski/968638/ft1_filtered_4FGL_J0505.8-0419_daily_bin10.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 1.16
user 0.34
sys 0.79

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/968638/ft1_filtered_4FGL_J0505.8-0419_daily_bin10.fits" evtable="EVENTS" scfile=/scratch/kocevski/968638/ft2_4FGL_J0505.8-0419_daily_bin10.fits sctable="SC_DATA" outfile=/scratch/kocevski/968638/ltcube_241920001_242179201_4FGL_J0505.8-0419_daily_bin10.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/968638/ft2_4FGL_J0505.8-0419_daily_bin10.fits
.....................!
real 14.61
user 13.49
sys 1.06

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/968638/ft1_filtered_4FGL_J0505.8-0419_daily_bin10.fits evtable="EVENTS" scfile=/scratch/kocevski/968638/ft2_4FGL_J0505.8-0419_daily_bin10.fits sctable="SC_DATA" expcube=/scratch/kocevski/968638/ltcube_241920001_242179201_4FGL_J0505.8-0419_daily_bin10.fits outfile=/scratch/kocevski/968638/expmap_241920001_242179201_4FGL_J0505.8-0419_daily_bin10.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/968638/ltcube_241920001_242179201_4FGL_J0505.8-0419_daily_bin10.fits
.....................!
real 191.70
user 185.28
sys 5.78

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 146 point sources and 0 extended sources

Setting source of interest to:
4FGL J0505.8-0419 @ 76.4598 -4.3182

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/968638/ft1_filtered_4FGL_J0505.8-0419_daily_bin10.fits scfile=/scratch/kocevski/968638/ft2_4FGL_J0505.8-0419_daily_bin10.fits outfile=/scratch/kocevski/968638/cmap_241920001_242179201_4FGL_J0505.8-0419_daily_bin10.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=76.4598 yref=-4.3182 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 1.19
user 0.37
sys 0.79

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/968638/ft1_filtered_4FGL_J0505.8-0419_daily_bin10.fits scfile=/scratch/kocevski/968638/ft2_4FGL_J0505.8-0419_daily_bin10.fits outfile=/scratch/kocevski/968638/cmap_HighResolution_241920001_242179201_4FGL_J0505.8-0419_daily_bin10.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=76.4598 yref=-4.3182 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 1.21
user 0.37
sys 0.81

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/968638/ft1_filtered_4FGL_J0505.8-0419_daily_bin10.fits evtable="EVENTS" scfile=/scratch/kocevski/968638/ft2_4FGL_J0505.8-0419_daily_bin10.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/968638/Model_4FGL_J0505.8-0419_daily_bin10.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/968638/ft1_filtered_4FGL_J0505.8-0419_daily_bin10.fits.....................!
real 210.19
user 207.30
sys 2.43

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/968638/ft1_filtered_4FGL_J0505.8-0419_daily_bin10.fits', '/scratch/kocevski/968638/ft2_4FGL_J0505.8-0419_daily_bin10.fits', expMap='/scratch/kocevski/968638/expmap_241920001_242179201_4FGL_J0505.8-0419_daily_bin10.fits', expCube='/scratch/kocevski/968638/ltcube_241920001_242179201_4FGL_J0505.8-0419_daily_bin10.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/968638/Model_4FGL_J0505.8-0419_daily_bin10.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0505.8-0419'

4FGL J0505.8-0419
   Spectrum: PowerLaw
204    Prefactor:  7.027e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
205        Index:  2.402e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
206        Scale:  1.010e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/968638/ft1_filtered_4FGL_J0505.8-0419_daily_bin10.fits
Spacecraft file(s): /scratch/kocevski/968638/ft2_4FGL_J0505.8-0419_daily_bin10.fits
Exposure map: /scratch/kocevski/968638/expmap_241920001_242179201_4FGL_J0505.8-0419_daily_bin10.fits
Exposure cube: /scratch/kocevski/968638/ltcube_241920001_242179201_4FGL_J0505.8-0419_daily_bin10.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/968638/Model_4FGL_J0505.8-0419_daily_bin10.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) = 11314.7731607

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    12.669       1.0000         .10000E-03   10000.    
     3 'norm      '    2.7506       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .26687E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10347E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.9082       1.0000         .10000E-03   10000.    
     9 'Prefactor '    42.526       1.0000         .10000E-03   10000.    
    10 'norm      '    3.4077       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16839E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .34842E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.0114       1.0000         .10000E-03   10000.    
    15 'norm      '    10.184       1.0000         .10000E-03   10000.    
    16 'norm      '    .11907E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .57086E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .28290E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    1.0617       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .97484       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .97925       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11314.77     FROM MIGRAD    STATUS=CONVERGED    471 CALLS     2229 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.2255        .90712E-02** at limit **
   2  norm          12.670        9.1727        .28135E-02    .27251E-03
   3  norm          2.7502        1.1912        .61364E-02    .56696E-03
   4  Prefactor     .10000E-03    .65424        .34048E-01** at limit **
   5  Prefactor     .10001E-03    12.689        .10719E-01** at limit **
   6  Prefactor     .10000E-03    2.8555        .90712E-02** at limit **
   7  Prefactor     .10000E-03    25.093        .90712E-02** at limit **
   8  norm          4.9029        2.4744        .45388E-02    .49434E-03
   9  Prefactor     42.527        33.081        .15368E-02    .20399E-02
  10  norm          3.4103        2.1785        .54788E-02    .55577E-03
  11  Prefactor     .10000E-03    13.444        .90712E-02** at limit **
  12  norm          .10000E-03    .20152        .25676E-01** at limit **
  13  Prefactor     .10001E-03    12.053        .10663E-01** at limit **
  14  Prefactor     8.8678        27.062        .33379E-02    .38773E-04
  15  norm          10.183        4.0100        .31390E-02   -.67865E-04
  16  norm          .10000E-03    20.442        .90712E-02** at limit **
  17  Prefactor     .10000E-03    10.731        .10545E-01** at limit **
  18  Prefactor     .10005E-03    3.0395        .67995E-01** at limit **
  19  norm          1.0718        3.2881        .11877E-01    .23245E-02
  20  Normalizat    .97520        .19015        .98431E-01    .92582E-04
  21  Prefactor     .97916        .61659E-01    .33064E-01    .89269E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 12.6703
  norm       = 2.75024
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 4.9029
  Prefactor  = 42.5272
  norm       = 3.41029
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 8.86782
  norm       = 10.1828
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.00010005
  norm       = 1.07179
  Normalizat = 0.9752
  Prefactor  = 0.979163
 **********
 **   18 **HESSE 
 **********

 FCN=   11314.77     FROM HESSE     STATUS=OK           321 CALLS     2550 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.2285        .15494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          12.670        9.1773        .11254E-03   -1.4996    
   3  norm          2.7502        1.1750        .73019E-04   -1.5376    
   4  Prefactor     .10000E-03    1.0978        .16557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    12.700        .21438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.8707        .17550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.9029        2.4750        .11169E-03   -1.5265    
   9  Prefactor     42.527        32.856        .61473E-04   -1.4403    
  10  norm          3.4103        2.1670        .11503E-03   -1.5339    
  11  Prefactor     .10000E-03    13.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .33903        .88459E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    12.056        .21325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.8678        27.009        .13352E-03   -1.5112    
  15  norm          10.183        3.8873        .12501E-03   -1.5070    
  16  norm          .10000E-03    20.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.748        .21090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10005E-03    25.523        .35798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.0718        3.3143        .30815E-03   -1.5501    
  20  Normalizat    .97520        .20089        .43613E-03   -.93866    
  21  Prefactor     .97916        .64774E-01    .14611E-03   -.93427    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39987e-08
Minuit parameter uncertainties:
  1  4.28551e-06
  2  9.17828
  3  1.175
  4  4.23871e-06
  5  0.000679175
  6  1.87234e-06
  7  0.000476875
  8  2.47501
  9  32.8696
  10  2.16706
  11  3.32231e-05
  12  8.49977e-07
  13  0.000571634
  14  27.0464
  15  3.8874
  16  0.000522903
  17  6.6333e-05
  18  0.00226858
  19  3.3149
  20  0.201042
  21  0.0647792
Done.

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

Extracting fit parameters...

4FGL J0505.8-0419
   Spectrum: PowerLaw
204    Prefactor:  8.868e+00  2.705e+01  1.000e-04  1.000e+04 ( 1.000e-13)
205        Index:  2.402e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
206        Scale:  1.010e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
485    Prefactor:  9.792e-01  6.478e-02  0.000e+00  1.000e+01 ( 1.000e+00)
486        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
487        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
484   Normalization:  9.752e-01  2.010e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.13
Ra Dec: 76.460 -4.318
Photon Flux Upper Limit: 1.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/968638/likelihoodResults_241920001_242179201_4FGL_J0505.8-0419_daily_bin10.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) = 11313.6706497
delta logL = 1.09986289701

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11313.4967744
delta logL = 1.27373813436

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11313.50     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      349 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .25911E-01    .20642        .26348E-02    .89077E-02
   2  Index         6.2349        1.8485        .15421        .23671E-03
   3  Normalizat    .90001        .45819E-01    .10204        .41804E-04
   4  Prefactor     .99219        .15448E-01    .32871E-01   -.17769E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0259111
  Index      = 6.23485
  Normalizat = 0.900006
  Prefactor  = 0.99219
 **********
 **   18 **HESSE 
 **********

 FCN=   11313.50     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      384 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .25911E-01    .65792        .12241E-03   -1.5676    
   2  Index         6.2349        3.9696        .52730E-02    .24955    
   3  Normalizat    .90001        .15733        .45226E-03   -.96460    
   4  Prefactor     .99219        .52011E-01    .14526E-03   -.92990    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.10841e-07
Minuit parameter uncertainties:
  1  0.26063
  2  4.65216
  3  0.157411
  4  0.0520132
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/968638': 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) = 11313.4967717
delta logL = 1.27374087026

Extracting fit parameters...

4FGL J0505.8-0419
   Spectrum: PowerLaw
204    Prefactor:  2.591e-02  2.606e-01  1.000e-04  1.000e+04 ( 1.000e-13)
205        Index:  6.235e+00  4.652e+00  0.000e+00  1.000e+01 (-1.000e+00)
206        Scale:  1.010e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
485    Prefactor:  9.922e-01  5.201e-02  0.000e+00  1.000e+01 ( 1.000e+00)
486        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
487        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
484   Normalization:  9.000e-01  1.574e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.89
Ra Dec: 76.460 -4.318
Photon Index (Free Index): 6.23 +/- 4.65
Photon Flux (Free Index): 9.13e-08 +/- 6.24e-08
Energy Flux (Free Index): 1.12e-05 +/- 8.59e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/968638/cmap_HighResolution_241920001_242179201_4FGL_J0505.8-0419_daily_bin10.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.38e-03', comment='SUCCESS', energy_flux2='1.12e-05', dlogl='1.27e+00', photon_flux2='9.13e-08', job_status='DONE', time_completed='2021-08-21 20:45:56.130123', photon_index_error2='4.65', photon_index2='6.23', ts='0.13', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='8.59e-06', EG='0.98', time_epoch_completed='1629603956.13', return_code='0', job_id='968638', GAL2='0.99', EG2='0.90', return_code2='102', photon_flux_error2='6.24e-08', ts2='2.89', photon_index='2.40' WHERE bin_id='10' AND source_name='4FGL J0505.8-0419' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 20:45:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 968638: <4FGL_J0505.8-0419_daily_bin10> in cluster <slac> Done

Job <4FGL_J0505.8-0419_daily_bin10> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Aug 21 20:30:17 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 20:30:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 21 20:30:18 2021
Terminated at Sat Aug 21 20:45:57 2021
Results reported at Sat Aug 21 20:45:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0505.8-0419_daily_bin10 76.4598 -4.3182 241920001 242179201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0505.8-0419 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   921.00 sec.
    Max Memory :                                 1148 MB
    Average Memory :                             397.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            940 sec.

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

