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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin1474
RA = 184.476, Dec = 30.1177
tmin = 621388801, tmax = 621648001
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='461814', job_status='RUN', time_executed='2021-09-05 06:31:32.721860', time_epoch_executed='1630848692.72' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='1474'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/461814

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/461814/ft1_4FGL_J1217.9+3007_daily_bin1474.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/461814/ft2_4FGL_J1217.9+3007_daily_bin1474.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/461814/ft1_4FGL_J1217.9+3007_daily_bin1474.fits outfile=/scratch/kocevski/461814/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin1474.fits ra=184.476 dec=30.1177 rad=12.0 tmin=621388801.0 tmax=621648001.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.39
user 3.02
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/461814/ft2_4FGL_J1217.9+3007_daily_bin1474.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/461814/ft2_4FGL_J1217.9+3007_daily_bin1474.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/461814/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin1474.fits evtable="EVENTS" outfile="/scratch/kocevski/461814/ft1_filtered_4FGL_J1217.9+3007_daily_bin1474.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/461814/ft1_filtered_4FGL_J1217.9+3007_daily_bin1474.fits" evtable="EVENTS" scfile=/scratch/kocevski/461814/ft2_4FGL_J1217.9+3007_daily_bin1474.fits sctable="SC_DATA" outfile=/scratch/kocevski/461814/ltcube_621388801_621648001_4FGL_J1217.9+3007_daily_bin1474.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/461814/ft2_4FGL_J1217.9+3007_daily_bin1474.fits
.....................!
real 12.60
user 12.21
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/461814/ft1_filtered_4FGL_J1217.9+3007_daily_bin1474.fits evtable="EVENTS" scfile=/scratch/kocevski/461814/ft2_4FGL_J1217.9+3007_daily_bin1474.fits sctable="SC_DATA" expcube=/scratch/kocevski/461814/ltcube_621388801_621648001_4FGL_J1217.9+3007_daily_bin1474.fits outfile=/scratch/kocevski/461814/expmap_621388801_621648001_4FGL_J1217.9+3007_daily_bin1474.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/461814/ltcube_621388801_621648001_4FGL_J1217.9+3007_daily_bin1474.fits
.....................!
real 190.74
user 185.49
sys 4.09

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 199 point sources and 0 extended sources

