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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin1712
RA = 335.497, Dec = -35.0712
tmin = 683078401, tmax = 683337601
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='242248', job_status='RUN', time_executed='2022-09-16 23:50:43.360960', time_epoch_executed='1663397443.36' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='1712'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/242248

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/242248/ft1_4FGL_J2221.9-3504_daily_bin1712.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/242248/ft2_4FGL_J2221.9-3504_daily_bin1712.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/242248/ft1_4FGL_J2221.9-3504_daily_bin1712.fits outfile=/scratch/kocevski/242248/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin1712.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=683078401.0 tmax=683337601.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.77
user 4.50
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/242248/ft2_4FGL_J2221.9-3504_daily_bin1712.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/242248/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin1712.fits evtable="EVENTS" outfile="/scratch/kocevski/242248/ft1_filtered_4FGL_J2221.9-3504_daily_bin1712.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.53
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 330

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/242248/ft1_filtered_4FGL_J2221.9-3504_daily_bin1712.fits" evtable="EVENTS" scfile=/scratch/kocevski/242248/ft2_4FGL_J2221.9-3504_daily_bin1712.fits sctable="SC_DATA" outfile=/scratch/kocevski/242248/ltcube_683078401_683337601_4FGL_J2221.9-3504_daily_bin1712.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/242248/ft2_4FGL_J2221.9-3504_daily_bin1712.fits
.....................!
real 14.81
user 14.40
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/242248/ft1_filtered_4FGL_J2221.9-3504_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/242248/ft2_4FGL_J2221.9-3504_daily_bin1712.fits sctable="SC_DATA" expcube=/scratch/kocevski/242248/ltcube_683078401_683337601_4FGL_J2221.9-3504_daily_bin1712.fits outfile=/scratch/kocevski/242248/expmap_683078401_683337601_4FGL_J2221.9-3504_daily_bin1712.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/242248/ltcube_683078401_683337601_4FGL_J2221.9-3504_daily_bin1712.fits
.....................!
real 191.57
user 185.91
sys 5.30

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/242248/ft1_filtered_4FGL_J2221.9-3504_daily_bin1712.fits scfile=/scratch/kocevski/242248/ft2_4FGL_J2221.9-3504_daily_bin1712.fits outfile=/scratch/kocevski/242248/cmap_683078401_683337601_4FGL_J2221.9-3504_daily_bin1712.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/242248/ft1_filtered_4FGL_J2221.9-3504_daily_bin1712.fits scfile=/scratch/kocevski/242248/ft2_4FGL_J2221.9-3504_daily_bin1712.fits outfile=/scratch/kocevski/242248/cmap_HighResolution_683078401_683337601_4FGL_J2221.9-3504_daily_bin1712.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.61
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/242248/ft1_filtered_4FGL_J2221.9-3504_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/242248/ft2_4FGL_J2221.9-3504_daily_bin1712.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/242248/Model_4FGL_J2221.9-3504_daily_bin1712.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/242248/ft1_filtered_4FGL_J2221.9-3504_daily_bin1712.fits.....................!
real 36.11
user 34.74
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.6993       1.0000          .0000       .10000E+07
     2 'Prefactor '    1.9763       1.0000          .0000       .10000E+07
     3 'Prefactor '    .10685E-03   1.0000          .0000       .10000E+07
     4 'norm      '    14.661       1.0000          .0000       .10000E+07
     5 'Prefactor '    .17700E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    .51423E-04   1.0000          .0000       .10000E+07
     7 'norm      '    16.626       1.0000          .0000       .10000E+07
     8 'norm      '    .75893       1.0000          .0000       .10000E+07
     9 'Prefactor '    .36382E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    14.563       1.0000          .0000       .10000E+07
    11 'Prefactor '    .26521E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    5.6041       1.0000          .0000       .10000E+07
    13 'norm      '    51.713       1.0000          .0000       .10000E+07
    14 'Prefactor '    .61644E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .62919       1.0000          .0000       .10000E+07
    16 'Prefactor '    .20866E-04   1.0000          .0000       .10000E+07
    17 'norm      '    .23370E-07   1.0000          .0000       .10000E+07
    18 'Prefactor '    .57600E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    43.482       1.0000          .0000       .10000E+07
    20 'Prefactor '    .18238E-02   1.0000          .0000       .10000E+07
    21 'norm      '    .71329E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .65930E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    .43624E-03   1.0000          .0000       .10000E+07
    24 'norm      '    1.1521       1.0000          .0000       .10000E+07
    25 'Prefactor '    .16563E-02   1.0000          .0000       .10000E+07
    26 'Normalizat'    .87853       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .96722       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=   3802.704     FROM MIGRAD    STATUS=CONVERGED    201 CALLS     1883 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.7302        4.9586        .33646E-07    .64988E-03
   2  Prefactor     1.9842        8.2022        .43605E-06   -.26738E-02
   3  Prefactor      .0000        2.7430        .55057E-06** at limit **
   4  norm          14.693        4.0855        .12190E-06    .13107    
   5  Prefactor      .0000        29.425       -.10511E-05** at limit **
   6  Prefactor     .11989E-05    64.757        .12133E-05** at limit **
   7  norm          16.625        8.2520        .12587E-06   -.21300E-01
   8  norm          .75905        .43261        .16972E-07   -.30886E-03
   9  Prefactor     .62172E-08    8.1203        .44888E-06** at limit **
  10  Prefactor     15.201        21.048       -.11912E-05    .55313E-01
  11  Prefactor     .21606E-05    56.656        .23731E-06** at limit **
  12  Prefactor     5.6071        4.7108        .75111E-07    .64210E-03
  13  norm          51.964        2.6589       -.32752E-07    .23294E-02
  14  Prefactor     .16653E-09    16.961       -.48547E-06** at limit **
  15  Prefactor     .47887E-05    590.06        .10206E-04** at limit **
  16  Prefactor     .87541E-06    17.513       -.13633E-05** at limit **
  17  norm           .0000        1.0808        .25574E-06** at limit **
  18  Prefactor     .88690E-06    17.567        .61322E-06** at limit **
  19  Prefactor     43.642        1.8640       -.48134E-07    .13774E-01
  20  Prefactor     .13212E-07    8.0363        .13011E-06** at limit **
  21  norm           .0000        3.4843        .18383E-06** at limit **
  22  Prefactor     .23870E-08    6.0478        .17710E-06** at limit **
  23  Prefactor     .55511E-09    6.1824        .27935E-07** at limit **
  24  norm          1.1512        .73660        .73578E-07    .11574E-02
  25  Prefactor     .55511E-10    5.4860       -.93513E-07** at limit **
  26  Normalizat    .87857        .26478        .71668E-05   -.67311E-04
  27  Prefactor     .96671        .22966       -.10917E-04   -.72597E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.73019
  Prefactor  = 1.98415
  Prefactor  = 0
  norm       = 14.6934
  Prefactor  = 0
  Prefactor  = 1.19893e-06
  norm       = 16.6255
  norm       = 0.759055
  Prefactor  = 6.21725e-09
  Prefactor  = 15.2012
  Prefactor  = 2.16061e-06
  Prefactor  = 5.6071
  norm       = 51.9638
  Prefactor  = 1.66533e-10
  Prefactor  = 4.78872e-06
  Prefactor  = 8.75411e-07
  norm       = 0
  Prefactor  = 8.86902e-07
  Prefactor  = 43.6417
  Prefactor  = 1.32117e-08
  norm       = 0
  Prefactor  = 2.38698e-09
  Prefactor  = 5.55112e-10
  norm       = 1.15121
  Prefactor  = 5.55112e-11
  Normalizat = 0.878573
  Prefactor  = 0.966709
 **********
 **   18 **HESSE 
 **********

 FCN=   3802.704     FROM HESSE     STATUS=OK           544 CALLS     2427 TOTAL
                     EDM=   .80E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.7302        4.9592        .38744E-03   -1.5656    
   2  Prefactor     1.9842        8.3295        .73712E-03   -1.5680    
   3  Prefactor      .0000        2.7513        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          14.693        12.503        .26132E-03   -1.5631    
   5  Prefactor      .0000        28.934        .17193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .11989E-05    67.437        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          16.625        8.5043        .24536E-03   -1.5626    
   8  norm          .75905        .43042        .56048E-03   -1.5691    
   9  Prefactor     .62172E-08    8.1487        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.201        29.056        .26220E-03   -1.5630    
  11  Prefactor     .21606E-05    60.107        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.6071        4.7235        .42413E-03   -1.5661    
  13  norm          51.964        41.094        .13907E-03   -1.5564    
  14  Prefactor     .16653E-09    16.969        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .47887E-05    37.363        .99242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .87541E-06    23.026        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        1.0816        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .88690E-06    23.346        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     43.642        23.097        .15167E-03   -1.5576    
  20  Prefactor     .13212E-07    8.0915        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm           .0000        3.4740        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .23870E-08    6.0618        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .55511E-09    6.1872        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.1512        .74452        .92834E-03   -1.5687    
  25  Prefactor     .55511E-10    5.4825        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .87857        .24249        .44627E-01   -.97217    
  27  Prefactor     .96671        .20269        .45856E-01   -.93848    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.02342e-07
