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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin1114
RA = 335.497, Dec = -35.0712
tmin = 528076801, tmax = 528336001
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='274685', job_status='RUN', time_executed='2021-09-28 10:01:19.442029', time_epoch_executed='1632848479.44' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='1114'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/274685

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/274685/ft1_4FGL_J2221.9-3504_daily_bin1114.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/274685/ft2_4FGL_J2221.9-3504_daily_bin1114.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/274685/ft1_4FGL_J2221.9-3504_daily_bin1114.fits outfile=/scratch/kocevski/274685/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin1114.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=528076801.0 tmax=528336001.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.42
user 3.22
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/274685/ft1_filtered_4FGL_J2221.9-3504_daily_bin1114.fits" evtable="EVENTS" scfile=/scratch/kocevski/274685/ft2_4FGL_J2221.9-3504_daily_bin1114.fits sctable="SC_DATA" outfile=/scratch/kocevski/274685/ltcube_528076801_528336001_4FGL_J2221.9-3504_daily_bin1114.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/274685/ft2_4FGL_J2221.9-3504_daily_bin1114.fits
.....................!
real 12.01
user 11.63
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/274685/ft1_filtered_4FGL_J2221.9-3504_daily_bin1114.fits evtable="EVENTS" scfile=/scratch/kocevski/274685/ft2_4FGL_J2221.9-3504_daily_bin1114.fits sctable="SC_DATA" expcube=/scratch/kocevski/274685/ltcube_528076801_528336001_4FGL_J2221.9-3504_daily_bin1114.fits outfile=/scratch/kocevski/274685/expmap_528076801_528336001_4FGL_J2221.9-3504_daily_bin1114.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/274685/ltcube_528076801_528336001_4FGL_J2221.9-3504_daily_bin1114.fits
.....................!
real 192.25
user 187.31
sys 4.61

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/274685/ft1_filtered_4FGL_J2221.9-3504_daily_bin1114.fits scfile=/scratch/kocevski/274685/ft2_4FGL_J2221.9-3504_daily_bin1114.fits outfile=/scratch/kocevski/274685/cmap_528076801_528336001_4FGL_J2221.9-3504_daily_bin1114.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/274685/ft1_filtered_4FGL_J2221.9-3504_daily_bin1114.fits scfile=/scratch/kocevski/274685/ft2_4FGL_J2221.9-3504_daily_bin1114.fits outfile=/scratch/kocevski/274685/cmap_HighResolution_528076801_528336001_4FGL_J2221.9-3504_daily_bin1114.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.53
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/274685/ft1_filtered_4FGL_J2221.9-3504_daily_bin1114.fits evtable="EVENTS" scfile=/scratch/kocevski/274685/ft2_4FGL_J2221.9-3504_daily_bin1114.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/274685/Model_4FGL_J2221.9-3504_daily_bin1114.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/274685/ft1_filtered_4FGL_J2221.9-3504_daily_bin1114.fits.....................!
real 38.38
user 37.09
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.012       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.9268       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.6348       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10427E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.1288       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10429E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.6697       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.1113       1.0000         .10000E-03   10000.    
    13 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.1282       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.0840       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.2920       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.4658       1.0000         .10000E-03   10000.    
    24 'norm      '    2.2960       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10581E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    12.117       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .97338       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .94664       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=   4316.741     FROM MIGRAD    STATUS=CONVERGED    674 CALLS     2947 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.013        8.1939       -.80299E-07   -.15111E-04
   2  Prefactor     5.9279        12.047        .13469E-05   -.93831E-04
   3  Prefactor     3.6346        8.1303        .20609E-05   -.15175E-03
   4  norm          .10000E-03    5.1029       -.16855E-07** at limit **
   5  Prefactor     .10000E-03    7.6432        .35416E-07** at limit **
   6  Prefactor     .10000E-03    56.425       -.61113E-06** at limit **
   7  norm          .10000E-03    2.4176       -.12113E-07** at limit **
   8  norm          1.1287        .44676        .66051E-08   -.21910E-04
   9  Prefactor     .10000E-03    4.1330       -.16323E-08** at limit **
  10  Prefactor     .10000E-03    30.179        .98746E-07** at limit **
  11  Prefactor     9.6681        11.878        .79860E-06   -.53248E-04
  12  Prefactor     1.1115        3.4681        .28831E-06   -.22130E-04
  13  norm          .10000E-03    13.706       -.40954E-06** at limit **
  14  Prefactor     .10000E-03    39.844       -.13551E-05** at limit **
  15  Prefactor     6.1334        21.172       -.66399E-07    .10136E-04
  16  Prefactor     .10000E-03    7.6441        .30606E-07** at limit **
  17  norm          2.0840        2.2242        .41582E-07    .31488E-04
  18  Prefactor     .10000E-03    25.473        .76945E-06** at limit **
  19  Prefactor     .10000E-03    9.0167       -.31357E-06** at limit **
  20  Prefactor     .10000E-03    10.064        .21978E-06** at limit **
  21  norm          .10000E-03    2.5317        .22740E-07** at limit **
  22  Prefactor     2.2926        58.539        .41940E-05    .91435E-04
  23  Prefactor     1.4469        66.682       -.34793E-05   -.93717E-04
  24  norm          2.2973        1.3308        .48767E-07    .56780E-03
  25  Prefactor     .10000E-03    65.939        .15214E-05** at limit **
  26  Prefactor     12.114        18.311        .65044E-06    .10195E-03
  27  Normalizat    .97354        .23289       -.36909E-06    .12333E-04
  28  Prefactor     .94650        .19608       -.37488E-06    .24588E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 18.0128
  Prefactor  = 5.92786
  Prefactor  = 3.63461
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 1.12874
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.66809
  Prefactor  = 1.11148
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 6.13339
  Prefactor  = 0.0001
  norm       = 2.08403
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 2.29262
  Prefactor  = 1.44691
  norm       = 2.2973
  Prefactor  = 0.000100004
  Prefactor  = 12.1144
  Normalizat = 0.973536
  Prefactor  = 0.946497
 **********
 **   18 **HESSE 
 **********

 FCN=   4316.741     FROM HESSE     STATUS=OK           519 CALLS     3466 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.013        8.1944        .94371E-04   -1.4859    
   2  Prefactor     5.9279        11.961        .82474E-03   -1.5221    
   3  Prefactor     3.6346        8.0963        .10595E-02   -1.5327    
   4  norm          .10000E-03    5.1202        .14492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.6466        .17741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    56.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.4308        .99705E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.1287        .44766        .26689E-04   -1.5495    
   9  Prefactor     .10000E-03    4.1343        .13046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    30.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.6681        11.914        .64434E-03   -1.5086    
  12  Prefactor     1.1115        3.4364        .20638E-03   -1.5497    
  13  norm          .10000E-03    13.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    39.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.1334        21.146        .16218E-03   -1.5213    
  16  Prefactor     .10000E-03    7.6483        .17741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.0840        2.2083        .98069E-04   -1.5419    
  18  Prefactor     .10000E-03    25.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.0346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.389        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.5379        .10192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.2926        57.843        .27112E-03   -1.5405    
  23  Prefactor     1.4469        61.331        .35515E-03   -1.5467    
  24  norm          2.2973        1.3866        .39598E-04   -1.5405    
  25  Prefactor     .10000E-03    64.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     12.114        18.120        .11508E-03   -1.5012    
  27  Normalizat    .97354        .27479        .26069E-03   -.93922    
  28  Prefactor     .94650        .23377        .23202E-03   -.94535    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02704e-09
