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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin1415
RA = 185.378, Dec = 28.2382
tmin = 606096001, tmax = 606355201
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='532502', job_status='RUN', time_executed='2021-09-05 10:02:40.056589', time_epoch_executed='1630861360.06' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='1415'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/532502

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/532502/ft1_4FGL_J1221.5+2814_daily_bin1415.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/532502/ft2_4FGL_J1221.5+2814_daily_bin1415.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/532502/ft1_4FGL_J1221.5+2814_daily_bin1415.fits outfile=/scratch/kocevski/532502/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1415.fits ra=185.378 dec=28.2382 rad=12.0 tmin=606096001.0 tmax=606355201.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.70
user 3.46
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/532502/ft2_4FGL_J1221.5+2814_daily_bin1415.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/532502/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1415.fits evtable="EVENTS" outfile="/scratch/kocevski/532502/ft1_filtered_4FGL_J1221.5+2814_daily_bin1415.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.54
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/532502/ft1_filtered_4FGL_J1221.5+2814_daily_bin1415.fits" evtable="EVENTS" scfile=/scratch/kocevski/532502/ft2_4FGL_J1221.5+2814_daily_bin1415.fits sctable="SC_DATA" outfile=/scratch/kocevski/532502/ltcube_606096001_606355201_4FGL_J1221.5+2814_daily_bin1415.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/532502/ft2_4FGL_J1221.5+2814_daily_bin1415.fits
.....................!
real 12.03
user 11.62
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/532502/ft1_filtered_4FGL_J1221.5+2814_daily_bin1415.fits evtable="EVENTS" scfile=/scratch/kocevski/532502/ft2_4FGL_J1221.5+2814_daily_bin1415.fits sctable="SC_DATA" expcube=/scratch/kocevski/532502/ltcube_606096001_606355201_4FGL_J1221.5+2814_daily_bin1415.fits outfile=/scratch/kocevski/532502/expmap_606096001_606355201_4FGL_J1221.5+2814_daily_bin1415.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/532502/ltcube_606096001_606355201_4FGL_J1221.5+2814_daily_bin1415.fits
.....................!
real 192.50
user 186.98
sys 5.10

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/532502/ft1_filtered_4FGL_J1221.5+2814_daily_bin1415.fits scfile=/scratch/kocevski/532502/ft2_4FGL_J1221.5+2814_daily_bin1415.fits outfile=/scratch/kocevski/532502/cmap_606096001_606355201_4FGL_J1221.5+2814_daily_bin1415.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/532502/ft1_filtered_4FGL_J1221.5+2814_daily_bin1415.fits scfile=/scratch/kocevski/532502/ft2_4FGL_J1221.5+2814_daily_bin1415.fits outfile=/scratch/kocevski/532502/cmap_HighResolution_606096001_606355201_4FGL_J1221.5+2814_daily_bin1415.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10492E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.6350       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.068       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.2772       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .21706E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.2530       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.5374       1.0000         .10000E-03   10000.    
     9 'Prefactor '    43.567       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .54727E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.0455       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.0939       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.6097       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.517       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .51060E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.4166       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .83304       1.0000         .10000E-03   10000.    
    24 'norm      '    2.7382       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.1791       1.0000         .10000E-03   10000.    
    27 'norm      '    6.4725       1.0000         .10000E-03   10000.    
    28 'norm      '    35.676       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .83454       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0089       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=   5608.245     FROM MIGRAD    STATUS=CONVERGED    787 CALLS     3981 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    78.385        .14927E-04** at limit **
   2  Prefactor     .10000E-03    20.001       -.14239E-06** at limit **
   3  Prefactor     3.6332        4.0565        .26502E-06   -.10951E-02
   4  Prefactor     21.070        18.056       -.10424E-06   -.13024E-04
   5  Prefactor     3.2774        1.9404       -.18042E-07   -.72624E-05
   6  Prefactor     .10000E-03    95.448       -.70665E-05** at limit **
   7  norm          5.2529        1.5675        .42978E-07    .77833E-04
   8  Prefactor     6.5427        4.8576        .76787E-07   -.53595E-03
   9  Prefactor     43.555        32.226       -.41461E-05    .28254E-04
  10  Prefactor     .10023E-03    1.4783       -.27000E-06** at limit **
  11  Prefactor     .10000E-03    2.3242        .17050E-07** at limit **
  12  norm          .10000E-03    1.0913        .22313E-08** at limit **
  13  Prefactor     .10000E-03    2.3379        .22576E-07** at limit **
  14  Prefactor     8.0462        2.9927        .43715E-07    .27806E-04
  15  Prefactor     .10000E-03    1.2259       -.15490E-08** at limit **
  16  Prefactor     1.0944        4.4424        .70099E-06   -.93082E-04
  17  norm          .10000E-03    .68166E-01   -.91146E-08** at limit **
  18  norm          4.6105        4.1961        .16460E-06   -.17750E-04
  19  Prefactor     13.516        10.821       -.44389E-06    .22822E-05
  20  Prefactor     .10000E-03    6.0848       -.92892E-08** at limit **
  21  Prefactor     .10000E-03    150.97       -.13657E-04** at limit **
  22  Prefactor     2.4175        5.0467       -.13914E-06   -.43365E-04
  23  Prefactor     .83357        3.2791        .46346E-07   -.10030E-03
  24  norm          2.7345        2.7741        .11600E-07    .82293E-04
  25  Prefactor     .10000E-03    15.310       -.36260E-07** at limit **
  26  norm          2.1794        2.3966       -.97919E-08    .74976E-05
  27  norm          6.4733        6.8321       -.29603E-06   -.81441E-03
  28  norm          35.676        16.237        .26101E-06    .96352E-05
  29  Normalizat    .83432        .17787        .92850E-06    .19836E-04
  30  Prefactor     1.0090        .19987       -.36203E-06    .52991E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.63319
  Prefactor  = 21.0695
  Prefactor  = 3.2774
  Prefactor  = 0.000100002
  norm       = 5.25293
  Prefactor  = 6.54272
  Prefactor  = 43.5547
  Prefactor  = 0.000100234
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.04616
  Prefactor  = 0.0001
  Prefactor  = 1.09445
  norm       = 0.0001
  norm       = 4.61045
  Prefactor  = 13.5164
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.41752
  Prefactor  = 0.833572
  norm       = 2.73446
  Prefactor  = 0.0001
  norm       = 2.17942
  norm       = 6.47331
  norm       = 35.6756
  Normalizat = 0.83432
  Prefactor  = 1.00896
 **********
 **   18 **HESSE 
 **********

 FCN=   5608.245     FROM HESSE     STATUS=OK           602 CALLS     4583 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    79.915        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.6332        5.4205        .10236E-02   -1.5327    
   4  Prefactor     21.070        18.066        .87264E-04   -1.4790    
   5  Prefactor     3.2774        1.9365        .76509E-04   -1.5346    
   6  Prefactor     .10000E-03    96.088        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.2529        1.5682        .48752E-04   -1.5250    
   8  Prefactor     6.5427        5.1978        .69116E-03   -1.5196    
   9  Prefactor     43.555        32.216        .60738E-04   -1.4387    
  10  Prefactor     .10023E-03    3.9158        .30115E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.3917        .22241E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.0993        .76272E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.3427        .11182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.0462        2.9877        .76009E-04   -1.5141    
  15  Prefactor     .10000E-03    1.2543        .16159E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.0944        4.3603        .29699E-03   -1.5499    
  17  norm          .10000E-03    .81377E-01    .37968E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.6105        4.1614        .13667E-03   -1.5278    
  19  Prefactor     13.516        10.821        .10894E-03   -1.4973    
  20  Prefactor     .10000E-03    6.0878        .18042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    153.05        .21147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.4175        5.0293        .23525E-03   -1.5397    
  23  Prefactor     .83357        3.2094        .26253E-03   -1.5525    
  24  norm          2.7345        2.7732        .12162E-03   -1.5377    
  25  Prefactor     .10000E-03    15.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.1794        2.3967        .11812E-03   -1.5413    
  27  norm          6.4733        8.8822        .78876E-03   -1.5199    
  28  norm          35.676        18.662        .67095E-04   -1.4513    
  29  Normalizat    .83432        .20769        .25162E-03   -.98808    
  30  Prefactor     1.0090        .23016        .26740E-03   -.92431    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24372e-09
