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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin1750
RA = 335.497, Dec = -35.0712
tmin = 692928001, tmax = 693187201
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='27227', job_status='RUN', time_executed='2022-12-20 01:51:37.915298', time_epoch_executed='1671529897.92' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='1750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/27227

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/27227/ft1_4FGL_J2221.9-3504_daily_bin1750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/27227/ft2_4FGL_J2221.9-3504_daily_bin1750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/27227/ft1_4FGL_J2221.9-3504_daily_bin1750.fits outfile=/scratch/kocevski/27227/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin1750.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=692928001.0 tmax=693187201.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 3.51
user 3.28
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/27227/ft2_4FGL_J2221.9-3504_daily_bin1750.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/27227/ft2_4FGL_J2221.9-3504_daily_bin1750.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/27227/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin1750.fits evtable="EVENTS" outfile="/scratch/kocevski/27227/ft1_filtered_4FGL_J2221.9-3504_daily_bin1750.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.49
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 484

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/27227/ft1_filtered_4FGL_J2221.9-3504_daily_bin1750.fits" evtable="EVENTS" scfile=/scratch/kocevski/27227/ft2_4FGL_J2221.9-3504_daily_bin1750.fits sctable="SC_DATA" outfile=/scratch/kocevski/27227/ltcube_692928001_693187201_4FGL_J2221.9-3504_daily_bin1750.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/27227/ft2_4FGL_J2221.9-3504_daily_bin1750.fits
.....................!
real 11.48
user 11.10
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/27227/ft1_filtered_4FGL_J2221.9-3504_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/27227/ft2_4FGL_J2221.9-3504_daily_bin1750.fits sctable="SC_DATA" expcube=/scratch/kocevski/27227/ltcube_692928001_693187201_4FGL_J2221.9-3504_daily_bin1750.fits outfile=/scratch/kocevski/27227/expmap_692928001_693187201_4FGL_J2221.9-3504_daily_bin1750.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/27227/ltcube_692928001_693187201_4FGL_J2221.9-3504_daily_bin1750.fits
.....................!
real 189.32
user 183.65
sys 5.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 175 point sources and 0 extended sources

