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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin828
RA = 335.497, Dec = -35.0712
tmin = 453945601, tmax = 454204801
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='273228', job_status='RUN', time_executed='2021-09-28 09:58:03.563656', time_epoch_executed='1632848283.56' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='828'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/273228

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/273228/ft1_4FGL_J2221.9-3504_daily_bin828.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/273228/ft2_4FGL_J2221.9-3504_daily_bin828.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/273228/ft1_4FGL_J2221.9-3504_daily_bin828.fits outfile=/scratch/kocevski/273228/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin828.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=453945601.0 tmax=454204801.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.05
user 3.81
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/273228/ft1_filtered_4FGL_J2221.9-3504_daily_bin828.fits" evtable="EVENTS" scfile=/scratch/kocevski/273228/ft2_4FGL_J2221.9-3504_daily_bin828.fits sctable="SC_DATA" outfile=/scratch/kocevski/273228/ltcube_453945601_454204801_4FGL_J2221.9-3504_daily_bin828.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/273228/ft2_4FGL_J2221.9-3504_daily_bin828.fits
.....................!
real 12.10
user 11.73
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/273228/ft1_filtered_4FGL_J2221.9-3504_daily_bin828.fits evtable="EVENTS" scfile=/scratch/kocevski/273228/ft2_4FGL_J2221.9-3504_daily_bin828.fits sctable="SC_DATA" expcube=/scratch/kocevski/273228/ltcube_453945601_454204801_4FGL_J2221.9-3504_daily_bin828.fits outfile=/scratch/kocevski/273228/expmap_453945601_454204801_4FGL_J2221.9-3504_daily_bin828.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/273228/ltcube_453945601_454204801_4FGL_J2221.9-3504_daily_bin828.fits
.....................!
real 191.13
user 185.50
sys 5.20

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/273228/ft1_filtered_4FGL_J2221.9-3504_daily_bin828.fits scfile=/scratch/kocevski/273228/ft2_4FGL_J2221.9-3504_daily_bin828.fits outfile=/scratch/kocevski/273228/cmap_453945601_454204801_4FGL_J2221.9-3504_daily_bin828.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.36
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/273228/ft1_filtered_4FGL_J2221.9-3504_daily_bin828.fits evtable="EVENTS" scfile=/scratch/kocevski/273228/ft2_4FGL_J2221.9-3504_daily_bin828.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/273228/Model_4FGL_J2221.9-3504_daily_bin828.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/273228/ft1_filtered_4FGL_J2221.9-3504_daily_bin828.fits.....................!
real 43.51
user 42.27
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0566       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.694       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14650E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10640E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .59128       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12325E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.6061       1.0000         .10000E-03   10000.    
    13 'norm      '    .45589E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10976E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.195       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14809E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10156E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    92.544       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11237E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    12.867       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.9165       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0077       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0635       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=   5186.962     FROM MIGRAD    STATUS=CONVERGED    692 CALLS     3519 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0576        3.2809        .40665E-07    .50520E-04
   2  Prefactor     15.693        9.5211        .85366E-07    .69861E-04
   3  Prefactor     .10000E-03    2.5443       -.79271E-07** at limit **
   4  norm          .10000E-03    2.6993        .13460E-06** at limit **
   5  Prefactor     .10000E-03    8.4848       -.87303E-07** at limit **
   6  Prefactor     .10000E-03    70.387        .34905E-06** at limit **
   7  norm          .10000E-03    3.6322       -.12858E-06** at limit **
   8  norm          .59133        .30904       -.55888E-08   -.41584E-04
   9  Prefactor     .10000E-03    4.6463        .31113E-08** at limit **
  10  Prefactor     .10000E-03    68.058        .15036E-05** at limit **
  11  Prefactor     .10000E-03    1.9507        .52668E-08** at limit **
  12  Prefactor     3.6055        3.7381        .50680E-08   -.50689E-04
  13  norm          .10000E-03    110.82        .91266E-06** at limit **
  14  Prefactor     .10000E-03    115.44        .56797E-06** at limit **
  15  Prefactor     19.193        17.632        .90395E-07   -.38528E-04
  16  Prefactor     .10054E-03    20.470        .44632E-05** at limit **
  17  norm          .10000E-03    2.1904        .11432E-06** at limit **
  18  Prefactor     92.516        67.527       -.45496E-05   -.20175E-03
  19  Prefactor     .10000E-03    8.8875        .20033E-07** at limit **
  20  Prefactor     .10000E-03    2.7626       -.84656E-07** at limit **
  21  norm          .10000E-03    1.0559        .35261E-07** at limit **
  22  Prefactor     .10000E-03    3.7904        .22561E-06** at limit **
  23  Prefactor     .10000E-03    2.4920        .15536E-06** at limit **
  24  norm          .10000E-03    .19507        .11491E-06** at limit **
  25  Prefactor     12.938        116.64       -.68067E-05   -.87844E-04
  26  Prefactor     1.9167        6.8391        .10999E-05    .50836E-03
  27  Normalizat    1.0080        .20462        .69597E-06   -.32501E-03
  28  Prefactor     1.0632        .17565       -.64576E-06   -.23854E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.05763
  Prefactor  = 15.6929
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.591331
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.60552
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.193
  Prefactor  = 0.000100545
  norm       = 0.000100003
  Prefactor  = 92.5163
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.9378
  Prefactor  = 1.91673
  Normalizat = 1.00805
  Prefactor  = 1.06319
 **********
 **   18 **HESSE 
 **********

 FCN=   5186.962     FROM HESSE     STATUS=OK           509 CALLS     4028 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0576        3.2785        .13146E-03   -1.5358    
   2  Prefactor     15.693        9.5269        .10110E-03   -1.4915    
   3  Prefactor     .10000E-03    2.5484        .11221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.7047        .11555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.4949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    70.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.7493        .26763E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .59133        .31047        .28003E-04   -1.5554    
   9  Prefactor     .10000E-03    4.6503        .15162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    69.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.9525        .98231E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.6055        3.7334        .13603E-03   -1.5328    
  13  norm          .10000E-03    113.47        .21202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    117.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.193        17.629        .91419E-04   -1.4831    
  16  Prefactor     .10054E-03    73.682        .44827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    6.6277        .18786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     92.516        69.153        .20887E-03   -1.3781    
  19  Prefactor     .10000E-03    8.9385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.7722        .11689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.0570        .72276E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.7946        .13699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.4985        .11106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .24966        .61786E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     12.938        119.87        .11167E-03   -1.4988    
  26  Prefactor     1.9167        7.1381        .15011E-02   -1.5431    
  27  Normalizat    1.0080        .23425        .25949E-03   -.92761    
  28  Prefactor     1.0632        .20190        .22533E-03   -.90652    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.8361e-09
