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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin70
RA = 185.378, Dec = 28.2382
tmin = 257472001, tmax = 257731201
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='524763', job_status='RUN', time_executed='2021-09-05 09:37:32.676636', time_epoch_executed='1630859852.68' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='70'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/524763

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/524763/ft1_4FGL_J1221.5+2814_daily_bin70.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/524763/ft2_4FGL_J1221.5+2814_daily_bin70.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/524763/ft1_4FGL_J1221.5+2814_daily_bin70.fits outfile=/scratch/kocevski/524763/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin70.fits ra=185.378 dec=28.2382 rad=12.0 tmin=257472001.0 tmax=257731201.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 2.02
user 1.78
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/524763/ft1_filtered_4FGL_J1221.5+2814_daily_bin70.fits" evtable="EVENTS" scfile=/scratch/kocevski/524763/ft2_4FGL_J1221.5+2814_daily_bin70.fits sctable="SC_DATA" outfile=/scratch/kocevski/524763/ltcube_257472001_257731201_4FGL_J1221.5+2814_daily_bin70.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/524763/ft2_4FGL_J1221.5+2814_daily_bin70.fits
.....................!
real 14.65
user 14.24
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/524763/ft1_filtered_4FGL_J1221.5+2814_daily_bin70.fits evtable="EVENTS" scfile=/scratch/kocevski/524763/ft2_4FGL_J1221.5+2814_daily_bin70.fits sctable="SC_DATA" expcube=/scratch/kocevski/524763/ltcube_257472001_257731201_4FGL_J1221.5+2814_daily_bin70.fits outfile=/scratch/kocevski/524763/expmap_257472001_257731201_4FGL_J1221.5+2814_daily_bin70.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/524763/ltcube_257472001_257731201_4FGL_J1221.5+2814_daily_bin70.fits
.....................!
real 190.38
user 185.46
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/524763/ft1_filtered_4FGL_J1221.5+2814_daily_bin70.fits scfile=/scratch/kocevski/524763/ft2_4FGL_J1221.5+2814_daily_bin70.fits outfile=/scratch/kocevski/524763/cmap_257472001_257731201_4FGL_J1221.5+2814_daily_bin70.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/524763/ft1_filtered_4FGL_J1221.5+2814_daily_bin70.fits scfile=/scratch/kocevski/524763/ft2_4FGL_J1221.5+2814_daily_bin70.fits outfile=/scratch/kocevski/524763/cmap_HighResolution_257472001_257731201_4FGL_J1221.5+2814_daily_bin70.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/524763/ft1_filtered_4FGL_J1221.5+2814_daily_bin70.fits evtable="EVENTS" scfile=/scratch/kocevski/524763/ft2_4FGL_J1221.5+2814_daily_bin70.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/524763/Model_4FGL_J1221.5+2814_daily_bin70.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/524763/ft1_filtered_4FGL_J1221.5+2814_daily_bin70.fits.....................!
real 51.57
user 50.24
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.8472       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.5034       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2325       1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.826       1.0000         .10000E-03   10000.    
     7 'norm      '    .19741       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10380E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.359       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10267E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.5386       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.6823       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .22144       1.0000         .10000E-03   10000.    
    18 'norm      '    .25010       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .24930       1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.710       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.1205       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.4135       1.0000         .10000E-03   10000.    
    24 'norm      '    3.3085       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.9263       1.0000         .10000E-03   10000.    
    27 'norm      '    7.7960       1.0000         .10000E-03   10000.    
    28 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .95875       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .95325       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=   5781.000     FROM MIGRAD    STATUS=CONVERGED    797 CALLS     4032 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.8470        13.817       -.20185E-05   -.47954E-05
   2  Prefactor     .10000E-03    2.4675       -.14073E-06** at limit **
   3  Prefactor     3.5024        5.3838       -.23856E-05   -.49622E-03
   4  Prefactor     .10000E-03    4.6624       -.11466E-05** at limit **
   5  Prefactor     1.2324        1.4784       -.51115E-06   -.60800E-03
   6  Prefactor     20.836        24.338        .21640E-04    .15951E-03
   7  norm          .19776        .73686        .35622E-06   -.16555E-03
   8  Prefactor     .10001E-03    1.8881       -.77971E-06** at limit **
   9  Prefactor     10.283        31.662       -.93706E-04   -.23775E-04
  10  Prefactor     .10000E-03    1.5501       -.12464E-06** at limit **
  11  Prefactor     .10000E-03    1.6440       -.48525E-06** at limit **
  12  norm          .10000E-03    1.2965        .11893E-06** at limit **
  13  Prefactor     .10000E-03    2.5737        .42145E-06** at limit **
  14  Prefactor     3.5382        2.2220        .33964E-06    .43668E-03
  15  Prefactor     5.6818        2.3702       -.13029E-07    .91037E-03
  16  Prefactor     .10000E-03    4.7099        .15322E-05** at limit **
  17  norm          .22144        .19704       -.19523E-06   -.90258E-03
  18  norm          .21925        2.1669       -.15861E-05    .61136E-03
  19  Prefactor     .31725        7.0928       -.12864E-05   -.11569E-03
  20  Prefactor     15.708        18.373       -.90949E-06   -.21528E-04
  21  Prefactor     .10000E-03    34.330       -.45542E-05** at limit **
  22  Prefactor     3.1195        6.1544       -.15813E-05   -.40102E-03
  23  Prefactor     2.4133        3.2689        .12509E-06   -.75886E-04
  24  norm          3.3039        4.9298       -.17442E-05   -.11355E-02
  25  Prefactor     .10000E-03    72.053        .29985E-04** at limit **
  26  norm          1.9261        2.3127       -.26039E-06   -.29817E-04
  27  norm          7.7945        4.4088       -.23801E-06   -.47583E-03
  28  norm          .10000E-03    3.3977        .43979E-07** at limit **
  29  Normalizat    .95859        .17415        .66285E-05    .28942E-03
  30  Prefactor     .95356        .19298       -.86485E-07    .63518E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.84704
  Prefactor  = 0.0001
  Prefactor  = 3.50238
  Prefactor  = 0.0001
  Prefactor  = 1.23241
  Prefactor  = 20.8365
  norm       = 0.197761
  Prefactor  = 0.000100008
  Prefactor  = 10.2831
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.53824
  Prefactor  = 5.68176
  Prefactor  = 0.0001
  norm       = 0.221441
  norm       = 0.219251
  Prefactor  = 0.317252
  Prefactor  = 15.7079
  Prefactor  = 0.0001
  Prefactor  = 3.11945
  Prefactor  = 2.41332
  norm       = 3.30394
  Prefactor  = 0.000100001
  norm       = 1.92606
  norm       = 7.7945
  norm       = 0.0001
  Normalizat = 0.958589
  Prefactor  = 0.953556
 **********
 **   18 **HESSE 
 **********

 FCN=   5781.000     FROM HESSE     STATUS=OK           598 CALLS     4630 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.8470        13.806        .12770E-03   -1.5080    
   2  Prefactor     .10000E-03    2.4682        .11663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.5024        5.3750        .20779E-03   -1.5334    
   4  Prefactor     .10000E-03    4.6691        .16032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.2324        1.4488        .96679E-04   -1.5486    
   6  Prefactor     20.836        24.272        .87769E-04   -1.4795    
   7  norm          .19776        .99854        .11673E-02   -1.5619    
   8  Prefactor     .10001E-03    14.585        .19734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.283        31.682        .12449E-03   -1.5067    
  10  Prefactor     .10000E-03    1.5872        .18423E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.9655        .18804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.3196        .84311E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.5810        .11913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.5382        2.2145        .85710E-04   -1.5332    
  15  Prefactor     5.6818        2.3618        .70933E-04   -1.5231    
  16  Prefactor     .10000E-03    4.8122        .32133E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .22144        .18781        .29883E-03   -1.5614    
  18  norm          .21925        12.861        .21126E-02   -1.5614    
  19  Prefactor     .31725        40.787        .38134E-02   -1.5595    
  20  Prefactor     15.708        18.363        .10105E-03   -1.4915    
  21  Prefactor     .10000E-03    34.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.1195        6.1412        .22952E-03   -1.5355    
  23  Prefactor     2.4133        3.2577        .15578E-03   -1.5397    
  24  norm          3.3039        4.8984        .19225E-03   -1.5344    
  25  Prefactor     .10000E-03    73.517        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.9261        2.3043        .12293E-03   -1.5430    
  27  norm          7.7945        4.3972        .11343E-03   -1.5150    
  28  norm          .10000E-03    3.4011        .13670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .95859        .20428        .22687E-03   -.94431    
  30  Prefactor     .95356        .22799        .26229E-03   -.94294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.53758e-08
