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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin1392
RA = 184.476, Dec = 30.1177
tmin = 600134401, tmax = 600393601
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='461663', job_status='RUN', time_executed='2021-09-05 06:31:41.094207', time_epoch_executed='1630848701.09' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='1392'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/461663

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/461663/ft1_4FGL_J1217.9+3007_daily_bin1392.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/461663/ft2_4FGL_J1217.9+3007_daily_bin1392.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/461663/ft1_4FGL_J1217.9+3007_daily_bin1392.fits outfile=/scratch/kocevski/461663/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin1392.fits ra=184.476 dec=30.1177 rad=12.0 tmin=600134401.0 tmax=600393601.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.05
user 4.58
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/461663/ft2_4FGL_J1217.9+3007_daily_bin1392.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/461663/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin1392.fits evtable="EVENTS" outfile="/scratch/kocevski/461663/ft1_filtered_4FGL_J1217.9+3007_daily_bin1392.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/461663/ft1_filtered_4FGL_J1217.9+3007_daily_bin1392.fits evtable="EVENTS" scfile=/scratch/kocevski/461663/ft2_4FGL_J1217.9+3007_daily_bin1392.fits sctable="SC_DATA" expcube=/scratch/kocevski/461663/ltcube_600134401_600393601_4FGL_J1217.9+3007_daily_bin1392.fits outfile=/scratch/kocevski/461663/expmap_600134401_600393601_4FGL_J1217.9+3007_daily_bin1392.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/461663/ltcube_600134401_600393601_4FGL_J1217.9+3007_daily_bin1392.fits
.....................!
real 193.68
user 187.58
sys 5.42

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/461663/ft1_filtered_4FGL_J1217.9+3007_daily_bin1392.fits scfile=/scratch/kocevski/461663/ft2_4FGL_J1217.9+3007_daily_bin1392.fits outfile=/scratch/kocevski/461663/cmap_600134401_600393601_4FGL_J1217.9+3007_daily_bin1392.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/461663/ft1_filtered_4FGL_J1217.9+3007_daily_bin1392.fits scfile=/scratch/kocevski/461663/ft2_4FGL_J1217.9+3007_daily_bin1392.fits outfile=/scratch/kocevski/461663/cmap_HighResolution_600134401_600393601_4FGL_J1217.9+3007_daily_bin1392.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.65
user 0.36
sys 0.19

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.252       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5264       1.0000         .10000E-03   10000.    
     4 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.289       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.6399       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.148       1.0000         .10000E-03   10000.    
     9 'norm      '    .72978       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.539       1.0000         .10000E-03   10000.    
    12 'norm      '    9.4602       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12960E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.3506       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5257       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .44792E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.7388       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    55.713       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.4678       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.3064       1.0000         .10000E-03   10000.    
    24 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11101E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    31.457       1.0000         .10000E-03   10000.    
    29 'norm      '    6.9292       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .76846       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1176       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=   6273.148     FROM MIGRAD    STATUS=CONVERGED    821 CALLS     4157 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.1320        .14405E-05** at limit **
   2  Prefactor     14.250        10.404       -.58222E-06   -.90862E-05
   3  Prefactor     1.5258        3.4991       -.88649E-06   -.73611E-03
   4  norm          .10000E-03    .63295        .98731E-07** at limit **
   5  Prefactor     10.288        20.570        .13140E-05    .10134E-04
   6  Prefactor     3.6398        2.2923       -.30841E-06   -.17699E-03
   7  Prefactor     .10000E-03    8.0355       -.16598E-05** at limit **
   8  Prefactor     27.129        39.499       -.68510E-05   -.13845E-04
   9  norm          .72922        .94921       -.28882E-06   -.16051E-02
  10  Prefactor     .10000E-03    1.7990       -.48390E-07** at limit **
  11  Prefactor     15.539        22.205       -.92377E-07   -.11110E-05
  12  norm          9.4605        4.1878        .69682E-07   -.57296E-04
  13  Prefactor     .10001E-03    4.4911        .47223E-06** at limit **
  14  Prefactor     4.3499        2.9292       -.51409E-06   -.27561E-02
  15  Prefactor     3.5256        2.3258       -.10621E-07    .85263E-04
  16  Prefactor     .10139E-03    6.8984       -.89641E-06** at limit **
  17  norm          .10000E-03    .92992E-01   -.56585E-07** at limit **
  18  norm          5.7459        5.4334       -.26201E-06    .20734E-03
  19  Prefactor     .10000E-03    9.0709        .14206E-05** at limit **
  20  Prefactor     .10000E-03    11.166       -.25706E-06** at limit **
  21  Prefactor     55.690        69.158       -.21739E-04   -.10120E-04
  22  Prefactor     6.4678        5.2684        .49632E-06    .15653E-04
  23  Prefactor     9.3012        6.1418       -.23969E-06    .45609E-04
  24  norm          .10000E-03    2.9711        .54348E-06** at limit **
  25  Prefactor     .10000E-03    10.685       -.23931E-05** at limit **
  26  norm          .10000E-03    .94912       -.18214E-08** at limit **
  27  Prefactor     .10000E-03    26.325       -.13399E-05** at limit **
  28  norm          31.459        10.260       -.57331E-05    .35169E-05
  29  norm          6.9159        14.965        .21457E-04   -.66251E-04
  30  Normalizat    .76835        .17201        .34533E-05    .21788E-04
  31  Prefactor     1.1179        .19391        .98684E-07    .13957E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 14.2495
  Prefactor  = 1.52579
  norm       = 0.0001
  Prefactor  = 10.2875
  Prefactor  = 3.63983
  Prefactor  = 0.0001
  Prefactor  = 27.1293
  norm       = 0.729221
  Prefactor  = 0.0001
  Prefactor  = 15.5388
  norm       = 9.46054
  Prefactor  = 0.000100007
  Prefactor  = 4.34986
  Prefactor  = 3.5256
  Prefactor  = 0.000101386
  norm       = 0.0001
  norm       = 5.74591
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 55.6903
  Prefactor  = 6.46775
  Prefactor  = 9.30124
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 31.4593
  norm       = 6.91588
  Normalizat = 0.768353
  Prefactor  = 1.11792
 **********
 **   18 **HESSE 
 **********

 FCN=   6273.148     FROM HESSE     STATUS=OK           640 CALLS     4797 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.1545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.250        10.396        .10610E-03   -1.4953    
   3  Prefactor     1.5258        3.4719        .21699E-03   -1.5461    
   4  norm          .10000E-03    .97373        .12054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.288        20.417        .12492E-03   -1.5066    
   6  Prefactor     3.6398        2.2815        .85907E-04   -1.5326    
   7  Prefactor     .10000E-03    8.0462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     27.129        39.015        .76887E-04   -1.4666    
   9  norm          .72922        .86160        .83637E-03   -1.5537    
  10  Prefactor     .10000E-03    1.8246        .10370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.539        22.194        .10160E-03   -1.4919    
  12  norm          9.4605        4.2032        .93561E-04   -1.5093    
  13  Prefactor     .10001E-03    12.803        .32360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.3499        2.9654        .49373E-03   -1.5291    
  15  Prefactor     3.5256        2.3198        .91646E-04   -1.5332    
  16  Prefactor     .10139E-03    8.4091        .51857E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .11989        .46527E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.7459        5.4484        .15666E-03   -1.5229    
  19  Prefactor     .10000E-03    9.1887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     55.690        69.157        .53742E-04   -1.4214    
  22  Prefactor     6.4678        5.2669        .15781E-03   -1.5199    
  23  Prefactor     9.3012        6.1367        .13137E-03   -1.5098    
  24  norm          .10000E-03    3.0179        .13330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    10.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .95030        .75354E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    26.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          31.459        10.203        .71439E-04   -1.4586    
  29  norm          6.9159        14.783        .15241E-03   -1.5182    
  30  Normalizat    .76835        .20049        .26808E-03   -1.0125    
  31  Prefactor     1.1179        .22850        .26467E-03   -.88896    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3199e-09
