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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin1274
RA = 335.497, Dec = -35.0712
tmin = 569548801, tmax = 569808001
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='274916', job_status='RUN', time_executed='2021-09-28 10:01:43.092818', time_epoch_executed='1632848503.09' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='1274'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/274916

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/274916/ft1_4FGL_J2221.9-3504_daily_bin1274.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/274916/ft2_4FGL_J2221.9-3504_daily_bin1274.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/274916/ft1_4FGL_J2221.9-3504_daily_bin1274.fits outfile=/scratch/kocevski/274916/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin1274.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=569548801.0 tmax=569808001.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.66
user 3.42
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/274916/ft1_filtered_4FGL_J2221.9-3504_daily_bin1274.fits" evtable="EVENTS" scfile=/scratch/kocevski/274916/ft2_4FGL_J2221.9-3504_daily_bin1274.fits sctable="SC_DATA" outfile=/scratch/kocevski/274916/ltcube_569548801_569808001_4FGL_J2221.9-3504_daily_bin1274.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/274916/ft2_4FGL_J2221.9-3504_daily_bin1274.fits
.....................!
real 11.90
user 11.55
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/274916/ft1_filtered_4FGL_J2221.9-3504_daily_bin1274.fits evtable="EVENTS" scfile=/scratch/kocevski/274916/ft2_4FGL_J2221.9-3504_daily_bin1274.fits sctable="SC_DATA" expcube=/scratch/kocevski/274916/ltcube_569548801_569808001_4FGL_J2221.9-3504_daily_bin1274.fits outfile=/scratch/kocevski/274916/expmap_569548801_569808001_4FGL_J2221.9-3504_daily_bin1274.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/274916/ltcube_569548801_569808001_4FGL_J2221.9-3504_daily_bin1274.fits
.....................!
real 190.83
user 185.49
sys 4.99

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/274916/ft1_filtered_4FGL_J2221.9-3504_daily_bin1274.fits scfile=/scratch/kocevski/274916/ft2_4FGL_J2221.9-3504_daily_bin1274.fits outfile=/scratch/kocevski/274916/cmap_569548801_569808001_4FGL_J2221.9-3504_daily_bin1274.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/274916/ft1_filtered_4FGL_J2221.9-3504_daily_bin1274.fits scfile=/scratch/kocevski/274916/ft2_4FGL_J2221.9-3504_daily_bin1274.fits outfile=/scratch/kocevski/274916/cmap_HighResolution_569548801_569808001_4FGL_J2221.9-3504_daily_bin1274.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/274916/ft1_filtered_4FGL_J2221.9-3504_daily_bin1274.fits evtable="EVENTS" scfile=/scratch/kocevski/274916/ft2_4FGL_J2221.9-3504_daily_bin1274.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/274916/Model_4FGL_J2221.9-3504_daily_bin1274.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/274916/ft1_filtered_4FGL_J2221.9-3504_daily_bin1274.fits.....................!
real 45.10
user 43.72
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4936       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.2247       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .16429E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.1066       1.0000         .10000E-03   10000.    
     8 'norm      '    1.9218       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11156E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    31.695       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .73762       1.0000         .10000E-03   10000.    
    13 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.839       1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.777       1.0000         .10000E-03   10000.    
    17 'norm      '    .12924E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    80.895       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.9478       1.0000         .10000E-03   10000.    
    21 'norm      '    .52372       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12546E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.3625       1.0000         .10000E-03   10000.    
    24 'norm      '    .65498       1.0000         .10000E-03   10000.    
    25 'Prefactor '    16.536       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.4119       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .56041       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=   5194.749     FROM MIGRAD    STATUS=CONVERGED    719 CALLS     3663 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4943        4.5371       -.46152E-06    .93319E-04
   2  Prefactor     3.2257        8.9353        .33158E-06   -.49347E-04
   3  Prefactor     .10000E-03    5.8177        .89142E-07** at limit **
   4  norm          .10046E-03    6.5260        .10857E-05** at limit **
   5  Prefactor     .10000E-03    11.077        .21990E-06** at limit **
   6  Prefactor     .10000E-03    110.90       -.74319E-05** at limit **
   7  norm          7.1062        7.4361        .17340E-06   -.72128E-04
   8  norm          1.9218        .56667        .87182E-08   -.20035E-03
   9  Prefactor     .10003E-03    15.359       -.44184E-06** at limit **
  10  Prefactor     31.678        27.200       -.28679E-06    .24114E-05
  11  Prefactor     .10000E-03    2.3295        .15627E-07** at limit **
  12  Prefactor     .73782        2.4081       -.14766E-06    .54186E-04
  13  norm          .10000E-03    26.606       -.50621E-05** at limit **
  14  Prefactor     .10000E-03    14.497       -.44272E-06** at limit **
  15  Prefactor     16.840        14.661        .97369E-07   -.17080E-04
  16  Prefactor     17.778        16.056        .16870E-06   -.48702E-05
  17  norm          .10000E-03    2.6655       -.24869E-05** at limit **
  18  Prefactor     80.727        62.401       -.13530E-05    .82184E-04
  19  Prefactor     .10000E-03    41.047        .41601E-05** at limit **
  20  Prefactor     1.9500        6.1748       -.54834E-06    .28546E-04
  21  norm          .52855        8.1556       -.32749E-05    .32074E-04
  22  Prefactor     .10000E-03    22.503        .41195E-05** at limit **
  23  Prefactor     9.3659        13.817       -.18358E-06    .13010E-03
  24  norm          .65488        .69201        .18059E-06    .95502E-03
  25  Prefactor     16.550        59.650       -.27536E-05   -.73256E-05
  26  Prefactor     .10000E-03    9.0070       -.36930E-07** at limit **
  27  Normalizat    1.4116        .20832       -.28930E-06   -.99952E-04
  28  Prefactor     .56050        .16926       -.11640E-05   -.99529E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.49425
  Prefactor  = 3.22573
  Prefactor  = 0.0001
  norm       = 0.000100459
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.10618
  norm       = 1.92185
  Prefactor  = 0.000100025
  Prefactor  = 31.6784
  Prefactor  = 0.0001
  Prefactor  = 0.737817
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.8402
  Prefactor  = 17.7785
  norm       = 0.0001
  Prefactor  = 80.7268
  Prefactor  = 0.0001
  Prefactor  = 1.94996
  norm       = 0.528546
  Prefactor  = 0.0001
  Prefactor  = 9.3659
  norm       = 0.654878
  Prefactor  = 16.5502
  Prefactor  = 0.0001
  Normalizat = 1.41162
  Prefactor  = 0.560497
 **********
 **   18 **HESSE 
 **********

 FCN=   5194.749     FROM HESSE     STATUS=OK           537 CALLS     4200 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4943        4.5340        .74517E-03   -1.5284    
   2  Prefactor     3.2257        8.9021        .22558E-03   -1.5349    
   3  Prefactor     .10000E-03    5.8706        .16967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10046E-03    12.028        .57199E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    110.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.1062        7.4554        .15048E-03   -1.5175    
   8  norm          1.9218        .56941        .26847E-04   -1.5431    
   9  Prefactor     .10003E-03    72.868        .52833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     31.678        26.636        .71172E-04   -1.4582    
  11  Prefactor     .10000E-03    2.3323        .10743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .73782        2.3402        .19416E-03   -1.5536    
  13  norm          .10000E-03    26.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.840        14.665        .97601E-04   -1.4887    
  16  Prefactor     17.778        16.076        .94992E-04   -1.4864    
  17  norm          .10000E-03    2.6583        .17567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     80.727        62.386        .22328E-03   -1.3909    
  19  Prefactor     .10000E-03    42.923        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.9500        6.1534        .29739E-03   -1.5429    
  21  norm          .52855        7.4951        .33838E-03   -1.5563    
  22  Prefactor     .10000E-03    23.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.3659        13.235        .13098E-03   -1.5096    
  24  norm          .65488        .66485        .50576E-03   -1.5546    
  25  Prefactor     16.550        59.890        .98494E-04   -1.4894    
  26  Prefactor     .10000E-03    9.0174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.4116        .24686        .22573E-03   -.80293    
  28  Prefactor     .56050        .19694        .29092E-03   -1.0928    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.26983e-10