Minuit parameter uncertainties:
  1  13.8109
  2  5.51975e-07
  3  5.37578
  4  1.01903e-05
  5  1.44883
  6  24.2836
  7  0.888554
  8  0.000692847
  9  31.7339
  10  1.53241e-05
  11  6.28432e-05
  12  1.475e-05
  13  5.39616e-05
  14  2.21451
  15  2.36185
  16  8.45993e-06
  17  0.187813
  18  3.35845
  19  7.19823
  20  18.3693
  21  2.90624e-05
  22  6.14241
  23  3.25795
  24  4.89901
  25  0.000476956
  26  2.30441
  27  4.39739
  28  1.4523e-06
  29  0.204442
  30  0.228219
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  5.682e+00  2.362e+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.536e-01  2.282e-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.586e-01  2.044e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 23.34
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 8.32e-08 +/- 3.46e-08
Energy Flux (Fixed Index): 4.09e-05 +/- 1.70e-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) = 5780.83034459
delta logL = 0.169959925504

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5780.80831512
delta logL = 0.191989401147

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2876       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9626       1.0000          .0000       10.000    
     3 'Normalizat'    .97281       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94454       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=   5780.808     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      219 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2876        57.034        .40020E-02    .58085E-03
   2  Index         1.9626        3.3292        .12238        .36183E-04
   3  Normalizat    .97282        .27820        .45825E-01    .31085E-04
   4  Prefactor     .94453        .25667        .45570E-01   -.32222E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.28764
  Index      = 1.96256
  Normalizat = 0.972823
  Prefactor  = 0.944528
 **********
 **   18 **HESSE 
 **********

 FCN=   5780.808     FROM HESSE     STATUS=OK            31 CALLS      250 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2876        2.7156        .77026E-04   -1.5206    
   2  Index         1.9626        .30421        .49875E-02   -.65289    
   3  Normalizat    .97282        .19593        .22543E-03   -.93947    
   4  Prefactor     .94453        .22554        .26344E-03   -.94602    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95635e-10
