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


Performing analysis on: 4FGL_J0538.8-4405_daily_bin701
RA = 84.7089, Dec = -44.0862
tmin = 421027201, tmax = 421286401
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='682073', job_status='RUN', time_executed='2021-08-23 13:06:35.083499', time_epoch_executed='1629749195.08' WHERE source_name='4FGL J0538.8-4405' and cadence='daily' and bin_id='701'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/682073

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/682073/ft1_4FGL_J0538.8-4405_daily_bin701.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/682073/ft2_4FGL_J0538.8-4405_daily_bin701.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/682073/ft1_4FGL_J0538.8-4405_daily_bin701.fits outfile=/scratch/kocevski/682073/ft1_filteredMKT_4FGL_J0538.8-4405_daily_bin701.fits ra=84.7089 dec=-44.0862 rad=12.0 tmin=421027201.0 tmax=421286401.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.08
user 3.51
sys 3.03

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/682073/ft1_filtered_4FGL_J0538.8-4405_daily_bin701.fits" evtable="EVENTS" scfile=/scratch/kocevski/682073/ft2_4FGL_J0538.8-4405_daily_bin701.fits sctable="SC_DATA" outfile=/scratch/kocevski/682073/ltcube_421027201_421286401_4FGL_J0538.8-4405_daily_bin701.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/682073/ft2_4FGL_J0538.8-4405_daily_bin701.fits
.....................!
real 15.13
user 11.54
sys 3.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/682073/ft1_filtered_4FGL_J0538.8-4405_daily_bin701.fits evtable="EVENTS" scfile=/scratch/kocevski/682073/ft2_4FGL_J0538.8-4405_daily_bin701.fits sctable="SC_DATA" expcube=/scratch/kocevski/682073/ltcube_421027201_421286401_4FGL_J0538.8-4405_daily_bin701.fits outfile=/scratch/kocevski/682073/expmap_421027201_421286401_4FGL_J0538.8-4405_daily_bin701.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/682073/ltcube_421027201_421286401_4FGL_J0538.8-4405_daily_bin701.fits
.....................!
real 193.11
user 185.20
sys 7.45

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/682073/ft1_filtered_4FGL_J0538.8-4405_daily_bin701.fits scfile=/scratch/kocevski/682073/ft2_4FGL_J0538.8-4405_daily_bin701.fits outfile=/scratch/kocevski/682073/cmap_421027201_421286401_4FGL_J0538.8-4405_daily_bin701.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 3.31
user 0.36
sys 2.91

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/682073/ft1_filtered_4FGL_J0538.8-4405_daily_bin701.fits scfile=/scratch/kocevski/682073/ft2_4FGL_J0538.8-4405_daily_bin701.fits outfile=/scratch/kocevski/682073/cmap_HighResolution_421027201_421286401_4FGL_J0538.8-4405_daily_bin701.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 3.29
user 0.39
sys 2.88

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/682073/ft1_filtered_4FGL_J0538.8-4405_daily_bin701.fits evtable="EVENTS" scfile=/scratch/kocevski/682073/ft2_4FGL_J0538.8-4405_daily_bin701.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/682073/Model_4FGL_J0538.8-4405_daily_bin701.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/682073/ft1_filtered_4FGL_J0538.8-4405_daily_bin701.fits.....................!
real 62.15
user 56.38
sys 5.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15256E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    8.0633       1.0000         .10000E-03   10000.    
     3 'norm      '    5.9064       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.3096       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.0037       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    129.29       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4561       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    12.048       1.0000         .10000E-03   10000.    
    14 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10570E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10849E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    12.409       1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.126       1.0000         .10000E-03   10000.    
    20 'norm      '    .71916       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.5725       1.0000         .10000E-03   10000.    
    22 'norm      '    2.0629       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.7889       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .14725E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .91116       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0942       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=   5272.138     FROM MIGRAD    STATUS=CONVERGED    769 CALLS     3923 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    2.4614        .40840E-06** at limit **
   2  norm          8.0563        11.778       -.16513E-06   -.10080E-03
   3  norm          5.9066        2.7212       -.23865E-06   -.16994E-03
   4  Prefactor     8.3059        4.9448        .62432E-06   -.19586E-03
   5  Prefactor     5.9998        15.788        .12588E-05   -.82140E-05
   6  norm          .10000E-03    3.1402       -.15130E-06** at limit **
   7  Prefactor     .10000E-03    30.346        .18699E-05** at limit **
   8  Prefactor     .10000E-03    22.663       -.13872E-04** at limit **
   9  Prefactor     129.29        75.101        .11893E-05    .51110E-05
  10  Prefactor     3.4565        3.3116       -.88734E-07   -.90256E-04
  11  Prefactor     .10000E-03    1.6577       -.11712E-06** at limit **
  12  norm          .10000E-03    2.0660        .17984E-06** at limit **
  13  norm          12.055        5.8276        .10322E-06   -.70536E-04
  14  norm          .10000E-03    6.0698        .47708E-06** at limit **
  15  Prefactor     .10000E-03    7.8108       -.32383E-05** at limit **
  16  Prefactor     .10000E-03    18.144        .98247E-05** at limit **
  17  Prefactor     .10000E-03    30.501        .52936E-05** at limit **
  18  norm          12.422        7.7121        .82643E-07   -.74125E-03
  19  Prefactor     23.118        35.454       -.19831E-05   -.55872E-04
  20  norm          .71929        .78059       -.11057E-07    .30789E-04
  21  Prefactor     1.5732        3.7484       -.74500E-07   -.15461E-03
  22  norm          2.0627        3.0641        .12332E-05   -.22891E-02
  23  norm          .10000E-03    4.8127       -.21736E-06** at limit **
  24  Prefactor     3.7895        12.926        .67402E-07   -.22500E-04
  25  Prefactor     .10000E-03    9.4879        .31300E-05** at limit **
  26  Prefactor     .10000E-03    9.5606        .25531E-05** at limit **
  27  Prefactor     .10000E-03    194.34       -.57558E-05** at limit **
  28  Prefactor     .10000E-03    10.820       -.57930E-05** at limit **
  29  Normalizat    .91120        .24485       -.95891E-06   -.78182E-04
  30  Prefactor     1.0941        .16653       -.13073E-06   -.14457E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100013
  norm       = 8.05635
  norm       = 5.9066
  Prefactor  = 8.30593
  Prefactor  = 5.99979
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 129.294
  Prefactor  = 3.45649
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 12.0546
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 12.4224
  Prefactor  = 23.1177
  norm       = 0.719294
  Prefactor  = 1.57317
  norm       = 2.06273
  norm       = 0.0001
  Prefactor  = 3.78951
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.911195
  Prefactor  = 1.09409
 **********
 **   18 **HESSE 
 **********

 FCN=   5272.138     FROM HESSE     STATUS=OK           584 CALLS     4507 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    8.2959        .20612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.0563        11.558        .14120E-03   -1.5140    
   3  norm          5.9066        2.7259        .73965E-04   -1.5222    
   4  Prefactor     8.3059        4.8603        .10310E-03   -1.5131    
   5  Prefactor     5.9998        15.683        .16387E-03   -1.5218    
   6  norm          .10000E-03    3.1439        .12538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    30.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     129.29        75.191        .35408E-04   -1.3429    
  10  Prefactor     3.4565        3.3041        .12033E-03   -1.5336    
  11  Prefactor     .10000E-03    1.6632        .91259E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.1350        .20349E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          12.055        5.7670        .11473E-03   -1.5013    
  14  norm          .10000E-03    6.2186        .34539E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.8664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    18.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    30.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          12.422        7.6992        .56857E-03   -1.5003    
  19  Prefactor     23.118        35.396        .83294E-04   -1.4746    
  20  norm          .71929        .76633        .64472E-04   -1.5538    
  21  Prefactor     1.5732        3.7389        .20553E-03   -1.5457    
  22  norm          2.0627        6.5082        .14385E-02   -1.5421    
  23  norm          .10000E-03    4.8136        .15557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.7895        12.920        .20738E-03   -1.5319    
  25  Prefactor     .10000E-03    9.5093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    9.6048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    195.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    10.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .91120        .28209        .32347E-03   -.96068    
  30  Prefactor     1.0941        .19298        .21566E-03   -.89656    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23947e-08