Setting source of interest to:
4FGL J1217.9+3007 @ 184.476 30.1177

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/461814/ft1_filtered_4FGL_J1217.9+3007_daily_bin1474.fits scfile=/scratch/kocevski/461814/ft2_4FGL_J1217.9+3007_daily_bin1474.fits outfile=/scratch/kocevski/461814/cmap_621388801_621648001_4FGL_J1217.9+3007_daily_bin1474.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=184.476 yref=30.1177 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.56
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/461814/ft1_filtered_4FGL_J1217.9+3007_daily_bin1474.fits scfile=/scratch/kocevski/461814/ft2_4FGL_J1217.9+3007_daily_bin1474.fits outfile=/scratch/kocevski/461814/cmap_HighResolution_621388801_621648001_4FGL_J1217.9+3007_daily_bin1474.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=184.476 yref=30.1177 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/461814/ft1_filtered_4FGL_J1217.9+3007_daily_bin1474.fits evtable="EVENTS" scfile=/scratch/kocevski/461814/ft2_4FGL_J1217.9+3007_daily_bin1474.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/461814/Model_4FGL_J1217.9+3007_daily_bin1474.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/461814/ft1_filtered_4FGL_J1217.9+3007_daily_bin1474.fits......................!
real 29.66
user 27.67
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/461814/ft1_filtered_4FGL_J1217.9+3007_daily_bin1474.fits', '/scratch/kocevski/461814/ft2_4FGL_J1217.9+3007_daily_bin1474.fits', expMap='/scratch/kocevski/461814/expmap_621388801_621648001_4FGL_J1217.9+3007_daily_bin1474.fits', expCube='/scratch/kocevski/461814/ltcube_621388801_621648001_4FGL_J1217.9+3007_daily_bin1474.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/461814/Model_4FGL_J1217.9+3007_daily_bin1474.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1217.9+3007'

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  7.980e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.854e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
319         beta:  4.615e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
320           Eb:  1.094e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/461814/ft1_filtered_4FGL_J1217.9+3007_daily_bin1474.fits
Spacecraft file(s): /scratch/kocevski/461814/ft2_4FGL_J1217.9+3007_daily_bin1474.fits
Exposure map: /scratch/kocevski/461814/expmap_621388801_621648001_4FGL_J1217.9+3007_daily_bin1474.fits
Exposure cube: /scratch/kocevski/461814/ltcube_621388801_621648001_4FGL_J1217.9+3007_daily_bin1474.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/461814/Model_4FGL_J1217.9+3007_daily_bin1474.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) = 2428.82704027

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13264E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11336E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.771       1.0000         .10000E-03   10000.    
     4 'norm      '    3.3727       1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.827       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5906       1.0000         .10000E-03   10000.    
     7 'Prefactor '    43.451       1.0000         .10000E-03   10000.    
     8 'Prefactor '    47.062       1.0000         .10000E-03   10000.    
     9 'norm      '    .24987       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .85520       1.0000         .10000E-03   10000.    
    11 'Prefactor '    49.163       1.0000         .10000E-03   10000.    
    12 'norm      '    10.759       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.3353       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .35122E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.5393       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .15506E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    28.089       1.0000         .10000E-03   10000.    
    21 'Prefactor '    59.246       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.7030       1.0000         .10000E-03   10000.    
    26 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .20408E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    11.003       1.0000         .10000E-03   10000.    
    29 'norm      '    9.8578       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0402       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0104       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2428.743     FROM MIGRAD    STATUS=CONVERGED    253 CALLS     3092 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.876        .60020E-05** at limit **
   2  Prefactor     .10000E-03    21.283       -.20439E-05** at limit **
   3  Prefactor     29.994        20.275        .49622E-06   -.45628E-03
   4  norm          3.3553        2.6451        .97382E-07   -.10804E-04
   5  Prefactor     22.672        63.922       -.66948E-05    .47052E-02
   6  Prefactor     1.7844        5.5892        .18269E-06   -.49769E-04
   7  Prefactor     46.539        31.239        .25685E-05    .97460E-02
   8  Prefactor     49.489        31.954        .12462E-05    .54898E-02
   9  norm          .29009        9.5897        .83942E-05   -.60696E-04
  10  Prefactor     .59699        46.473        .78965E-06   -.98418E-05
  11  Prefactor     50.625        57.918        .57601E-05   -.15164E-02
  12  norm          10.771        6.0161        .99322E-06   -.65567E-05
  13  Prefactor     1.3344        28.210       -.30475E-05   -.31832E-05
  14  Prefactor     .10000E-03    5.2345        .14283E-05** at limit **
  15  Prefactor     .10000E-03    1.7206        .85302E-07** at limit **
  16  Prefactor     4.5449        4.8850        .41803E-06    .19815E-04
  17  norm          .10000E-03    .22199        .23483E-07** at limit **
  18  norm          .10000E-03    1.8881        .17980E-06** at limit **
  19  Prefactor     .10000E-03    23.596       -.27754E-05** at limit **
  20  Prefactor     27.810        34.221       -.26242E-05    .16403E-04
  21  Prefactor     69.087        142.32       -.29861E-05   -.16619E-02
  22  Prefactor     .10000E-03    3.1818       -.31526E-06** at limit **
  23  Prefactor     .10000E-03    2.5666       -.55730E-06** at limit **
  24  norm          .10000E-03    8.2644       -.33260E-05** at limit **
  25  Prefactor     4.5611        74.977        .21303E-04    .19684E-03
  26  norm          .10000E-03    2.3070       -.31149E-06** at limit **
  27  Prefactor     .10000E-03    7.5761        .94008E-06** at limit **
  28  norm          11.141        11.863       -.17852E-05   -.20717E-04
  29  norm          9.6995        17.538        .21111E-06   -.37858E-04
  30  Normalizat    1.0357        .37140       -.33468E-05   -.85591E-05
  31  Prefactor     1.0111        .40580        .23402E-05   -.57188E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.9942
  norm       = 3.35532
  Prefactor  = 22.6717
  Prefactor  = 1.78436
  Prefactor  = 46.5392
  Prefactor  = 49.4886
  norm       = 0.290085
  Prefactor  = 0.596994
  Prefactor  = 50.6252
  norm       = 10.7712
  Prefactor  = 1.33441
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.54495
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.8098
  Prefactor  = 69.0874
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.56106
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.1414
  norm       = 9.69946
  Normalizat = 1.03569
  Prefactor  = 1.01114
 **********
 **   18 **HESSE 
 **********

 FCN=   2428.743     FROM HESSE     STATUS=OK           702 CALLS     3794 TOTAL
                     EDM=   .30E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.876        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    21.322        .10339E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     29.994        20.822        .18357E-02   -1.4612    
   4  norm          3.3553        2.6933        .55084E-02   -1.5342    
   5  Prefactor     22.672        73.098        .19336E-02   -1.4755    
   6  Prefactor     1.7844        5.7939        .84113E-02   -1.5441    
   7  Prefactor     46.539        82.495        .15205E-02   -1.4343    
   8  Prefactor     49.489        83.328        .14612E-02   -1.4300    
   9  norm          .29009        3.3389        .42321E-01   -1.5600    
  10  Prefactor     .59699        10.582        .85499E-01   -1.5553    
  11  Prefactor     50.625        61.427        .14298E-02   -1.4284    
  12  norm          10.771        6.0952        .30536E-02   -1.5051    
  13  Prefactor     1.3344        28.471        .94924E-02   -1.5477    
  14  Prefactor     .10000E-03    5.1043        .10661E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.6942        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.5449        4.8906        .47238E-02   -1.5282    
  17  norm          .10000E-03    .20516        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.8932        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    23.002        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     27.810        34.195        .18898E-02   -1.4653    
  21  Prefactor     69.087        141.77        .13031E-02   -1.4044    
  22  Prefactor     .10000E-03    3.1923        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.5669        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    7.9609        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.5611        75.118        .42050E-02   -1.5281    
  26  norm          .10000E-03    2.3051        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    7.5864        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          11.141        11.471        .30195E-02   -1.5040    
  29  norm          9.6995        16.930        .31907E-02   -1.5085    
  30  Normalizat    1.0357        .31527        .41264E-01   -.91844    
  31  Prefactor     1.0111        .34085        .67457E-01   -.92359    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01528e-06