Minuit parameter uncertainties:
  1  2.71565
  2  0.304505
  3  0.196077
  4  0.225762
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/524763': 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) = 5780.80831511
delta logL = 0.191989404459

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  6.288e+00  2.716e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  1.963e+00  3.045e-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.445e-01  2.258e-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.728e-01  1.961e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 23.74
Ra Dec: 185.378 28.238
Photon Index (Free Index): 1.96 +/- 0.30
Photon Flux (Free Index): 6.99e-08 +/- 3.62e-08
Energy Flux (Free Index): 5.31e-05 +/- 3.38e-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/524763/cmap_HighResolution_257472001_257731201_4FGL_J1221.5+2814_daily_bin70.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.32e-08', energy_flux2='5.31e-05', photon_flux_error='3.46e-08', dlogl='1.92e-01', energy_flux='4.09e-05', photon_flux2='6.99e-08', job_status='DONE', time_completed='2021-09-05 09:50:10.383041', photon_index_error2='0.30', photon_index2='1.96', ts='23.34', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='3.38e-05', EG='0.96', time_epoch_completed='1630860610.38', return_code='0', job_id='524763', GAL2='0.94', EG2='0.97', return_code2='0', energy_flux_error='1.70e-05', photon_flux_error2='3.62e-08', ts2='23.74', photon_index='2.15' WHERE bin_id='70' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:50:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 524763: <4FGL_J1221.5+2814_daily_bin70> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin70> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 09:36:24 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 09:36:25 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:25 2021
Terminated at Sun Sep  5 09:50:11 2021
Results reported at Sun Sep  5 09:50:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin70 185.378 28.2382 257472001 257731201 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 :                                   757.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             317.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            827 sec.

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

