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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin685
RA = 184.476, Dec = 30.1177
tmin = 416880001, tmax = 417139201
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='456732', job_status='RUN', time_executed='2021-09-05 06:17:05.026383', time_epoch_executed='1630847825.03' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='685'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/456732

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/456732/ft1_4FGL_J1217.9+3007_daily_bin685.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/456732/ft2_4FGL_J1217.9+3007_daily_bin685.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/456732/ft1_4FGL_J1217.9+3007_daily_bin685.fits outfile=/scratch/kocevski/456732/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin685.fits ra=184.476 dec=30.1177 rad=12.0 tmin=416880001.0 tmax=417139201.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 5.36
user 5.00
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/456732/ft2_4FGL_J1217.9+3007_daily_bin685.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/456732/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin685.fits evtable="EVENTS" outfile="/scratch/kocevski/456732/ft1_filtered_4FGL_J1217.9+3007_daily_bin685.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.51
user 0.31
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/456732/ft1_filtered_4FGL_J1217.9+3007_daily_bin685.fits" evtable="EVENTS" scfile=/scratch/kocevski/456732/ft2_4FGL_J1217.9+3007_daily_bin685.fits sctable="SC_DATA" outfile=/scratch/kocevski/456732/ltcube_416880001_417139201_4FGL_J1217.9+3007_daily_bin685.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/456732/ft2_4FGL_J1217.9+3007_daily_bin685.fits
.....................!
real 12.17
user 11.74
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/456732/ft1_filtered_4FGL_J1217.9+3007_daily_bin685.fits evtable="EVENTS" scfile=/scratch/kocevski/456732/ft2_4FGL_J1217.9+3007_daily_bin685.fits sctable="SC_DATA" expcube=/scratch/kocevski/456732/ltcube_416880001_417139201_4FGL_J1217.9+3007_daily_bin685.fits outfile=/scratch/kocevski/456732/expmap_416880001_417139201_4FGL_J1217.9+3007_daily_bin685.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/456732/ltcube_416880001_417139201_4FGL_J1217.9+3007_daily_bin685.fits
.....................!
real 190.18
user 185.80
sys 3.91

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/456732/ft1_filtered_4FGL_J1217.9+3007_daily_bin685.fits scfile=/scratch/kocevski/456732/ft2_4FGL_J1217.9+3007_daily_bin685.fits outfile=/scratch/kocevski/456732/cmap_416880001_417139201_4FGL_J1217.9+3007_daily_bin685.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.63
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/456732/ft1_filtered_4FGL_J1217.9+3007_daily_bin685.fits scfile=/scratch/kocevski/456732/ft2_4FGL_J1217.9+3007_daily_bin685.fits outfile=/scratch/kocevski/456732/cmap_HighResolution_416880001_417139201_4FGL_J1217.9+3007_daily_bin685.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.58
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/456732/ft1_filtered_4FGL_J1217.9+3007_daily_bin685.fits', '/scratch/kocevski/456732/ft2_4FGL_J1217.9+3007_daily_bin685.fits', expMap='/scratch/kocevski/456732/expmap_416880001_417139201_4FGL_J1217.9+3007_daily_bin685.fits', expCube='/scratch/kocevski/456732/ltcube_416880001_417139201_4FGL_J1217.9+3007_daily_bin685.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/456732/Model_4FGL_J1217.9+3007_daily_bin685.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/456732/ft1_filtered_4FGL_J1217.9+3007_daily_bin685.fits
Spacecraft file(s): /scratch/kocevski/456732/ft2_4FGL_J1217.9+3007_daily_bin685.fits
Exposure map: /scratch/kocevski/456732/expmap_416880001_417139201_4FGL_J1217.9+3007_daily_bin685.fits
Exposure cube: /scratch/kocevski/456732/ltcube_416880001_417139201_4FGL_J1217.9+3007_daily_bin685.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/456732/Model_4FGL_J1217.9+3007_daily_bin685.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) = 5082.87795079

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1054       1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.596       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.5924       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .43672E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .32838       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.2317       1.0000         .10000E-03   10000.    
    11 'Prefactor '    126.73       1.0000         .10000E-03   10000.    
    12 'norm      '    4.8057       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14315E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.3394       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.4782       1.0000         .10000E-03   10000.    
    18 'norm      '    9.3425       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.992       1.0000         .10000E-03   10000.    
    21 'Prefactor '    48.655       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .98330       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.6181       1.0000         .10000E-03   10000.    
    24 'norm      '    27.061       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    7.5598       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    12.724       1.0000         .10000E-03   10000.    
    29 'norm      '    .12917E-01   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .41670       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.5280       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5081.855     FROM MIGRAD    STATUS=CONVERGED    832 CALLS     4392 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1137        20.562        .87052E-06   -.49705E-05
   2  Prefactor     18.597        16.261       -.17946E-06    .34817E-04
   3  Prefactor     .10000E-03    6.2269       -.76540E-06** at limit **
   4  norm          7.5963        2.5468        .10774E-06    .34645E-03
   5  Prefactor     .10000E-03    16.330       -.71221E-07** at limit **
   6  Prefactor     .10000E-03    1.2819       -.15885E-08** at limit **
   7  Prefactor     .10000E-03    40.681       -.29631E-05** at limit **
   8  Prefactor     .10000E-03    231.68       -.12384E-05** at limit **
   9  norm          .32836        .90085       -.29881E-06   -.80219E-03
  10  Prefactor     5.2316        4.8695        .91104E-07    .68348E-04
  11  Prefactor     126.72        60.034        .11611E-05   -.24503E-04
  12  norm          4.8058        3.9490       -.41458E-06   -.86831E-03
  13  Prefactor     .10000E-03    4.4061       -.55917E-06** at limit **
  14  Prefactor     .10517E-03    78.953        .68076E-05** at limit **
  15  Prefactor     2.3385        3.3078       -.10787E-06   -.40501E-03
  16  Prefactor     .10000E-03    3.9513       -.10741E-06** at limit **
  17  norm          3.4781        .57698        .16664E-08   -.44213E-03
  18  norm          9.3417        6.3823       -.18220E-07   -.11288E-03
  19  Prefactor     .10000E-03    12.551        .47561E-06** at limit **
  20  Prefactor     17.995        18.165        .12690E-06   -.50396E-04
  21  Prefactor     48.654        99.609       -.31043E-07   -.15077E-04
  22  Prefactor     .94779        36.823        .71621E-05    .11679E-03
  23  Prefactor     1.6184        5.8715        .16685E-05    .62399E-04
  24  norm          27.060        10.084        .18513E-07   -.15290E-03
  25  Prefactor     .10000E-03    13.590       -.65203E-06** at limit **
  26  norm          7.5613        7.2425       -.60674E-06   -.24952E-04
  27  Prefactor     .10000E-03    12.864        .71619E-06** at limit **
  28  norm          12.728        6.7282       -.91627E-06   -.94492E-03
  29  norm          .10414E-03    121.05       -.35353E-05** at limit **
  30  Normalizat    .41688        .25672        .53776E-05   -.51897E-04
  31  Prefactor     1.5278        .28262       -.36889E-05   -.40051E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.11375
  Prefactor  = 18.5969
  Prefactor  = 0.0001
  norm       = 7.59626
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.328361
  Prefactor  = 5.23159
  Prefactor  = 126.716
  norm       = 4.80576
  Prefactor  = 0.0001
  Prefactor  = 0.000105166
  Prefactor  = 2.3385
  Prefactor  = 0.0001
  norm       = 3.47814
  norm       = 9.34175
  Prefactor  = 0.0001
  Prefactor  = 17.9953
  Prefactor  = 48.6542
  Prefactor  = 0.947788
  Prefactor  = 1.61836
  norm       = 27.0603
  Prefactor  = 0.0001
  norm       = 7.56128
  Prefactor  = 0.0001
  norm       = 12.7276
  norm       = 0.000104141
  Normalizat = 0.416878
  Prefactor  = 1.52783
 **********
 **   18 **HESSE 
 **********

 FCN=   5081.855     FROM HESSE     STATUS=OK           642 CALLS     5034 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1137        20.489        .14083E-03   -1.5138    
   2  Prefactor     18.597        16.219        .92878E-04   -1.4845    
   3  Prefactor     .10000E-03    6.3581        .17381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.5963        2.5385        .62666E-04   -1.5157    
   5  Prefactor     .10000E-03    16.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.1548        .15601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    41.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    232.79        .21223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .32836        .88601        .10868E-03   -1.5593    
  10  Prefactor     5.2316        4.8579        .14545E-03   -1.5250    
  11  Prefactor     126.72        59.988        .35759E-04   -1.3452    
  12  norm          4.8058        4.3316        .11342E-03   -1.5269    
  13  Prefactor     .10000E-03    4.4263        .14631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10517E-03    6.4597        .31700E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.3385        3.2903        .14041E-03   -1.5402    
  16  Prefactor     .10000E-03    3.9759        .13834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.4781        .57655        .20778E-04   -1.5335    
  18  norm          9.3417        6.3691        .13112E-03   -1.5097    
  19  Prefactor     .10000E-03    12.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     17.995        18.141        .94423E-04   -1.4859    
  21  Prefactor     48.654        99.542        .57488E-04   -1.4312    
  22  Prefactor     .94779        37.275        .45703E-02   -1.5513    
  23  Prefactor     1.6184        5.9013        .31918E-03   -1.5454    
  24  norm          27.060        10.074        .77010E-04   -1.4667    
  25  Prefactor     .10000E-03    13.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          7.5613        7.1592        .14586E-03   -1.5158    
  27  Prefactor     .10000E-03    12.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          12.728        8.3414        .11230E-03   -1.4994    
  29  norm          .10414E-03    16.883        .61861E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .41688        .26560        .42319E-03   -1.1644    
  31  Prefactor     1.5278        .29893        .27412E-03   -.76763    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51279e-09
