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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin1773
RA = 335.497, Dec = -35.0712
tmin = 698889601, tmax = 699148801
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='805819', job_status='RUN', time_executed='2023-02-27 10:37:16.921395', time_epoch_executed='1677523036.92' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='1773'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805819

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805819/ft1_4FGL_J2221.9-3504_daily_bin1773.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805819/ft2_4FGL_J2221.9-3504_daily_bin1773.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805819/ft1_4FGL_J2221.9-3504_daily_bin1773.fits outfile=/scratch/kocevski/805819/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin1773.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=698889601.0 tmax=699148801.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 2.98
user 2.73
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/805819/ft2_4FGL_J2221.9-3504_daily_bin1773.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/805819/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin1773.fits evtable="EVENTS" outfile="/scratch/kocevski/805819/ft1_filtered_4FGL_J2221.9-3504_daily_bin1773.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.34
sys 0.14

Number of photons that the gtmktime cut: 30

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805819/ft1_filtered_4FGL_J2221.9-3504_daily_bin1773.fits" evtable="EVENTS" scfile=/scratch/kocevski/805819/ft2_4FGL_J2221.9-3504_daily_bin1773.fits sctable="SC_DATA" outfile=/scratch/kocevski/805819/ltcube_698889601_699148801_4FGL_J2221.9-3504_daily_bin1773.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/805819/ft2_4FGL_J2221.9-3504_daily_bin1773.fits
.....................!
real 13.63
user 13.25
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805819/ft1_filtered_4FGL_J2221.9-3504_daily_bin1773.fits evtable="EVENTS" scfile=/scratch/kocevski/805819/ft2_4FGL_J2221.9-3504_daily_bin1773.fits sctable="SC_DATA" expcube=/scratch/kocevski/805819/ltcube_698889601_699148801_4FGL_J2221.9-3504_daily_bin1773.fits outfile=/scratch/kocevski/805819/expmap_698889601_699148801_4FGL_J2221.9-3504_daily_bin1773.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/805819/ltcube_698889601_699148801_4FGL_J2221.9-3504_daily_bin1773.fits
.....................!
real 191.40
user 185.81
sys 5.17

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/805819/ft1_filtered_4FGL_J2221.9-3504_daily_bin1773.fits scfile=/scratch/kocevski/805819/ft2_4FGL_J2221.9-3504_daily_bin1773.fits outfile=/scratch/kocevski/805819/cmap_698889601_699148801_4FGL_J2221.9-3504_daily_bin1773.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/805819/ft1_filtered_4FGL_J2221.9-3504_daily_bin1773.fits scfile=/scratch/kocevski/805819/ft2_4FGL_J2221.9-3504_daily_bin1773.fits outfile=/scratch/kocevski/805819/cmap_HighResolution_698889601_699148801_4FGL_J2221.9-3504_daily_bin1773.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/805819/ft1_filtered_4FGL_J2221.9-3504_daily_bin1773.fits evtable="EVENTS" scfile=/scratch/kocevski/805819/ft2_4FGL_J2221.9-3504_daily_bin1773.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/805819/Model_4FGL_J2221.9-3504_daily_bin1773.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/805819/ft1_filtered_4FGL_J2221.9-3504_daily_bin1773.fits..............................!
real 16.22
user 14.13
sys 1.54

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/805819/ft1_filtered_4FGL_J2221.9-3504_daily_bin1773.fits', '/scratch/kocevski/805819/ft2_4FGL_J2221.9-3504_daily_bin1773.fits', expMap='/scratch/kocevski/805819/expmap_698889601_699148801_4FGL_J2221.9-3504_daily_bin1773.fits', expCube='/scratch/kocevski/805819/ltcube_698889601_699148801_4FGL_J2221.9-3504_daily_bin1773.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/805819/Model_4FGL_J2221.9-3504_daily_bin1773.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/805819/ft1_filtered_4FGL_J2221.9-3504_daily_bin1773.fits
Spacecraft file(s): /scratch/kocevski/805819/ft2_4FGL_J2221.9-3504_daily_bin1773.fits
Exposure map: /scratch/kocevski/805819/expmap_698889601_699148801_4FGL_J2221.9-3504_daily_bin1773.fits
Exposure cube: /scratch/kocevski/805819/ltcube_698889601_699148801_4FGL_J2221.9-3504_daily_bin1773.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/805819/Model_4FGL_J2221.9-3504_daily_bin1773.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) = 290.015454636

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.147       1.0000          .0000       .10000E+07
     2 'Prefactor '    .56545E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    .11185E-01   1.0000          .0000       .10000E+07
     4 'norm      '    .98627E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .16005E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    .16258       1.0000          .0000       .10000E+07
     7 'norm      '    .16692E-04   1.0000          .0000       .10000E+07
     8 'norm      '    6.7089       1.0000          .0000       .10000E+07
     9 'Prefactor '    .17504       1.0000          .0000       .10000E+07
    10 'Prefactor '    823.18       1.0000          .0000       .10000E+07
    11 'Prefactor '    .99991E+06   1.0000          .0000       .10000E+07
    12 'Prefactor '    .88075E-02   1.0000          .0000       .10000E+07
    13 'norm      '    3355.5       1.0000          .0000       .10000E+07
    14 'Prefactor '    4.9136       1.0000          .0000       .10000E+07
    15 'Prefactor '    .18787       1.0000          .0000       .10000E+07
    16 'Prefactor '    .17666E-01   1.0000          .0000       .10000E+07
    17 'norm      '    .53092E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    1.6879       1.0000          .0000       .10000E+07
    19 'Prefactor '    .52072E-01   1.0000          .0000       .10000E+07
    20 'Prefactor '    .13088E-02   1.0000          .0000       .10000E+07
    21 'norm      '    .31876E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .32139       1.0000          .0000       .10000E+07
    23 'Prefactor '    .47090E-01   1.0000          .0000       .10000E+07
    24 'norm      '    .19545E-05   1.0000          .0000       .10000E+07
    25 'Prefactor '    .69649E-01   1.0000          .0000       .10000E+07
    26 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    .20624       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=   289.9456     FROM MIGRAD    STATUS=CONVERGED    204 CALLS     2453 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.090        16.298        .13695E-05   -.54400E-02
   2  Prefactor      .0000        10.728       -.75900E-06** at limit **
   3  Prefactor     .38858E-09    17.058       -.13862E-05** at limit **
   4  norm          .15599E-07    25.304        .49099E-06** at limit **
   5  Prefactor      .0000        93.675        .14696E-05** at limit **
   6  Prefactor     .43556E-05    5.8561       -.10881E-05** at limit **
   7  norm          .55511E-10    14.265        .81443E-06** at limit **
   8  norm          6.7197        6.8748       -.10434E-06   -.10320E-04
   9  Prefactor     .72140E-05    468.17       -.15132E-04** at limit **
  10  Prefactor     822.84        25.817       -.33731E-06    .27222    
  11  Prefactor     .99991E+06    41.743        .16791E-05   -.14371    
  12  Prefactor     .45408E-07    51.745        .11371E-06** at limit **
  13  norm          3355.3        17.573       -.11375E-06    .37328    
  14  Prefactor     .93121E-05    529.22        .65048E-05** at limit **
  15  Prefactor     .22485E-05    22.028       -.28407E-05** at limit **
  16  Prefactor     .26822E-05    15.137        .44803E-07** at limit **
  17  norm           .0000        82.444       -.10620E-06** at limit **
  18  Prefactor     .25263E-02    2641.0       -.33006E-04** at limit **
  19  Prefactor      .0000        51.006        .35901E-06** at limit **
  20  Prefactor     .61062E-09    13.924       -.74349E-06** at limit **
  21  norm          .49960E-09    30.663        .56408E-07** at limit **
  22  Prefactor     .96700E-07    110.40        .17130E-05** at limit **
  23  Prefactor      .0000        59.620        .38276E-06** at limit **
  24  norm           .0000        5.0485        .25315E-06** at limit **
  25  Prefactor      .0000        54.840        .31051E-06** at limit **
  26  Normalizat    .10000E-01    .85264E-01    .15899E-04** at limit **
  27  Prefactor     .20688        .21001       -.46080E-04   -.22653E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 17.0896
  Prefactor  = 0
  Prefactor  = 3.88578e-10
  norm       = 1.55986e-08
  Prefactor  = 0
  Prefactor  = 4.35557e-06
  norm       = 5.55112e-11
  norm       = 6.71971
  Prefactor  = 7.21401e-06
  Prefactor  = 822.84
  Prefactor  = 999913
  Prefactor  = 4.54081e-08
  norm       = 3355.28
  Prefactor  = 9.31211e-06
  Prefactor  = 2.24848e-06
  Prefactor  = 2.68219e-06
  norm       = 0
  Prefactor  = 0.00252627
  Prefactor  = 0
  Prefactor  = 6.10623e-10
  norm       = 4.996e-10
  Prefactor  = 9.67004e-08
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  Normalizat = 0.01
  Prefactor  = 0.206881
 **********
 **   18 **HESSE 
 **********

 FCN=   289.9456     FROM HESSE     STATUS=OK           520 CALLS     2973 TOTAL
                     EDM=   .53E-01    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.090        16.309        .24160E-03   -1.5625    
   2  Prefactor      .0000        10.726        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .38858E-09    17.065        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .15599E-07    25.675        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        93.675        .17315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .43556E-05    233.92        .12484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .55511E-10    14.616        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.7197        6.8726        .38716E-03   -1.5656    
   9  Prefactor     .72140E-05    487.27        .12238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     822.84        51725.        .34868E-04   -1.5134    
  11  Prefactor     .99991E+06    32061.        .10700E-03    1.5522    
  12  Prefactor     .45408E-07    52.583        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3355.3        60800.        .17292E-04   -1.4549    
  14  Prefactor     .93121E-05    529.24        .45351E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .22485E-05    434.10        .11996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .26822E-05    228.18        .17195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        82.441        .15419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .25263E-02    2643.0        .81009E-03   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        50.998        .15459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .61062E-09    14.365        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .49960E-09    30.686        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .96700E-07    110.94        .99226E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor      .0000        59.603        .15658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm           .0000        5.0354        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor      .0000        54.838        .14830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .10000E-01    .85269E-01    .69675E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .20688        .21066        .55029E-01   -1.2821    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.0530536