Minuit parameter uncertainties:
  1  6.75102e-05
  2  9.4893e-06
  3  20.8275
  4  2.69337
  5  73.3891
  6  5.79572
  7  82.6982
  8  83.5249
  9  1.96812
  10  5.0275
  11  61.5037
  12  6.09555
  13  12.3338
  14  8.05894e-07
  15  2.11875e-08
  16  4.89108
  17  1.38297e-08
  18  5.66301e-08
  19  2.24579e-05
  20  34.2187
  21  142.468
  22  1.38185e-07
  23  2.43049e-07
  24  3.21636e-06
  25  37.0746
  26  3.06521e-08
  27  1.05146e-06
  28  11.4729
  29  16.938
  30  0.315845
  31  0.341585
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.077e+01  6.096e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.854e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
319         beta:  4.615e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
320           Eb:  1.094e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
626    Prefactor:  1.011e+00  3.416e-01  0.000e+00  1.000e+01 ( 1.000e+00)
627        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
628        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
625   Normalization:  1.036e+00  3.158e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.77
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 9.38e-08 +/- 5.31e-08
Energy Flux (Fixed Index): 8.35e-05 +/- 4.73e-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) = 2428.74332397
delta logL = 0.000168873163148

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2428.743319
delta logL = 0.000173841061041

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.771       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8459       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0365       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0107       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2428.743     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      196 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.787        9.1575        .30519E-02   -.28810E-04
   2  alpha         1.8457        .62808        .19638        .13400E-04
   3  Normalizat    1.0364        .29145        .41570E-01   -.26039E-05
   4  Prefactor     1.0107        .33516        .67470E-01    .87848E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 10.7869
  alpha      = 1.84572
  Normalizat = 1.03645
  Prefactor  = 1.01072
 **********
 **   18 **HESSE 
 **********

 FCN=   2428.743     FROM HESSE     STATUS=OK            33 CALLS      229 TOTAL
                     EDM=   .45E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.787        6.0655        .86972E-04   -1.5051    
   2  alpha         1.8457        .44555        .81257E-02   -.26480    
   3  Normalizat    1.0364        .34015        .25549E-03   -.91819    
   4  Prefactor     1.0107        .39206        .29845E-03   -.92373    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.45593e-12
Minuit parameter uncertainties:
  1  6.06589
  2  0.448118
  3  0.340862
  4  0.393172
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/461814': 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) = 2428.74331564
delta logL = 0.000177198674464

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.079e+01  6.066e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.846e+00  4.481e-01  0.000e+00  5.000e+00 ( 1.000e+00)
319         beta:  4.615e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
320           Eb:  1.094e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
626    Prefactor:  1.011e+00  3.932e-01  0.000e+00  1.000e+01 ( 1.000e+00)
627        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
628        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
625   Normalization:  1.036e+00  3.409e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.72
Ra Dec: 184.476 30.118
Photon Index (Free Index): 1.85 +/- 0.45
Photon Flux (Free Index): 9.30e-08 +/- 6.64e-08
Energy Flux (Free Index): 8.45e-05 +/- 7.21e-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/461814/cmap_HighResolution_621388801_621648001_4FGL_J1217.9+3007_daily_bin1474.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.38e-08', energy_flux2='8.45e-05', photon_flux_error='5.31e-08', dlogl='1.77e-04', energy_flux='8.35e-05', photon_flux2='9.30e-08', job_status='DONE', time_completed='2021-09-05 06:40:34.621295', photon_index_error2='0.45', photon_index2='1.85', ts='13.77', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='7.21e-05', EG='1.04', time_epoch_completed='1630849234.62', return_code='0', job_id='461814', GAL2='1.01', EG2='1.04', return_code2='0', energy_flux_error='4.73e-05', photon_flux_error2='6.64e-08', ts2='13.72', photon_index='1.85' WHERE bin_id='1474' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:40:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 461814: <4FGL_J1217.9+3007_daily_bin1474> in cluster <slac> Done

Job <4FGL_J1217.9+3007_daily_bin1474> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Sep  5 06:30:47 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 06:30:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 06:30:48 2021
Terminated at Sun Sep  5 06:40:35 2021
Results reported at Sun Sep  5 06:40:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin1474 184.476 30.1177 621388801 621648001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1217.9+3007 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   482.13 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             285.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   586 sec.
    Turnaround time :                            588 sec.

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

