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


Performing analysis on: 4FGL_J0538.2-3910_daily_bin1584
RA = 84.5746, Dec = -39.1696
tmin = 649900801, tmax = 650160001
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='677179', job_status='RUN', time_executed='2021-08-23 12:51:45.254549', time_epoch_executed='1629748305.25' WHERE source_name='4FGL J0538.2-3910' and cadence='daily' and bin_id='1584'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/677179

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/677179/ft1_4FGL_J0538.2-3910_daily_bin1584.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/677179/ft2_4FGL_J0538.2-3910_daily_bin1584.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/677179/ft1_4FGL_J0538.2-3910_daily_bin1584.fits outfile=/scratch/kocevski/677179/ft1_filteredMKT_4FGL_J0538.2-3910_daily_bin1584.fits ra=84.5746 dec=-39.1696 rad=12.0 tmin=649900801.0 tmax=650160001.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.02
user 4.78
sys 2.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/677179/ft2_4FGL_J0538.2-3910_daily_bin1584.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/677179/ft2_4FGL_J0538.2-3910_daily_bin1584.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/677179/ft1_filteredMKT_4FGL_J0538.2-3910_daily_bin1584.fits evtable="EVENTS" outfile="/scratch/kocevski/677179/ft1_filtered_4FGL_J0538.2-3910_daily_bin1584.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 2.44
user 0.35
sys 2.07

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/677179/ft1_filtered_4FGL_J0538.2-3910_daily_bin1584.fits" evtable="EVENTS" scfile=/scratch/kocevski/677179/ft2_4FGL_J0538.2-3910_daily_bin1584.fits sctable="SC_DATA" outfile=/scratch/kocevski/677179/ltcube_649900801_650160001_4FGL_J0538.2-3910_daily_bin1584.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/677179/ft2_4FGL_J0538.2-3910_daily_bin1584.fits
.....................!
real 13.88
user 11.37
sys 2.47

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/677179/ft1_filtered_4FGL_J0538.2-3910_daily_bin1584.fits evtable="EVENTS" scfile=/scratch/kocevski/677179/ft2_4FGL_J0538.2-3910_daily_bin1584.fits sctable="SC_DATA" expcube=/scratch/kocevski/677179/ltcube_649900801_650160001_4FGL_J0538.2-3910_daily_bin1584.fits outfile=/scratch/kocevski/677179/expmap_649900801_650160001_4FGL_J0538.2-3910_daily_bin1584.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/677179/ltcube_649900801_650160001_4FGL_J0538.2-3910_daily_bin1584.fits
.....................!
real 192.38
user 184.64
sys 7.37

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

Setting source of interest to:
4FGL J0538.2-3910 @ 84.5746 -39.1696

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/677179/ft1_filtered_4FGL_J0538.2-3910_daily_bin1584.fits scfile=/scratch/kocevski/677179/ft2_4FGL_J0538.2-3910_daily_bin1584.fits outfile=/scratch/kocevski/677179/cmap_649900801_650160001_4FGL_J0538.2-3910_daily_bin1584.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.5746 yref=-39.1696 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 2.47
user 0.37
sys 2.08

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/677179/ft1_filtered_4FGL_J0538.2-3910_daily_bin1584.fits scfile=/scratch/kocevski/677179/ft2_4FGL_J0538.2-3910_daily_bin1584.fits outfile=/scratch/kocevski/677179/cmap_HighResolution_649900801_650160001_4FGL_J0538.2-3910_daily_bin1584.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.5746 yref=-39.1696 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 2.45
user 0.37
sys 2.06

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/677179/ft1_filtered_4FGL_J0538.2-3910_daily_bin1584.fits evtable="EVENTS" scfile=/scratch/kocevski/677179/ft2_4FGL_J0538.2-3910_daily_bin1584.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/677179/Model_4FGL_J0538.2-3910_daily_bin1584.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/677179/ft1_filtered_4FGL_J0538.2-3910_daily_bin1584.fits.....................!
real 71.09
user 67.26
sys 3.69

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/677179/ft1_filtered_4FGL_J0538.2-3910_daily_bin1584.fits', '/scratch/kocevski/677179/ft2_4FGL_J0538.2-3910_daily_bin1584.fits', expMap='/scratch/kocevski/677179/expmap_649900801_650160001_4FGL_J0538.2-3910_daily_bin1584.fits', expCube='/scratch/kocevski/677179/ltcube_649900801_650160001_4FGL_J0538.2-3910_daily_bin1584.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/677179/Model_4FGL_J0538.2-3910_daily_bin1584.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0538.2-3910'

4FGL J0538.2-3910
   Spectrum: PowerLaw
