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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin1064
RA = 184.476, Dec = 30.1177
tmin = 515116801, tmax = 515376001
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='460210', job_status='RUN', time_executed='2021-09-05 06:26:30.897796', time_epoch_executed='1630848390.9' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='1064'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/460210

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/460210/ft1_4FGL_J1217.9+3007_daily_bin1064.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/460210/ft2_4FGL_J1217.9+3007_daily_bin1064.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/460210/ft1_4FGL_J1217.9+3007_daily_bin1064.fits outfile=/scratch/kocevski/460210/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin1064.fits ra=184.476 dec=30.1177 rad=12.0 tmin=515116801.0 tmax=515376001.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.50
user 3.28
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/460210/ft2_4FGL_J1217.9+3007_daily_bin1064.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/460210/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin1064.fits evtable="EVENTS" outfile="/scratch/kocevski/460210/ft1_filtered_4FGL_J1217.9+3007_daily_bin1064.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.50
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/460210/ft1_filtered_4FGL_J1217.9+3007_daily_bin1064.fits" evtable="EVENTS" scfile=/scratch/kocevski/460210/ft2_4FGL_J1217.9+3007_daily_bin1064.fits sctable="SC_DATA" outfile=/scratch/kocevski/460210/ltcube_515116801_515376001_4FGL_J1217.9+3007_daily_bin1064.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/460210/ft2_4FGL_J1217.9+3007_daily_bin1064.fits
.....................!
real 11.84
user 11.47
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/460210/ft1_filtered_4FGL_J1217.9+3007_daily_bin1064.fits evtable="EVENTS" scfile=/scratch/kocevski/460210/ft2_4FGL_J1217.9+3007_daily_bin1064.fits sctable="SC_DATA" expcube=/scratch/kocevski/460210/ltcube_515116801_515376001_4FGL_J1217.9+3007_daily_bin1064.fits outfile=/scratch/kocevski/460210/expmap_515116801_515376001_4FGL_J1217.9+3007_daily_bin1064.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/460210/ltcube_515116801_515376001_4FGL_J1217.9+3007_daily_bin1064.fits
.....................!
real 190.19
user 184.45
sys 5.32

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/460210/ft1_filtered_4FGL_J1217.9+3007_daily_bin1064.fits scfile=/scratch/kocevski/460210/ft2_4FGL_J1217.9+3007_daily_bin1064.fits outfile=/scratch/kocevski/460210/cmap_515116801_515376001_4FGL_J1217.9+3007_daily_bin1064.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/460210/ft1_filtered_4FGL_J1217.9+3007_daily_bin1064.fits scfile=/scratch/kocevski/460210/ft2_4FGL_J1217.9+3007_daily_bin1064.fits outfile=/scratch/kocevski/460210/cmap_HighResolution_515116801_515376001_4FGL_J1217.9+3007_daily_bin1064.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.532       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.0670       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    38.885       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.8106       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10464E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.245       1.0000         .10000E-03   10000.    
    12 'norm      '    16.703       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.3907       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3599       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.7239       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .38781       1.0000         .10000E-03   10000.    
    18 'norm      '    8.7332       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.2756       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.778       1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.449       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.0768       1.0000         .10000E-03   10000.    
    25 'Prefactor '    34.091       1.0000         .10000E-03   10000.    
    26 'norm      '    10.108       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    2.9598       1.0000         .10000E-03   10000.    
    29 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0938       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .74476       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=   6211.375     FROM MIGRAD    STATUS=CONVERGED    809 CALLS     4144 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.528        13.856        .36186E-05   -.77409E-04
   2  Prefactor     .10000E-03    11.010        .14749E-05** at limit **
   3  Prefactor     .10000E-03    1.6815        .26098E-07** at limit **
   4  norm          4.0671        1.4238        .10198E-06   -.18255E-03
   5  Prefactor     .10000E-03    6.9665        .25730E-06** at limit **
   6  Prefactor     .10000E-03    .56254        .19956E-06** at limit **
   7  Prefactor     38.882        22.876        .32620E-05   -.51483E-04
   8  Prefactor     .10000E-03    22.805       -.58730E-06** at limit **
   9  norm          2.8103        1.3615        .11497E-06   -.62336E-03
  10  Prefactor     .10000E-03    2.5202        .54861E-06** at limit **
  11  Prefactor     16.240        30.022        .42398E-05   -.29075E-04
  12  norm          16.703        4.5293        .38571E-07   -.14332E-03
  13  Prefactor     4.3899        6.2585       -.23898E-06   -.28192E-03
  14  Prefactor     1.3599        1.4598        .99899E-07    .21366E-03
  15  Prefactor     1.7237        1.9430        .21493E-06   -.33796E-03
  16  Prefactor     .10000E-03    4.7111        .22541E-06** at limit **
  17  norm          .38780        .22252        .95444E-07   -.79503E-03
  18  norm          8.7334        4.3957       -.70044E-06   -.87817E-04
  19  Prefactor     8.2756        7.4551        .40680E-06   -.25024E-04
  20  Prefactor     14.774        22.099        .15147E-04   -.14540E-04
  21  Prefactor     22.258        53.929       -.55405E-04    .15427E-05
  22  Prefactor     .10000E-03    2.9607        .14719E-07** at limit **
  23  Prefactor     .10000E-03    2.8916       -.44107E-06** at limit **
  24  norm          3.0804        4.3115       -.52913E-05   -.64718E-03
  25  Prefactor     34.076        28.012        .43752E-04    .10607E-03
  26  norm          10.108        4.9392        .32477E-06   -.48550E-04
  27  Prefactor     .10000E-03    10.184       -.22042E-05** at limit **
  28  norm          2.9593        2.8675       -.27293E-05   -.27105E-03
  29  norm          .10000E-03    2.4767       -.19301E-06** at limit **
  30  Normalizat    1.0939        .17928       -.70602E-05    .17462E-03
  31  Prefactor     .74477        .20181        .26452E-05   -.37596E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.5284
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.0671
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.8819
  Prefactor  = 0.0001
  norm       = 2.81032
  Prefactor  = 0.000100001
  Prefactor  = 16.24
  norm       = 16.7031
  Prefactor  = 4.38986
  Prefactor  = 1.35993
  Prefactor  = 1.72368
  Prefactor  = 0.0001
  norm       = 0.387799
  norm       = 8.73335
  Prefactor  = 8.27562
  Prefactor  = 14.7739
  Prefactor  = 22.2583
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 3.08041
  Prefactor  = 34.0762
  norm       = 10.1076
  Prefactor  = 0.000100001
  norm       = 2.95933
  norm       = 0.0001
  Normalizat = 1.09391
  Prefactor  = 0.744768
 **********
 **   18 **HESSE 
 **********

 FCN=   6211.375     FROM HESSE     STATUS=OK           630 CALLS     4774 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.528        13.833        .10163E-03   -1.4920    
   2  Prefactor     .10000E-03    11.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.6980        .99778E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.0671        1.4238        .53778E-04   -1.5305    
   5  Prefactor     .10000E-03    6.9834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .97362        .11478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     38.882        22.865        .64277E-04   -1.4460    
   8  Prefactor     .10000E-03    22.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.8103        1.3582        .60608E-04   -1.5373    
  10  Prefactor     .10000E-03    5.0630        .24119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.240        29.987        .99372E-04   -1.4902    
  12  norm          16.703        4.5070        .80884E-04   -1.4890    
  13  Prefactor     4.3899        6.2441        .19220E-03   -1.5289    
  14  Prefactor     1.3599        1.4652        .94364E-04   -1.5475    
  15  Prefactor     1.7237        1.9211        .10945E-03   -1.5445    
  16  Prefactor     .10000E-03    4.7938        .16680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .38780        .21831        .26885E-04   -1.5583    
  18  norm          8.7334        4.3889        .11302E-03   -1.5117    
  19  Prefactor     8.2756        7.4489        .13936E-03   -1.5133    
  20  Prefactor     14.774        22.075        .10419E-03   -1.4939    
  21  Prefactor     22.258        53.810        .84540E-04   -1.4764    
  22  Prefactor     .10000E-03    2.9721        .13243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.9063        .13085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.0804        4.2873        .17305E-03   -1.5357    
  25  Prefactor     34.076        28.020        .68633E-04   -1.4540    
  26  norm          10.108        4.9397        .11858E-03   -1.5072    
  27  Prefactor     .10000E-03    10.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          2.9593        2.8671        .12487E-03   -1.5364    
  29  norm          .10000E-03    2.4788        .12105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0939        .20702        .23154E-03   -.89947    
  31  Prefactor     .74477        .23159        .32002E-03   -1.0180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09943e-09
