aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 40 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J0538.2-3910_daily_bin1708
RA = 84.5746, Dec = -39.1696
tmin = 682041601, tmax = 682300801
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='33013', job_status='RUN', time_executed='2022-09-16 11:56:36.506424', time_epoch_executed='1663354596.51' WHERE source_name='4FGL J0538.2-3910' and cadence='daily' and bin_id='1708'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/33013

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/33013/ft1_4FGL_J0538.2-3910_daily_bin1708.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/33013/ft2_4FGL_J0538.2-3910_daily_bin1708.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/33013/ft1_4FGL_J0538.2-3910_daily_bin1708.fits outfile=/scratch/kocevski/33013/ft1_filteredMKT_4FGL_J0538.2-3910_daily_bin1708.fits ra=84.5746 dec=-39.1696 rad=12.0 tmin=682041601.0 tmax=682300801.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.78
sys 0.22

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

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

Number of photons that the gtmktime cut: 589

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/33013/ft1_filtered_4FGL_J0538.2-3910_daily_bin1708.fits" evtable="EVENTS" scfile=/scratch/kocevski/33013/ft2_4FGL_J0538.2-3910_daily_bin1708.fits sctable="SC_DATA" outfile=/scratch/kocevski/33013/ltcube_682041601_682300801_4FGL_J0538.2-3910_daily_bin1708.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/33013/ft2_4FGL_J0538.2-3910_daily_bin1708.fits
.....................!
real 16.44
user 15.25
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/33013/ft1_filtered_4FGL_J0538.2-3910_daily_bin1708.fits evtable="EVENTS" scfile=/scratch/kocevski/33013/ft2_4FGL_J0538.2-3910_daily_bin1708.fits sctable="SC_DATA" expcube=/scratch/kocevski/33013/ltcube_682041601_682300801_4FGL_J0538.2-3910_daily_bin1708.fits outfile=/scratch/kocevski/33013/expmap_682041601_682300801_4FGL_J0538.2-3910_daily_bin1708.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/33013/ltcube_682041601_682300801_4FGL_J0538.2-3910_daily_bin1708.fits
.....................!
real 195.23
user 187.83
sys 5.66

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/33013/ft1_filtered_4FGL_J0538.2-3910_daily_bin1708.fits scfile=/scratch/kocevski/33013/ft2_4FGL_J0538.2-3910_daily_bin1708.fits outfile=/scratch/kocevski/33013/cmap_682041601_682300801_4FGL_J0538.2-3910_daily_bin1708.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/33013/ft1_filtered_4FGL_J0538.2-3910_daily_bin1708.fits scfile=/scratch/kocevski/33013/ft2_4FGL_J0538.2-3910_daily_bin1708.fits outfile=/scratch/kocevski/33013/cmap_HighResolution_682041601_682300801_4FGL_J0538.2-3910_daily_bin1708.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.58
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/33013/ft1_filtered_4FGL_J0538.2-3910_daily_bin1708.fits evtable="EVENTS" scfile=/scratch/kocevski/33013/ft2_4FGL_J0538.2-3910_daily_bin1708.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/33013/Model_4FGL_J0538.2-3910_daily_bin1708.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/33013/ft1_filtered_4FGL_J0538.2-3910_daily_bin1708.fits.....................!
real 70.72
user 69.27
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/33013/ft1_filtered_4FGL_J0538.2-3910_daily_bin1708.fits', '/scratch/kocevski/33013/ft2_4FGL_J0538.2-3910_daily_bin1708.fits', expMap='/scratch/kocevski/33013/expmap_682041601_682300801_4FGL_J0538.2-3910_daily_bin1708.fits', expCube='/scratch/kocevski/33013/ltcube_682041601_682300801_4FGL_J0538.2-3910_daily_bin1708.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/33013/Model_4FGL_J0538.2-3910_daily_bin1708.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  0.000e+00  1.000e+06 ( 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/33013/ft1_filtered_4FGL_J0538.2-3910_daily_bin1708.fits
Spacecraft file(s): /scratch/kocevski/33013/ft2_4FGL_J0538.2-3910_daily_bin1708.fits
Exposure map: /scratch/kocevski/33013/expmap_682041601_682300801_4FGL_J0538.2-3910_daily_bin1708.fits
Exposure cube: /scratch/kocevski/33013/ltcube_682041601_682300801_4FGL_J0538.2-3910_daily_bin1708.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/33013/Model_4FGL_J0538.2-3910_daily_bin1708.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) = 6394.10409572

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10744E-02   1.0000          .0000       .10000E+07
     2 'norm      '    4.9885       1.0000          .0000       .10000E+07
     3 'Prefactor '    3.9671       1.0000          .0000       .10000E+07
     4 'Prefactor '    23.857       1.0000          .0000       .10000E+07
     5 'norm      '    .72933E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    22.913       1.0000          .0000       .10000E+07
     7 'Prefactor '    .36561E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    1.3216       1.0000          .0000       .10000E+07
     9 'Prefactor '    .89317E-07   1.0000          .0000       .10000E+07
    10 'norm      '    1.2616       1.0000          .0000       .10000E+07
    11 'Prefactor '    .70736E-02   1.0000          .0000       .10000E+07
    12 'norm      '    .14237E-02   1.0000          .0000       .10000E+07
    13 'norm      '    1.0459       1.0000          .0000       .10000E+07
    14 'Prefactor '    .62754E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .23083E-04   1.0000          .0000       .10000E+07
    16 'norm      '    3.6008       1.0000          .0000       .10000E+07
    17 'Prefactor '    .44585E-05   1.0000          .0000       .10000E+07
    18 'norm      '    6.6121       1.0000          .0000       .10000E+07
    19 'norm      '    .35409       1.0000          .0000       .10000E+07
    20 'norm      '    .31841E-06   1.0000          .0000       .10000E+07
    21 'Prefactor '    .18472E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    .14461E-02   1.0000          .0000       .10000E+07
    23 'Prefactor '    17.423       1.0000          .0000       .10000E+07
    24 'norm      '    .99362E-03   1.0000          .0000       .10000E+07
    25 'Prefactor '    .15174E-02   1.0000          .0000       .10000E+07
    26 'Normalizat'    1.1311       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .99146       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6394.101     FROM MIGRAD    STATUS=CONVERGED    191 CALLS     3603 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10148E-05    7.4501       -.23990E-05** at limit **
   2  norm          4.9884        2.5208        .26858E-07    .19621E-01
   3  Prefactor     3.9656        4.4559        .68794E-07    .10063E-01
   4  Prefactor     23.901        5.1883       -.17165E-06    .14318E-01
   5  norm          .22315E-07    11.187       -.59282E-06** at limit **
   6  Prefactor     22.812        2.2513        .88244E-07   -.63040E-02
   7  Prefactor     .94685E-06    12.043        .76344E-06** at limit **
   8  Prefactor     1.3221        2.9104        .30506E-07    .30250E-02
   9  Prefactor     .83267E-09    2.4878       -.19573E-06** at limit **
  10  norm          1.2620        2.1447       -.31317E-07   -.79737E-02
  11  Prefactor     .14440E-05    23.927        .43284E-05** at limit **
  12  norm          .72276E-07    4.3939        .11665E-05** at limit **
  13  norm          1.0467        2.4106        .27188E-06   -.85335E-03
  14  Prefactor     .61062E-09    3.1566        .24407E-07** at limit **
  15  Prefactor     .22204E-09    4.1894       -.16271E-06** at limit **
  16  norm          3.6012        3.9297        .11322E-06    .63166E-03
  17  Prefactor     .13844E-06    158.69        .15762E-05** at limit **
  18  norm          6.6117        1.6534       -.25510E-08    .12783E-01
  19  norm          .35542        3.2655       -.98194E-07   -.27134E-02
  20  norm           .0000        4.2680        .15343E-07** at limit **
  21  Prefactor     .40473E-06    10.262       -.21772E-05** at limit **
  22  Prefactor     .12038E-05    10.290       -.31068E-05** at limit **
  23  Prefactor     17.413        10.916        .27256E-05    .99970E-01
  24  norm          .44964E-08    9.3507        .27225E-06** at limit **
  25  Prefactor     .43410E-07    6.0579        .13253E-05** at limit **
  26  Normalizat    1.1313        .24926       -.20438E-05    .22773E-04
  27  Prefactor     .99136        .17837       -.67892E-05   -.10341E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.0148e-06
  norm       = 4.98841
  Prefactor  = 3.96564
  Prefactor  = 23.901
  norm       = 2.23155e-08
  Prefactor  = 22.8125
  Prefactor  = 9.46854e-07
  Prefactor  = 1.32214
  Prefactor  = 8.32667e-10
  norm       = 1.26203
  Prefactor  = 1.44396e-06
  norm       = 7.22755e-08
  norm       = 1.04669
  Prefactor  = 6.10623e-10
  Prefactor  = 2.22045e-10
  norm       = 3.60117
  Prefactor  = 1.38445e-07
  norm       = 6.61167
  norm       = 0.355425
  norm       = 0
  Prefactor  = 4.04732e-07
  Prefactor  = 1.20376e-06
  Prefactor  = 17.4126
  norm       = 4.4964e-09
  Prefactor  = 4.34097e-08
  Normalizat = 1.13128
  Prefactor  = 0.991362
 **********
 **   18 **HESSE 
 **********

 FCN=   6394.101     FROM HESSE     STATUS=OK           554 CALLS     4157 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10148E-05    26.155        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.9884        2.5159        .45002E-03   -1.5663    
   3  Prefactor     3.9656        4.5605        .50617E-03   -1.5668    
   4  Prefactor     23.901        20.828        .20478E-03   -1.5610    
   5  norm          .22315E-07    11.321        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.812        49.310        .20896E-03   -1.5612    
   7  Prefactor     .94685E-06    20.115        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.3221        2.9832        .95659E-03   -1.5685    
   9  Prefactor     .83267E-09    2.4971        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.2620        2.1767        .99237E-03   -1.5685    
  11  Prefactor     .14440E-05    28.779        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .72276E-07    3.4418        .51160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0467        2.9205        .42693E-02   -1.5688    
  14  Prefactor     .61062E-09    3.1793        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .22204E-09    4.2179        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.6012        3.9392        .53225E-03   -1.5670    
  17  Prefactor     .13844E-06    154.71        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.6117        1.6602        .39002E-03   -1.5657    
  19  norm          .35542        1.6991        .33602E-02   -1.5696    
  20  norm           .0000        4.2969        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .40473E-06    16.506        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .12038E-05    25.172        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     17.413        13.637        .23967E-03   -1.5625    
  24  norm          .44964E-08    9.4452        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .43410E-07    17.507        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1313        .21868        .66828E-01   -.88754    
  27  Prefactor     .99136        .15395        .46160E-01   -.93018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36757e-07