299    Prefactor:  1.828e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
300        Index:  1.964e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  3.147e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/677179/ft1_filtered_4FGL_J0538.2-3910_daily_bin1584.fits
Spacecraft file(s): /scratch/kocevski/677179/ft2_4FGL_J0538.2-3910_daily_bin1584.fits
Exposure map: /scratch/kocevski/677179/expmap_649900801_650160001_4FGL_J0538.2-3910_daily_bin1584.fits
Exposure cube: /scratch/kocevski/677179/ltcube_649900801_650160001_4FGL_J0538.2-3910_daily_bin1584.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/677179/Model_4FGL_J0538.2-3910_daily_bin1584.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) = 6307.39149451

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.708       1.0000         .10000E-03   10000.    
     2 'norm      '    1.1244       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1478       1.0000         .10000E-03   10000.    
     5 'norm      '    7.7590       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.6231       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10816E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14837E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.2498       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17403E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.4402       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .34973E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    1.2804       1.0000         .10000E-03   10000.    
    14 'norm      '    4.6673       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.115       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11339E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.8321       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10935E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.5821       1.0000         .10000E-03   10000.    
    21 'norm      '    3.1396       1.0000         .10000E-03   10000.    
    22 'norm      '    .39090E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .16938E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    30.262       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .17878E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .84989E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .16994E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1390       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0961       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6306.477     FROM MIGRAD    STATUS=CONVERGED    861 CALLS     3028 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.702        13.537        .25407E-06    .12407E-03
   2  norm          1.1243        1.3044       -.39747E-07    .33963E-03
   3  Prefactor     .10000E-03    1.7268       -.42087E-06** at limit **
   4  Prefactor     1.1115        194.57       -.68531E-05    .21297E-04
   5  norm          7.7599        9.5730        .20395E-05    .79818E-04
   6  Prefactor     9.7879        103.14        .18862E-05    .14900E-04
   7  Prefactor     .10000E-03    4.8749       -.19077E-07** at limit **
   8  Prefactor     .10000E-03    20.232        .42634E-05** at limit **
   9  Prefactor     7.2529        3.3303       -.31697E-07    .83768E-06
  10  Prefactor     .10000E-03    3.1016        .30897E-06** at limit **
  11  norm          9.4365        3.5437        .66851E-07   -.37584E-03
  12  Prefactor     .10000E-03    46.257       -.79140E-06** at limit **
  13  norm          1.2842        4.9542        .12883E-05   -.12864E-03
  14  norm          4.6692        4.5022       -.31204E-06   -.11582E-03
  15  Prefactor     .10000E-03    3.6380        .43733E-07** at limit **
  16  Prefactor     21.140        18.335        .12552E-06   -.14598E-04
  17  Prefactor     .10000E-03    8.4497        .32916E-06** at limit **
  18  norm          1.8824        6.1167        .11179E-06   -.19657E-03
  19  Prefactor     .10000E-03    13.050       -.10279E-05** at limit **
  20  norm          7.5835        1.7725        .47676E-08   -.32143E-04
  21  norm          3.1412        2.7905        .94658E-06   -.90901E-03
  22  norm          .10000E-03    7.7049       -.14745E-06** at limit **
  23  Prefactor     .10000E-03    65.474        .66263E-05** at limit **
  24  Prefactor     30.359        21.212       -.22372E-05   -.24421E-03
  25  Prefactor     .10000E-03    79.147       -.80049E-05** at limit **
  26  Prefactor     .10000E-03    6.7926       -.63848E-06** at limit **
  27  norm          .10000E-03    14.325        .49708E-05** at limit **
  28  Prefactor     .10000E-03    9.3599       -.84299E-06** at limit **
  29  Prefactor     .10000E-03    4.6911       -.26460E-07** at limit **
  30  Normalizat    1.1374        .24975       -.47224E-06    .22685E-04
  31  Prefactor     1.0966        .16915        .34518E-06   -.36547E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 16.7019
  norm       = 1.12427
  Prefactor  = 0.000100001
  Prefactor  = 1.1115
  norm       = 7.75987
  Prefactor  = 9.78788
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 7.25292
  Prefactor  = 0.000100001
  norm       = 9.43651
  Prefactor  = 0.0001
  norm       = 1.28416
  norm       = 4.66917
  Prefactor  = 0.0001
  Prefactor  = 21.1404
  Prefactor  = 0.0001
  norm       = 1.88235
  Prefactor  = 0.0001
  norm       = 7.58352
  norm       = 3.14117
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 30.3585
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.13745
  Prefactor  = 1.09656
 **********
 **   18 **HESSE 
 **********

 FCN=   6306.477     FROM HESSE     STATUS=OK           624 CALLS     3652 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.702        13.422        .97985E-04   -1.4890    
   2  norm          1.1243        1.2557        .91143E-04   -1.5496    
   3  Prefactor     .10000E-03    18.073        .18606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1115        158.81        .43250E-03   -1.5497    
   5  norm          7.7599        8.7549        .14396E-03   -1.5151    
   6  Prefactor     9.7879        103.78        .13651E-03   -1.5082    
   7  Prefactor     .10000E-03    4.9027        .17120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    20.410        .20479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.2529        3.3253        .92218E-04   -1.5169    
  10  Prefactor     .10000E-03    6.6983        .26360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.4365        3.4984        .42139E-03   -1.5093    
  12  Prefactor     .10000E-03    46.375        .19656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2842        4.7979        .28547E-03   -1.5481    
  14  norm          4.6692        4.3598        .13804E-03   -1.5276    
  15  Prefactor     .10000E-03    3.6541        .14781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     21.140        18.246        .87166E-04   -1.4788    
  17  Prefactor     .10000E-03    8.4574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.8824        6.1059        .30831E-03   -1.5434    
  19  Prefactor     .10000E-03    13.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.5835        1.7736        .48515E-04   -1.5157    
  21  norm          3.1412        2.8078        .59900E-03   -1.5353    
  22  norm          .10000E-03    7.7374        .21274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    66.417        .20372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     30.359        21.421        .72833E-04   -1.4605    
  25  Prefactor     .10000E-03    80.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    6.8147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    14.585        .20866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    9.3696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    4.7959        .16795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.1374        .29110        .32776E-03   -.88558    
  31  Prefactor     1.0966        .19842        .24770E-03   -.89577    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.9995e-10