Minuit parameter uncertainties:
  1  0.000654657
  2  11.5607
  3  2.72597
  4  4.86054
  5  15.6934
  6  1.58262e-05
  7  4.54396e-05
  8  0.000324694
  9  75.2467
  10  3.30424
  11  8.58001e-07
  12  2.74009e-06
  13  5.76722
  14  7.04744e-07
  15  7.24447e-07
  16  0.00025506
  17  9.62099e-05
  18  7.69977
  19  35.4286
  20  0.766338
  21  3.73945
  22  6.51048
  23  1.42903e-06
  24  12.9298
  25  5.19718e-05
  26  4.54448e-05
  27  0.000307611
  28  9.44031e-05
  29  0.282547
  30  0.193101
Done.

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

Extracting fit parameters...

4FGL J0538.8-4405
   Spectrum: LogParabola
306         norm:  7.193e-01  7.663e-01  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.094e+00  1.931e-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.112e-01  2.825e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.34
Ra Dec: 84.709 -44.086
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 2.55e-08 +/- 2.72e-08
Energy Flux (Fixed Index): 1.36e-05 +/- 1.45e-05

TS (Fixed Index): 2.34
Ra Dec: 84.709 -44.086
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.54e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/682073/likelihoodResults_421027201_421286401_4FGL_J0538.8-4405_daily_bin701.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5271.97317992
delta logL = 0.164379629594

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5271.95834548
delta logL = 0.179214069935

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .59069       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5551       1.0000          .0000       5.0000    
     3 'Normalizat'    .92018       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0915       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=   5271.958     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      194 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .58904        .63801        .11636E-01   -.11243E-03
   2  alpha         1.5536        .49874        .43047       -.27390E-04
   3  Normalizat    .92020        .22496        .72773E-01    .17174E-04
   4  Prefactor     1.0915        .16377        .37917E-01    .10543E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.589039
  alpha      = 1.55359
  Normalizat = 0.920195
  Prefactor  = 1.09147
 **********
 **   18 **HESSE 
 **********

 FCN=   5271.958     FROM HESSE     STATUS=OK            33 CALLS      227 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .58904        .73418        .58415E-04   -1.5554    
   2  alpha         1.5536        .71333        .15321E-01   -.38824    
   3  Normalizat    .92020        .25633        .32202E-03   -.95754    
   4  Prefactor     1.0915        .18698        .21587E-03   -.89740    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20331e-09
