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


Performing analysis on: 4FGL_J0538.2-3910_daily_bin1125
RA = 84.5746, Dec = -39.1696
tmin = 530928001, tmax = 531187201
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='673239', job_status='RUN', time_executed='2021-08-23 12:41:12.533403', time_epoch_executed='1629747672.53' WHERE source_name='4FGL J0538.2-3910' and cadence='daily' and bin_id='1125'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/673239

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/673239/ft1_4FGL_J0538.2-3910_daily_bin1125.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/673239/ft2_4FGL_J0538.2-3910_daily_bin1125.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/673239/ft1_4FGL_J0538.2-3910_daily_bin1125.fits outfile=/scratch/kocevski/673239/ft1_filteredMKT_4FGL_J0538.2-3910_daily_bin1125.fits ra=84.5746 dec=-39.1696 rad=12.0 tmin=530928001.0 tmax=531187201.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 4.02
user 3.41
sys 0.55

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/673239/ft2_4FGL_J0538.2-3910_daily_bin1125.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/673239/ft1_filteredMKT_4FGL_J0538.2-3910_daily_bin1125.fits evtable="EVENTS" outfile="/scratch/kocevski/673239/ft1_filtered_4FGL_J0538.2-3910_daily_bin1125.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.90
user 0.33
sys 0.51

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/673239/ft1_filtered_4FGL_J0538.2-3910_daily_bin1125.fits" evtable="EVENTS" scfile=/scratch/kocevski/673239/ft2_4FGL_J0538.2-3910_daily_bin1125.fits sctable="SC_DATA" outfile=/scratch/kocevski/673239/ltcube_530928001_531187201_4FGL_J0538.2-3910_daily_bin1125.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/673239/ft2_4FGL_J0538.2-3910_daily_bin1125.fits
.....................!
real 12.61
user 11.88
sys 0.69

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/673239/ft1_filtered_4FGL_J0538.2-3910_daily_bin1125.fits evtable="EVENTS" scfile=/scratch/kocevski/673239/ft2_4FGL_J0538.2-3910_daily_bin1125.fits sctable="SC_DATA" expcube=/scratch/kocevski/673239/ltcube_530928001_531187201_4FGL_J0538.2-3910_daily_bin1125.fits outfile=/scratch/kocevski/673239/expmap_530928001_531187201_4FGL_J0538.2-3910_daily_bin1125.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/673239/ltcube_530928001_531187201_4FGL_J0538.2-3910_daily_bin1125.fits
.....................!
real 190.28
user 185.22
sys 4.62

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/673239/ft1_filtered_4FGL_J0538.2-3910_daily_bin1125.fits scfile=/scratch/kocevski/673239/ft2_4FGL_J0538.2-3910_daily_bin1125.fits outfile=/scratch/kocevski/673239/cmap_530928001_531187201_4FGL_J0538.2-3910_daily_bin1125.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 0.89
user 0.38
sys 0.49

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/673239/ft1_filtered_4FGL_J0538.2-3910_daily_bin1125.fits scfile=/scratch/kocevski/673239/ft2_4FGL_J0538.2-3910_daily_bin1125.fits outfile=/scratch/kocevski/673239/cmap_HighResolution_530928001_531187201_4FGL_J0538.2-3910_daily_bin1125.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 0.91
user 0.36
sys 0.52

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/673239/ft1_filtered_4FGL_J0538.2-3910_daily_bin1125.fits evtable="EVENTS" scfile=/scratch/kocevski/673239/ft2_4FGL_J0538.2-3910_daily_bin1125.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/673239/Model_4FGL_J0538.2-3910_daily_bin1125.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/673239/ft1_filtered_4FGL_J0538.2-3910_daily_bin1125.fits.....................!
real 63.40
user 61.49
sys 1.65

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/673239/ft1_filtered_4FGL_J0538.2-3910_daily_bin1125.fits', '/scratch/kocevski/673239/ft2_4FGL_J0538.2-3910_daily_bin1125.fits', expMap='/scratch/kocevski/673239/expmap_530928001_531187201_4FGL_J0538.2-3910_daily_bin1125.fits', expCube='/scratch/kocevski/673239/ltcube_530928001_531187201_4FGL_J0538.2-3910_daily_bin1125.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/673239/Model_4FGL_J0538.2-3910_daily_bin1125.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/673239/ft1_filtered_4FGL_J0538.2-3910_daily_bin1125.fits
Spacecraft file(s): /scratch/kocevski/673239/ft2_4FGL_J0538.2-3910_daily_bin1125.fits
Exposure map: /scratch/kocevski/673239/expmap_530928001_531187201_4FGL_J0538.2-3910_daily_bin1125.fits
Exposure cube: /scratch/kocevski/673239/ltcube_530928001_531187201_4FGL_J0538.2-3910_daily_bin1125.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/673239/Model_4FGL_J0538.2-3910_daily_bin1125.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) = 5648.20816307

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    45.823       1.0000         .10000E-03   10000.    
     2 'norm      '    2.8282       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    14.363       1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.117       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.611       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.9912       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.2345       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.0287       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.7846       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .28735E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    1.1677       1.0000         .10000E-03   10000.    
    22 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11108E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    29.305       1.0000         .10000E-03   10000.    
    25 'Prefactor '    16.352       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.6753       1.0000         .10000E-03   10000.    
    27 'norm      '    81.091       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0340       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .96094       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=   5648.157     FROM MIGRAD    STATUS=CONVERGED    789 CALLS     4178 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          45.823        22.578       -.13424E-05   -.87697E-05
   2  norm          2.8282        1.9229       -.18837E-06   -.65778E-04
   3  Prefactor     .10000E-03    2.1196       -.21976E-06** at limit **
   4  Prefactor     .10000E-03    16.213       -.16296E-05** at limit **
   5  norm          14.363        7.5480       -.84079E-07   -.11964E-04
   6  Prefactor     22.156        70.925        .71039E-04    .26131E-05
   7  Prefactor     10.613        9.1552        .44437E-06   -.11166E-03
   8  Prefactor     .10000E-03    17.785       -.10320E-04** at limit **
   9  Prefactor     1.9914        2.0666        .66332E-08   -.32390E-03
  10  Prefactor     .10000E-03    4.3231        .51082E-06** at limit **
  11  norm          9.2342        3.4653        .64155E-07   -.29482E-03
  12  Prefactor     .10000E-03    12.751        .12662E-04** at limit **
  13  norm          .10000E-03    1.2137        .30805E-07** at limit **
  14  norm          .10000E-03    .89837       -.70194E-08** at limit **
  15  Prefactor     7.0301        7.9470        .22338E-06   -.18334E-03
  16  Prefactor     .10000E-03    5.1942       -.87083E-06** at limit **
  17  Prefactor     .10000E-03    24.061        .12028E-04** at limit **
  18  norm          9.7857        6.3400       -.50485E-06   -.96375E-03
  19  Prefactor     .10000E-03    10.987       -.67525E-05** at limit **
  20  norm          .26657E-01    .46514       -.18846E-07   -.87677E-04
  21  norm          1.1676        1.8692        .11919E-06   -.49796E-03
  22  norm          .10000E-03    6.0183        .96376E-06** at limit **
  23  Prefactor     .10001E-03    78.332       -.10598E-05** at limit **
  24  Prefactor     29.307        31.785        .19078E-05   -.14607E-04
  25  Prefactor     16.344        43.503       -.97699E-05   -.17446E-05
  26  Prefactor     7.6751        23.014       -.25271E-06   -.47185E-04
  27  norm          81.099        41.125        .56207E-05    .21972E-05
  28  Prefactor     .10000E-03    22.298       -.39532E-05** at limit **
  29  Prefactor     .10000E-03    4.1819       -.39298E-06** at limit **
  30  Normalizat    1.0337        .24030       -.45206E-05    .14744E-04
  31  Prefactor     .96117        .16458       -.94942E-07   -.16500E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 45.8226
  norm       = 2.82822
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.3633
  Prefactor  = 22.1564
  Prefactor  = 10.6127
  Prefactor  = 0.0001
  Prefactor  = 1.99138
  Prefactor  = 0.0001
  norm       = 9.23419
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.03009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.7857
  Prefactor  = 0.0001
  norm       = 0.026657
  norm       = 1.16756
  norm       = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 29.3066
  Prefactor  = 16.344
  Prefactor  = 7.67514
  norm       = 81.099
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.03368
  Prefactor  = 0.961172
 **********
 **   18 **HESSE 
 **********

 FCN=   5648.157     FROM HESSE     STATUS=OK           622 CALLS     4800 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          45.823        22.566        .59230E-04   -1.4353    
   2  norm          2.8282        1.9230        .81196E-04   -1.5372    
   3  Prefactor     .10000E-03    2.1401        .10652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          14.363        7.5445        .10569E-03   -1.4950    
   6  Prefactor     22.156        70.750        .85170E-04   -1.4766    
   7  Prefactor     10.613        9.2074        .12300E-03   -1.5056    
   8  Prefactor     .10000E-03    17.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.9914        2.0520        .10546E-03   -1.5426    
  10  Prefactor     .10000E-03    4.3955        .30383E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.2342        3.4653        .80297E-04   -1.5100    
  12  Prefactor     .10000E-03    12.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.2181        .80848E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .90007        .69561E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.0301        7.9515        .15132E-03   -1.5178    
  16  Prefactor     .10000E-03    5.1975        .16725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    24.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.7857        6.3206        .12811E-03   -1.5082    
  19  Prefactor     .10000E-03    10.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .26657E-01    4.8428        .97943E-03   -1.5675    
  21  norm          1.1676        1.8242        .12507E-03   -1.5492    
  22  norm          .10000E-03    6.0318        .18007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    78.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     29.307        31.377        .74011E-04   -1.4625    
  25  Prefactor     16.344        43.376        .99047E-04   -1.4899    
  26  Prefactor     7.6751        22.683        .14475E-03   -1.5154    
  27  norm          81.099        41.125        .44601E-04   -1.3904    
  28  Prefactor     .10000E-03    22.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    4.1959        .15005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0337        .28019        .30831E-03   -.91910    
  31  Prefactor     .96117        .19348        .23475E-03   -.94035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83085e-08