Minuit parameter uncertainties:
  1  13.4243
  2  1.25576
  3  0.000208522
  4  26.6426
  5  8.75634
  6  63.8837
  7  2.11558e-06
  8  0.000305629
  9  3.32535
  10  0.000141427
  11  3.49849
  12  0.000138668
  13  4.79935
  14  4.3601
  15  1.09114e-06
  16  18.2508
  17  1.78797e-05
  18  6.10796
  19  6.162e-05
  20  1.7736
  21  2.80791
  22  6.25786e-06
  23  0.000828691
  24  21.4265
  25  0.00118363
  26  1.08123e-05
  27  0.000305718
  28  3.98218e-05
  29  1.85748e-07
  30  0.291509
  31  0.198551
Done.

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

Extracting fit parameters...

4FGL J0538.2-3910
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  6.162e-05  1.000e-04  1.000e+04 ( 1.000e-14)
300        Index:  1.964e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  3.147e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
637    Prefactor:  1.097e+00  1.986e-01  0.000e+00  1.000e+01 ( 1.000e+00)
638        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
639        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
636   Normalization:  1.137e+00  2.915e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 84.575 -39.170
Photon Flux Upper Limit: 5.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/677179/likelihoodResults_649900801_650160001_4FGL_J0538.2-3910_daily_bin1584.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): 102
logL (Free Index) = 6306.47770729
delta logL = -0.000363066262253

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6306.47734566
delta logL = -1.43598572322e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6306.477     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      249 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10082E-03    85.109        .18142E-02** at limit **
   2  Index         1.8980        8.9999        .50000        .11765E-04
   3  Normalizat    1.1374        .14887E-01    .32776E-03    .32293E-04
   4  Prefactor     1.0966        .11132E-01    .24770E-03    .51037E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100818
  Index      = 1.89798
  Normalizat = 1.13745
  Prefactor  = 1.09656
 **********
 **   18 **HESSE 
 **********

 FCN=   6306.477     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10082E-03    385.89        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8980        7.1184        .50000       -.66926    
   3  Normalizat    1.1374        .32639E-01    .13110E-04   -.88558    
   4  Prefactor     1.0966        .24405E-01    .99080E-05   -.89576    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.75505e-09
Minuit parameter uncertainties:
  1  0.0357647
  2  454.094
  3  0.03264
  4  0.0244055
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/677179': 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) = 6306.47734404
delta logL = 1.84380041901e-07

Extracting fit parameters...

4FGL J0538.2-3910
   Spectrum: PowerLaw
299    Prefactor:  1.008e-04  3.576e-02  1.000e-04  1.000e+04 ( 1.000e-14)
300        Index:  1.898e+00  4.541e+02  0.000e+00  1.000e+01 (-1.000e+00)
301        Scale:  3.147e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
637    Prefactor:  1.097e+00  2.441e-02  0.000e+00  1.000e+01 ( 1.000e+00)
638        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
639        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
636   Normalization:  1.137e+00  3.264e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 84.575 -39.170

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/677179/cmap_HighResolution_649900801_650160001_4FGL_J0538.2-3910_daily_bin1584.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.40e-03', job_status='DONE', photon_flux_upper_limit='5.88e-08', time_completed='2021-08-23 13:06:44.719863', job_id='677179', GAL2='1.10', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1629749204.72', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='1.84e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1584' AND source_name='4FGL J0538.2-3910' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 13:06:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 677179: <4FGL_J0538.2-3910_daily_bin1584> in cluster <slac> Done

Job <4FGL_J0538.2-3910_daily_bin1584> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Aug 23 12:50:38 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 23 12:50:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 23 12:50:38 2021
Terminated at Mon Aug 23 13:06:45 2021
Results reported at Mon Aug 23 13:06:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0538.2-3910_daily_bin1584 84.5746 -39.1696 649900801 650160001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0538.2-3910 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   922.06 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             346.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   967 sec.
    Turnaround time :                            967 sec.

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

