/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 25 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 = 7627
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2221.9-3504_daily_bin1011
RA = 335.497, Dec = -35.0712
tmin = 501379201, tmax = 501638401
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='273522', job_status='RUN', time_executed='2021-09-28 09:56:35.071373', time_epoch_executed='1632848195.07' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='1011'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/273522

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/273522/ft1_4FGL_J2221.9-3504_daily_bin1011.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/273522/ft2_4FGL_J2221.9-3504_daily_bin1011.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/273522/ft1_4FGL_J2221.9-3504_daily_bin1011.fits outfile=/scratch/kocevski/273522/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin1011.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=501379201.0 tmax=501638401.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.57
user 3.35
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/273522/ft1_filtered_4FGL_J2221.9-3504_daily_bin1011.fits" evtable="EVENTS" scfile=/scratch/kocevski/273522/ft2_4FGL_J2221.9-3504_daily_bin1011.fits sctable="SC_DATA" outfile=/scratch/kocevski/273522/ltcube_501379201_501638401_4FGL_J2221.9-3504_daily_bin1011.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/273522/ft2_4FGL_J2221.9-3504_daily_bin1011.fits
.....................!
real 11.86
user 11.46
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/273522/ft1_filtered_4FGL_J2221.9-3504_daily_bin1011.fits evtable="EVENTS" scfile=/scratch/kocevski/273522/ft2_4FGL_J2221.9-3504_daily_bin1011.fits sctable="SC_DATA" expcube=/scratch/kocevski/273522/ltcube_501379201_501638401_4FGL_J2221.9-3504_daily_bin1011.fits outfile=/scratch/kocevski/273522/expmap_501379201_501638401_4FGL_J2221.9-3504_daily_bin1011.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/273522/ltcube_501379201_501638401_4FGL_J2221.9-3504_daily_bin1011.fits
.....................!
real 189.78
user 184.58
sys 4.85

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/273522/ft1_filtered_4FGL_J2221.9-3504_daily_bin1011.fits scfile=/scratch/kocevski/273522/ft2_4FGL_J2221.9-3504_daily_bin1011.fits outfile=/scratch/kocevski/273522/cmap_501379201_501638401_4FGL_J2221.9-3504_daily_bin1011.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/273522/ft1_filtered_4FGL_J2221.9-3504_daily_bin1011.fits scfile=/scratch/kocevski/273522/ft2_4FGL_J2221.9-3504_daily_bin1011.fits outfile=/scratch/kocevski/273522/cmap_HighResolution_501379201_501638401_4FGL_J2221.9-3504_daily_bin1011.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.6508       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10394E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    9.3337       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10343E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.7506       1.0000         .10000E-03   10000.    
     8 'norm      '    .60678       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.9683       1.0000         .10000E-03   10000.    
    10 'Prefactor '    45.378       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.3624       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.8906       1.0000         .10000E-03   10000.    
    13 'norm      '    .72984       1.0000         .10000E-03   10000.    
    14 'Prefactor '    34.646       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.5919       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.390       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.0274       1.0000         .10000E-03   10000.    
    21 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.9376       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10905E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .51823       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.9562       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1310       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .78727       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=   6041.588     FROM MIGRAD    STATUS=CONVERGED    688 CALLS     3487 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.6500        4.3306        .67559E-07    .75941E-04
   2  Prefactor     .10000E-03    3.4669       -.63929E-07** at limit **
   3  Prefactor     .10000E-03    7.4647       -.23030E-06** at limit **
   4  norm          9.3305        7.8937        .94860E-07    .40852E-04
   5  Prefactor     .10000E-03    17.292        .73857E-06** at limit **
   6  Prefactor     .10000E-03    24.321       -.15904E-06** at limit **
   7  norm          8.7494        4.8941       -.19286E-06   -.25190E-03
   8  norm          .60678        .31096        .11115E-07    .11194E-03
   9  Prefactor     1.9685        6.8247        .59396E-05   -.94417E-04
  10  Prefactor     45.353        21.448       -.19102E-06    .96833E-05
  11  Prefactor     3.3604        8.2012        .32822E-05   -.71771E-05
  12  Prefactor     2.8911        2.6287        .14998E-06    .26154E-03
  13  norm          .42617        15.487        .74099E-06   -.44148E-04
  14  Prefactor     34.674        36.175       -.88308E-06    .38518E-04
  15  Prefactor     .10000E-03    7.3085       -.16945E-08** at limit **
  16  Prefactor     .10000E-03    12.507        .31647E-06** at limit **
  17  norm          2.5949        1.9274        .12743E-07    .79819E-04
  18  Prefactor     .10000E-03    11.644        .37409E-06** at limit **
  19  Prefactor     12.382        9.6121        .13898E-06    .14928E-03
  20  Prefactor     4.0251        5.0380        .20058E-06    .79513E-04
  21  norm          .10000E-03    .93659       -.28835E-07** at limit **
  22  Prefactor     5.9427        9.6943        .57960E-06    .47378E-03
  23  Prefactor     .10000E-03    5.8735       -.11912E-05** at limit **
  24  norm          .51816        .45387        .55050E-07    .22631E-02
  25  Prefactor     .10000E-03    13.431       -.50116E-06** at limit **
  26  Prefactor     4.9547        8.7925        .38184E-06    .29275E-03
  27  Normalizat    1.1310        .17568       -.80836E-06    .26483E-03
  28  Prefactor     .78746        .15127        .90507E-07    .19537E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.65
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.33054
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.74942
  norm       = 0.606783
  Prefactor  = 1.96854
  Prefactor  = 45.3529
  Prefactor  = 3.36045
  Prefactor  = 2.89105
  norm       = 0.426167
  Prefactor  = 34.6737
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.59491
  Prefactor  = 0.0001
  Prefactor  = 12.3823
  Prefactor  = 4.02507
  norm       = 0.0001
  Prefactor  = 5.94272
  Prefactor  = 0.000100001
  norm       = 0.51816
  Prefactor  = 0.0001
  Prefactor  = 4.95474
  Normalizat = 1.13098
  Prefactor  = 0.787462
 **********
 **   18 **HESSE 
 **********

 FCN=   6041.588     FROM HESSE     STATUS=OK           529 CALLS     4016 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.6500        4.3320        .12641E-03   -1.5192    
   2  Prefactor     .10000E-03    3.5076        .14131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.5701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          9.3305        7.8936        .13118E-03   -1.5097    
   5  Prefactor     .10000E-03    17.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    24.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.7494        4.8985        .11953E-03   -1.5116    
   8  norm          .60678        .31212        .29410E-04   -1.5552    
   9  Prefactor     1.9685        6.7984        .14779E-02   -1.5427    
  10  Prefactor     45.353        21.455        .59519E-04   -1.4360    
  11  Prefactor     3.3604        8.1892        .11035E-02   -1.5341    
  12  Prefactor     2.8911        2.6283        .11551E-03   -1.5368    
  13  norm          .42617        181.44        .58484E-02   -1.5577    
  14  Prefactor     34.674        36.136        .68083E-04   -1.4530    
  15  Prefactor     .10000E-03    7.3200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.5949        1.9248        .90042E-04   -1.5386    
  18  Prefactor     .10000E-03    11.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.382        9.6447        .11380E-03   -1.5004    
  20  Prefactor     4.0251        5.0310        .18869E-03   -1.5307    
  21  norm          .10000E-03    .93853        .73432E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.9427        9.1648        .16479E-03   -1.5220    
  23  Prefactor     .10000E-03    12.115        .32141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .51816        .43221        .44297E-03   -1.5564    
  25  Prefactor     .10000E-03    13.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     4.9547        8.6523        .18065E-03   -1.5263    
  27  Normalizat    1.1310        .20350        .23387E-03   -.88763    
  28  Prefactor     .78746        .17580        .24631E-03   -1.0019    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20761e-08
