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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin600
RA = 184.476, Dec = 30.1177
tmin = 394848001, tmax = 395107201
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='456621', job_status='RUN', time_executed='2021-09-05 06:16:58.165040', time_epoch_executed='1630847818.17' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='600'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/456621

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/456621/ft1_4FGL_J1217.9+3007_daily_bin600.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/456621/ft2_4FGL_J1217.9+3007_daily_bin600.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/456621/ft1_4FGL_J1217.9+3007_daily_bin600.fits outfile=/scratch/kocevski/456621/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin600.fits ra=184.476 dec=30.1177 rad=12.0 tmin=394848001.0 tmax=395107201.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.21
user 4.96
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/456621/ft1_filtered_4FGL_J1217.9+3007_daily_bin600.fits" evtable="EVENTS" scfile=/scratch/kocevski/456621/ft2_4FGL_J1217.9+3007_daily_bin600.fits sctable="SC_DATA" outfile=/scratch/kocevski/456621/ltcube_394848001_395107201_4FGL_J1217.9+3007_daily_bin600.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/456621/ft2_4FGL_J1217.9+3007_daily_bin600.fits
.....................!
real 11.96
user 11.30
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/456621/ft1_filtered_4FGL_J1217.9+3007_daily_bin600.fits evtable="EVENTS" scfile=/scratch/kocevski/456621/ft2_4FGL_J1217.9+3007_daily_bin600.fits sctable="SC_DATA" expcube=/scratch/kocevski/456621/ltcube_394848001_395107201_4FGL_J1217.9+3007_daily_bin600.fits outfile=/scratch/kocevski/456621/expmap_394848001_395107201_4FGL_J1217.9+3007_daily_bin600.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/456621/ltcube_394848001_395107201_4FGL_J1217.9+3007_daily_bin600.fits
.....................!
real 191.31
user 185.96
sys 4.88

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/456621/ft1_filtered_4FGL_J1217.9+3007_daily_bin600.fits scfile=/scratch/kocevski/456621/ft2_4FGL_J1217.9+3007_daily_bin600.fits outfile=/scratch/kocevski/456621/cmap_394848001_395107201_4FGL_J1217.9+3007_daily_bin600.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/456621/ft1_filtered_4FGL_J1217.9+3007_daily_bin600.fits scfile=/scratch/kocevski/456621/ft2_4FGL_J1217.9+3007_daily_bin600.fits outfile=/scratch/kocevski/456621/cmap_HighResolution_394848001_395107201_4FGL_J1217.9+3007_daily_bin600.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.489       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .52523E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.8681       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.068       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.6413       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .25956E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.5788       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.9008       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2566       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.5696       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.684       1.0000         .10000E-03   10000.    
    17 'norm      '    2.2545       1.0000         .10000E-03   10000.    
    18 'norm      '    6.5350       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    29.403       1.0000         .10000E-03   10000.    
    21 'Prefactor '    60.807       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.029       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.8051       1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    27.228       1.0000         .10000E-03   10000.    
    28 'norm      '    14.342       1.0000         .10000E-03   10000.    
    29 'norm      '    .10137E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.4601       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .47483       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=   6290.867     FROM MIGRAD    STATUS=CONVERGED    809 CALLS     4145 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.493        15.454        .17724E-06    .55879E-04
   2  Prefactor     .10000E-03    3.4297        .91808E-08** at limit **
   3  Prefactor     .10008E-03    3.1090       -.64375E-06** at limit **
   4  norm          8.8683        2.2172        .22892E-07    .27932E-03
   5  Prefactor     12.067        22.929        .17109E-05   -.77561E-04
   6  Prefactor     .10000E-03    1.1492       -.10392E-07** at limit **
   7  Prefactor     .10000E-03    44.210        .10914E-05** at limit **
   8  Prefactor     .10000E-03    31.867       -.47835E-06** at limit **
   9  norm          2.6415        1.4347        .10661E-08    .37286E-03
  10  Prefactor     .10000E-03    2.8280        .34624E-06** at limit **
  11  Prefactor     .10039E-03    205.97       -.32177E-04** at limit **
  12  norm          5.5793        3.2795       -.51448E-08    .17951E-03
  13  Prefactor     4.9016        6.1790        .77113E-06   -.16824E-03
  14  Prefactor     1.2564        1.2880       -.29092E-07    .18317E-03
  15  Prefactor     1.5695        1.4982       -.89222E-07    .12119E-03
  16  Prefactor     13.682        8.3560       -.82118E-06   -.18838E-04
  17  norm          2.2545        .43532       -.60171E-08   -.31255E-03
  18  norm          6.5344        6.3377        .26695E-05   -.11655E-02
  19  Prefactor     .10000E-03    4.9442       -.24723E-07** at limit **
  20  Prefactor     29.402        23.788       -.45071E-07   -.48162E-04
  21  Prefactor     60.815        56.328        .22975E-05    .18841E-03
  22  Prefactor     11.029        10.890        .11719E-05   -.30907E-03
  23  Prefactor     6.8057        6.5857        .46350E-07    .92010E-05
  24  norm          .10000E-03    1.3828        .20478E-07** at limit **
  25  Prefactor     .10000E-03    14.086        .29045E-06** at limit **
  26  norm          .10000E-03    1.8795       -.13116E-07** at limit **
  27  Prefactor     27.229        27.407        .26718E-06    .11969E-04
  28  norm          14.340        6.3913        .61215E-08   -.13592E-03
  29  norm          .10000E-03    6.9024       -.12459E-06** at limit **
  30  Normalizat    1.4601        .20766       -.93352E-06    .33653E-03
  31  Prefactor     .47501        .21416       -.12307E-05    .11937E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.4928
  Prefactor  = 0.0001
  Prefactor  = 0.000100079
  norm       = 8.86831
  Prefactor  = 12.0672
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 2.64152
  Prefactor  = 0.0001
  Prefactor  = 0.00010039
  norm       = 5.57928
  Prefactor  = 4.90158
  Prefactor  = 1.25641
  Prefactor  = 1.56952
  Prefactor  = 13.6824
  norm       = 2.25447
  norm       = 6.53438
  Prefactor  = 0.0001
  Prefactor  = 29.4019
  Prefactor  = 60.8147
  Prefactor  = 11.0288
  Prefactor  = 6.80573
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.2288
  norm       = 14.3398
  norm       = 0.0001
  Normalizat = 1.46007
  Prefactor  = 0.475007
 **********
 **   18 **HESSE 
 **********

 FCN=   6290.867     FROM HESSE     STATUS=OK           626 CALLS     4771 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.493        15.424        .10522E-03   -1.4946    
   2  Prefactor     .10000E-03    3.4309        .14344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10008E-03    21.128        .26521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.8683        2.2198        .56967E-04   -1.5112    
   5  Prefactor     12.067        22.725        .57657E-03   -1.5013    
   6  Prefactor     .10000E-03    2.0349        .16072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    44.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    31.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.6415        1.4302        .66237E-04   -1.5383    
  10  Prefactor     .10000E-03    6.0784        .25763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10039E-03    242.51        .42900E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.5793        3.2678        .10444E-03   -1.5236    
  13  Prefactor     4.9016        6.2159        .90845E-03   -1.5265    
  14  Prefactor     1.2564        1.3070        .87907E-04   -1.5484    
  15  Prefactor     1.5695        1.5164        .91457E-04   -1.5457    
  16  Prefactor     13.682        8.4225        .10828E-03   -1.4968    
  17  norm          2.2545        .43608        .21763E-04   -1.5408    
  18  norm          6.5344        6.7885        .78494E-03   -1.5197    
  19  Prefactor     .10000E-03    4.9648        .17222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     29.402        23.784        .73886E-04   -1.4623    
  21  Prefactor     60.815        56.687        .51455E-04   -1.4147    
  22  Prefactor     11.029        10.955        .60320E-03   -1.5044    
  23  Prefactor     6.8057        6.5781        .15381E-03   -1.5186    
  24  norm          .10000E-03    1.3843        .91059E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    14.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.8975        .10617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     27.229        27.430        .76774E-04   -1.4664    
  28  norm          14.340        6.3823        .10576E-03   -1.4950    
  29  norm          .10000E-03    6.9170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.4601        .23448        .24012E-03   -.78907    
  31  Prefactor     .47501        .23605        .42394E-03   -1.1314    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.89403e-09
