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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin516
RA = 184.476, Dec = 30.1177
tmin = 373075201, tmax = 373334401
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='456489', job_status='RUN', time_executed='2021-09-05 06:17:27.785227', time_epoch_executed='1630847847.79' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='516'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/456489

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/456489/ft1_4FGL_J1217.9+3007_daily_bin516.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/456489/ft2_4FGL_J1217.9+3007_daily_bin516.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/456489/ft1_4FGL_J1217.9+3007_daily_bin516.fits outfile=/scratch/kocevski/456489/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin516.fits ra=184.476 dec=30.1177 rad=12.0 tmin=373075201.0 tmax=373334401.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.79
user 3.48
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/456489/ft1_filtered_4FGL_J1217.9+3007_daily_bin516.fits" evtable="EVENTS" scfile=/scratch/kocevski/456489/ft2_4FGL_J1217.9+3007_daily_bin516.fits sctable="SC_DATA" outfile=/scratch/kocevski/456489/ltcube_373075201_373334401_4FGL_J1217.9+3007_daily_bin516.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/456489/ft2_4FGL_J1217.9+3007_daily_bin516.fits
.....................!
real 12.01
user 11.63
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/456489/ft1_filtered_4FGL_J1217.9+3007_daily_bin516.fits evtable="EVENTS" scfile=/scratch/kocevski/456489/ft2_4FGL_J1217.9+3007_daily_bin516.fits sctable="SC_DATA" expcube=/scratch/kocevski/456489/ltcube_373075201_373334401_4FGL_J1217.9+3007_daily_bin516.fits outfile=/scratch/kocevski/456489/expmap_373075201_373334401_4FGL_J1217.9+3007_daily_bin516.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/456489/ltcube_373075201_373334401_4FGL_J1217.9+3007_daily_bin516.fits
.....................!
real 190.32
user 185.44
sys 4.49

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/456489/ft1_filtered_4FGL_J1217.9+3007_daily_bin516.fits scfile=/scratch/kocevski/456489/ft2_4FGL_J1217.9+3007_daily_bin516.fits outfile=/scratch/kocevski/456489/cmap_373075201_373334401_4FGL_J1217.9+3007_daily_bin516.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/456489/ft1_filtered_4FGL_J1217.9+3007_daily_bin516.fits scfile=/scratch/kocevski/456489/ft2_4FGL_J1217.9+3007_daily_bin516.fits outfile=/scratch/kocevski/456489/cmap_HighResolution_373075201_373334401_4FGL_J1217.9+3007_daily_bin516.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.56
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.642       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .31832E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11376E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .35001       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.767       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.9210       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.9332       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .14922       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.4989       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.4412       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6563       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .80072       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.3856       1.0000         .10000E-03   10000.    
    17 'norm      '    .45999       1.0000         .10000E-03   10000.    
    18 'norm      '    4.0888       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.5491       1.0000         .10000E-03   10000.    
    24 'norm      '    .10119E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    28.253       1.0000         .10000E-03   10000.    
    26 'norm      '    5.6647       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    19.869       1.0000         .10000E-03   10000.    
    29 'norm      '    .10963E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1608       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .75182       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=   6124.073     FROM MIGRAD    STATUS=CONVERGED    817 CALLS     4200 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.726        19.767       -.73330E-06    .99670E-04
   2  Prefactor     .10002E-03    8.9879        .54515E-06** at limit **
   3  Prefactor     .10000E-03    2.8266        .22850E-06** at limit **
   4  norm          .35001        .83406        .30167E-06   -.25941E-03
   5  Prefactor     10.752        21.466       -.12200E-05   -.89695E-04
   6  Prefactor     2.9220        2.1696        .12278E-06   -.62839E-04
   7  Prefactor     5.9401        19.287       -.18967E-06   -.31212E-04
   8  Prefactor     .10000E-03    17.821       -.51752E-06** at limit **
   9  norm          .14897        .64608        .24030E-06   -.42765E-03
  10  Prefactor     6.4983        4.2699        .62929E-07   -.83237E-04
  11  Prefactor     .10000E-03    11.211       -.19426E-06** at limit **
  12  norm          6.4411        3.0536       -.15191E-07   -.78852E-04
  13  Prefactor     .10000E-03    3.7311        .41933E-07** at limit **
  14  Prefactor     1.6563        2.0403        .14462E-07   -.17763E-03
  15  Prefactor     .80006        1.8472        .39966E-06   -.31790E-04
  16  Prefactor     2.3848        4.6989        .15289E-06   -.15795E-03
  17  norm          .45998        .19682        .48427E-08   -.11309E-03
  18  norm          4.0892        3.9477       -.10332E-06   -.14750E-03
  19  Prefactor     .10000E-03    3.2904       -.12259E-07** at limit **
  20  Prefactor     .10000E-03    10.553       -.92736E-06** at limit **
  21  Prefactor     .10000E-03    42.642        .95389E-06** at limit **
  22  Prefactor     .10000E-03    8.9595       -.33074E-07** at limit **
  23  Prefactor     4.5495        4.7213        .39452E-07   -.52924E-04
  24  norm          .10000E-03    2.3775        .73723E-07** at limit **
  25  Prefactor     28.254        26.702        .31171E-06    .99869E-05
  26  norm          5.6645        3.9556        .23110E-06   -.18549E-03
  27  Prefactor     .10000E-03    8.9893        .28339E-06** at limit **
  28  norm          19.868        6.4839        .29637E-06   -.26066E-03
  29  norm          .10000E-03    12.275        .16154E-05** at limit **
  30  Normalizat    1.1605        .17554       -.63849E-06   -.14887E-03
  31  Prefactor     .75229        .19086       -.35742E-06   -.90248E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.7261
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  norm       = 0.350013
  Prefactor  = 10.7522
  Prefactor  = 2.92196
  Prefactor  = 5.94013
  Prefactor  = 0.0001
  norm       = 0.148968
  Prefactor  = 6.49826
  Prefactor  = 0.0001
  norm       = 6.44109
  Prefactor  = 0.0001
  Prefactor  = 1.65627
  Prefactor  = 0.800057
  Prefactor  = 2.38475
  norm       = 0.459978
  norm       = 4.0892
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.54947
  norm       = 0.0001
  Prefactor  = 28.2538
  norm       = 5.66452
  Prefactor  = 0.0001
  norm       = 19.8678
  norm       = 0.0001
  Normalizat = 1.16048
  Prefactor  = 0.752286
 **********
 **   18 **HESSE 
 **********

 FCN=   6124.073     FROM HESSE     STATUS=OK           632 CALLS     4832 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.726        18.607        .74859E-04   -1.4636    
   2  Prefactor     .10002E-03    43.446        .41038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.6495        .25345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .35001        .83213        .10615E-03   -1.5590    
   5  Prefactor     10.752        21.567        .12210E-03   -1.5052    
   6  Prefactor     2.9220        2.1549        .88837E-04   -1.5366    
   7  Prefactor     5.9401        19.256        .16486E-03   -1.5220    
   8  Prefactor     .10000E-03    17.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .14897        1.0453        .11643E-02   -1.5631    
  10  Prefactor     6.4983        4.2699        .12578E-03   -1.5198    
  11  Prefactor     .10000E-03    11.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.4411        3.0346        .85829E-04   -1.5200    
  13  Prefactor     .10000E-03    3.7614        .14761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.6563        2.0093        .11374E-03   -1.5451    
  15  Prefactor     .80006        1.7285        .14948E-02   -1.5529    
  16  Prefactor     2.3848        4.6780        .22424E-03   -1.5399    
  17  norm          .45998        .19627        .21902E-04   -1.5572    
  18  norm          4.0892        3.9323        .14302E-03   -1.5304    
  19  Prefactor     .10000E-03    3.2945        .13861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    42.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.1065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.5495        4.7183        .16810E-03   -1.5281    
  24  norm          .10000E-03    2.3893        .11768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     28.254        26.769        .75372E-04   -1.4644    
  26  norm          5.6645        3.9536        .63127E-03   -1.5232    
  27  Prefactor     .10000E-03    9.0122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          19.868        6.3355        .89854E-04   -1.4816    
  29  norm          .10000E-03    12.132        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.1605        .20125        .22177E-03   -.87833    
  31  Prefactor     .75229        .21793        .30980E-03   -1.0151    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90486e-08
