/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 3 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7385
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2221.9-3504_daily_bin1470
RA = 335.497, Dec = -35.0712
tmin = 620352001, tmax = 620611201
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='276199', job_status='RUN', time_executed='2021-09-28 10:05:49.543258', time_epoch_executed='1632848749.54' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='1470'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/276199

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/276199/ft1_4FGL_J2221.9-3504_daily_bin1470.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/276199/ft2_4FGL_J2221.9-3504_daily_bin1470.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/276199/ft1_4FGL_J2221.9-3504_daily_bin1470.fits outfile=/scratch/kocevski/276199/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin1470.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=620352001.0 tmax=620611201.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.89
user 4.60
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/276199/ft1_filtered_4FGL_J2221.9-3504_daily_bin1470.fits" evtable="EVENTS" scfile=/scratch/kocevski/276199/ft2_4FGL_J2221.9-3504_daily_bin1470.fits sctable="SC_DATA" outfile=/scratch/kocevski/276199/ltcube_620352001_620611201_4FGL_J2221.9-3504_daily_bin1470.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/276199/ft2_4FGL_J2221.9-3504_daily_bin1470.fits
.....................!
real 11.78
user 11.43
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/276199/ft1_filtered_4FGL_J2221.9-3504_daily_bin1470.fits evtable="EVENTS" scfile=/scratch/kocevski/276199/ft2_4FGL_J2221.9-3504_daily_bin1470.fits sctable="SC_DATA" expcube=/scratch/kocevski/276199/ltcube_620352001_620611201_4FGL_J2221.9-3504_daily_bin1470.fits outfile=/scratch/kocevski/276199/expmap_620352001_620611201_4FGL_J2221.9-3504_daily_bin1470.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/276199/ltcube_620352001_620611201_4FGL_J2221.9-3504_daily_bin1470.fits
.....................!
real 191.48
user 186.39
sys 4.57

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/276199/ft1_filtered_4FGL_J2221.9-3504_daily_bin1470.fits scfile=/scratch/kocevski/276199/ft2_4FGL_J2221.9-3504_daily_bin1470.fits outfile=/scratch/kocevski/276199/cmap_620352001_620611201_4FGL_J2221.9-3504_daily_bin1470.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/276199/ft1_filtered_4FGL_J2221.9-3504_daily_bin1470.fits scfile=/scratch/kocevski/276199/ft2_4FGL_J2221.9-3504_daily_bin1470.fits outfile=/scratch/kocevski/276199/cmap_HighResolution_620352001_620611201_4FGL_J2221.9-3504_daily_bin1470.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/276199/ft1_filtered_4FGL_J2221.9-3504_daily_bin1470.fits evtable="EVENTS" scfile=/scratch/kocevski/276199/ft2_4FGL_J2221.9-3504_daily_bin1470.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/276199/Model_4FGL_J2221.9-3504_daily_bin1470.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/276199/ft1_filtered_4FGL_J2221.9-3504_daily_bin1470.fits.....................!
real 48.18
user 46.83
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/276199/ft1_filtered_4FGL_J2221.9-3504_daily_bin1470.fits', '/scratch/kocevski/276199/ft2_4FGL_J2221.9-3504_daily_bin1470.fits', expMap='/scratch/kocevski/276199/expmap_620352001_620611201_4FGL_J2221.9-3504_daily_bin1470.fits', expCube='/scratch/kocevski/276199/ltcube_620352001_620611201_4FGL_J2221.9-3504_daily_bin1470.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/276199/Model_4FGL_J2221.9-3504_daily_bin1470.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  1.000e-04  1.000e+04 ( 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/276199/ft1_filtered_4FGL_J2221.9-3504_daily_bin1470.fits
Spacecraft file(s): /scratch/kocevski/276199/ft2_4FGL_J2221.9-3504_daily_bin1470.fits
Exposure map: /scratch/kocevski/276199/expmap_620352001_620611201_4FGL_J2221.9-3504_daily_bin1470.fits
Exposure cube: /scratch/kocevski/276199/ltcube_620352001_620611201_4FGL_J2221.9-3504_daily_bin1470.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/276199/Model_4FGL_J2221.9-3504_daily_bin1470.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) = 6252.9271647

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4475       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.1409       1.0000         .10000E-03   10000.    
     8 'norm      '    .80206       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .25645       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    10.425       1.0000         .10000E-03   10000.    
    14 'Prefactor '    38.216       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10436E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    83.548       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .66716       1.0000         .10000E-03   10000.    
    21 'norm      '    5.7239       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.6290       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.4070       1.0000         .10000E-03   10000.    
    24 'norm      '    1.0109       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.3622       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1636       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .68015       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6252.917     FROM MIGRAD    STATUS=CONVERGED   1212 CALLS     4007 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4466        3.8606        .12681E-03   -.50204E-05
   2  Prefactor     .10000E-03    3.4110        .14175E-02** at limit **
   3  Prefactor     .10000E-03    1.9540        .10784E-02** at limit **
   4  norm          .10000E-03    3.0833        .13523E-02** at limit **
   5  Prefactor     .10000E-03    8.8895        .18142E-02** at limit **
   6  Prefactor     .10000E-03    37.049        .18142E-02** at limit **
   7  norm          4.1412        4.1937        .14938E-03   -.42315E-04
   8  norm          .80207        .32476        .26727E-04   -.31477E-04
   9  Prefactor     .13483        15.046        .70186E-01    .21260E-03
  10  Prefactor     .10000E-03    4.6341        .16617E-02** at limit **
  11  Prefactor     .10000E-03    3.4099        .14166E-02** at limit **
  12  Prefactor     .10000E-03    .92307        .73992E-03** at limit **
  13  norm          10.424        11.640        .12410E-03    .45531E-04
  14  Prefactor     38.205        35.316        .64834E-04   -.28336E-04
  15  Prefactor     .10000E-03    5.5178        .18132E-02** at limit **
  16  Prefactor     .10000E-03    6.4293        .18142E-02** at limit **
  17  norm          .10000E-03    1.5674        .18960E-03** at limit **
  18  Prefactor     83.531        48.007        .43946E-04    .21844E-03
  19  Prefactor     .10000E-03    2.0815        .11130E-02** at limit **
  20  Prefactor     .66710        6.8453        .39117E-03    .48681E-04
  21  norm          5.7238        3.4820        .10745E-03    .10358E-03
  22  Prefactor     2.6326        13.132        .12575E-02   -.42328E-04
  23  Prefactor     8.4015        12.572        .13826E-03   -.31164E-04
  24  norm          1.0108        .82352        .46367E-04    .47567E-03
  25  Prefactor     3.2238        105.35        .22070E-03   -.11642E-04
  26  Prefactor     .10000E-03    5.8160        .18142E-02** at limit **
  27  Normalizat    1.1636        .19187        .21626E-03    .17018E-03
  28  Prefactor     .68025        .16831        .24664E-03   -.54575E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.44659
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.14125
  norm       = 0.802067
  Prefactor  = 0.134828
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.4242
  Prefactor  = 38.2046
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 83.5308
  Prefactor  = 0.0001
  Prefactor  = 0.6671
  norm       = 5.72377
  Prefactor  = 2.63258
  Prefactor  = 8.40146
  norm       = 1.01081
  Prefactor  = 3.22379
  Prefactor  = 0.0001
  Normalizat = 1.16362
  Prefactor  = 0.680251
 **********
 **   18 **HESSE 
 **********

 FCN=   6252.917     FROM HESSE     STATUS=OK           503 CALLS     4510 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4466        3.8605        .50725E-05   -1.5241    
   2  Prefactor     .10000E-03    3.4120        .28349E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.9541        .21568E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.0836        .27045E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.8901        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    37.052        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.1412        4.1933        .59752E-05   -1.5301    
   8  norm          .80207        .32475        .10691E-05   -1.5529    
   9  Prefactor     .13483        12.618        .78568E-01   -1.5635    
  10  Prefactor     .10000E-03    4.6342        .33234E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.4110        .28332E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .92310        .14798E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.424        11.640        .49639E-05   -1.5062    
  14  Prefactor     38.205        35.315        .12967E-04   -1.4471    
  15  Prefactor     .10000E-03    5.5180        .36265E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.4297        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.5674        .37919E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     83.531        48.005        .87892E-05   -1.3878    
  19  Prefactor     .10000E-03    2.0816        .22260E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .66710        6.8421        .15647E-04   -1.5545    
  21  norm          5.7238        3.4818        .42981E-05   -1.5229    
  22  Prefactor     2.6326        12.998        .50301E-04   -1.5383    
  23  Prefactor     8.4015        12.536        .55304E-05   -1.5128    
  24  norm          1.0108        .82370        .18547E-05   -1.5507    
  25  Prefactor     3.2238        105.34        .88279E-05   -1.5349    
  26  Prefactor     .10000E-03    5.8163        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1636        .19200        .43252E-04   -.87734    
  28  Prefactor     .68025        .16845        .98657E-05   -1.0431    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.24615e-10