Minuit parameter uncertainties:
  1  22.5705
  2  1.92309
  3  2.91457e-05
  4  1.38995e-05
  5  7.545
  6  71.02
  7  9.20865
  8  5.77132e-05
  9  2.05208
  10  1.61753e-05
  11  3.46533
  12  9.14572e-06
  13  2.88422e-06
  14  1.65358e-06
  15  7.95269
  16  4.41389e-06
  17  0.000118664
  18  6.32108
  19  6.87429e-06
  20  0.717303
  21  1.82425
  22  6.13482e-06
  23  0.00136597
  24  31.3949
  25  43.4593
  26  22.7082
  27  41.1391
  28  3.54222e-05
  29  1.0885e-05
  30  0.280594
  31  0.193616
Done.

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

Extracting fit parameters...

4FGL J0538.2-3910
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  6.874e-06  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:  9.612e-01  1.936e-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.034e+00  2.806e-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.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/673239/likelihoodResults_530928001_531187201_4FGL_J0538.2-3910_daily_bin1125.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) = 5648.15759559
delta logL = -0.000431776661571

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5648.1571638
delta logL = 8.03902366897e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9437       1.0000          .0000       10.000    
     3 'Normalizat'    1.0336       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96122       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=   5648.157     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      243 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10267E-03    2.2397        .18142E-01** at limit **
   2  Index         1.8423        5.6162        .50000        .11242E-04
   3  Normalizat    1.0337        .24514E-02    .30831E-03    .42405E-05
   4  Prefactor     .96117        .18179E-02    .23475E-03    .47460E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010267
  Index      = 1.84231
  Normalizat = 1.03368
  Prefactor  = 0.961174
 **********
 **   18 **HESSE 
 **********

 FCN=   5648.157     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10267E-03    105.29        .25444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8423        5.8619        .50000       -.68354    
   3  Normalizat    1.0337        .16975E-01    .12332E-04   -.91911    
   4  Prefactor     .96117        .12588E-01    .93901E-05   -.94035    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.18436e-08