Minuit parameter uncertainties:
  1  18.6103
  2  0.00187735
  3  1.24411e-05
  4  0.832156
  5  21.5829
  6  2.15493
  7  19.2757
  8  5.85627e-05
  9  0.788974
  10  4.27008
  11  1.38253e-05
  12  3.03469
  13  3.11386e-06
  14  2.00939
  15  1.72864
  16  4.67873
  17  0.196267
  18  3.93258
  19  3.86435e-07
  20  7.06053e-05
  21  0.000144651
  22  2.96818e-06
  23  4.71867
  24  4.74878e-06
  25  26.7805
  26  3.95374
  27  1.92216e-05
  28  6.3357
  29  1.39323e-06
  30  0.201387
  31  0.21818
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  6.441e+00  3.035e+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.523e-01  2.182e-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.160e+00  2.014e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 20.05
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 5.61e-08 +/- 2.64e-08
Energy Flux (Fixed Index): 4.99e-05 +/- 2.35e-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) = 6124.06970645
delta logL = 0.00339221894592

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6124.06956027
delta logL = 0.00353839736545

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4263       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8871       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1582       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75338       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=   6124.070     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      223 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4180        64.194        .39581E-02   -.85954E-05
   2  alpha         1.8858        3.2298        .25993        .22978E-04
   3  Normalizat    1.1584        .21987        .36008E-01    .69666E-05
   4  Prefactor     .75337        .16543        .69961E-01    .22339E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.41797
  alpha      = 1.88577
  Normalizat = 1.15836
  Prefactor  = 0.753374
 **********
 **   18 **HESSE 
 **********

 FCN=   6124.070     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .77E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4180        2.8772        .85020E-04   -1.5201    
   2  alpha         1.8858        .37546        .99854E-02   -.24823    
   3  Normalizat    1.1584        .18774        .22194E-03   -.87899    
   4  Prefactor     .75337        .21433        .30958E-03   -1.0147    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.71134e-13
