/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 36 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 = 7622
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1221.5+2814_daily_bin1396
RA = 185.378, Dec = 28.2382
tmin = 601171201, tmax = 601430401
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='532470', job_status='RUN', time_executed='2021-09-05 10:02:08.508589', time_epoch_executed='1630861328.51' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='1396'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/532470

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/532470/ft1_4FGL_J1221.5+2814_daily_bin1396.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/532470/ft2_4FGL_J1221.5+2814_daily_bin1396.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/532470/ft1_4FGL_J1221.5+2814_daily_bin1396.fits outfile=/scratch/kocevski/532470/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1396.fits ra=185.378 dec=28.2382 rad=12.0 tmin=601171201.0 tmax=601430401.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.75
user 3.42
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/532470/ft2_4FGL_J1221.5+2814_daily_bin1396.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/532470/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1396.fits evtable="EVENTS" outfile="/scratch/kocevski/532470/ft1_filtered_4FGL_J1221.5+2814_daily_bin1396.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/532470/ft1_filtered_4FGL_J1221.5+2814_daily_bin1396.fits" evtable="EVENTS" scfile=/scratch/kocevski/532470/ft2_4FGL_J1221.5+2814_daily_bin1396.fits sctable="SC_DATA" outfile=/scratch/kocevski/532470/ltcube_601171201_601430401_4FGL_J1221.5+2814_daily_bin1396.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/532470/ft2_4FGL_J1221.5+2814_daily_bin1396.fits
.....................!
real 11.79
user 11.41
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/532470/ft1_filtered_4FGL_J1221.5+2814_daily_bin1396.fits evtable="EVENTS" scfile=/scratch/kocevski/532470/ft2_4FGL_J1221.5+2814_daily_bin1396.fits sctable="SC_DATA" expcube=/scratch/kocevski/532470/ltcube_601171201_601430401_4FGL_J1221.5+2814_daily_bin1396.fits outfile=/scratch/kocevski/532470/expmap_601171201_601430401_4FGL_J1221.5+2814_daily_bin1396.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/532470/ltcube_601171201_601430401_4FGL_J1221.5+2814_daily_bin1396.fits
.....................!
real 190.08
user 185.03
sys 4.60

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/532470/ft1_filtered_4FGL_J1221.5+2814_daily_bin1396.fits scfile=/scratch/kocevski/532470/ft2_4FGL_J1221.5+2814_daily_bin1396.fits outfile=/scratch/kocevski/532470/cmap_601171201_601430401_4FGL_J1221.5+2814_daily_bin1396.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/532470/ft1_filtered_4FGL_J1221.5+2814_daily_bin1396.fits scfile=/scratch/kocevski/532470/ft2_4FGL_J1221.5+2814_daily_bin1396.fits outfile=/scratch/kocevski/532470/cmap_HighResolution_601171201_601430401_4FGL_J1221.5+2814_daily_bin1396.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.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/532470/ft1_filtered_4FGL_J1221.5+2814_daily_bin1396.fits', '/scratch/kocevski/532470/ft2_4FGL_J1221.5+2814_daily_bin1396.fits', expMap='/scratch/kocevski/532470/expmap_601171201_601430401_4FGL_J1221.5+2814_daily_bin1396.fits', expCube='/scratch/kocevski/532470/ltcube_601171201_601430401_4FGL_J1221.5+2814_daily_bin1396.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/532470/Model_4FGL_J1221.5+2814_daily_bin1396.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/532470/ft1_filtered_4FGL_J1221.5+2814_daily_bin1396.fits
Spacecraft file(s): /scratch/kocevski/532470/ft2_4FGL_J1221.5+2814_daily_bin1396.fits
Exposure map: /scratch/kocevski/532470/expmap_601171201_601430401_4FGL_J1221.5+2814_daily_bin1396.fits
Exposure cube: /scratch/kocevski/532470/ltcube_601171201_601430401_4FGL_J1221.5+2814_daily_bin1396.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/532470/Model_4FGL_J1221.5+2814_daily_bin1396.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) = 6224.89068147

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.289       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .46839       1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.252       1.0000         .10000E-03   10000.    
     7 'norm      '    .82934E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .22829       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.9461       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.3079       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.3248       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3505       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.9668       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.7466       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.2756       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .46978E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.0262       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    3.8065       1.0000         .10000E-03   10000.    
    27 'norm      '    24.175       1.0000         .10000E-03   10000.    
    28 'norm      '    16.674       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .99905       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .86879       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=   6224.859     FROM MIGRAD    STATUS=CONVERGED    765 CALLS     4009 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.288        19.360        .34909E-06    .45089E-04
   2  Prefactor     .10000E-03    13.279       -.16295E-06** at limit **
   3  Prefactor     .10000E-03    2.1251        .39008E-07** at limit **
   4  Prefactor     .10000E-03    4.2957       -.89741E-07** at limit **
   5  Prefactor     .46817        1.4851        .20321E-06   -.42227E-04
   6  Prefactor     25.257        23.481       -.75835E-06   -.15741E-03
   7  norm          .63371E-02    .58608       -.37014E-06    .29339E-03
   8  Prefactor     .23168        2.5149        .55080E-07   -.54003E-04
   9  Prefactor     7.9468        22.745        .33619E-06    .68427E-05
  10  Prefactor     6.3074        3.5416        .14995E-06    .45253E-03
  11  Prefactor     .10000E-03    2.2831       -.64128E-07** at limit **
  12  norm          8.3253        4.1064        .12104E-07    .76574E-04
  13  Prefactor     .10000E-03    1.6926       -.40563E-08** at limit **
  14  Prefactor     5.3508        3.1519       -.92815E-07    .62725E-04
  15  Prefactor     5.9679        2.7100       -.14627E-06    .15963E-03
  16  Prefactor     .10000E-03    1.5529       -.34080E-07** at limit **
  17  norm          .10000E-03    .13865       -.30877E-07** at limit **
  18  norm          4.7471        3.8550        .56051E-08    .18137E-03
  19  Prefactor     2.2702        10.304        .74240E-05   -.56056E-04
  20  Prefactor     .10000E-03    4.8771        .12033E-06** at limit **
  21  Prefactor     .10000E-03    24.837       -.21496E-06** at limit **
  22  Prefactor     .10000E-03    5.3353       -.23076E-05** at limit **
  23  Prefactor     2.0263        3.4054        .64748E-07    .22400E-04
  24  norm          .10000E-03    1.9320        .65048E-07** at limit **
  25  Prefactor     .10000E-03    7.1129        .38136E-07** at limit **
  26  norm          3.8054        3.6261        .43162E-07    .77974E-04
  27  norm          24.183        10.573       -.18871E-06    .54958E-03
  28  norm          16.661        19.289        .85482E-06    .12288E-03
  29  Normalizat    .99887        .17208       -.17717E-05    .19378E-03
  30  Prefactor     .86901        .18282        .16599E-05    .35886E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.2879
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.46817
  Prefactor  = 25.2569
  norm       = 0.00633712
  Prefactor  = 0.231678
  Prefactor  = 7.94679
  Prefactor  = 6.30736
  Prefactor  = 0.0001
  norm       = 8.3253
  Prefactor  = 0.0001
  Prefactor  = 5.35084
  Prefactor  = 5.96785
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.74715
  Prefactor  = 2.2702
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.02631
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.80543
  norm       = 24.1829
  norm       = 16.6608
  Normalizat = 0.998865
  Prefactor  = 0.869012
 **********
 **   18 **HESSE 
 **********

 FCN=   6224.859     FROM HESSE     STATUS=OK           600 CALLS     4609 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.288        19.318        .99235E-04   -1.4901    
   2  Prefactor     .10000E-03    13.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.1356        .11230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.2985        .15970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .46817        1.4643        .16167E-03   -1.5571    
   6  Prefactor     25.257        23.640        .79716E-04   -1.4702    
   7  norm          .63371E-02    .53185        .19496E-01   -1.5692    
   8  Prefactor     .23168        27.719        .22287E-02   -1.5612    
   9  Prefactor     7.9468        22.716        .14224E-03   -1.5144    
  10  Prefactor     6.3074        3.5352        .10155E-03   -1.5206    
  11  Prefactor     .10000E-03    2.3280        .23202E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.3253        4.1196        .96617E-04   -1.5131    
  13  Prefactor     .10000E-03    1.6957        .10024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.3508        3.1616        .93430E-04   -1.5245    
  15  Prefactor     5.9679        2.7170        .80401E-04   -1.5219    
  16  Prefactor     .10000E-03    1.5554        .96001E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .40121        .56246E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.7471        3.8526        .13415E-03   -1.5272    
  19  Prefactor     2.2702        11.015        .13611E-02   -1.5407    
  20  Prefactor     .10000E-03    4.8788        .17019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    24.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    14.121        .33102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.0263        3.3805        .18387E-03   -1.5423    
  24  norm          .10000E-03    1.9633        .10706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    7.1185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.8054        3.6120        .14059E-03   -1.5318    
  27  norm          24.183        10.607        .81469E-04   -1.4724    
  28  norm          16.661        19.287        .98085E-04   -1.4891    
  29  Normalizat    .99887        .20345        .23591E-03   -.93068    
  30  Prefactor     .86901        .21815        .28221E-03   -.97232    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28784e-08
