/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 3 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 = 7476
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1221.5+2814_daily_bin81
RA = 185.378, Dec = 28.2382
tmin = 260323201, tmax = 260582401
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='524778', job_status='RUN', time_executed='2021-09-05 09:36:39.717847', time_epoch_executed='1630859799.72' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='81'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/524778

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/524778/ft1_4FGL_J1221.5+2814_daily_bin81.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/524778/ft2_4FGL_J1221.5+2814_daily_bin81.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/524778/ft1_4FGL_J1221.5+2814_daily_bin81.fits outfile=/scratch/kocevski/524778/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin81.fits ra=185.378 dec=28.2382 rad=12.0 tmin=260323201.0 tmax=260582401.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 1.52
user 1.35
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/524778/ft2_4FGL_J1221.5+2814_daily_bin81.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/524778/ft2_4FGL_J1221.5+2814_daily_bin81.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/524778/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin81.fits evtable="EVENTS" outfile="/scratch/kocevski/524778/ft1_filtered_4FGL_J1221.5+2814_daily_bin81.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/524778/ft1_filtered_4FGL_J1221.5+2814_daily_bin81.fits" evtable="EVENTS" scfile=/scratch/kocevski/524778/ft2_4FGL_J1221.5+2814_daily_bin81.fits sctable="SC_DATA" outfile=/scratch/kocevski/524778/ltcube_260323201_260582401_4FGL_J1221.5+2814_daily_bin81.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/524778/ft2_4FGL_J1221.5+2814_daily_bin81.fits
.....................!
real 12.22
user 11.86
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/524778/ft1_filtered_4FGL_J1221.5+2814_daily_bin81.fits evtable="EVENTS" scfile=/scratch/kocevski/524778/ft2_4FGL_J1221.5+2814_daily_bin81.fits sctable="SC_DATA" expcube=/scratch/kocevski/524778/ltcube_260323201_260582401_4FGL_J1221.5+2814_daily_bin81.fits outfile=/scratch/kocevski/524778/expmap_260323201_260582401_4FGL_J1221.5+2814_daily_bin81.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/524778/ltcube_260323201_260582401_4FGL_J1221.5+2814_daily_bin81.fits
.....................!
real 189.46
user 184.67
sys 4.48

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 197 point sources and 0 extended sources