Minuit parameter uncertainties:
  1  6.55657e-06
  2  10.3973
  3  3.47238
  4  9.64374e-06
  5  20.4311
  6  2.28158
  7  8.3943e-06
  8  39.0515
  9  0.86161
  10  7.54528e-06
  11  22.2061
  12  4.20337
  13  0.000602146
  14  2.96551
  15  2.31989
  16  0.00682894
  17  1.99492e-06
  18  5.44885
  19  3.83765e-06
  20  1.84206e-06
  21  69.2573
  22  5.26732
  23  6.13714
  24  9.29012e-05
  25  7.82396e-05
  26  1.41656e-07
  27  5.58135e-05
  28  10.2034
  29  14.7906
  30  0.200681
  31  0.228703
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  9.461e+00  4.203e+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.118e+00  2.287e-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:  7.684e-01  2.007e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.58
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 8.24e-08 +/- 3.66e-08
Energy Flux (Fixed Index): 7.34e-05 +/- 3.26e-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) = 6273.06914902
delta logL = 0.0788047948499

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6273.06609196
delta logL = 0.0818618544945

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.6754       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7371       1.0000          .0000       5.0000    
     3 'Normalizat'    .77620       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1135       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=   6273.066     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      199 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.6754        5.1856        .32208E-02   -.73282E-02
   2  alpha         1.7370        .35378        .20728       -.55844E-05
   3  Normalizat    .77617        .16493        .43299E-01    .23671E-04
   4  Prefactor     1.1135        .19293        .59965E-01    .17434E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.67544
  alpha      = 1.73704
  Normalizat = 0.776168
  Prefactor  = 1.11353
 **********
 **   18 **HESSE 
 **********

 FCN=   6273.066     FROM HESSE     STATUS=OK            31 CALLS      230 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.6754        3.9021        .96021E-04   -1.5086    
   2  alpha         1.7370        .28506        .85365E-02   -.31013    
   3  Normalizat    .77617        .19234        .26694E-03   -1.0096    
   4  Prefactor     1.1135        .22550        .13259E-02   -.89035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.6176e-09