Minuit parameter uncertainties:
  1  15.4287
  2  1.92859e-06
  3  0.00258331
  4  2.21986
  5  22.7415
  6  2.47579e-06
  7  0.00051528
  8  0.000126365
  9  1.43017
  10  1.21534e-05
  11  0.0195269
  12  3.26795
  13  6.21673
  14  1.30703
  15  1.51648
  16  8.42323
  17  0.436084
  18  6.78935
  19  2.40047e-06
  20  23.7918
  21  56.737
  22  10.9575
  23  6.57878
  24  2.29172e-07
  25  5.12823e-05
  26  8.49159e-07
  27  27.4427
  28  6.38262
  29  2.69835e-06
  30  0.234656
  31  0.236537
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  5.579e+00  3.268e+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:  4.750e-01  2.365e-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.460e+00  2.347e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.94
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 4.86e-08 +/- 2.85e-08
Energy Flux (Fixed Index): 4.33e-05 +/- 2.53e-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) = 6290.31367862
delta logL = 0.553366270118

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6290.30208279
delta logL = 0.564962094533

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.6705       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4295       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4077       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .50730       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6290.302     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      272 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.6704        3.3645        .81746E-04    .48342E-03
   2  alpha         2.4297        .60040        .99468E-02    .32758E-04
   3  Normalizat    1.4077        .23009        .24355E-03   -.57788E-04
   4  Prefactor     .50722        .23850        .41091E-03   -.67397E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.67038
  alpha      = 2.4297
  Normalizat = 1.40772
  Prefactor  = 0.507218
 **********
 **   18 **HESSE 
 **********

 FCN=   6290.302     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.6704        3.1871        .32698E-05   -1.5276    
   2  alpha         2.4297        .56840        .39787E-03   -.28122E-01
   3  Normalizat    1.4077        .22929        .48711E-04   -.80406    
   4  Prefactor     .50722        .23797        .16436E-04   -1.1165    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.03322e-11