Minuit parameter uncertainties:
  1  3.86066
  2  1.73614e-06
  3  1.01079e-06
  4  1.06561e-06
  5  3.70882e-06
  6  1.05164e-05
  7  4.19362
  8  0.324752
  9  2.60829
  10  7.84694e-07
  11  9.9886e-06
  12  3.39991e-06
  13  11.6428
  14  35.3338
  15  1.70817e-05
  16  1.91416e-05
  17  5.73515e-06
  18  48.0275
  19  5.56061e-06
  20  4.27317
  21  3.48188
  22  11.7031
  23  12.5402
  24  0.823709
  25  36.9273
  26  1.5014e-05
  27  0.192114
  28  0.168578
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  9.989e-06  1.000e-04  1.000e+04 ( 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:  6.803e-01  1.686e-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.164e+00  1.921e-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: 5.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/276199/likelihoodResults_620352001_620611201_4FGL_J2221.9-3504_daily_bin1470.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) = 6252.91794053
delta logL = -0.00139656759711

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6252.91654423
delta logL = -2.68390976998e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6651       1.0000          .0000       10.000    
     3 'Normalizat'    1.1636       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68033       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6252.917     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      248 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.622        .14244E-01** at limit **
   2  Index         2.2683        8.6691        .50000        .12180E-06
   3  Normalizat    1.1636        .11183E-01    .21626E-03   -.18612E-03
   4  Prefactor     .68025        .10054E-01    .24664E-03   -.15792E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.26828
  Normalizat = 1.16362
  Prefactor  = 0.680253
 **********
 **   18 **HESSE 
 **********

 FCN=   6252.917     FROM HESSE     STATUS=OK            29 CALLS      277 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.6087        .29759E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2683        8.8275        .50000       -.57799    
   3  Normalizat    1.1636        .18477        .43252E-04   -.87735    
   4  Prefactor     .68025        .16608        .98657E-05   -1.0431    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49105e-10
Minuit parameter uncertainties:
  1  0.000110212
  2  174.457
  3  0.184871
  4  0.166199
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/276199': 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) = 6252.91654243
delta logL = 1.53049495566e-06

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  1.102e-04  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.268e+00  1.745e+02  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:  6.803e-01  1.662e-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.164e+00  1.849e-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/276199/cmap_HighResolution_620352001_620611201_4FGL_J2221.9-3504_daily_bin1470.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.33e-03', job_status='DONE', photon_flux_upper_limit='5.51e-08', time_completed='2021-09-28 10:19:24.054408', job_id='276199', GAL2='0.68', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1632849564.05', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='1.53e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1470' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:19:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 276199: <4FGL_J2221.9-3504_daily_bin1470> in cluster <slac> Done

Job <4FGL_J2221.9-3504_daily_bin1470> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 10:05:35 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:05:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 10:05:37 2021
Terminated at Tue Sep 28 10:19:24 2021
Results reported at Tue Sep 28 10:19:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin1470 335.497 -35.0712 620352001 620611201 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 :                                   811.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            829 sec.

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

