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


Performing analysis on: 4FGL_J0538.8-4405_daily_bin470
RA = 84.7089, Dec = -44.0862
tmin = 361152001, tmax = 361411201
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='680429', job_status='RUN', time_executed='2021-08-23 13:02:09.034084', time_epoch_executed='1629748929.03' WHERE source_name='4FGL J0538.8-4405' and cadence='daily' and bin_id='470'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/680429

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/680429/ft1_4FGL_J0538.8-4405_daily_bin470.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/680429/ft2_4FGL_J0538.8-4405_daily_bin470.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/680429/ft1_4FGL_J0538.8-4405_daily_bin470.fits outfile=/scratch/kocevski/680429/ft1_filteredMKT_4FGL_J0538.8-4405_daily_bin470.fits ra=84.7089 dec=-44.0862 rad=12.0 tmin=361152001.0 tmax=361411201.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.90
user 3.31
sys 4.51

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/680429/ft2_4FGL_J0538.8-4405_daily_bin470.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/680429/ft1_filteredMKT_4FGL_J0538.8-4405_daily_bin470.fits evtable="EVENTS" outfile="/scratch/kocevski/680429/ft1_filtered_4FGL_J0538.8-4405_daily_bin470.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 4.87
user 0.33
sys 4.48

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/680429/ft1_filtered_4FGL_J0538.8-4405_daily_bin470.fits" evtable="EVENTS" scfile=/scratch/kocevski/680429/ft2_4FGL_J0538.8-4405_daily_bin470.fits sctable="SC_DATA" outfile=/scratch/kocevski/680429/ltcube_361152001_361411201_4FGL_J0538.8-4405_daily_bin470.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/680429/ft2_4FGL_J0538.8-4405_daily_bin470.fits
.....................!
real 16.97
user 11.74
sys 5.19

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/680429/ft1_filtered_4FGL_J0538.8-4405_daily_bin470.fits evtable="EVENTS" scfile=/scratch/kocevski/680429/ft2_4FGL_J0538.8-4405_daily_bin470.fits sctable="SC_DATA" expcube=/scratch/kocevski/680429/ltcube_361152001_361411201_4FGL_J0538.8-4405_daily_bin470.fits outfile=/scratch/kocevski/680429/expmap_361152001_361411201_4FGL_J0538.8-4405_daily_bin470.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/680429/ltcube_361152001_361411201_4FGL_J0538.8-4405_daily_bin470.fits
.....................!
real 196.23
user 185.56
sys 10.32

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/680429/ft1_filtered_4FGL_J0538.8-4405_daily_bin470.fits scfile=/scratch/kocevski/680429/ft2_4FGL_J0538.8-4405_daily_bin470.fits outfile=/scratch/kocevski/680429/cmap_361152001_361411201_4FGL_J0538.8-4405_daily_bin470.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 4.81
user 0.37
sys 4.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/680429/ft1_filtered_4FGL_J0538.8-4405_daily_bin470.fits scfile=/scratch/kocevski/680429/ft2_4FGL_J0538.8-4405_daily_bin470.fits outfile=/scratch/kocevski/680429/cmap_HighResolution_361152001_361411201_4FGL_J0538.8-4405_daily_bin470.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 6.88
user 0.37
sys 4.42

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/680429/ft1_filtered_4FGL_J0538.8-4405_daily_bin470.fits evtable="EVENTS" scfile=/scratch/kocevski/680429/ft2_4FGL_J0538.8-4405_daily_bin470.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/680429/Model_4FGL_J0538.8-4405_daily_bin470.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/680429/ft1_filtered_4FGL_J0538.8-4405_daily_bin470.fits.....................!
real 68.63
user 60.71
sys 6.78

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/680429/ft1_filtered_4FGL_J0538.8-4405_daily_bin470.fits', '/scratch/kocevski/680429/ft2_4FGL_J0538.8-4405_daily_bin470.fits', expMap='/scratch/kocevski/680429/expmap_361152001_361411201_4FGL_J0538.8-4405_daily_bin470.fits', expCube='/scratch/kocevski/680429/ltcube_361152001_361411201_4FGL_J0538.8-4405_daily_bin470.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/680429/Model_4FGL_J0538.8-4405_daily_bin470.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/680429/ft1_filtered_4FGL_J0538.8-4405_daily_bin470.fits
Spacecraft file(s): /scratch/kocevski/680429/ft2_4FGL_J0538.8-4405_daily_bin470.fits
Exposure map: /scratch/kocevski/680429/expmap_361152001_361411201_4FGL_J0538.8-4405_daily_bin470.fits
Exposure cube: /scratch/kocevski/680429/ltcube_361152001_361411201_4FGL_J0538.8-4405_daily_bin470.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/680429/Model_4FGL_J0538.8-4405_daily_bin470.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) = 5545.7232017

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8166       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.4556       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .48629       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    8.4309       1.0000         .10000E-03   10000.    
     7 'Prefactor '    41.594       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4791       1.0000         .10000E-03   10000.    
    12 'norm      '    9.3456       1.0000         .10000E-03   10000.    
    13 'norm      '    17.079       1.0000         .10000E-03   10000.    
    14 'norm      '    3.2610       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.2757       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .70370E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    25.139       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13734E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.7567       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.8769       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.4097       1.0000         .10000E-03   10000.    
    27 'Prefactor '    37.750       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .91546       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1303       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=   5545.685     FROM MIGRAD    STATUS=CONVERGED    794 CALLS     4023 TOTAL
                     EDM=   .89E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8162        2.8088       -.35865E-07   -.18895E-03
   2  norm          .10000E-03    8.2917        .12346E-06** at limit **
   3  norm          3.4552        2.1673       -.10404E-06   -.43327E-03
   4  Prefactor     .48500        3.3423        .10958E-05   -.11306E-03
   5  Prefactor     .10000E-03    8.1757       -.74741E-06** at limit **
   6  norm          8.4298        6.1990        .11345E-07   -.75329E-04
   7  Prefactor     41.622        68.939       -.23308E-05   -.33929E-04
   8  Prefactor     .10000E-03    16.798       -.33790E-06** at limit **
   9  Prefactor     .10000E-03    32.228        .21925E-06** at limit **
  10  Prefactor     .10000E-03    1.0132       -.25946E-07** at limit **
  11  Prefactor     2.4791        5.4963       -.15867E-05   -.18778E-03
  12  norm          9.3475        3.9215       -.15968E-06   -.36434E-03
  13  norm          17.079        7.1766       -.16684E-06   -.21211E-04
  14  norm          3.2610        4.1286        .87099E-06    .92787E-05
  15  Prefactor     2.2880        8.0125        .92131E-05   -.91643E-04
  16  Prefactor     .10000E-03    22.377       -.47462E-05** at limit **
  17  Prefactor     .10000E-03    8.4316        .47118E-06** at limit **
  18  norm          25.142        9.6472       -.23794E-06   -.26742E-03
  19  Prefactor     .10000E-03    87.288        .73672E-07** at limit **
  20  norm          1.7566        1.1832       -.59760E-07   -.28170E-04
  21  Prefactor     5.8770        4.1781        .16250E-06   -.12388E-04
  22  norm          .10000E-03    2.7042       -.19715E-07** at limit **
  23  norm          .10000E-03    7.5696        .62267E-07** at limit **
  24  Prefactor     .10000E-03    13.420        .68542E-06** at limit **
  25  Prefactor     .10000E-03    12.947       -.12530E-05** at limit **
  26  Prefactor     2.4094        13.334        .91648E-06    .43881E-04
  27  Prefactor     37.821        103.59       -.90941E-05   -.13641E-04
  28  Prefactor     .10000E-03    13.535        .58080E-06** at limit **
  29  Normalizat    .91547        .25933       -.20799E-05   -.13459E-03
  30  Prefactor     1.1302        .17377        .31709E-06   -.22853E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.81616
  norm       = 0.0001
  norm       = 3.4552
  Prefactor  = 0.485
  Prefactor  = 0.0001
  norm       = 8.42981
  Prefactor  = 41.6225
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.47907
  norm       = 9.3475
  norm       = 17.0789
  norm       = 3.26098
  Prefactor  = 2.28798
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 25.142
  Prefactor  = 0.0001
  norm       = 1.75662
  Prefactor  = 5.87698
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.40941
  Prefactor  = 37.8213
  Prefactor  = 0.0001
  Normalizat = 0.91547
  Prefactor  = 1.13023
 **********
 **   18 **HESSE 
 **********

 FCN=   5545.685     FROM HESSE     STATUS=OK           594 CALLS     4617 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8162        2.7806        .11777E-03   -1.5372    
   2  norm          .10000E-03    8.4003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.4552        2.1533        .77859E-04   -1.5336    
   4  Prefactor     .48500        5.8288        .21778E-02   -1.5569    
   5  Prefactor     .10000E-03    8.1891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          8.4298        6.1638        .13806E-03   -1.5127    
   7  Prefactor     41.622        68.835        .62156E-04   -1.4417    
   8  Prefactor     .10000E-03    16.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    32.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.0225        .73131E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.4791        5.4197        .23132E-03   -1.5393    
  12  norm          9.3475        3.9162        .86912E-04   -1.5096    
  13  norm          17.079        7.1681        .96914E-04   -1.4881    
  14  norm          3.2610        4.1014        .76319E-03   -1.5347    
  15  Prefactor     2.2880        8.5534        .13610E-02   -1.5405    
  16  Prefactor     .10000E-03    30.335        .90400E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.4421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          25.142        9.6562        .79895E-04   -1.4705    
  19  Prefactor     .10000E-03    88.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.7566        1.1747        .63536E-04   -1.5443    
  21  Prefactor     5.8770        4.1748        .12331E-03   -1.5223    
  22  norm          .10000E-03    2.7050        .11960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    7.5740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    13.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    12.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.4094        13.268        .26373E-03   -1.5398    
  27  Prefactor     37.821        103.38        .65232E-04   -1.4477    
  28  Prefactor     .10000E-03    13.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .91547        .29205        .33916E-03   -.95919    
  30  Prefactor     1.1302        .19817        .22408E-03   -.88506    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0235e-08
