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


Performing analysis on: 4FGL_J0538.8-4405_daily_bin649
RA = 84.7089, Dec = -44.0862
tmin = 407548801, tmax = 407808001
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='681994', job_status='RUN', time_executed='2021-08-23 13:05:54.324324', time_epoch_executed='1629749154.32' WHERE source_name='4FGL J0538.8-4405' and cadence='daily' and bin_id='649'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/681994

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/681994/ft1_4FGL_J0538.8-4405_daily_bin649.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/681994/ft2_4FGL_J0538.8-4405_daily_bin649.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/681994/ft1_4FGL_J0538.8-4405_daily_bin649.fits outfile=/scratch/kocevski/681994/ft1_filteredMKT_4FGL_J0538.8-4405_daily_bin649.fits ra=84.7089 dec=-44.0862 rad=12.0 tmin=407548801.0 tmax=407808001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.51
user 3.28
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/681994/ft2_4FGL_J0538.8-4405_daily_bin649.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/681994/ft2_4FGL_J0538.8-4405_daily_bin649.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/681994/ft1_filteredMKT_4FGL_J0538.8-4405_daily_bin649.fits evtable="EVENTS" outfile="/scratch/kocevski/681994/ft1_filtered_4FGL_J0538.8-4405_daily_bin649.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.53
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/681994/ft1_filtered_4FGL_J0538.8-4405_daily_bin649.fits" evtable="EVENTS" scfile=/scratch/kocevski/681994/ft2_4FGL_J0538.8-4405_daily_bin649.fits sctable="SC_DATA" outfile=/scratch/kocevski/681994/ltcube_407548801_407808001_4FGL_J0538.8-4405_daily_bin649.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/681994/ft2_4FGL_J0538.8-4405_daily_bin649.fits
.....................!
real 12.25
user 11.83
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/681994/ft1_filtered_4FGL_J0538.8-4405_daily_bin649.fits evtable="EVENTS" scfile=/scratch/kocevski/681994/ft2_4FGL_J0538.8-4405_daily_bin649.fits sctable="SC_DATA" expcube=/scratch/kocevski/681994/ltcube_407548801_407808001_4FGL_J0538.8-4405_daily_bin649.fits outfile=/scratch/kocevski/681994/expmap_407548801_407808001_4FGL_J0538.8-4405_daily_bin649.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/681994/ltcube_407548801_407808001_4FGL_J0538.8-4405_daily_bin649.fits
.....................!
real 190.74
user 185.17
sys 4.68

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

Setting source of interest to:
4FGL J0538.8-4405 @ 84.7089 -44.0862

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/681994/ft1_filtered_4FGL_J0538.8-4405_daily_bin649.fits scfile=/scratch/kocevski/681994/ft2_4FGL_J0538.8-4405_daily_bin649.fits outfile=/scratch/kocevski/681994/cmap_407548801_407808001_4FGL_J0538.8-4405_daily_bin649.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=84.7089 yref=-44.0862 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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/681994/ft1_filtered_4FGL_J0538.8-4405_daily_bin649.fits scfile=/scratch/kocevski/681994/ft2_4FGL_J0538.8-4405_daily_bin649.fits outfile=/scratch/kocevski/681994/cmap_HighResolution_407548801_407808001_4FGL_J0538.8-4405_daily_bin649.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=84.7089 yref=-44.0862 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/681994/ft1_filtered_4FGL_J0538.8-4405_daily_bin649.fits evtable="EVENTS" scfile=/scratch/kocevski/681994/ft2_4FGL_J0538.8-4405_daily_bin649.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/681994/Model_4FGL_J0538.8-4405_daily_bin649.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/681994/ft1_filtered_4FGL_J0538.8-4405_daily_bin649.fits.....................!
real 58.76
user 57.34
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/681994/ft1_filtered_4FGL_J0538.8-4405_daily_bin649.fits', '/scratch/kocevski/681994/ft2_4FGL_J0538.8-4405_daily_bin649.fits', expMap='/scratch/kocevski/681994/expmap_407548801_407808001_4FGL_J0538.8-4405_daily_bin649.fits', expCube='/scratch/kocevski/681994/ltcube_407548801_407808001_4FGL_J0538.8-4405_daily_bin649.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/681994/Model_4FGL_J0538.8-4405_daily_bin649.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0538.8-4405'

4FGL J0538.8-4405
   Spectrum: LogParabola