Minuit parameter uncertainties:
  1  13.8355
  2  7.72232e-05
  3  2.25509e-06
  4  1.42382
  5  2.22947e-05
  6  1.96029e-05
  7  22.8705
  8  1.69927e-05
  9  1.35817
  10  0.000135477
  11  30.0151
  12  4.50709
  13  6.24498
  14  1.46525
  15  1.92116
  16  5.09853e-05
  17  0.218315
  18  4.38902
  19  7.44975
  20  22.0874
  21  53.9279
  22  1.01719e-05
  23  8.97557e-05
  24  4.28776
  25  28.0304
  26  4.93989
  27  0.000192552
  28  2.86724
  29  3.22744e-05
  30  0.207176
  31  0.231887
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.670e+01  4.507e+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:  7.448e-01  2.319e-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.094e+00  2.072e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 58.46
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 1.45e-07 +/- 3.92e-08
Energy Flux (Fixed Index): 1.30e-04 +/- 3.50e-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) = 6211.37514217
delta logL = 3.37103610946e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6211.37514114
delta logL = 3.47458881151e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.703       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8558       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0938       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74472       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=   6211.375     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      196 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.693        6.4347        .24500E-02    .34863E-03
   2  alpha         1.8560        .29102        .14420        .33739E-04
   3  Normalizat    1.0937        .17333        .38257E-01    .10098E-04
   4  Prefactor     .74488        .20047        .72305E-01    .26046E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 16.6928
  alpha      = 1.85597
  Normalizat = 1.09371
  Prefactor  = 0.744882
 **********
 **   18 **HESSE 
 **********

 FCN=   6211.375     FROM HESSE     STATUS=OK            33 CALLS      229 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.693        4.5360        .40415E-03   -1.4891    
   2  alpha         1.8560        .21307        .61255E-02   -.26055    
   3  Normalizat    1.0937        .19878        .23156E-03   -.89954    
   4  Prefactor     .74488        .23007        .31999E-03   -1.0179    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59505e-10
