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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin1488
RA = 185.378, Dec = 28.2382
tmin = 625017601, tmax = 625276801
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='533934', job_status='RUN', time_executed='2021-09-05 10:09:32.956334', time_epoch_executed='1630861772.96' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='1488'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/533934

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/533934/ft1_4FGL_J1221.5+2814_daily_bin1488.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/533934/ft2_4FGL_J1221.5+2814_daily_bin1488.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/533934/ft1_4FGL_J1221.5+2814_daily_bin1488.fits outfile=/scratch/kocevski/533934/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1488.fits ra=185.378 dec=28.2382 rad=12.0 tmin=625017601.0 tmax=625276801.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 4.25
user 3.39
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/533934/ft1_filtered_4FGL_J1221.5+2814_daily_bin1488.fits" evtable="EVENTS" scfile=/scratch/kocevski/533934/ft2_4FGL_J1221.5+2814_daily_bin1488.fits sctable="SC_DATA" outfile=/scratch/kocevski/533934/ltcube_625017601_625276801_4FGL_J1221.5+2814_daily_bin1488.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/533934/ft2_4FGL_J1221.5+2814_daily_bin1488.fits
.....................!
real 12.32
user 11.91
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/533934/ft1_filtered_4FGL_J1221.5+2814_daily_bin1488.fits evtable="EVENTS" scfile=/scratch/kocevski/533934/ft2_4FGL_J1221.5+2814_daily_bin1488.fits sctable="SC_DATA" expcube=/scratch/kocevski/533934/ltcube_625017601_625276801_4FGL_J1221.5+2814_daily_bin1488.fits outfile=/scratch/kocevski/533934/expmap_625017601_625276801_4FGL_J1221.5+2814_daily_bin1488.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/533934/ltcube_625017601_625276801_4FGL_J1221.5+2814_daily_bin1488.fits
.....................!
real 190.27
user 185.30
sys 4.58

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/533934/ft1_filtered_4FGL_J1221.5+2814_daily_bin1488.fits scfile=/scratch/kocevski/533934/ft2_4FGL_J1221.5+2814_daily_bin1488.fits outfile=/scratch/kocevski/533934/cmap_625017601_625276801_4FGL_J1221.5+2814_daily_bin1488.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/533934/ft1_filtered_4FGL_J1221.5+2814_daily_bin1488.fits scfile=/scratch/kocevski/533934/ft2_4FGL_J1221.5+2814_daily_bin1488.fits outfile=/scratch/kocevski/533934/cmap_HighResolution_625017601_625276801_4FGL_J1221.5+2814_daily_bin1488.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2224       1.0000         .10000E-03   10000.    
     2 'Prefactor '    26.040       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .67775E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.562       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.1215       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.890       1.0000         .10000E-03   10000.    
     7 'norm      '    1.7263       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.008       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.8338       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1793       1.0000         .10000E-03   10000.    
    12 'norm      '    7.9073       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.8422       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.1209       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.4259       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.1784       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.0806       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.136       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.1799       1.0000         .10000E-03   10000.    
    24 'norm      '    .13975E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .19300E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .98554       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0613       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6030.199     FROM MIGRAD    STATUS=CONVERGED    139 CALLS     3339 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2167        3.9705       -.61083E-07   -.19780E-02
   2  Prefactor     26.070        12.843       -.14653E-05   -.96542E-04
   3  Prefactor     .10043E-03    759.29       -.41414E-05** at limit **
   4  Prefactor     15.551        2.2376        .46288E-06   -.20611E-02
   5  Prefactor     1.1212        1.7481        .11171E-06    .63896E-04
   6  Prefactor     11.920        5.8315        .10565E-05   -.26297E-02
   7  norm          1.7260        1.0975        .98059E-07    .26028E-04
   8  Prefactor     .10000E-03    1.9522       -.10789E-06** at limit **
   9  Prefactor     31.001        2.6253       -.44319E-06    .34440E-02
  10  Prefactor     4.8333        3.5475       -.16195E-05   -.50640E-03
  11  Prefactor     1.1777        3.9959        .41934E-05    .25099E-03
  12  norm          7.9065        2.5415       -.14657E-05   -.15016E-02
  13  Prefactor     7.8394        1.3505       -.46775E-06    .13671E-02
  14  Prefactor     4.1206        2.4955        .79569E-06    .39228E-03
  15  Prefactor     3.4253        2.2625        .19196E-06    .41277E-04
  16  Prefactor     6.1776        2.4577        .11962E-05    .17631E-03
  17  norm          .10000E-03    .19385       -.10491E-07** at limit **
  18  norm          4.0790        2.8303        .16200E-05    .30496E-03
  19  Prefactor     10.134        1.1184       -.13140E-06    .89747E-03
  20  Prefactor     .10000E-03    6.3060       -.58846E-06** at limit **
  21  Prefactor     .10000E-03    25.823       -.67044E-06** at limit **
  22  Prefactor     .10000E-03    2.1798       -.41278E-06** at limit **
  23  Prefactor     3.1791        3.8933        .17847E-05    .51550E-03
  24  norm          .10000E-03    18.791        .16254E-06** at limit **
  25  Prefactor     .10000E-03    8.4935       -.38884E-07** at limit **
  26  norm          .10000E-03    7.5921        .12911E-05** at limit **
  27  norm          .10000E-03    1.6496       -.10075E-06** at limit **
  28  norm          .10000E-03    1.8103        .15891E-06** at limit **
  29  Normalizat    .98584        .20191       -.16185E-05    .24081E-04
  30  Prefactor     1.0612        .23557        .86428E-06    .27640E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.21672
  Prefactor  = 26.0696
  Prefactor  = 0.000100433
  Prefactor  = 15.5506
  Prefactor  = 1.12123
  Prefactor  = 11.9202
  norm       = 1.72601
  Prefactor  = 0.0001
  Prefactor  = 31.001
  Prefactor  = 4.83328
  Prefactor  = 1.17769
  norm       = 7.90648
  Prefactor  = 7.83944
  Prefactor  = 4.12064
  Prefactor  = 3.42533
  Prefactor  = 6.17757
  norm       = 0.0001
  norm       = 4.07902
  Prefactor  = 10.1339
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 3.17911
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.985837
  Prefactor  = 1.06122
 **********
 **   18 **HESSE 
 **********

 FCN=   6030.199     FROM HESSE     STATUS=OK           678 CALLS     4017 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2167        68.120        .56418E-02   -1.5349    
   2  Prefactor     26.070        20.499        .19626E-02   -1.4686    
   3  Prefactor     .10043E-03    3.3005        .79817E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.551        19.431        .25382E-02   -1.4919    
   5  Prefactor     1.1212        1.8543        .11082E-01   -1.5496    
   6  Prefactor     11.920        25.064        .29044E-02   -1.5017    
   7  norm          1.7260        1.1120        .79901E-02   -1.5445    
   8  Prefactor     .10000E-03    1.9294        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     31.001        29.489        .17988E-02   -1.4594    
  10  Prefactor     4.8333        3.8210        .45743E-02   -1.5268    
  11  Prefactor     1.1777        4.3439        .10530E-01   -1.5491    
  12  norm          7.9065        3.9010        .35648E-02   -1.5146    
  13  Prefactor     7.8394        7.5915        .35797E-02   -1.5148    
  14  Prefactor     4.1206        2.7464        .49644E-02   -1.5302    
  15  Prefactor     3.4253        2.3021        .54635E-02   -1.5338    
  16  Prefactor     6.1776        4.9579        .40377E-02   -1.5211    
  17  norm          .10000E-03    .13256        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.0790        4.7862        .49896E-02   -1.5304    
  19  Prefactor     10.134        8.4979        .31465E-02   -1.5071    
  20  Prefactor     .10000E-03    6.3142        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    25.966        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.1742        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.1791        3.9083        .56813E-02   -1.5351    
  24  norm          .10000E-03    1.8570        .57306E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    8.4865        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.9361        .56329E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.6302        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    1.8102        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .98584        .18168        .45985E-01   -.93506    
  30  Prefactor     1.0612        .20143        .63026E-01   -.90716    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04164e-07