Setting source of interest to:
4FGL J1221.5+2814 @ 185.378 28.2382

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/524778/ft1_filtered_4FGL_J1221.5+2814_daily_bin81.fits scfile=/scratch/kocevski/524778/ft2_4FGL_J1221.5+2814_daily_bin81.fits outfile=/scratch/kocevski/524778/cmap_260323201_260582401_4FGL_J1221.5+2814_daily_bin81.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=185.378 yref=28.2382 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/524778/ft1_filtered_4FGL_J1221.5+2814_daily_bin81.fits scfile=/scratch/kocevski/524778/ft2_4FGL_J1221.5+2814_daily_bin81.fits outfile=/scratch/kocevski/524778/cmap_HighResolution_260323201_260582401_4FGL_J1221.5+2814_daily_bin81.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=185.378 yref=28.2382 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.56
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/524778/ft1_filtered_4FGL_J1221.5+2814_daily_bin81.fits evtable="EVENTS" scfile=/scratch/kocevski/524778/ft2_4FGL_J1221.5+2814_daily_bin81.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/524778/Model_4FGL_J1221.5+2814_daily_bin81.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/524778/ft1_filtered_4FGL_J1221.5+2814_daily_bin81.fits.....................!
real 69.23
user 67.87
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/524778/ft1_filtered_4FGL_J1221.5+2814_daily_bin81.fits', '/scratch/kocevski/524778/ft2_4FGL_J1221.5+2814_daily_bin81.fits', expMap='/scratch/kocevski/524778/expmap_260323201_260582401_4FGL_J1221.5+2814_daily_bin81.fits', expCube='/scratch/kocevski/524778/ltcube_260323201_260582401_4FGL_J1221.5+2814_daily_bin81.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/524778/Model_4FGL_J1221.5+2814_daily_bin81.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1221.5+2814'

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  3.206e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.153e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
326        Scale:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/524778/ft1_filtered_4FGL_J1221.5+2814_daily_bin81.fits
Spacecraft file(s): /scratch/kocevski/524778/ft2_4FGL_J1221.5+2814_daily_bin81.fits
Exposure map: /scratch/kocevski/524778/expmap_260323201_260582401_4FGL_J1221.5+2814_daily_bin81.fits
Exposure cube: /scratch/kocevski/524778/ltcube_260323201_260582401_4FGL_J1221.5+2814_daily_bin81.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/524778/Model_4FGL_J1221.5+2814_daily_bin81.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) = 8573.94919247

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.891       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .64689       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.046       1.0000         .10000E-03   10000.    
     7 'norm      '    2.2618       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.5145       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .23251       1.0000         .10000E-03   10000.    
    12 'norm      '    3.0608       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .58646E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.3383       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.4650       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .12010       1.0000         .10000E-03   10000.    
    18 'norm      '    1.7892       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.831       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.320       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.0668       1.0000         .10000E-03   10000.    
    24 'norm      '    .47381       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    4.4980       1.0000         .10000E-03   10000.    
    27 'norm      '    11.047       1.0000         .10000E-03   10000.    
    28 'norm      '    6.7448       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1625       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .96369       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8573.863     FROM MIGRAD    STATUS=CONVERGED    805 CALLS     3450 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.644        .30099E-07** at limit **
   2  Prefactor     .10000E-03    4.1076       -.24512E-09** at limit **
   3  Prefactor     11.889        6.7491        .29841E-06    .14098E-03
   4  Prefactor     .10000E-03    6.6258        .11297E-06** at limit **
   5  Prefactor     .64658        1.3337        .38273E-06   -.37564E-03
   6  Prefactor     13.044        17.463        .18020E-06   -.22315E-04
   7  norm          2.2616        .98165        .24725E-07   -.60067E-04
   8  Prefactor     .10000E-03    1.4409       -.71054E-07** at limit **
   9  Prefactor     7.5276        18.669       -.37568E-05   -.25941E-03
  10  Prefactor     .10000E-03    .76750       -.12671E-07** at limit **
  11  Prefactor     .23569        1.2165        .27802E-06   -.52651E-03
  12  norm          3.0611        2.2912        .28377E-07   -.82216E-04
  13  Prefactor     .12643E-02    3.4238        .19798E-06** at limit **
  14  Prefactor     2.3385        1.7517        .57614E-08   -.24235E-04
  15  Prefactor     5.4647        2.3121        .17914E-07   -.86626E-04
  16  Prefactor     .10000E-03    2.3466       -.44087E-08** at limit **
  17  norm          .12009        .14730        .42786E-07   -.21292E-03
  18  norm          1.7886        2.6339        .16709E-06   -.16389E-03
  19  Prefactor     12.830        8.8022        .17993E-06    .57401E-04
  20  Prefactor     13.320        12.403        .32588E-07    .10666E-04
  21  Prefactor     .10000E-03    11.525       -.32089E-07** at limit **
  22  Prefactor     .10000E-03    2.6187        .20402E-07** at limit **
  23  Prefactor     3.0663        5.1652        .17418E-06   -.14373E-03
  24  norm          .47401        2.1810        .13544E-05   -.52593E-03
  25  Prefactor     .10000E-03    5.4015       -.58630E-07** at limit **
  26  norm          4.4973        3.2132        .13239E-06   -.15957E-05
  27  norm          11.047        6.4446       -.11381E-06   -.20134E-04
  28  norm          6.7435        11.102        .26132E-06   -.20947E-04
  29  Normalizat    1.1627        .15356       -.32202E-06   -.16855E-03
  30  Prefactor     .96360        .16801       -.30380E-06   -.12443E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.8893
  Prefactor  = 0.0001
  Prefactor  = 0.64658
  Prefactor  = 13.0439
  norm       = 2.26165
  Prefactor  = 0.0001
  Prefactor  = 7.52762
  Prefactor  = 0.0001
  Prefactor  = 0.235688
  norm       = 3.06111
  Prefactor  = 0.00126426
  Prefactor  = 2.3385
  Prefactor  = 5.4647
  Prefactor  = 0.0001
  norm       = 0.120087
  norm       = 1.78857
  Prefactor  = 12.8302
  Prefactor  = 13.3198
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.06627
  norm       = 0.474008
  Prefactor  = 0.0001
  norm       = 4.49735
  norm       = 11.047
  norm       = 6.74353
  Normalizat = 1.16272
  Prefactor  = 0.963598
 **********
 **   18 **HESSE 
 **********

 FCN=   8573.863     FROM HESSE     STATUS=OK           610 CALLS     4060 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.1151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.889        6.7656        .11617E-03   -1.5018    
   4  Prefactor     .10000E-03    6.6452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .64658        1.3402        .14855E-03   -1.5547    
   6  Prefactor     13.044        17.449        .11090E-03   -1.4985    
   7  norm          2.2616        .97977        .58073E-04   -1.5407    
   8  Prefactor     .10000E-03    6.8292        .21120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.5276        20.276        .14630E-03   -1.5159    
  10  Prefactor     .10000E-03    .77609        .79056E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .23569        5.3658        .19267E-02   -1.5611    
  12  norm          3.0611        2.2884        .11214E-03   -1.5358    
  13  Prefactor     .12643E-02    7.1011        .55345E-01   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.3385        1.7501        .98797E-04   -1.5402    
  15  Prefactor     5.4647        2.3075        .85197E-04   -1.5240    
  16  Prefactor     .10000E-03    2.3607        .13838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .12009        .13161        .37471E-03   -1.5639    
  18  norm          1.7886        2.6142        .17615E-03   -1.5440    
  19  Prefactor     12.830        8.8000        .11183E-03   -1.4991    
  20  Prefactor     13.320        12.395        .10975E-03   -1.4978    
  21  Prefactor     .10000E-03    11.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.6425        .14630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.0663        5.1672        .23163E-03   -1.5358    
  24  norm          .47401        2.5447        .28540E-03   -1.5570    
  25  Prefactor     .10000E-03    5.4069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          4.4973        3.2105        .13523E-03   -1.5284    
  27  norm          11.047        6.6492        .11454E-03   -1.5043    
  28  norm          6.7435        11.446        .15450E-03   -1.5189    
  29  Normalizat    1.1627        .18339        .23855E-03   -.87763    
  30  Prefactor     .96360        .20164        .29231E-03   -.93953    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54863e-09