Minuit parameter uncertainties:
  1  8.1949
  2  11.9654
  3  8.09874
  4  4.80963e-06
  5  7.99324e-06
  6  0.000363869
  7  6.06428e-07
  8  0.447661
  9  2.15917e-07
  10  4.76368e-05
  11  11.9167
  12  3.43697
  13  0.00013019
  14  0.000680539
  15  21.1714
  16  7.40036e-06
  17  2.20842
  18  0.000270947
  19  9.68956e-05
  20  0.00015262
  21  4.17214e-07
  22  23.0558
  23  18.8604
  24  1.3866
  25  0.00100094
  26  18.1279
  27  0.275185
  28  0.234016
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  9.668e+00  1.192e+01  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:  9.465e-01  2.340e-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:  9.735e-01  2.752e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/274685/likelihoodResults_528076801_528336001_4FGL_J2221.9-3504_daily_bin1114.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) = 4316.62687592
delta logL = 0.113998417182

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4316.60091261
delta logL = 0.139961727391

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.3630       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2610       1.0000          .0000       10.000    
     3 'Normalizat'    .94372       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96453       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=   4316.601     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      231 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3599        12.090        .14781E-03   -.19998E-05
   2  Index         3.2612        1.3141        .82695E-02    .19685E-03
   3  Normalizat    .94371        .27232        .26433E-03   -.11552E-02
   4  Prefactor     .96455        .23308        .23008E-03   -.11348E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.35987
  Index      = 3.26118
  Normalizat = 0.943715
  Prefactor  = 0.964552
 **********
 **   18 **HESSE 
 **********

 FCN=   4316.601     FROM HESSE     STATUS=OK            25 CALLS      256 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3599        11.094        .59124E-05   -1.5165    
   2  Index         3.2612        1.2066        .16539E-02   -.35519    
   3  Normalizat    .94371        .27266        .52866E-04   -.94941    
   4  Prefactor     .96455        .23320        .46017E-04   -.93921    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56872e-09
Minuit parameter uncertainties:
  1  11.0976
  2  1.22029
  3  0.273062
  4  0.233444
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/274685': 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) = 4316.60091255
delta logL = 0.139961785911

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  7.360e+00  1.110e+01  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  3.261e+00  1.220e+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:  9.646e-01  2.334e-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:  9.437e-01  2.731e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.18
Ra Dec: 335.497 -35.071
Photon Index (Free Index): 3.26 +/- 1.22
Photon Flux (Free Index): 6.87e-08 +/- 7.65e-08
Energy Flux (Free Index): 1.23e-05 +/- 1.29e-05

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/274685/cmap_HighResolution_528076801_528336001_4FGL_J2221.9-3504_daily_bin1114.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.32e-02', comment='SUCCESS', energy_flux2='1.23e-05', dlogl='1.40e-01', photon_flux2='6.87e-08', job_status='DONE', time_completed='2021-09-28 10:11:18.171079', photon_index_error2='1.22', photon_index2='3.26', ts='0.87', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.68e-07', energy_flux_error2='1.29e-05', EG='0.97', time_epoch_completed='1632849078.17', return_code='0', job_id='274685', GAL2='0.96', EG2='0.94', return_code2='0', photon_flux_error2='7.65e-08', ts2='1.18', photon_index='2.68' WHERE bin_id='1114' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:11:18 PDT 2021


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

Job <4FGL_J2221.9-3504_daily_bin1114> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep 28 10:00:27 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:00:29 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:00:29 2021
Terminated at Tue Sep 28 10:11:18 2021
Results reported at Tue Sep 28 10:11:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin1114 335.497 -35.0712 528076801 528336001 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 :                                   598.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             307.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   649 sec.
    Turnaround time :                            651 sec.

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