Minuit parameter uncertainties:
  1  20.5069
  2  16.2233
  3  4.45992e-05
  4  2.53859
  5  4.49943e-05
  6  5.69283e-07
  7  0.000520145
  8  0.000619591
  9  0.886045
  10  4.8583
  11  60.0171
  12  4.33186
  13  3.41635e-05
  14  0.0115548
  15  3.29056
  16  2.98536e-06
  17  0.576553
  18  6.36958
  19  5.59933e-05
  20  18.1466
  21  99.885
  22  11.8949
  23  5.90339
  24  10.0751
  25  6.75731e-05
  26  7.16001
  27  5.51532e-05
  28  8.34218
  29  0.0167275
  30  0.266413
  31  0.299278
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  4.806e+00  4.332e+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.528e+00  2.993e-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:  4.169e-01  2.664e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.69
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 4.19e-08 +/- 3.77e-08
Energy Flux (Fixed Index): 3.73e-05 +/- 3.36e-05

TS (Fixed Index): 3.69
Ra Dec: 184.476 30.118
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/456732/likelihoodResults_416880001_417139201_4FGL_J1217.9+3007_daily_bin685.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5081.77590059
delta logL = 0.0791647561964

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5081.77183702
delta logL = 0.0832283273758

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5432       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1359       1.0000          .0000       5.0000    
     3 'Normalizat'    .39871       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5391       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=   5081.772     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      221 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5424        87.662        .47217E-02    .14785E-03
   2  alpha         2.1363        2.7996        .26974        .31126E-04
   3  Normalizat    .39863        .16282        .97531E-01    .36387E-04
   4  Prefactor     1.5392        .11622        .61792E-01   -.18745E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.54237
  alpha      = 2.13633
  Normalizat = 0.398634
  Prefactor  = 1.53925
 **********
 **   18 **HESSE 
 **********

 FCN=   5081.772     FROM HESSE     STATUS=OK            31 CALLS      252 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5424        3.7048        .10339E-03   -1.5282    
   2  alpha         2.1363        .72364        .14174E-01   -.14599    
   3  Normalizat    .39863        .25310        .43225E-03   -1.1737    
   4  Prefactor     1.5392        .29551        .27322E-03   -.76446    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46265e-09