Minuit parameter uncertainties:
  1  3.18717
  2  0.573414
  3  0.229458
  4  0.238439
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/456621': 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) = 6290.30208243
delta logL = 0.564962459172

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  4.670e+00  3.187e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  2.430e+00  5.734e-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:  5.072e-01  2.384e-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.408e+00  2.295e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.01
Ra Dec: 184.476 30.118
Photon Index (Free Index): 2.43 +/- 0.57
Photon Flux (Free Index): 9.39e-08 +/- 6.51e-08
Energy Flux (Free Index): 3.05e-05 +/- 1.62e-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/456621/cmap_HighResolution_394848001_395107201_4FGL_J1217.9+3007_daily_bin600.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.86e-08', energy_flux2='3.05e-05', photon_flux_error='2.85e-08', dlogl='5.65e-01', energy_flux='4.33e-05', photon_flux2='9.39e-08', job_status='DONE', time_completed='2021-09-05 06:31:04.971114', photon_index_error2='0.57', photon_index2='2.43', ts='5.94', fit_tolerance='1e-08', GAL='0.48', photon_index_error='0.00', energy_flux_error2='1.62e-05', EG='1.46', time_epoch_completed='1630848664.97', return_code='0', job_id='456621', GAL2='0.51', EG2='1.41', return_code2='0', energy_flux_error='2.53e-05', photon_flux_error2='6.51e-08', ts2='7.01', photon_index='1.85' WHERE bin_id='600' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:31:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 456621: <4FGL_J1217.9+3007_daily_bin600> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin600 184.476 30.1177 394848001 395107201 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.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             321.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            918 sec.

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