Minuit parameter uncertainties:
  1  16.3087
  2  6.91247e-07
  3  0.000166787
  4  0.00126474
  5  1.37227e-05
  6  0.0638417
  7  4.66413e-05
  8  6.87262
  9  0.118588
  10  13168.6
  11  3354.89
  12  0.00309131
  13  28914.3
  14  0.140417
  15  0.0624891
  16  0.0494805
  17  8.01579e-07
  18  5.17023
  19  3.06305e-06
  20  0.000189752
  21  0.000243575
  22  0.00654994
  23  2.7888e-06
  24  6.41034e-07
  25  2.84602e-06
  26  2.60552e-08
  27  0.211435
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  9.999e+05  3.355e+03  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:  2.069e-01  2.114e-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.000e-02  2.606e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 144.69
Ra Dec: 335.497 -35.071
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 4.82e-03 +/- 1.62e-05
Energy Flux (Fixed Index): 1.18e+00 +/- 3.97e-03

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) = 289.934751873
delta logL = 0.0108561235148

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 289.929444007
delta logL = 0.0161639898893

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   289.9294     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      178 TOTAL
                     EDM=   .50E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E+07    33470.        .19531E-02** at limit **
   2  Index         2.7599        .46289       -.16847E-05   -.24946E-04
   3  Normalizat    .10000E-01    .85171E-01    .14570E-06** at limit **
   4  Prefactor     .22824        .23871       -.23213E-05   -.60516E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1e+06
  Index      = 2.75988
  Normalizat = 0.01
  Prefactor  = 0.228242
 **********
 **   18 **HESSE 
 **********

 FCN=   289.9294     FROM HESSE     STATUS=OK            29 CALLS      207 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E+07    33469.        .84235E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7599        .47031        .15231E-03   -.46455    
   3  Normalizat    .10000E-01    .85200E-01    .15370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .22824        .24089        .23548E-03   -1.2675    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04504e-11