Minuit parameter uncertainties:
  1  1.67163e-05
  2  1.33251e-06
  3  6.76607
  4  8.60569e-06
  5  1.34027
  6  17.4562
  7  0.979772
  8  7.55432e-05
  9  20.2942
  10  6.14935e-07
  11  2.24888
  12  2.2885
  13  0.181873
  14  1.75011
  15  2.30753
  16  4.34648e-07
  17  0.131611
  18  2.6144
  19  8.80093
  20  12.3971
  21  3.58336e-06
  22  5.11956e-07
  23  5.16792
  24  2.19647
  25  4.43291e-06
  26  3.21065
  27  6.64969
  28  11.4497
  29  0.183492
  30  0.201797
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  5.465e+00  2.308e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.153e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
326        Scale:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  9.636e-01  2.018e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.163e+00  1.835e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.85
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 8.00e-08 +/- 3.38e-08
Energy Flux (Fixed Index): 3.93e-05 +/- 1.66e-05

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) = 8573.72214735
delta logL = 0.140450292918

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8573.70597866
delta logL = 0.156618983237

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6713       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3855       1.0000          .0000       10.000    
     3 'Normalizat'    1.1376       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98250       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8573.706     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      236 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6708        23.910        .46550E-02    .46239E-03
   2  Index         2.3857        2.5860        .13820        .18725E-03
   3  Normalizat    1.1376        .79456E-01    .54428E-01    .13722E-04
   4  Prefactor     .98251        .65978E-01    .46048E-01   -.44035E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.67077
  Index      = 2.38568
  Normalizat = 1.13757
  Prefactor  = 0.982514
 **********
 **   18 **HESSE 
 **********

 FCN=   8573.706     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6708        2.7417        .74438E-04   -1.5276    
   2  Index         2.3857        .46069        .49265E-02   -.55021    
   3  Normalizat    1.1376        .18470        .24067E-03   -.88554    
   4  Prefactor     .98251        .20386        .28957E-03   -.93315    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03796e-11
Minuit parameter uncertainties:
  1  2.74174
  2  0.461595
  3  0.184801
  4  0.204021
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/524778': 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) = 8573.70597843
delta logL = 0.156619219913

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  4.671e+00  2.742e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.386e+00  4.616e-01  0.000e+00  1.000e+01 (-1.000e+00)
326        Scale:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  9.825e-01  2.040e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.138e+00  1.848e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.23
Ra Dec: 185.378 28.238
Photon Index (Free Index): 2.39 +/- 0.46
Photon Flux (Free Index): 9.90e-08 +/- 5.05e-08
Energy Flux (Free Index): 3.31e-05 +/- 1.62e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/524778/cmap_HighResolution_260323201_260582401_4FGL_J1221.5+2814_daily_bin81.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.00e-08', energy_flux2='3.31e-05', photon_flux_error='3.38e-08', dlogl='1.57e-01', energy_flux='3.93e-05', photon_flux2='9.90e-08', job_status='DONE', time_completed='2021-09-05 09:51:32.382321', photon_index_error2='0.46', photon_index2='2.39', ts='12.85', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.62e-05', EG='1.16', time_epoch_completed='1630860692.38', return_code='0', job_id='524778', GAL2='0.98', EG2='1.14', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='5.05e-08', ts2='13.23', photon_index='2.15' WHERE bin_id='81' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:51:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 524778: <4FGL_J1221.5+2814_daily_bin81> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin81> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 09:36:25 2021
Job was executed on host(s) <bullet0166>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 09:36:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 09:36:26 2021
Terminated at Sun Sep  5 09:51:33 2021
Results reported at Sun Sep  5 09:51:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin81 185.378 28.2382 260323201 260582401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1221.5+2814 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   887.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             342.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            908 sec.

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

