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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin731
RA = 335.497, Dec = -35.0712
tmin = 428803201, tmax = 429062401
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='272111', job_status='RUN', time_executed='2021-09-28 09:52:23.721035', time_epoch_executed='1632847943.72' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/272111

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/272111/ft1_4FGL_J2221.9-3504_daily_bin731.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/272111/ft2_4FGL_J2221.9-3504_daily_bin731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/272111/ft1_4FGL_J2221.9-3504_daily_bin731.fits outfile=/scratch/kocevski/272111/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin731.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=428803201.0 tmax=429062401.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 6.55
user 6.19
sys 0.30

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/272111/ft1_filtered_4FGL_J2221.9-3504_daily_bin731.fits" evtable="EVENTS" scfile=/scratch/kocevski/272111/ft2_4FGL_J2221.9-3504_daily_bin731.fits sctable="SC_DATA" outfile=/scratch/kocevski/272111/ltcube_428803201_429062401_4FGL_J2221.9-3504_daily_bin731.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/272111/ft2_4FGL_J2221.9-3504_daily_bin731.fits
.....................!
real 11.87
user 11.51
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/272111/ft1_filtered_4FGL_J2221.9-3504_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/272111/ft2_4FGL_J2221.9-3504_daily_bin731.fits sctable="SC_DATA" expcube=/scratch/kocevski/272111/ltcube_428803201_429062401_4FGL_J2221.9-3504_daily_bin731.fits outfile=/scratch/kocevski/272111/expmap_428803201_429062401_4FGL_J2221.9-3504_daily_bin731.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/272111/ltcube_428803201_429062401_4FGL_J2221.9-3504_daily_bin731.fits
.....................!
real 190.35
user 184.99
sys 5.01

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/272111/ft1_filtered_4FGL_J2221.9-3504_daily_bin731.fits scfile=/scratch/kocevski/272111/ft2_4FGL_J2221.9-3504_daily_bin731.fits outfile=/scratch/kocevski/272111/cmap_428803201_429062401_4FGL_J2221.9-3504_daily_bin731.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/272111/ft1_filtered_4FGL_J2221.9-3504_daily_bin731.fits scfile=/scratch/kocevski/272111/ft2_4FGL_J2221.9-3504_daily_bin731.fits outfile=/scratch/kocevski/272111/cmap_HighResolution_428803201_429062401_4FGL_J2221.9-3504_daily_bin731.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=335.497 yref=-35.0712 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/272111/ft1_filtered_4FGL_J2221.9-3504_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/272111/ft2_4FGL_J2221.9-3504_daily_bin731.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/272111/Model_4FGL_J2221.9-3504_daily_bin731.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/272111/ft1_filtered_4FGL_J2221.9-3504_daily_bin731.fits.....................!
real 34.65
user 33.36
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5196       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.0810       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.1616       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.3740       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.3490       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    45.064       1.0000         .10000E-03   10000.    
    16 'Prefactor '    34.742       1.0000         .10000E-03   10000.    
    17 'norm      '    3.0561       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.342       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12782E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.3665       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .17148E-01   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0253       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .84357       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=   3575.497     FROM MIGRAD    STATUS=CONVERGED    706 CALLS     3512 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5194        6.0930       -.27185E-05   -.85109E-04
   2  Prefactor     .10000E-03    12.491        .13190E-06** at limit **
   3  Prefactor     .10000E-03    5.8458        .11665E-06** at limit **
   4  norm          5.0806        6.5885       -.14632E-05   -.77478E-04
   5  Prefactor     6.1610        15.163        .86549E-06   -.74633E-04
   6  Prefactor     .10000E-03    57.131        .64620E-05** at limit **
   7  norm          .10000E-03    3.8606       -.10278E-07** at limit **
   8  norm          1.3739        .49050        .84909E-08   -.19476E-04
   9  Prefactor     .10000E-03    4.2649       -.41501E-07** at limit **
  10  Prefactor     7.3490        15.089        .20024E-06   -.29387E-04
  11  Prefactor     .10000E-03    3.7793       -.73525E-07** at limit **
  12  Prefactor     .10000E-03    1.3946        .40626E-07** at limit **
  13  norm          .10000E-03    99.622        .13143E-05** at limit **
  14  Prefactor     .10000E-03    26.695       -.16850E-07** at limit **
  15  Prefactor     45.064        35.388       -.66524E-06   -.19375E-04
  16  Prefactor     34.743        28.350       -.19271E-06   -.13695E-04
  17  norm          3.0562        2.8557        .53034E-07    .61640E-04
  18  Prefactor     .10000E-03    58.044       -.62409E-05** at limit **
  19  Prefactor     17.345        20.048       -.43224E-06   -.72135E-04
  20  Prefactor     .10000E-03    5.7821        .42811E-07** at limit **
  21  norm          .10000E-03    2.8403       -.18015E-07** at limit **
  22  Prefactor     .10000E-03    7.3717       -.19539E-08** at limit **
  23  Prefactor     .10000E-03    9.1383        .31421E-06** at limit **
  24  norm          .10000E-03    .38098        .73328E-08** at limit **
  25  Prefactor     7.4011        176.50        .71670E-04   -.21567E-05
  26  Prefactor     .10001E-03    12.479       -.99332E-08** at limit **
  27  Normalizat    1.0251        .23915       -.31705E-05    .26588E-04
  28  Prefactor     .84367        .19360        .18571E-05   -.14750E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.5194
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.08058
  Prefactor  = 6.16096
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.37393
  Prefactor  = 0.0001
  Prefactor  = 7.34903
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.0635
  Prefactor  = 34.7432
  norm       = 3.05621
  Prefactor  = 0.0001
  Prefactor  = 17.3447
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.40113
  Prefactor  = 0.000100013
  Normalizat = 1.02514
  Prefactor  = 0.843672
 **********
 **   18 **HESSE 
 **********

 FCN=   3575.497     FROM HESSE     STATUS=OK           527 CALLS     4039 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5194        6.1038        .14943E-03   -1.5238    
   2  Prefactor     .10000E-03    12.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.8667        .14118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.0806        6.5927        .16904E-03   -1.5257    
   5  Prefactor     6.1610        15.125        .16173E-03   -1.5211    
   6  Prefactor     .10000E-03    57.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.9170        .11455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.3739        .49079        .24110E-04   -1.5474    
   9  Prefactor     .10000E-03    4.2652        .12061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.3490        15.081        .14795E-03   -1.5166    
  11  Prefactor     .10000E-03    3.7831        .11352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.3962        .68962E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    100.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    26.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     45.064        35.424        .59725E-04   -1.4364    
  16  Prefactor     34.743        28.360        .67988E-04   -1.4528    
  17  norm          3.0562        2.8577        .94750E-04   -1.5358    
  18  Prefactor     .10000E-03    58.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.345        20.247        .96176E-04   -1.4875    
  20  Prefactor     .10000E-03    5.8131        .14041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.8574        .98336E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.3791        .15849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    19.659        .31841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .64270        .67562E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     7.4011        175.32        .14777E-03   -1.5164    
  26  Prefactor     .10001E-03    15.871        .65722E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0251        .27712        .24832E-03   -.92193    
  28  Prefactor     .84367        .22475        .23006E-03   -.98138    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71269e-10