Minuit parameter uncertainties:
  1  19.3251
  2  4.4969e-05
  3  5.79129e-06
  4  7.69777e-06
  5  1.46443
  6  23.649
  7  0.115192
  8  5.06964
  9  22.7411
  10  3.53529
  11  8.95738e-06
  12  4.11979
  13  3.46955e-07
  14  3.16169
  15  2.71708
  16  3.0637e-06
  17  1.04133e-07
  18  3.8528
  19  10.0042
  20  1.03322e-05
  21  3.65253e-05
  22  7.61815e-05
  23  3.38084
  24  4.53624e-06
  25  1.76235e-05
  26  3.61223
  27  10.6083
  28  19.2944
  29  0.203605
  30  0.218369
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  5.968e+00  2.717e+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:  8.690e-01  2.184e-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:  9.989e-01  2.036e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.74
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 8.74e-08 +/- 3.97e-08
Energy Flux (Fixed Index): 4.29e-05 +/- 1.95e-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) = 6223.89464116
delta logL = 0.964558053512

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6223.88998536
delta logL = 0.969213856947

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6480       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7660       1.0000          .0000       10.000    
     3 'Normalizat'    .92299       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92479       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=   6223.890     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      235 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6480        17.264        .52876E-02    .22430E-02
   2  Index         2.7660        2.4504        .88867E-01    .13041E-03
   3  Normalizat    .92294        .88811E-01    .45195E-01    .20307E-05
   4  Prefactor     .92481        .78334E-01    .45320E-01    .26398E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.64796
  Index      = 2.76601
  Normalizat = 0.922938
  Prefactor  = 0.924805
 **********
 **   18 **HESSE 
 **********

 FCN=   6223.890     FROM HESSE     STATUS=OK            33 CALLS      268 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6480        2.8038        .51711E-04   -1.5326    
   2  Index         2.7660        .51685        .35804E-02   -.46318    
   3  Normalizat    .92294        .20360        .24364E-03   -.95659    
   4  Prefactor     .92481        .22307        .27412E-03   -.95280    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31982e-09