Minuit parameter uncertainties:
  1  0.000473279
  2  9.62611e-05
  3  5.42122
  4  18.0711
  5  1.93657
  6  0.000913617
  7  1.56818
  8  5.19811
  9  32.2289
  10  0.00191361
  11  6.11649e-07
  12  8.25758e-07
  13  3.89849e-06
  14  2.98778
  15  4.28656e-07
  16  4.36157
  17  3.29747e-07
  18  4.16164
  19  10.8222
  20  8.17538e-07
  21  7.54717e-06
  22  5.03019
  23  3.21007
  24  2.77335
  25  3.51291e-07
  26  2.39676
  27  8.88397
  28  18.6653
  29  0.207887
  30  0.230383
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  1.000e-04  4.287e-07  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:  1.009e+00  2.304e-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:  8.343e-01  2.079e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 185.378 28.238
Photon Flux Upper Limit: 6.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/532502/likelihoodResults_606096001_606355201_4FGL_J1221.5+2814_daily_bin1415.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) = 5608.24906183
delta logL = -0.00378686310341

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5608.24527491
delta logL = 5.56328814127e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1774       1.0000          .0000       10.000    
     3 'Normalizat'    .83438       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0090       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=   5608.033     FROM MIGRAD    STATUS=CONVERGED    126 CALLS      277 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13936E-01    .29842        .29928E-02    .79792E-02
   2  Index         4.8333        2.8349        .13128        .12269E-03
   3  Normalizat    .79083        .26873E-01    .44057E-01    .12548E-04
   4  Prefactor     1.0399        .31326E-01    .43482E-01    .19191E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0139365
  Index      = 4.83335
  Normalizat = 0.790833
  Prefactor  = 1.03993
 **********
 **   18 **HESSE 
 **********

 FCN=   5608.033     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      310 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13936E-01    1.6559        .13100E-04   -1.5684    
   2  Index         4.8333        7.1749        .72329E-02   -.33336E-01
   3  Normalizat    .79083        .15213        .25759E-03   -1.0041    
   4  Prefactor     1.0399        .17371        .26383E-03   -.91410    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.05671e-06
Minuit parameter uncertainties:
  1  0.302742
  2  9.89884
  3  0.152214
  4  0.173806
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/532502': 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) = 5608.03262571
delta logL = 0.212649257602

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  1.394e-02  3.027e-01  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  4.833e+00  9.899e+00  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:  1.040e+00  1.738e-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:  7.908e-01  1.522e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 185.378 28.238

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/532502/cmap_HighResolution_606096001_606355201_4FGL_J1221.5+2814_daily_bin1415.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.93e-03', job_status='DONE', photon_flux_upper_limit='6.50e-08', time_completed='2021-09-05 10:17:09.128066', job_id='532502', GAL2='1.04', fit_tolerance='1e-08', EG2='0.79', EG='0.83', time_epoch_completed='1630862229.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='2.13e-01', ts2='0.46', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1415' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:17:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 532502: <4FGL_J1221.5+2814_daily_bin1415> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin1415> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 10:01:05 2021
Job was executed on host(s) <bullet0011>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:01:07 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:07 2021
Terminated at Sun Sep  5 10:17:09 2021
Results reported at Sun Sep  5 10:17:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin1415 185.378 28.2382 606096001 606355201 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 :                                   861.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   962 sec.
    Turnaround time :                            964 sec.

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