306         norm:  5.462e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
307        alpha:  2.018e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
308         beta:  6.200e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
309           Eb:  6.207e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/681994/ft1_filtered_4FGL_J0538.8-4405_daily_bin649.fits
Spacecraft file(s): /scratch/kocevski/681994/ft2_4FGL_J0538.8-4405_daily_bin649.fits
Exposure map: /scratch/kocevski/681994/expmap_407548801_407808001_4FGL_J0538.8-4405_daily_bin649.fits
Exposure cube: /scratch/kocevski/681994/ltcube_407548801_407808001_4FGL_J0538.8-4405_daily_bin649.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/681994/Model_4FGL_J0538.8-4405_daily_bin649.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) = 4965.39075052

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7198       1.0000         .10000E-03   10000.    
     2 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.0227       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.237       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .46484E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3151       1.0000         .10000E-03   10000.    
    12 'norm      '    3.2401       1.0000         .10000E-03   10000.    
    13 'norm      '    5.1839       1.0000         .10000E-03   10000.    
    14 'norm      '    5.4590       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.2789       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    11.227       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.4841       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.5698       1.0000         .10000E-03   10000.    
    23 'norm      '    .23650       1.0000         .10000E-03   10000.    
    24 'Prefactor '    22.688       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.9330       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1676       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .79862       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4965.374     FROM MIGRAD    STATUS=CONVERGED    817 CALLS     3976 TOTAL
                     EDM=   .94E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7177        5.4920        .16242E-06   -.84843E-04
   2  norm          .10000E-03    8.4059       -.41447E-07** at limit **
   3  norm          .10000E-03    .82014        .27110E-06** at limit **
   4  Prefactor     5.0263        4.1464        .54113E-06   -.98646E-04
   5  Prefactor     .10000E-03    10.150       -.18996E-06** at limit **
   6  norm          .10000E-03    3.6918       -.22829E-06** at limit **
   7  Prefactor     19.993        63.857       -.42489E-05   -.40933E-04
   8  Prefactor     .10000E-03    7.9730        .24568E-07** at limit **
   9  Prefactor     .10000E-03    23.778        .85630E-06** at limit **
  10  Prefactor     .10000E-03    1.5235        .16470E-06** at limit **
  11  Prefactor     1.3156        3.8555        .14285E-06   -.16866E-03
  12  norm          3.2399        2.7646       -.15286E-06   -.27592E-03
  13  norm          5.1870        4.9750        .14010E-06   -.92453E-04
  14  norm          5.4600        4.8583       -.36068E-07   -.11995E-03
  15  Prefactor     .10000E-03    2.7225       -.18428E-06** at limit **
  16  Prefactor     5.2785        14.880       -.67595E-06   -.49617E-04
  17  Prefactor     .10000E-03    6.6019        .85001E-07** at limit **
  18  norm          11.226        6.5385        .99515E-07   -.68940E-04
  19  Prefactor     .10000E-03    28.134       -.47054E-07** at limit **
  20  norm          3.4849        1.4044       -.15538E-07   -.24082E-03
  21  Prefactor     .10000E-03    3.1171        .20831E-06** at limit **
  22  norm          5.5695        5.5580        .15300E-06    .68757E-04
  23  norm          .19519        249.01        .26358E-05   -.60812E-05
  24  Prefactor     22.677        19.140       -.32322E-07   -.32476E-04
  25  Prefactor     .10000E-03    24.898       -.12613E-05** at limit **
  26  Prefactor     1.9268        18.227       -.68890E-06   -.44526E-04
  27  Prefactor     .10000E-03    125.87       -.33519E-05** at limit **
  28  Prefactor     .10000E-03    55.842        .39805E-06** at limit **
  29  Normalizat    1.1676        .27018       -.51810E-05   -.86627E-04
  30  Prefactor     .79882        .18025        .35898E-05   -.17479E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.71774
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.02627
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.9926
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.31565
  norm       = 3.23988
  norm       = 5.18697
  norm       = 5.46002
  Prefactor  = 0.0001
  Prefactor  = 5.27847
  Prefactor  = 0.0001
  norm       = 11.2261
  Prefactor  = 0.0001
  norm       = 3.48487
  Prefactor  = 0.0001
  norm       = 5.56951
  norm       = 0.195193
  Prefactor  = 22.6773
  Prefactor  = 0.0001
  Prefactor  = 1.92679
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.16762
  Prefactor  = 0.798819
 **********
 **   18 **HESSE 
 **********

 FCN=   4965.374     FROM HESSE     STATUS=OK           598 CALLS     4574 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7177        5.4885        .12148E-03   -1.5152    
   2  norm          .10000E-03    8.4316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.0819        .11962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.0263        4.0354        .10967E-03   -1.5260    
   5  Prefactor     .10000E-03    10.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.7275        .13215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.993        64.878        .89036E-04   -1.4813    
   8  Prefactor     .10000E-03    7.9739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    23.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    24.349        .15892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.3156        3.8542        .22127E-03   -1.5479    
  12  norm          3.2399        2.7468        .99719E-04   -1.5348    
  13  norm          5.1870        4.9440        .13795E-03   -1.5252    
  14  norm          5.4600        4.8511        .13181E-03   -1.5241    
  15  Prefactor     .10000E-03    2.7281        .11346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.2785        14.823        .17494E-03   -1.5248    
  17  Prefactor     .10000E-03    6.6061        .17674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          11.226        6.5357        .11956E-03   -1.5038    
  19  Prefactor     .10000E-03    28.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.4849        1.4023        .50561E-04   -1.5335    
  21  Prefactor     .10000E-03    3.1963        .12157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.5695        5.5688        .16221E-03   -1.5236    
  23  norm          .19519        16.483        .83233E-01   -1.5620    
  24  Prefactor     22.677        19.152        .84094E-04   -1.4755    
  25  Prefactor     .10000E-03    25.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.9268        18.297        .29871E-03   -1.5430    
  27  Prefactor     .10000E-03    126.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    56.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1676        .27836        .27730E-03   -.87609    
  30  Prefactor     .79882        .18460        .22982E-03   -.99772    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.2941e-10