Minuit parameter uncertainties:
  1  0.00105657
  2  0.471179
  3  3.53631e-08
  4  0.241946
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805819': 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) = 289.929443901
delta logL = 0.0161640955231

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e+06  1.057e-03  0.000e+00  1.000e+06 ( 1.000e-12)
254        Index:  2.760e+00  4.712e-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:  2.282e-01  2.419e-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.000e-02  3.536e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 141.29
Ra Dec: 335.497 -35.071
Photon Index (Free Index): 2.76 +/- 0.47
Photon Flux (Free Index): 5.27e-03 +/- 2.66e-03
Energy Flux (Free Index): 1.21e+00 +/- 2.06e-01

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/805819/cmap_HighResolution_698889601_699148801_4FGL_J2221.9-3504_daily_bin1773.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.82e-03', energy_flux2='1.21e+00', photon_flux_error='1.62e-05', dlogl='1.62e-02', energy_flux='1.18e+00', photon_flux2='5.27e-03', job_status='DONE', time_completed='2023-02-27 10:42:49.345480', photon_index_error2='0.47', photon_index2='2.76', ts='144.69', fit_tolerance='1e-08', GAL='0.21', photon_index_error='0.00', energy_flux_error2='2.06e-01', EG='0.01', time_epoch_completed='1677523369.35', return_code='0', job_id='805819', GAL2='0.23', EG2='0.01', return_code2='0', energy_flux_error='3.97e-03', photon_flux_error2='2.66e-03', ts2='141.29', photon_index='2.68' WHERE bin_id='1773' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb 27 10:42:49 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 805819: <4FGL_J2221.9-3504_daily_bin1773> in cluster <slac> Done

Job <4FGL_J2221.9-3504_daily_bin1773> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Feb 27 10:35:19 2023
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb 27 10:35:20 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb 27 10:35:20 2023
Terminated at Mon Feb 27 10:43:02 2023
Results reported at Mon Feb 27 10:43:02 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin1773 335.497 -35.0712 698889601 699148801 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 :                                   334.04 sec.
    Max Memory :                                 1186 MB
    Average Memory :                             276.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   461 sec.
    Turnaround time :                            471 sec.

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