Minuit parameter uncertainties:
  1  0.033594
  2  538.474
  3  0.0169752
  4  0.012588
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/673239': 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) = 5648.15716353
delta logL = 2.83362169284e-07

Extracting fit parameters...

4FGL J0538.2-3910
   Spectrum: PowerLaw
299    Prefactor:  1.027e-04  3.359e-02  1.000e-04  1.000e+04 ( 1.000e-14)
300        Index:  1.842e+00  5.385e+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:  9.612e-01  1.259e-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.034e+00  1.698e-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/673239/cmap_HighResolution_530928001_531187201_4FGL_J0538.2-3910_daily_bin1125.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.81e-03', job_status='DONE', photon_flux_upper_limit='5.09e-08', time_completed='2021-08-23 12:55:56.245396', job_id='673239', GAL2='0.96', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1629748556.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.83e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1125' AND source_name='4FGL J0538.2-3910' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 12:55:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 673239: <4FGL_J0538.2-3910_daily_bin1125> in cluster <slac> Done

Job <4FGL_J0538.2-3910_daily_bin1125> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 23 12:40:44 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 23 12:40:45 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:40:45 2021
Terminated at Mon Aug 23 12:55:57 2021
Results reported at Mon Aug 23 12:55:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0538.2-3910_daily_bin1125 84.5746 -39.1696 530928001 531187201 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 :                                   885.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             345.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            913 sec.

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