Minuit parameter uncertainties:
  1  5.48883
  2  1.45679e-06
  3  1.1133e-05
  4  4.03563
  5  1.52451e-05
  6  1.23606e-05
  7  65.1086
  8  1.64242e-06
  9  7.87139e-05
  10  0.000294038
  11  3.85497
  12  2.74688
  13  4.94435
  14  4.85143
  15  2.29723e-07
  16  14.8332
  17  6.80196e-06
  18  6.53616
  19  2.4158e-05
  20  1.40234
  21  1.30594e-05
  22  5.56934
  23  3.5875
  24  19.1571
  25  6.83352e-05
  26  11.8796
  27  0.000415376
  28  1.29256e-05
  29  0.278716
  30  0.184748
Done.

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

Extracting fit parameters...

4FGL J0538.8-4405
   Spectrum: LogParabola
306         norm:  3.485e+00  1.402e+00  1.000e-04  1.000e+04 ( 1.000e-11)
307        alpha:  2.018e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
308         beta:  6.200e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
309           Eb:  6.207e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
633    Prefactor:  7.988e-01  1.847e-01  0.000e+00  1.000e+01 ( 1.000e+00)
634        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
635        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
632   Normalization:  1.168e+00  2.787e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.20
Ra Dec: 84.709 -44.086
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 1.24e-07 +/- 4.97e-08
Energy Flux (Fixed Index): 6.60e-05 +/- 2.66e-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) = 4965.13129569
delta logL = 0.242459682397

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4965.10723021
delta logL = 0.266525160545

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4965.107     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      201 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3368        24.339        .55393E-02    .11209E-02
   2  alpha         2.2813        3.5518        .21016        .72435E-04
   3  Normalizat    1.1373        .25226        .63364E-01   -.42484E-04
   4  Prefactor     .81139        .18229        .43865E-01    .34401E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.33684
  alpha      = 2.28131
  Normalizat = 1.13733
  Prefactor  = 0.811386
 **********
 **   18 **HESSE 
 **********

 FCN=   4965.107     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3368        1.3669        .46931E-04   -1.5343    
   2  alpha         2.2813        .36977        .88173E-02   -.87590E-01
   3  Normalizat    1.1373        .25799        .28028E-03   -.88562    
   4  Prefactor     .81139        .17924        .22814E-03   -.99310    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26892e-10
Minuit parameter uncertainties:
  1  1.36688
  2  0.37114
  3  0.258274
  4  0.179372
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/681994': 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) = 4965.10723021
delta logL = 0.266525161692

Extracting fit parameters...

4FGL J0538.8-4405
   Spectrum: LogParabola
306         norm:  3.337e+00  1.367e+00  1.000e-04  1.000e+04 ( 1.000e-11)
307        alpha:  2.281e+00  3.711e-01  0.000e+00  5.000e+00 ( 1.000e+00)
308         beta:  6.200e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
309           Eb:  6.207e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
633    Prefactor:  8.114e-01  1.794e-01  0.000e+00  1.000e+01 ( 1.000e+00)
634        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
635        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
632   Normalization:  1.137e+00  2.583e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.63
Ra Dec: 84.709 -44.086
Photon Index (Free Index): 2.28 +/- 0.37
Photon Flux (Free Index): 1.51e-07 +/- 6.73e-08
Energy Flux (Free Index): 5.45e-05 +/- 2.44e-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/681994/cmap_HighResolution_407548801_407808001_4FGL_J0538.8-4405_daily_bin649.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.24e-07', energy_flux2='5.45e-05', photon_flux_error='4.97e-08', dlogl='2.67e-01', energy_flux='6.60e-05', photon_flux2='1.51e-07', job_status='DONE', time_completed='2021-08-23 13:17:41.208820', photon_index_error2='0.37', photon_index2='2.28', ts='18.20', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='2.44e-05', EG='1.17', time_epoch_completed='1629749861.21', return_code='0', job_id='681994', GAL2='0.81', EG2='1.14', return_code2='0', energy_flux_error='2.66e-05', photon_flux_error2='6.73e-08', ts2='18.63', photon_index='2.02' WHERE bin_id='649' AND source_name='4FGL J0538.8-4405' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 13:17:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 681994: <4FGL_J0538.8-4405_daily_bin649> in cluster <slac> Done

Job <4FGL_J0538.8-4405_daily_bin649> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 23 13:05:34 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 23 13:05:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 23 13:05:35 2021
Terminated at Mon Aug 23 13:17:42 2021
Results reported at Mon Aug 23 13:17:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0538.8-4405_daily_bin649 84.7089 -44.0862 407548801 407808001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0538.8-4405 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   705.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             350.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   726 sec.
    Turnaround time :                            728 sec.

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

