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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin735
RA = 335.497, Dec = -35.0712
tmin = 429840001, tmax = 430099201
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='272118', job_status='RUN', time_executed='2021-09-28 09:53:14.251184', time_epoch_executed='1632847994.25' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='735'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/272118

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/272118/ft1_4FGL_J2221.9-3504_daily_bin735.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/272118/ft2_4FGL_J2221.9-3504_daily_bin735.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/272118/ft1_4FGL_J2221.9-3504_daily_bin735.fits outfile=/scratch/kocevski/272118/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin735.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=429840001.0 tmax=430099201.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 5.94
user 5.64
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/272118/ft1_filtered_4FGL_J2221.9-3504_daily_bin735.fits" evtable="EVENTS" scfile=/scratch/kocevski/272118/ft2_4FGL_J2221.9-3504_daily_bin735.fits sctable="SC_DATA" outfile=/scratch/kocevski/272118/ltcube_429840001_430099201_4FGL_J2221.9-3504_daily_bin735.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/272118/ft2_4FGL_J2221.9-3504_daily_bin735.fits
.....................!
real 11.93
user 11.56
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/272118/ft1_filtered_4FGL_J2221.9-3504_daily_bin735.fits evtable="EVENTS" scfile=/scratch/kocevski/272118/ft2_4FGL_J2221.9-3504_daily_bin735.fits sctable="SC_DATA" expcube=/scratch/kocevski/272118/ltcube_429840001_430099201_4FGL_J2221.9-3504_daily_bin735.fits outfile=/scratch/kocevski/272118/expmap_429840001_430099201_4FGL_J2221.9-3504_daily_bin735.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/272118/ltcube_429840001_430099201_4FGL_J2221.9-3504_daily_bin735.fits
.....................!
real 191.59
user 185.99
sys 5.25

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/272118/ft1_filtered_4FGL_J2221.9-3504_daily_bin735.fits scfile=/scratch/kocevski/272118/ft2_4FGL_J2221.9-3504_daily_bin735.fits outfile=/scratch/kocevski/272118/cmap_429840001_430099201_4FGL_J2221.9-3504_daily_bin735.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/272118/ft1_filtered_4FGL_J2221.9-3504_daily_bin735.fits scfile=/scratch/kocevski/272118/ft2_4FGL_J2221.9-3504_daily_bin735.fits outfile=/scratch/kocevski/272118/cmap_HighResolution_429840001_430099201_4FGL_J2221.9-3504_daily_bin735.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/272118/ft1_filtered_4FGL_J2221.9-3504_daily_bin735.fits evtable="EVENTS" scfile=/scratch/kocevski/272118/ft2_4FGL_J2221.9-3504_daily_bin735.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/272118/Model_4FGL_J2221.9-3504_daily_bin735.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/272118/ft1_filtered_4FGL_J2221.9-3504_daily_bin735.fits.....................!
real 32.05
user 30.70
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.986       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .18476E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.232       1.0000         .10000E-03   10000.    
     4 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14735E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    13.173       1.0000         .10000E-03   10000.    
     8 'norm      '    .52202       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.256       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.068       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    57.111       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.545       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.388       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10313E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .84770       1.0000         .10000E-03   10000.    
    25 'Prefactor '    29.509       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .32043E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .36786       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2301       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=   3384.713     FROM MIGRAD    STATUS=CONVERGED    712 CALLS     3528 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.986        7.5702        .12388E-07   -.16334E-03
   2  Prefactor     .10127E-03    10.133        .52409E-05** at limit **
   3  Prefactor     13.232        11.186       -.15116E-06   -.35296E-03
   4  norm          .10000E-03    13.668        .94777E-07** at limit **
   5  Prefactor     .10000E-03    16.887       -.41931E-06** at limit **
   6  Prefactor     .10001E-03    232.54       -.10220E-05** at limit **
   7  norm          13.154        6.4699       -.26303E-07   -.22201E-03
   8  norm          .52193        .36025       -.18305E-07   -.88249E-03
   9  Prefactor     12.238        17.188        .11792E-05   -.53525E-04
  10  Prefactor     18.063        26.615        .16297E-06   -.51352E-04
  11  Prefactor     .10000E-03    13.929        .35331E-06** at limit **
  12  Prefactor     .10000E-03    1.1120        .55045E-07** at limit **
  13  norm          .10000E-03    16.723        .15771E-06** at limit **
  14  Prefactor     57.119        50.047       -.22337E-06   -.74114E-05
  15  Prefactor     .10000E-03    7.2594        .74489E-07** at limit **
  16  Prefactor     .10000E-03    10.714        .18620E-06** at limit **
  17  norm          10.547        4.3531       -.47002E-07   -.25657E-03
  18  Prefactor     .10000E-03    30.014       -.34213E-06** at limit **
  19  Prefactor     18.392        18.978       -.10766E-06   -.13135E-03
  20  Prefactor     .10000E-03    6.1755        .21042E-06** at limit **
  21  norm          .10001E-03    3.9967        .35943E-05** at limit **
  22  Prefactor     .10000E-03    8.9330        .51902E-06** at limit **
  23  Prefactor     .10000E-03    7.7571        .34405E-06** at limit **
  24  norm          .84790        .66499       -.22462E-06   -.18556E-02
  25  Prefactor     29.514        48.450       -.11851E-06   -.37069E-05
  26  Prefactor     .10000E-03    43.291       -.16647E-04** at limit **
  27  Normalizat    .36783        .24393       -.23087E-05   -.32859E-03
  28  Prefactor     1.2300        .21913        .43727E-06   -.50610E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 17.9864
  Prefactor  = 0.000101272
  Prefactor  = 13.2317
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  norm       = 13.1544
  norm       = 0.521935
  Prefactor  = 12.2378
  Prefactor  = 18.0632
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 57.1186
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.5466
  Prefactor  = 0.0001
  Prefactor  = 18.3923
  Prefactor  = 0.0001
  norm       = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.847896
  Prefactor  = 29.5137
  Prefactor  = 0.000100001
  Normalizat = 0.367831
  Prefactor  = 1.23002
 **********
 **   18 **HESSE 
 **********

 FCN=   3384.713     FROM HESSE     STATUS=OK           515 CALLS     4043 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.986        7.5706        .94440E-04   -1.4860    
   2  Prefactor     .10127E-03    118.73        .27598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.232        10.975        .11012E-03   -1.4980    
   4  norm          .10000E-03    13.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    233.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          13.154        6.4326        .96175E-04   -1.4982    
   8  norm          .52193        .36341        .27582E-04   -1.5563    
   9  Prefactor     12.238        17.173        .11442E-03   -1.5008    
  10  Prefactor     18.063        26.558        .94226E-04   -1.4858    
  11  Prefactor     .10000E-03    14.425        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.1185        .59912E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    16.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     57.119        49.965        .53084E-04   -1.4195    
  15  Prefactor     .10000E-03    7.2615        .15311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.547        4.3412        .75452E-04   -1.5058    
  18  Prefactor     .10000E-03    30.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.392        18.981        .93401E-04   -1.4850    
  20  Prefactor     .10000E-03    6.3581        .28241E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10001E-03    8.6831        .20436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.9590        .16981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.8325        .15812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .84790        .64012        .39252E-04   -1.5524    
  25  Prefactor     29.514        48.412        .73754E-04   -1.4621    
  26  Prefactor     .10000E-03    48.629        .40353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .36783        .25807        .34833E-03   -1.1900    
  28  Prefactor     1.2300        .23652        .19176E-03   -.85412    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14818e-08