Minuit parameter uncertainties:
  1  2.80393
  2  0.518008
  3  0.203773
  4  0.223294
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/532470': 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) = 6223.88998524
delta logL = 0.969213973858

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  3.648e+00  2.804e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.766e+00  5.180e-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.248e-01  2.233e-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:  9.229e-01  2.038e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.95
Ra Dec: 185.378 28.238
Photon Index (Free Index): 2.77 +/- 0.52
Photon Flux (Free Index): 1.50e-07 +/- 6.74e-08
Energy Flux (Free Index): 3.44e-05 +/- 1.30e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/532470/cmap_HighResolution_601171201_601430401_4FGL_J1221.5+2814_daily_bin1396.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.74e-08', energy_flux2='3.44e-05', photon_flux_error='3.97e-08', dlogl='9.69e-01', energy_flux='4.29e-05', photon_flux2='1.50e-07', job_status='DONE', time_completed='2021-09-05 10:15:31.871099', photon_index_error2='0.52', photon_index2='2.77', ts='13.74', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='1.30e-05', EG='1.00', time_epoch_completed='1630862131.87', return_code='0', job_id='532470', GAL2='0.92', EG2='0.92', return_code2='0', energy_flux_error='1.95e-05', photon_flux_error2='6.74e-08', ts2='15.95', photon_index='2.15' WHERE bin_id='1396' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:15:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 532470: <4FGL_J1221.5+2814_daily_bin1396> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin1396> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 10:01:03 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:01:05 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 10:01:05 2021
Terminated at Sun Sep  5 10:15:32 2021
Results reported at Sun Sep  5 10:15:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin1396 185.378 28.2382 601171201 601430401 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 :                                   799.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             321.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            869 sec.

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