Minuit parameter uncertainties:
  1  2.87722
  2  0.376979
  3  0.187849
  4  0.214568
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/456489': 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) = 6124.06954802
delta logL = 0.00355064719497

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  6.418e+00  2.877e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.886e+00  3.770e-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.534e-01  2.146e-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.158e+00  1.878e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.09
Ra Dec: 184.476 30.118
Photon Index (Free Index): 1.89 +/- 0.38
Photon Flux (Free Index): 5.81e-08 +/- 3.46e-08
Energy Flux (Free Index): 4.80e-05 +/- 3.16e-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/456489/cmap_HighResolution_373075201_373334401_4FGL_J1217.9+3007_daily_bin516.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.61e-08', energy_flux2='4.80e-05', photon_flux_error='2.64e-08', dlogl='3.55e-03', energy_flux='4.99e-05', photon_flux2='5.81e-08', job_status='DONE', time_completed='2021-09-05 06:31:21.421135', photon_index_error2='0.38', photon_index2='1.89', ts='20.05', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='3.16e-05', EG='1.16', time_epoch_completed='1630848681.42', return_code='0', job_id='456489', GAL2='0.75', EG2='1.16', return_code2='0', energy_flux_error='2.35e-05', photon_flux_error2='3.46e-08', ts2='20.09', photon_index='1.85' WHERE bin_id='516' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:31:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 456489: <4FGL_J1217.9+3007_daily_bin516> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin516 184.476 30.1177 373075201 373334401 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 :                                   826.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             307.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            943 sec.

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