Minuit parameter uncertainties:
  1  7.57104
  2  0.0246244
  3  10.9768
  4  0.000149626
  5  6.7486e-05
  6  0.00359634
  7  6.43299
  8  0.363413
  9  17.1801
  10  26.5752
  11  1.50963e-05
  12  4.80457e-06
  13  8.97868e-07
  14  50.0021
  15  1.52012e-05
  16  5.0798e-05
  17  4.34132
  18  3.45444e-05
  19  18.987
  20  3.90737e-05
  21  0.000511741
  22  2.59491e-05
  23  8.54728e-05
  24  0.64013
  25  48.4765
  26  0.000395549
  27  0.258908
  28  0.236724
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  1.510e-05  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:  1.230e+00  2.367e-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:  3.678e-01  2.589e-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.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/272118/likelihoodResults_429840001_430099201_4FGL_J2221.9-3504_daily_bin735.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) = 3384.71355679
delta logL = -0.000330882861817

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3384.71322681
delta logL = -9.0531693786e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6723       1.0000          .0000       10.000    
     3 'Normalizat'    .36755       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2303       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=   3384.713     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      249 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10009E-03    1224.2        .36285E-03** at limit **
   2  Index         2.6549        5.2885        .50000        .19044E-05
   3  Normalizat    .36783        .53429E-01    .34834E-03    .54831E-05
   4  Prefactor     1.2300        .52178E-01    .19176E-03    .11057E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100088
  Index      = 2.65491
  Normalizat = 0.367833
  Prefactor  = 1.23002
 **********
 **   18 **HESSE 
 **********

 FCN=   3384.713     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10009E-03    6567.5        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6549        8.0584        .50000       -.48818    
   3  Normalizat    .36783        .19860        .13933E-04   -1.1900    
   4  Prefactor     1.2300        .19397        .76705E-05   -.85412    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.27713e-09
Minuit parameter uncertainties:
  1  0.0352955
  2  2768.69
  3  0.198979
  4  0.194084
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/272118': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3384.7132259
delta logL = 8.66293703439e-09

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.001e-04  3.530e-02  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.655e+00  2.769e+03  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:  1.230e+00  1.941e-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:  3.678e-01  1.990e-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/272118/cmap_HighResolution_429840001_430099201_4FGL_J2221.9-3504_daily_bin735.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.89e-03', job_status='DONE', photon_flux_upper_limit='1.00e-07', time_completed='2021-09-28 10:02:42.257280', job_id='272118', GAL2='1.23', fit_tolerance='1e-08', EG2='0.37', EG='0.37', time_epoch_completed='1632848562.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='8.66e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='735' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:02:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 272118: <4FGL_J2221.9-3504_daily_bin735> in cluster <slac> Done

Job <4FGL_J2221.9-3504_daily_bin735> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 09:51:10 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:51:11 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:51:11 2021
Terminated at Tue Sep 28 10:02:43 2021
Results reported at Tue Sep 28 10:02:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin735 335.497 -35.0712 429840001 430099201 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 :                                   567.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   691 sec.
    Turnaround time :                            693 sec.

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