Minuit parameter uncertainties:
  1  0.0103038
  2  2.51586
  3  4.56047
  4  20.8284
  5  0.00100506
  6  49.3112
  7  0.00872852
  8  2.98324
  9  9.04981e-05
  10  2.17672
  11  0.0128927
  12  0.000997565
  13  2.92053
  14  8.80358e-05
  15  5.94505e-05
  16  3.9392
  17  0.00925714
  18  1.66016
  19  1.55423
  20  2.11842e-05
  21  0.00516911
  22  0.0110092
  23  13.6373
  24  0.000411977
  25  0.00174345
  26  0.21886
  27  0.154021
Done.

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

Extracting fit parameters...

4FGL J0538.2-3910
   Spectrum: PowerLaw
299    Prefactor:  1.384e-07  9.257e-03  0.000e+00  1.000e+06 ( 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.914e-01  1.540e-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.131e+00  2.189e-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.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/33013/likelihoodResults_682041601_682300801_4FGL_J0538.2-3910_daily_bin1708.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) = 6394.10590555
delta logL = -0.00490508856819

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6394.09440676
delta logL = 0.00659369768073

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .61882       1.0000          .0000       .10000E+07
     2 'Index     '    2.4764       1.0000          .0000       10.000    
     3 'Normalizat'    1.1300       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99115       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.

 FCN=   6394.094     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      303 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .61882        32.793        .67559E-03   -.51247E-02
   2  Index         2.4764        .25997        .50000        .79828E-04
   3  Normalizat    1.1300        .87297E-02    .66861E-01    .10225E-04
   4  Prefactor     .99115        .66051E-02    .46156E-01    .88276E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.618825
  Index      = 2.47635
  Normalizat = 1.12999
  Prefactor  = 0.991152
 **********
 **   18 **HESSE 
 **********

 FCN=   6394.094     FROM HESSE     STATUS=OK            33 CALLS      336 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .61882        21.304        .27023E-04   -1.5692    
   2  Index         2.4764        2.8552        .28842E-02   -.52907    
   3  Normalizat    1.1300        .23243        .29579E-03   -.88795    
   4  Prefactor     .99115        .17586        .23609E-03   -.93025    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64844e-08