Minuit parameter uncertainties:
  1  29.6436
  2  20.5042
  3  0.00239123
  4  19.4387
  5  1.85437
  6  25.0859
  7  1.112
  8  1.88088e-06
  9  29.5028
  10  3.82124
  11  4.34511
  12  3.90109
  13  7.59241
  14  2.74649
  15  2.30218
  16  4.95824
  17  5.6262e-08
  18  4.78661
  19  8.49889
  20  9.23991e-07
  21  0.00039672
  22  8.75915e-06
  23  3.90859
  24  2.42091e-05
  25  3.81629e-05
  26  2.47002e-05
  27  6.76982e-07
  28  2.12552e-06
  29  0.181797
  30  0.201574
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  3.425e+00  2.302e+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:  1.061e+00  2.016e-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.858e-01  1.818e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.82
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 5.01e-08 +/- 3.37e-08
Energy Flux (Fixed Index): 2.46e-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) = 6029.99845207
delta logL = 0.200628802342

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6029.98844572
delta logL = 0.210635153468

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9079       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8654       1.0000          .0000       10.000    
     3 'Normalizat'    .99949       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0515       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=   6029.988     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      232 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9087        86.351        .51023E-02    .13142E-03
   2  Index         1.8658        5.7088        .18517        .29524E-04
   3  Normalizat    .99932        .16362        .46161E-01    .26123E-05
   4  Prefactor     1.0516        .14942        .63279E-01    .43637E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.90866
  Index      = 1.86585
  Normalizat = 0.999324
  Prefactor  = 1.05163
 **********
 **   18 **HESSE 
 **********

 FCN=   6029.988     FROM HESSE     STATUS=OK            33 CALLS      265 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9087        2.6130        .99195E-04   -1.5313    
   2  Index         1.8658        .42509        .69892E-02   -.67748    
   3  Normalizat    .99932        .20048        .24458E-03   -.93053    
   4  Prefactor     1.0516        .23507        .27988E-03   -.91028    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54258e-11
