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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin33
RA = 185.378, Dec = 28.2382
tmin = 247881601, tmax = 248140801
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='524710', job_status='RUN', time_executed='2021-09-05 09:36:40.718122', time_epoch_executed='1630859800.72' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='33'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/524710

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/524710/ft1_4FGL_J1221.5+2814_daily_bin33.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/524710/ft2_4FGL_J1221.5+2814_daily_bin33.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/524710/ft1_4FGL_J1221.5+2814_daily_bin33.fits outfile=/scratch/kocevski/524710/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin33.fits ra=185.378 dec=28.2382 rad=12.0 tmin=247881601.0 tmax=248140801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.42
user 1.23
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/524710/ft2_4FGL_J1221.5+2814_daily_bin33.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/524710/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin33.fits evtable="EVENTS" outfile="/scratch/kocevski/524710/ft1_filtered_4FGL_J1221.5+2814_daily_bin33.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/524710/ft1_filtered_4FGL_J1221.5+2814_daily_bin33.fits" evtable="EVENTS" scfile=/scratch/kocevski/524710/ft2_4FGL_J1221.5+2814_daily_bin33.fits sctable="SC_DATA" outfile=/scratch/kocevski/524710/ltcube_247881601_248140801_4FGL_J1221.5+2814_daily_bin33.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/524710/ft2_4FGL_J1221.5+2814_daily_bin33.fits
.....................!
real 14.55
user 14.20
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/524710/ft1_filtered_4FGL_J1221.5+2814_daily_bin33.fits evtable="EVENTS" scfile=/scratch/kocevski/524710/ft2_4FGL_J1221.5+2814_daily_bin33.fits sctable="SC_DATA" expcube=/scratch/kocevski/524710/ltcube_247881601_248140801_4FGL_J1221.5+2814_daily_bin33.fits outfile=/scratch/kocevski/524710/expmap_247881601_248140801_4FGL_J1221.5+2814_daily_bin33.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/524710/ltcube_247881601_248140801_4FGL_J1221.5+2814_daily_bin33.fits
.....................!
real 191.34
user 186.31
sys 4.71

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/524710/ft1_filtered_4FGL_J1221.5+2814_daily_bin33.fits scfile=/scratch/kocevski/524710/ft2_4FGL_J1221.5+2814_daily_bin33.fits outfile=/scratch/kocevski/524710/cmap_247881601_248140801_4FGL_J1221.5+2814_daily_bin33.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/524710/ft1_filtered_4FGL_J1221.5+2814_daily_bin33.fits scfile=/scratch/kocevski/524710/ft2_4FGL_J1221.5+2814_daily_bin33.fits outfile=/scratch/kocevski/524710/cmap_HighResolution_247881601_248140801_4FGL_J1221.5+2814_daily_bin33.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.084       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.5343       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10544E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.9318       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.3388       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3626       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.292       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.4034       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0070       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.1186       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.8104       1.0000         .10000E-03   10000.    
    17 'norm      '    .25461       1.0000         .10000E-03   10000.    
    18 'norm      '    1.1673       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.8665       1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.642       1.0000         .10000E-03   10000.    
    24 'norm      '    .28883E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    20.419       1.0000         .10000E-03   10000.    
    26 'norm      '    3.3257       1.0000         .10000E-03   10000.    
    27 'norm      '    4.1106       1.0000         .10000E-03   10000.    
    28 'norm      '    1.8061       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2750       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .73799       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=   8033.710     FROM MIGRAD    STATUS=CONVERGED    777 CALLS     3947 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.6829        .14205E-05** at limit **
   2  Prefactor     12.088        12.494       -.18721E-06   -.19300E-04
   3  Prefactor     5.5349        5.2472       -.18731E-06   -.12940E-04
   4  Prefactor     .10000E-03    32.693        .89311E-06** at limit **
   5  Prefactor     .10000E-03    .56408       -.11119E-06** at limit **
   6  Prefactor     .10000E-03    12.626       -.64789E-06** at limit **
   7  norm          2.9322        1.1851       -.30672E-07    .34094E-04
   8  Prefactor     6.3392        4.0266        .19034E-05    .12078E-03
   9  Prefactor     .10000E-03    34.698        .27832E-05** at limit **
  10  Prefactor     1.3633        2.1510       -.68871E-06   -.26133E-03
  11  Prefactor     .10000E-03    .92123       -.71801E-07** at limit **
  12  norm          10.291        3.5493        .75622E-06    .12022E-03
  13  Prefactor     3.4051        7.9453       -.24151E-06   -.38337E-05
  14  Prefactor     1.0084        1.9382       -.54488E-06   -.75617E-03
  15  Prefactor     5.1185        2.3691       -.22466E-06    .24612E-03
  16  Prefactor     4.8104        4.1550        .16954E-06    .13319E-04
  17  norm          .25462        .16379       -.18691E-07   -.20976E-03
  18  norm          1.1677        3.0053        .32831E-06    .19926E-04
  19  Prefactor     .10000E-03    6.0305       -.19720E-05** at limit **
  20  Prefactor     .10000E-03    7.5944        .11013E-05** at limit **
  21  Prefactor     .10000E-03    40.772       -.31201E-05** at limit **
  22  Prefactor     7.8666        5.5380       -.13769E-06    .16935E-04
  23  Prefactor     11.642        7.4715        .17416E-06   -.41067E-04
  24  norm          .10000E-03    1.6337        .45513E-06** at limit **
  25  Prefactor     20.399        18.015       -.42324E-05   -.86243E-04
  26  norm          3.3258        3.2461       -.11759E-05   -.13551E-04
  27  norm          4.1093        3.3678        .24558E-06   -.61726E-04
  28  norm          1.8069        1.2280        .68362E-07   -.53610E-03
  29  Normalizat    1.2748        .16302       -.17309E-06    .67414E-04
  30  Prefactor     .73813        .17625        .26627E-06    .13297E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 12.0881
  Prefactor  = 5.53493
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.93221
  Prefactor  = 6.33919
  Prefactor  = 0.0001
  Prefactor  = 1.36327
  Prefactor  = 0.0001
  norm       = 10.2908
  Prefactor  = 3.4051
  Prefactor  = 1.00838
  Prefactor  = 5.11855
  Prefactor  = 4.81042
  norm       = 0.254625
  norm       = 1.16767
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.86658
  Prefactor  = 11.6421
  norm       = 0.000100001
  Prefactor  = 20.3992
  norm       = 3.32581
  norm       = 4.10925
  norm       = 1.80692
  Normalizat = 1.27479
  Prefactor  = 0.73813
 **********
 **   18 **HESSE 
 **********

 FCN=   8033.710     FROM HESSE     STATUS=OK           600 CALLS     4547 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.6833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.088        12.486        .11524E-03   -1.5012    
   3  Prefactor     5.5349        5.2478        .17078E-03   -1.5237    
   4  Prefactor     .10000E-03    33.710        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .96087        .12975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.9322        1.1828        .59144E-04   -1.5365    
   8  Prefactor     6.3392        4.0085        .13245E-03   -1.5204    
   9  Prefactor     .10000E-03    34.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.3633        2.1169        .15433E-03   -1.5474    
  11  Prefactor     .10000E-03    .93218        .83917E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.291        3.4683        .87185E-04   -1.5066    
  13  Prefactor     3.4051        7.9411        .21930E-03   -1.5339    
  14  Prefactor     1.0084        1.5832        .15340E-02   -1.5507    
  15  Prefactor     5.1185        2.3506        .87229E-04   -1.5255    
  16  Prefactor     4.8104        4.1337        .16017E-03   -1.5269    
  17  norm          .25462        .16147        .27713E-04   -1.5607    
  18  norm          1.1677        2.9309        .23317E-03   -1.5492    
  19  Prefactor     .10000E-03    6.0864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.6018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    40.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.8666        5.5350        .14296E-03   -1.5147    
  23  Prefactor     11.642        7.4722        .11741E-03   -1.5025    
  24  norm          .10000E-03    8.2696        .21915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     20.399        17.896        .88638E-04   -1.4804    
  26  norm          3.3258        3.2373        .15305E-03   -1.5343    
  27  norm          4.1093        5.1782        .13992E-03   -1.5303    
  28  norm          1.8069        9.0169        .15548E-02   -1.5439    
  29  Normalizat    1.2748        .19362        .22976E-03   -.84322    
  30  Prefactor     .73813        .20680        .32660E-03   -1.0205    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13264e-09