Minuit parameter uncertainties:
  1  2.7807
  2  1.85434e-05
  3  2.15334
  4  3.36278
  5  1.39206e-05
  6  6.16429
  7  68.9667
  8  2.00674e-05
  9  6.95478e-05
  10  1.35302e-06
  11  5.42075
  12  3.91631
  13  7.16844
  14  4.10178
  15  8.55801
  16  0.0001004
  17  1.84853e-05
  18  9.65682
  19  0.000225481
  20  1.17475
  21  4.17504
  22  2.05288e-06
  23  7.25713e-06
  24  2.04387e-05
  25  2.92637e-05
  26  11.3116
  27  103.879
  28  5.42012e-06
  29  0.292554
  30  0.198301
Done.

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

Extracting fit parameters...

4FGL J0538.8-4405
   Spectrum: LogParabola
306         norm:  1.757e+00  1.175e+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:  1.130e+00  1.983e-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:  9.155e-01  2.926e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.18
Ra Dec: 84.709 -44.086
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 6.23e-08 +/- 4.16e-08
Energy Flux (Fixed Index): 3.33e-05 +/- 2.23e-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) = 5545.29553114
delta logL = 0.38966717446

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5545.28391967
delta logL = 0.40127864666

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5734       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6246       1.0000          .0000       5.0000    
     3 'Normalizat'    .86664       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1508       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=   5545.284     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      228 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5729        16.592        .84705E-02    .47285E-03
   2  alpha         2.6241        3.7175        .35514        .40800E-04
   3  Normalizat    .86681        .89110E-01    .78474E-01    .17536E-04
   4  Prefactor     1.1509        .60768E-01    .35912E-01   -.94104E-07
                               ERR DEF=  .500    