Minuit parameter uncertainties:
  1  0.734196
  2  0.725138
  3  0.256675
  4  0.187092
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/682073': 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) = 5271.95834215
delta logL = 0.179217407926

Extracting fit parameters...

4FGL J0538.8-4405
   Spectrum: LogParabola
306         norm:  5.890e-01  7.342e-01  1.000e-04  1.000e+04 ( 1.000e-11)
307        alpha:  1.554e+00  7.251e-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.091e+00  1.871e-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.202e-01  2.567e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.70
Ra Dec: 84.709 -44.086
Photon Index (Free Index): 1.55 +/- 0.73
Photon Flux (Free Index): 1.58e-08 +/- 2.17e-08
Energy Flux (Free Index): 2.42e-05 +/- 3.72e-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/682073/cmap_HighResolution_421027201_421286401_4FGL_J0538.8-4405_daily_bin701.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.54e-05', comment='SUCCESS', photon_flux='2.55e-08', energy_flux2='2.42e-05', photon_flux_error='2.72e-08', dlogl='1.79e-01', energy_flux='1.36e-05', photon_flux2='1.58e-08', job_status='DONE', time_completed='2021-08-23 13:20:37.175937', photon_index_error2='0.73', photon_index2='1.55', ts='2.34', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='3.72e-05', EG='0.91', time_epoch_completed='1629750037.18', return_code='0', job_id='682073', GAL2='1.09', EG2='0.92', return_code2='0', energy_flux_error='1.45e-05', photon_flux_error2='2.17e-08', ts2='2.70', photon_index='2.02' WHERE bin_id='701' AND source_name='4FGL J0538.8-4405' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 13:20:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 682073: <4FGL_J0538.8-4405_daily_bin701> in cluster <slac> Done

Job <4FGL_J0538.8-4405_daily_bin701> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 23 13:05:39 2021
Job was executed on host(s) <bullet0297>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 23 13:05:40 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:40 2021
Terminated at Mon Aug 23 13:20:38 2021
Results reported at Mon Aug 23 13:20:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0538.8-4405_daily_bin701 84.7089 -44.0862 421027201 421286401 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 :                                   884.40 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            899 sec.

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