Minuit parameter uncertainties:
  1  1.58964e-06
  2  12.4884
  3  5.24825
  4  5.11155e-05
  5  1.10522e-05
  6  1.73385e-06
  7  1.18285
  8  4.00871
  9  1.55005e-05
  10  2.11706
  11  8.31549e-09
  12  3.46836
  13  7.94351
  14  1.58329
  15  2.35063
  16  4.13392
  17  0.161471
  18  2.93123
  19  8.99159e-06
  20  5.40293e-07
  21  2.98606e-05
  22  5.53537
  23  7.47277
  24  0.000171391
  25  17.9008
  26  3.23743
  27  5.17875
  28  8.07457
  29  0.193728
  30  0.207017
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  5.119e+00  2.351e+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:  7.381e-01  2.070e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.275e+00  1.937e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.09
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 7.49e-08 +/- 3.44e-08
Energy Flux (Fixed Index): 3.68e-05 +/- 1.69e-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) = 8033.69934281
delta logL = 0.0101877645284

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8033.6982227
delta logL = 0.0113078777731

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2167       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1003       1.0000          .0000       10.000    
     3 'Normalizat'    1.2794       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73543       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8033.698     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      240 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2168        2.4607        .89739E-04   -.15477E-02
   2  Index         2.1003        .35537        .57260E-02   -.27295E-03
   3  Normalizat    1.2794        .18716        .22944E-03    .10828E-03
   4  Prefactor     .73538        .20599        .32719E-03    .10097E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.2168
  Index      = 2.10029
  Normalizat = 1.27939
  Prefactor  = 0.735379
 **********
 **   18 **HESSE 
 **********

 FCN=   8033.698     FROM HESSE     STATUS=OK            23 CALLS      263 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2168        2.4410        .35896E-05   -1.5251    
   2  Index         2.1003        .35228        .22904E-03   -.61866    
   3  Normalizat    1.2794        .18726        .45888E-04   -.84184    
   4  Prefactor     .73538        .20612        .13088E-04   -1.0216    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.53332e-10