Setting source of interest to:
4FGL J2221.9-3504 @ 335.497 -35.0712

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/27227/ft1_filtered_4FGL_J2221.9-3504_daily_bin1750.fits scfile=/scratch/kocevski/27227/ft2_4FGL_J2221.9-3504_daily_bin1750.fits outfile=/scratch/kocevski/27227/cmap_692928001_693187201_4FGL_J2221.9-3504_daily_bin1750.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=335.497 yref=-35.0712 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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/27227/ft1_filtered_4FGL_J2221.9-3504_daily_bin1750.fits scfile=/scratch/kocevski/27227/ft2_4FGL_J2221.9-3504_daily_bin1750.fits outfile=/scratch/kocevski/27227/cmap_HighResolution_692928001_693187201_4FGL_J2221.9-3504_daily_bin1750.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=335.497 yref=-35.0712 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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/27227/ft1_filtered_4FGL_J2221.9-3504_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/27227/ft2_4FGL_J2221.9-3504_daily_bin1750.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/27227/Model_4FGL_J2221.9-3504_daily_bin1750.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/27227/ft1_filtered_4FGL_J2221.9-3504_daily_bin1750.fits.....................!
real 43.80
user 42.50
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/27227/ft1_filtered_4FGL_J2221.9-3504_daily_bin1750.fits', '/scratch/kocevski/27227/ft2_4FGL_J2221.9-3504_daily_bin1750.fits', expMap='/scratch/kocevski/27227/expmap_692928001_693187201_4FGL_J2221.9-3504_daily_bin1750.fits', expCube='/scratch/kocevski/27227/ltcube_692928001_693187201_4FGL_J2221.9-3504_daily_bin1750.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/27227/Model_4FGL_J2221.9-3504_daily_bin1750.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2221.9-3504'

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.240e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
254        Index:  2.677e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
255        Scale:  5.158e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/27227/ft1_filtered_4FGL_J2221.9-3504_daily_bin1750.fits
Spacecraft file(s): /scratch/kocevski/27227/ft2_4FGL_J2221.9-3504_daily_bin1750.fits
Exposure map: /scratch/kocevski/27227/expmap_692928001_693187201_4FGL_J2221.9-3504_daily_bin1750.fits
Exposure cube: /scratch/kocevski/27227/ltcube_692928001_693187201_4FGL_J2221.9-3504_daily_bin1750.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/27227/Model_4FGL_J2221.9-3504_daily_bin1750.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5332.46513249

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .55614E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    .38014E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    18.940       1.0000          .0000       .10000E+07
     4 'norm      '    .23376E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    .11103E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    83.296       1.0000          .0000       .10000E+07
     7 'norm      '    .20695E-06   1.0000          .0000       .10000E+07
     8 'norm      '    .85151       1.0000          .0000       .10000E+07
     9 'Prefactor '    .37629E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    14.758       1.0000          .0000       .10000E+07
    11 'Prefactor '    4.2737       1.0000          .0000       .10000E+07
    12 'Prefactor '    .46173E-05   1.0000          .0000       .10000E+07
    13 'norm      '    8.0943       1.0000          .0000       .10000E+07
    14 'Prefactor '    .12078E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .22963E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    24.068       1.0000          .0000       .10000E+07
    17 'norm      '    9.4802       1.0000          .0000       .10000E+07
    18 'Prefactor '    .36213E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    .10184E-01   1.0000          .0000       .10000E+07
    20 'Prefactor '    7.3996       1.0000          .0000       .10000E+07
    21 'norm      '    .31684E-05   1.0000          .0000       .10000E+07
    22 'Prefactor '    .28520E-02   1.0000          .0000       .10000E+07
    23 'Prefactor '    .42949E-03   1.0000          .0000       .10000E+07
    24 'norm      '    1.8908       1.0000          .0000       .10000E+07
    25 'Prefactor '    1.6845       1.0000          .0000       .10000E+07
    26 'Normalizat'    1.0624       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .82332       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5329.227     FROM MIGRAD    STATUS=CONVERGED    150 CALLS     1406 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.4795        .88882E-06** at limit **
   2  Prefactor     .38086E-06    10.509       -.20923E-05** at limit **
   3  Prefactor     19.107        10.634       -.75011E-06   -.32995E-01
   4  norm          .17610E-05    6.0109        .87512E-06** at limit **
   5  Prefactor     .54523E-06    8.8010        .20427E-05** at limit **
   6  Prefactor     83.225        1.4100       -.18488E-07    .45020E-01
   7  norm           .0000        1.5308        .22196E-06** at limit **
   8  norm          .85167        .34766       -.37174E-07   -.31502E-02
   9  Prefactor     .30971E-02    4.9615       -.72722E-06** at limit **
  10  Prefactor     15.000        1.5909       -.11782E-07   -.54721E-02
  11  Prefactor     4.3079        8.4530       -.11338E-05   -.42736E-02
  12  Prefactor     .33307E-09    4.5904        .13780E-05** at limit **
  13  norm          8.0975        1.2252       -.10594E-06    .80583E-02
  14  Prefactor     .44698E-06    13.041       -.42530E-06** at limit **
  15  Prefactor     .66151E-05    38.181        .17019E-05** at limit **
  16  Prefactor     23.820        2.6396       -.10864E-06    .75626E-02
  17  norm          9.4800        3.4266        .61921E-07   -.62392E-03
  18  Prefactor     .66502E-06    58.210        .76028E-05** at limit **
  19  Prefactor     .53918E-05    15.225       -.17705E-05** at limit **
  20  Prefactor     7.4132        6.3206       -.15050E-07   -.17600E-02
  21  norm          .55511E-10    2.0671        .10199E-05** at limit **
  22  Prefactor     .17120E-04    10.255        .13004E-05** at limit **
  23  Prefactor     .91371E-07    9.2315       -.13178E-05** at limit **
  24  norm          1.8989        .76897        .21549E-07   -.43201E-02
  25  Prefactor     1.3925        3.3009        .11891E-05    .54818E-03
  26  Normalizat    1.0623        .21954        .46023E-05   -.28332E-04
  27  Prefactor     .82323        .19234       -.11028E-04   -.26590E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 3.80862e-07
  Prefactor  = 19.1074
  norm       = 1.76104e-06
  Prefactor  = 5.45231e-07
  Prefactor  = 83.2254
  norm       = 0
  norm       = 0.851672
  Prefactor  = 0.00309706
  Prefactor  = 15.0005
  Prefactor  = 4.30793
  Prefactor  = 3.33067e-10
  norm       = 8.09746
  Prefactor  = 4.46976e-07
  Prefactor  = 6.6151e-06
  Prefactor  = 23.8198
  norm       = 9.48004
  Prefactor  = 6.65024e-07
  Prefactor  = 5.3918e-06
  Prefactor  = 7.41319
  norm       = 5.55112e-11
  Prefactor  = 1.71204e-05
  Prefactor  = 9.13714e-08
  norm       = 1.89889
  Prefactor  = 1.39247
  Normalizat = 1.06227
  Prefactor  = 0.823228
 **********
 **   18 **HESSE 
 **********

 FCN=   5329.227     FROM HESSE     STATUS=OK           542 CALLS     1948 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.4783        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .38086E-06    15.071        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     19.107        10.713        .22986E-03   -1.5621    
   4  norm          .17610E-05    13.659        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .54523E-06    10.274        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     83.225        55.398        .10958E-03   -1.5526    
   7  norm           .0000        1.5250        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .85167        .34978        .49172E-03   -1.5690    
   9  Prefactor     .30971E-02    6.3735        .98257E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.000        16.050        .26046E-03   -1.5631    
  11  Prefactor     4.3079        8.4555        .48712E-03   -1.5666    
  12  Prefactor     .33307E-09    4.5145        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.0975        11.109        .35217E-03   -1.5651    
  14  Prefactor     .44698E-06    31.518        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .66151E-05    46.637        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     23.820        27.292        .20388E-03   -1.5610    
  17  norm          9.4800        3.4483        .32524E-03   -1.5646    
  18  Prefactor     .66502E-06    58.713        .16139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .53918E-05    30.450        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.4132        6.3419        .36846E-03   -1.5654    
  21  norm          .55511E-10    2.0685        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .17120E-04    37.654        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .91371E-07    9.3943        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.8989        .89400        .75642E-03   -1.5680    
  25  Prefactor     1.3925        44.390        .81110E-03   -1.5684    
  26  Normalizat    1.0623        .19443        .39793E-01   -.90973    
  27  Prefactor     .82323        .16701        .44020E-01   -.98878    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09581e-06