Minuit parameter uncertainties:
  1  7.26191
  2  3.1199
  3  0.232641
  4  0.175964
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/33013': 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) = 6394.09440671
delta logL = 0.00659374574661

Extracting fit parameters...

4FGL J0538.2-3910
   Spectrum: PowerLaw
299    Prefactor:  6.188e-01  7.262e+00  0.000e+00  1.000e+06 ( 1.000e-14)
300        Index:  2.476e+00  3.120e+00  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.912e-01  1.760e-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.130e+00  2.326e-01  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/33013/cmap_HighResolution_682041601_682300801_4FGL_J0538.2-3910_daily_bin1708.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.76e-03', job_status='DONE', photon_flux_upper_limit='5.03e-08', time_completed='2022-09-16 12:10:53.620722', job_id='33013', GAL2='0.99', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1663355453.62', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='6.59e-03', ts2='0.01', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1708' AND source_name='4FGL J0538.2-3910' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 12:10:53 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0113>
Subject: Job 33013: <4FGL_J0538.2-3910_daily_bin1708> in cluster <slac> Done

Job <4FGL_J0538.2-3910_daily_bin1708> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 16 11:55:20 2022
Job was executed on host(s) <bullet0113>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 11:55:47 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 11:55:47 2022
Terminated at Fri Sep 16 12:10:54 2022
Results reported at Fri Sep 16 12:10:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0538.2-3910_daily_bin1708 84.5746 -39.1696 682041601 682300801 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 :                                   855.73 sec.
    Max Memory :                                 631 MB
    Average Memory :                             308.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2929 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            934 sec.

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