Final values: 
  norm       = 1.5729
  alpha      = 2.62408
  Normalizat = 0.866814
  Prefactor  = 1.15087
 **********
 **   18 **HESSE 
 **********

 FCN=   5545.284     FROM HESSE     STATUS=OK            33 CALLS      261 TOTAL
                     EDM=   .65E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5729        1.2682        .53115E-04   -1.5457    
   2  alpha         2.6241        .75201        .13091E-01    .49651E-01
   3  Normalizat    .86681        .27047        .34736E-03   -.97636    
   4  Prefactor     1.1509        .19441        .22229E-03   -.87857    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.52721e-12
Minuit parameter uncertainties:
  1  1.26827
  2  0.763867
  3  0.270891
  4  0.194529
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/680429': 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) = 5545.28391805
delta logL = 0.401280261308

Extracting fit parameters...

4FGL J0538.8-4405
   Spectrum: LogParabola
306         norm:  1.573e+00  1.268e+00  1.000e-04  1.000e+04 ( 1.000e-11)
307        alpha:  2.624e+00  7.639e-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:  1.151e+00  1.945e-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:  8.668e-01  2.709e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.98
Ra Dec: 84.709 -44.086
Photon Index (Free Index): 2.62 +/- 0.76
Photon Flux (Free Index): 1.04e-07 +/- 7.26e-08
Energy Flux (Free Index): 2.68e-05 +/- 1.71e-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/680429/cmap_HighResolution_361152001_361411201_4FGL_J0538.8-4405_daily_bin470.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.23e-08', energy_flux2='2.68e-05', photon_flux_error='4.16e-08', dlogl='4.01e-01', energy_flux='3.33e-05', photon_flux2='1.04e-07', job_status='DONE', time_completed='2021-08-23 13:15:46.317436', photon_index_error2='0.76', photon_index2='2.62', ts='4.18', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='1.71e-05', EG='0.92', time_epoch_completed='1629749746.32', return_code='0', job_id='680429', GAL2='1.15', EG2='0.87', return_code2='0', energy_flux_error='2.23e-05', photon_flux_error2='7.26e-08', ts2='4.98', photon_index='2.02' WHERE bin_id='470' AND source_name='4FGL J0538.8-4405' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 13:15:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0116>
Subject: Job 680429: <4FGL_J0538.8-4405_daily_bin470> in cluster <slac> Done

Job <4FGL_J0538.8-4405_daily_bin470> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Aug 23 13:00:36 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 23 13:00:37 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:00:37 2021
Terminated at Mon Aug 23 13:15:47 2021
Results reported at Mon Aug 23 13:15:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0538.8-4405_daily_bin470 84.7089 -44.0862 361152001 361411201 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 :                                   880.32 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             273.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            911 sec.

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