Minuit parameter uncertainties:
  1  8.34212e-07
  2  0.00479172
  3  10.7129
  4  0.00980902
  5  0.00473362
  6  55.3986
  7  1.06921e-05
  8  0.349778
  9  0.280991
  10  16.0497
  11  8.45551
  12  7.90321e-05
  13  11.1091
  14  0.00750695
  15  0.0351292
  16  27.2924
  17  3.44834
  18  0.0124972
  19  0.0256266
  20  6.34186
  21  1.53996e-05
  22  0.0507801
  23  0.00185312
  24  0.893999
  25  15.7242
  26  0.194559
  27  0.167115
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  4.308e+00  8.456e+00  0.000e+00  1.000e+06 ( 1.000e-12)
254        Index:  2.677e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
255        Scale:  5.158e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  8.232e-01  1.671e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.062e+00  1.946e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.32
Ra Dec: 335.497 -35.071
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/27227/likelihoodResults_692928001_693187201_4FGL_J2221.9-3504_daily_bin1750.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) = 5329.18881757
delta logL = 0.0380764530028

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5329.16711407
delta logL = 0.0597799544557

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6355       1.0000          .0000       .10000E+07
     2 'Index     '    3.9132       1.0000          .0000       10.000    
     3 'Normalizat'    1.0376       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84047       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5329.167     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      214 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6356        69.723        .82624E-03    .12461E-01
   2  Index         3.9135        6.9469        .20659        .68175E-04
   3  Normalizat    1.0376        .43892E-01    .41477E-01    .89200E-05
   4  Prefactor     .84048        .39233E-01    .44242E-01    .10655E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.63563
  Index      = 3.91348
  Normalizat = 1.03758
  Prefactor  = 0.840483
 **********
 **   18 **HESSE 
 **********

 FCN=   5329.167     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      247 TOTAL
                     EDM=   .81E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6356        188.90        .13905E-04   -1.5682    
   2  Index         3.9135        6.8103        .11994E-01   -.21905    
   3  Normalizat    1.0376        .17766        .24415E-03   -.91782    
   4  Prefactor     .84048        .16056        .23922E-03   -.98253    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.09459e-07
Minuit parameter uncertainties:
  1  35.1566
  2  16.8576
  3  0.177765
  4  0.16065
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/27227': 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) = 5329.16711402
delta logL = 0.0597799960569

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.636e+00  3.516e+01  0.000e+00  1.000e+06 ( 1.000e-12)
254        Index:  3.913e+00  1.686e+01  0.000e+00  1.000e+01 (-1.000e+00)
255        Scale:  5.158e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  8.405e-01  1.606e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.038e+00  1.778e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.32
Ra Dec: 335.497 -35.071

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/27227/cmap_HighResolution_692928001_693187201_4FGL_J2221.9-3504_daily_bin1750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.98e-03', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2022-12-20 02:00:22.169667', job_id='27227', GAL2='0.84', fit_tolerance='1e-08', EG2='1.04', EG='1.06', time_epoch_completed='1671530422.17', return_code2='102', ts='0.32', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='5.98e-02', ts2='0.46', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1750' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 20 02:00:22 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 27227: <4FGL_J2221.9-3504_daily_bin1750> in cluster <slac> Done

Job <4FGL_J2221.9-3504_daily_bin1750> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Dec 20 01:50:16 2022
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 20 01:50:17 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 20 01:50:17 2022
Terminated at Tue Dec 20 02:00:23 2022
Results reported at Tue Dec 20 02:00:23 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin1750 335.497 -35.0712 692928001 693187201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2221.9-3504 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   525.42 sec.
    Max Memory :                                 1160 MB
    Average Memory :                             309.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   605 sec.
    Turnaround time :                            607 sec.

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