Minuit parameter uncertainties:
  1  2.61303
  2  0.425942
  3  0.200633
  4  0.235298
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/533934': 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) = 6029.98844486
delta logL = 0.210636011713

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  3.909e+00  2.613e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  1.866e+00  4.259e-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:  1.052e+00  2.353e-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.993e-01  2.006e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.29
Ra Dec: 185.378 28.238
Photon Index (Free Index): 1.87 +/- 0.43
Photon Flux (Free Index): 3.83e-08 +/- 3.16e-08
Energy Flux (Free Index): 3.79e-05 +/- 3.73e-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/533934/cmap_HighResolution_625017601_625276801_4FGL_J1221.5+2814_daily_bin1488.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.01e-08', energy_flux2='3.79e-05', photon_flux_error='3.37e-08', dlogl='2.11e-01', energy_flux='2.46e-05', photon_flux2='3.83e-08', job_status='DONE', time_completed='2021-09-05 10:22:12.447334', photon_index_error2='0.43', photon_index2='1.87', ts='5.82', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='3.73e-05', EG='0.99', time_epoch_completed='1630862532.45', return_code='0', job_id='533934', GAL2='1.05', EG2='1.00', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='3.16e-08', ts2='6.29', photon_index='2.15' WHERE bin_id='1488' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:22:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 533934: <4FGL_J1221.5+2814_daily_bin1488> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin1488> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 10:05:42 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:05:43 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:05:43 2021
Terminated at Sun Sep  5 10:22:13 2021
Results reported at Sun Sep  5 10:22:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin1488 185.378 28.2382 625017601 625276801 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 :                                   748.31 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             264.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            991 sec.

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