Minuit parameter uncertainties:
  1  4.53613
  2  0.213344
  3  0.198917
  4  0.230365
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/460210': 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) = 6211.37513826
delta logL = 3.7619502109e-05

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.669e+01  4.536e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.856e+00  2.133e-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:  7.449e-01  2.304e-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.094e+00  1.989e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 58.68
Ra Dec: 184.476 30.118
Photon Index (Free Index): 1.86 +/- 0.21
Photon Flux (Free Index): 1.46e-07 +/- 4.61e-08
Energy Flux (Free Index): 1.29e-04 +/- 5.51e-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/460210/cmap_HighResolution_515116801_515376001_4FGL_J1217.9+3007_daily_bin1064.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.45e-07', energy_flux2='1.29e-04', photon_flux_error='3.92e-08', dlogl='3.76e-05', energy_flux='1.30e-04', photon_flux2='1.46e-07', job_status='DONE', time_completed='2021-09-05 06:40:27.722526', photon_index_error2='0.21', photon_index2='1.86', ts='58.46', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', energy_flux_error2='5.51e-05', EG='1.09', time_epoch_completed='1630849227.72', return_code='0', job_id='460210', GAL2='0.74', EG2='1.09', return_code2='0', energy_flux_error='3.50e-05', photon_flux_error2='4.61e-08', ts2='58.68', photon_index='1.85' WHERE bin_id='1064' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:40:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 460210: <4FGL_J1217.9+3007_daily_bin1064> in cluster <slac> Done

Job <4FGL_J1217.9+3007_daily_bin1064> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Sep  5 06:25:43 2021
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 06:25:44 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:25:44 2021
Terminated at Sun Sep  5 06:40:28 2021
Results reported at Sun Sep  5 06:40:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin1064 184.476 30.1177 515116801 515376001 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 :                                   831.26 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             304.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            885 sec.

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