Minuit parameter uncertainties:
  1  3.70498
  2  0.734387
  3  0.253829
  4  0.295839
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/456732': 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) = 5081.77183682
delta logL = 0.0832285188253

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  4.542e+00  3.705e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  2.136e+00  7.344e-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.539e+00  2.958e-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:  3.986e-01  2.538e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.83
Ra Dec: 184.476 30.118
Photon Index (Free Index): 2.14 +/- 0.73
Photon Flux (Free Index): 5.78e-08 +/- 5.64e-08
Energy Flux (Free Index): 2.85e-05 +/- 2.67e-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/456732/cmap_HighResolution_416880001_417139201_4FGL_J1217.9+3007_daily_bin685.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-04', comment='SUCCESS', photon_flux='4.19e-08', energy_flux2='2.85e-05', photon_flux_error='3.77e-08', dlogl='8.32e-02', energy_flux='3.73e-05', photon_flux2='5.78e-08', job_status='DONE', time_completed='2021-09-05 06:31:30.532922', photon_index_error2='0.73', photon_index2='2.14', ts='3.69', fit_tolerance='1e-08', GAL='1.53', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='2.67e-05', EG='0.42', time_epoch_completed='1630848690.53', return_code='0', job_id='456732', GAL2='1.54', EG2='0.40', return_code2='0', energy_flux_error='3.36e-05', photon_flux_error2='5.64e-08', ts2='3.83', photon_index='1.85' WHERE bin_id='685' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:31:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 456732: <4FGL_J1217.9+3007_daily_bin685> in cluster <slac> Done

Job <4FGL_J1217.9+3007_daily_bin685> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 06:15:56 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 06:15:58 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:15:58 2021
Terminated at Sun Sep  5 06:31:31 2021
Results reported at Sun Sep  5 06:31:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin685 184.476 30.1177 416880001 417139201 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 :                                   851.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             303.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            935 sec.

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