Minuit parameter uncertainties:
  1  6.10453
  2  5.22922e-05
  3  2.33105e-05
  4  6.59366
  5  15.1345
  6  7.59436e-05
  7  8.66156e-06
  8  0.49079
  9  4.52494e-07
  10  15.0887
  11  3.46309e-06
  12  8.78011e-07
  13  0.000110663
  14  1.58709e-06
  15  35.4405
  16  28.3711
  17  2.85783
  18  5.03296e-05
  19  20.2548
  20  2.7393e-06
  21  3.07885e-06
  22  1.75107e-06
  23  0.000110803
  24  1.16113e-06
  25  72.283
  26  0.000913776
  27  0.27751
  28  0.224997
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  3.463e-06  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.677e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
255        Scale:  5.158e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  8.437e-01  2.250e-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.025e+00  2.775e-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: 9.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/272111/likelihoodResults_428803201_429062401_4FGL_J2221.9-3504_daily_bin731.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) = 3575.49800028
delta logL = -0.00124566967315

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3575.49675462
delta logL = -1.70894054463e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6717       1.0000          .0000       10.000    
     3 'Normalizat'    1.0251       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84369       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3575.497     FROM MIGRAD    STATUS=FAILED        94 CALLS      242 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    615.15        .11365E-02** at limit **
   2  Index         2.3343        8.4793        .50000       -.25374E-06
   3  Normalizat    1.0251        .95977E-01    .24832E-03    .30995E-04
   4  Prefactor     .84368        .81871E-01    .23006E-03    .39607E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3575.497     FROM SIMPLEX   STATUS=UNCHANGED    188 CALLS      430 TOTAL
                     EDM=   .77E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    615.15        .29547E-03** at limit **
   2  Index         2.3343        8.4793        .26985E-05   -.25374E-06
   3  Normalizat    1.0251        .95977E-01    .11274E-06    .30995E-04
   4  Prefactor     .84368        .81871E-01    .58861E-07    .39607E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3575.497     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      464 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.8050        .22729E-03** at limit **
   2  Index         2.3377        8.2778        .50000       -.11432E-06
   3  Normalizat    1.0251        .25458        .99328E-05    .30789E-04
   4  Prefactor     .84368        .21720        .92025E-05    .39532E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.33768
  Normalizat = 1.02514
  Prefactor  = 0.843675
 **********
 **   18 **HESSE 
 **********

 FCN=   3575.497     FROM HESSE     STATUS=OK            29 CALLS      493 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9601        .45458E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3377        5.6133        .50000       -.56151    
   3  Normalizat    1.0251        .25437        .19866E-05   -.92193    
   4  Prefactor     .84368        .21704        .18405E-05   -.98138    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84952e-11
Minuit parameter uncertainties:
  1  2.89591e-05
  2  187.54
  3  0.254673
  4  0.217265
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/272111': 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) = 3575.49675412
delta logL = 4.98867848364e-07

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  2.896e-05  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.338e+00  1.875e+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:  8.437e-01  2.173e-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.025e+00  2.547e-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/272111/cmap_HighResolution_428803201_429062401_4FGL_J2221.9-3504_daily_bin731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.35e-03', job_status='DONE', photon_flux_upper_limit='9.35e-08', time_completed='2021-09-28 10:02:07.362447', job_id='272111', GAL2='0.84', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1632848527.36', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='4.99e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='731' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:02:07 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin731 335.497 -35.0712 428803201 429062401 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 :                                   582.25 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             296.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   656 sec.
    Turnaround time :                            659 sec.

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