Minuit parameter uncertainties:
  1  2.44104
  2  0.352719
  3  0.187357
  4  0.206334
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/524710': 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) = 8033.69822267
delta logL = 0.0113079100602

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  5.217e+00  2.441e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.100e+00  3.527e-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:  7.354e-01  2.063e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.279e+00  1.874e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.17
Ra Dec: 185.378 28.238
Photon Index (Free Index): 2.10 +/- 0.35
Photon Flux (Free Index): 7.05e-08 +/- 4.37e-08
Energy Flux (Free Index): 3.87e-05 +/- 2.20e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.49e-08', energy_flux2='3.87e-05', photon_flux_error='3.44e-08', dlogl='1.13e-02', energy_flux='3.68e-05', photon_flux2='7.05e-08', job_status='DONE', time_completed='2021-09-05 09:52:10.293370', photon_index_error2='0.35', photon_index2='2.10', ts='14.09', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', energy_flux_error2='2.20e-05', EG='1.27', time_epoch_completed='1630860730.29', return_code='0', job_id='524710', GAL2='0.74', EG2='1.28', return_code2='0', energy_flux_error='1.69e-05', photon_flux_error2='4.37e-08', ts2='14.17', photon_index='2.15' WHERE bin_id='33' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:52:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0292>
Subject: Job 524710: <4FGL_J1221.5+2814_daily_bin33> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin33 185.378 28.2382 247881601 248140801 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 :                                   925.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            950 sec.

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