Minuit parameter uncertainties:
  1  4.9592
  2  8.1307
  3  3.07367e-06
  4  12.503
  5  2.205e-05
  6  0.0179838
  7  8.50426
  8  0.430415
  9  0.000450876
  10  29.0567
  11  0.0227921
  12  4.72346
  13  41.0947
  14  9.83009e-05
  15  0.0267526
  16  0.00897952
  17  4.03932e-06
  18  0.00910054
  19  23.097
  20  0.000653944
  21  4.96787e-06
  22  0.000239403
  23  0.000118124
  24  0.744524
  25  2.82354e-05
  26  0.242796
  27  0.202848
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  2.161e-06  2.279e-02  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:  9.667e-01  2.028e-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:  8.786e-01  2.428e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 335.497 -35.071
Photon Flux Upper Limit: 1.43e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.12e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/242248/likelihoodResults_683078401_683337601_4FGL_J2221.9-3504_daily_bin1712.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) = 3802.71511931
delta logL = -0.0107073808622

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3802.22458268
delta logL = 0.479829251063

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3135       1.0000          .0000       .10000E+07
     2 'Index     '    1.3790       1.0000          .0000       10.000    
     3 'Normalizat'    .88053       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95605       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=   3802.225     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      215 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3135        4.7937        .55588E-03   -.14045E-01
   2  Index         1.3791        .45565        .21636       -.53961E-04
   3  Normalizat    .88052        .22731        .44652E-01    .10231E-04
   4  Prefactor     .95606        .19817        .45715E-01    .46379E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.31345
  Index      = 1.37907
  Normalizat = 0.880523
  Prefactor  = 0.956062
 **********
 **   18 **HESSE 
 **********

 FCN=   3802.225     FROM HESSE     STATUS=OK            31 CALLS      246 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3135        6.6111        .15761E-04   -1.5672    
   2  Index         1.3791        .75691        .79467E-02   -.80985    
   3  Normalizat    .88052        .25936        .27999E-03   -.97148    
   4  Prefactor     .95606        .22611        .23375E-03   -.94209    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94861e-09
Minuit parameter uncertainties:
  1  6.61107
  2  0.763123
  3  0.259726
  4  0.226334
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/242248': 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) = 3802.22458266
delta logL = 0.479829264365

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  3.313e+00  6.611e+00  0.000e+00  1.000e+06 ( 1.000e-12)
254        Index:  1.379e+00  7.631e-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:  9.561e-01  2.263e-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:  8.805e-01  2.597e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/242248/cmap_HighResolution_683078401_683337601_4FGL_J2221.9-3504_daily_bin1712.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', job_status='DONE', photon_flux_upper_limit='1.43e-07', time_completed='2022-09-16 23:59:05.168638', job_id='242248', GAL2='0.96', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1663397945.17', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='4.80e-01', ts2='0.96', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1712' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 23:59:05 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 242248: <4FGL_J2221.9-3504_daily_bin1712> in cluster <slac> Done

Job <4FGL_J2221.9-3504_daily_bin1712> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 16 23:45:30 2022
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 23:46: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 23:46:47 2022
Terminated at Fri Sep 16 23:59:06 2022
Results reported at Fri Sep 16 23:59:06 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin1712 335.497 -35.0712 683078401 683337601 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 :                                   503.54 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   738 sec.
    Turnaround time :                            816 sec.

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