Minuit parameter uncertainties:
  1  4.33217
  2  6.6908e-06
  3  3.34785e-05
  4  7.8945
  5  3.0936e-05
  6  7.83657e-05
  7  4.89874
  8  0.312124
  9  6.80105
  10  21.4585
  11  8.19194
  12  2.62836
  13  17.6388
  14  36.1587
  15  1.0474e-06
  16  0.000147569
  17  1.92486
  18  1.74494e-05
  19  9.64593
  20  5.03149
  21  1.76921e-06
  22  9.16694
  23  0.000236386
  24  0.432216
  25  5.46653e-06
  26  8.65447
  27  0.203639
  28  0.175924
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  3.360e+00  8.192e+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

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  7.875e-01  1.759e-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.131e+00  2.036e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/273522/likelihoodResults_501379201_501638401_4FGL_J2221.9-3504_daily_bin1011.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) = 6041.58575233
delta logL = 0.00236616122857

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6041.58417816
delta logL = 0.00394033023349

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8317       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9426       1.0000          .0000       10.000    
     3 'Normalizat'    1.1279       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78957       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6041.584     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      280 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8433        12.329        .12083E-02    .46009E-03
   2  Index         2.9374        3.2932        .90916E-02    .44317E-04
   3  Normalizat    1.1277        .20006        .23418E-03    .17477E-05
   4  Prefactor     .78976        .17569        .24600E-03   -.64701E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.84328
  Index      = 2.93738
  Normalizat = 1.12767
  Prefactor  = 0.78976
 **********
 **   18 **HESSE 
 **********

 FCN=   6041.584     FROM HESSE     STATUS=OK            27 CALLS      307 TOTAL
                     EDM=   .92E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8433        9.6620        .24167E-03   -1.5371    
   2  Index         2.9374        2.7899        .18183E-02   -.42522    
   3  Normalizat    1.1277        .20013        .93671E-05   -.88868    
   4  Prefactor     .78976        .17538        .98399E-05   -1.0011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.17967e-14
Minuit parameter uncertainties:
  1  9.66734
  2  3.00271
  3  0.200261
  4  0.1755
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/273522': 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) = 6041.58417551
delta logL = 0.00394297969706

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  2.843e+00  9.667e+00  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.937e+00  3.003e+00  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:  7.898e-01  1.755e-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.128e+00  2.003e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.20
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/273522/cmap_HighResolution_501379201_501638401_4FGL_J2221.9-3504_daily_bin1011.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.51e-03', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2021-09-28 10:09:00.008099', job_id='273522', GAL2='0.79', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1632848940.01', return_code2='0', ts='0.20', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='3.94e-03', ts2='0.21', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1011' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:09:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 273522: <4FGL_J2221.9-3504_daily_bin1011> in cluster <slac> Done

Job <4FGL_J2221.9-3504_daily_bin1011> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep 28 09:56:00 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:56:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 09:56:01 2021
Terminated at Tue Sep 28 10:09:00 2021
Results reported at Tue Sep 28 10:09:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin1011 335.497 -35.0712 501379201 501638401 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 :                                   744.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             349.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            780 sec.

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