Minuit parameter uncertainties:
  1  3.27869
  2  9.52786
  3  8.62663e-06
  4  9.31504e-06
  5  1.52935e-05
  6  0.000105329
  7  1.58826e-05
  8  0.310469
  9  1.75288e-06
  10  0.000430799
  11  3.99584e-07
  12  3.73365
  13  0.00033265
  14  0.000208098
  15  17.6334
  16  0.0126889
  17  0.000298973
  18  69.2135
  19  1.75096e-05
  20  6.13072e-06
  21  1.41816e-06
  22  2.1574e-05
  23  9.96321e-06
  24  5.76244e-07
  25  78.97
  26  7.1413
  27  0.234491
  28  0.202049
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  3.996e-07  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.063e+00  2.020e-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.008e+00  2.345e-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.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/273228/likelihoodResults_453945601_454204801_4FGL_J2221.9-3504_daily_bin828.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) = 5186.96436211
delta logL = -0.00236501272684

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5186.96199692
delta logL = 1.77283254743e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6634       1.0000          .0000       10.000    
     3 'Normalizat'    1.0080       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0632       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=   5186.962     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      244 TOTAL
                     EDM=   .80E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.701        .98993E-02** at limit **
   2  Index         2.1369        5.8288        .50000        .96270E-07
   3  Normalizat    1.0080        .15967E-01    .25950E-03   -.15469E-03
   4  Prefactor     1.0632        .14270E-01    .22533E-03   -.17262E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.13687
  Normalizat = 1.00805
  Prefactor  = 1.06319
 **********
 **   18 **HESSE 
 **********

 FCN=   5186.962     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    188.49        .10700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1369        8.3941        .50000       -.60971    
   3  Normalizat    1.0080        .49556E-01    .10380E-04   -.92761    
   4  Prefactor     1.0632        .44292E-01    .45066E-04   -.90652    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.43079e-11
Minuit parameter uncertainties:
  1  6.0805e-05
  2  869.48
  3  0.0495586
  4  0.0442932
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/273228': 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) = 5186.96199308
delta logL = 4.01593661081e-06

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  6.081e-05  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.137e+00  8.695e+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:  1.063e+00  4.429e-02  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.008e+00  4.956e-02  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/273228/cmap_HighResolution_453945601_454204801_4FGL_J2221.9-3504_daily_bin828.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.11e-03', job_status='DONE', photon_flux_upper_limit='5.22e-08', time_completed='2021-09-28 10:09:27.882157', job_id='273228', GAL2='1.06', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1632848967.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='4.02e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='828' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:09:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 273228: <4FGL_J2221.9-3504_daily_bin828> in cluster <slac> Done

Job <4FGL_J2221.9-3504_daily_bin828> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep 28 09:55:31 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:55:33 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:55:33 2021
Terminated at Tue Sep 28 10:09:28 2021
Results reported at Tue Sep 28 10:09:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin828 335.497 -35.0712 453945601 454204801 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 :                                   684.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            837 sec.

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