Minuit parameter uncertainties:
  1  3.90221
  2  0.285749
  3  0.19251
  4  0.225697
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/461663': 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) = 6273.0660919
delta logL = 0.0818619121665

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  9.675e+00  3.902e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.737e+00  2.857e-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.114e+00  2.257e-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:  7.762e-01  1.925e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.03
Ra Dec: 184.476 30.118
Photon Index (Free Index): 1.74 +/- 0.29
Photon Flux (Free Index): 7.38e-08 +/- 3.64e-08
Energy Flux (Free Index): 8.86e-05 +/- 5.55e-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/461663/cmap_HighResolution_600134401_600393601_4FGL_J1217.9+3007_daily_bin1392.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.24e-08', energy_flux2='8.86e-05', photon_flux_error='3.66e-08', dlogl='8.19e-02', energy_flux='7.34e-05', photon_flux2='7.38e-08', job_status='DONE', time_completed='2021-09-05 06:46:52.258620', photon_index_error2='0.29', photon_index2='1.74', ts='18.58', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='5.55e-05', EG='0.77', time_epoch_completed='1630849612.26', return_code='0', job_id='461663', GAL2='1.11', EG2='0.78', return_code2='0', energy_flux_error='3.26e-05', photon_flux_error2='3.64e-08', ts2='19.03', photon_index='1.85' WHERE bin_id='1392' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:46:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 461663: <4FGL_J1217.9+3007_daily_bin1392> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin1392 184.476 30.1177 600134401 600393601 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 :                                   812.01 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             296.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            974 sec.

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