Minuit parameter uncertainties:
  1  4.53438
  2  8.90579
  3  1.15135e-05
  4  0.00470261
  5  7.25298e-06
  6  0.000165192
  7  7.4564
  8  0.569413
  9  0.00272092
  10  26.6464
  11  2.84369e-06
  12  2.34047
  13  0.000119731
  14  1.04181e-05
  15  14.6685
  16  16.08
  17  1.33663e-05
  18  62.4362
  19  0.000235795
  20  6.15538
  21  3.98094
  22  0.000175488
  23  13.2394
  24  0.664854
  25  60.1087
  26  2.26111e-05
  27  0.247074
  28  0.197179
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  2.844e-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:  5.605e-01  1.972e-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.412e+00  2.471e-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: 6.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/274916/likelihoodResults_569548801_569808001_4FGL_J2221.9-3504_daily_bin1274.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) = 5194.75091304
delta logL = -0.00197178495546

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5194.74894106
delta logL = 1.93226696865e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6620       1.0000          .0000       10.000    
     3 'Normalizat'    1.4116       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56049       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=   5194.749     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      254 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.764        .10846E-01** at limit **
   2  Index         2.1067        8.5862        .50000        .37928E-06
   3  Normalizat    1.4116        .15355E-01    .22573E-03   -.12087E-06
   4  Prefactor     .56050        .13099E-01    .29092E-03    .11294E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.1067
  Normalizat = 1.41162
  Prefactor  = 0.560497
 **********
 **   18 **HESSE 
 **********

 FCN=   5194.749     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      283 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    213.34        .11904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1067        8.6735        .50000       -.61708    
   3  Normalizat    1.4116        .47230E-01    .45146E-04   -.80293    
   4  Prefactor     .56050        .40289E-01    .11637E-04   -1.0928    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.09747e-09
Minuit parameter uncertainties:
  1  0.000257769
  2  838.524
  3  0.047231
  4  0.0402914
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/274916': 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) = 5194.74893727
delta logL = 3.98263000534e-06

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  2.578e-04  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.107e+00  8.385e+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:  5.605e-01  4.029e-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.412e+00  4.723e-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/274916/cmap_HighResolution_569548801_569808001_4FGL_J2221.9-3504_daily_bin1274.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.72e-03', job_status='DONE', photon_flux_upper_limit='6.01e-08', time_completed='2021-09-28 10:13:27.412136', job_id='274916', GAL2='0.56', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1632849207.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.56', dlogl='3.98e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1274' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:13:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 274916: <4FGL_J2221.9-3504_daily_bin1274> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin1274 335.497 -35.0712 569548801 569808001 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 :                                   705.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            763 sec.

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

