/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 40 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7346
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1217.9+3007_daily_bin973
RA = 184.476, Dec = 30.1177
tmin = 491529601, tmax = 491788801
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='460071', job_status='RUN', time_executed='2021-09-05 06:26:30.902731', time_epoch_executed='1630848390.9' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='973'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/460071

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/460071/ft1_4FGL_J1217.9+3007_daily_bin973.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/460071/ft2_4FGL_J1217.9+3007_daily_bin973.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/460071/ft1_4FGL_J1217.9+3007_daily_bin973.fits outfile=/scratch/kocevski/460071/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin973.fits ra=184.476 dec=30.1177 rad=12.0 tmin=491529601.0 tmax=491788801.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.49
user 3.25
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/460071/ft1_filtered_4FGL_J1217.9+3007_daily_bin973.fits" evtable="EVENTS" scfile=/scratch/kocevski/460071/ft2_4FGL_J1217.9+3007_daily_bin973.fits sctable="SC_DATA" outfile=/scratch/kocevski/460071/ltcube_491529601_491788801_4FGL_J1217.9+3007_daily_bin973.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/460071/ft2_4FGL_J1217.9+3007_daily_bin973.fits
.....................!
real 11.88
user 11.52
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/460071/ft1_filtered_4FGL_J1217.9+3007_daily_bin973.fits evtable="EVENTS" scfile=/scratch/kocevski/460071/ft2_4FGL_J1217.9+3007_daily_bin973.fits sctable="SC_DATA" expcube=/scratch/kocevski/460071/ltcube_491529601_491788801_4FGL_J1217.9+3007_daily_bin973.fits outfile=/scratch/kocevski/460071/expmap_491529601_491788801_4FGL_J1217.9+3007_daily_bin973.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/460071/ltcube_491529601_491788801_4FGL_J1217.9+3007_daily_bin973.fits
.....................!
real 191.04
user 185.24
sys 5.39

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/460071/ft1_filtered_4FGL_J1217.9+3007_daily_bin973.fits scfile=/scratch/kocevski/460071/ft2_4FGL_J1217.9+3007_daily_bin973.fits outfile=/scratch/kocevski/460071/cmap_491529601_491788801_4FGL_J1217.9+3007_daily_bin973.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/460071/ft1_filtered_4FGL_J1217.9+3007_daily_bin973.fits scfile=/scratch/kocevski/460071/ft2_4FGL_J1217.9+3007_daily_bin973.fits outfile=/scratch/kocevski/460071/cmap_HighResolution_491529601_491788801_4FGL_J1217.9+3007_daily_bin973.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.36
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/460071/ft1_filtered_4FGL_J1217.9+3007_daily_bin973.fits', '/scratch/kocevski/460071/ft2_4FGL_J1217.9+3007_daily_bin973.fits', expMap='/scratch/kocevski/460071/expmap_491529601_491788801_4FGL_J1217.9+3007_daily_bin973.fits', expCube='/scratch/kocevski/460071/ltcube_491529601_491788801_4FGL_J1217.9+3007_daily_bin973.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/460071/Model_4FGL_J1217.9+3007_daily_bin973.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/460071/ft1_filtered_4FGL_J1217.9+3007_daily_bin973.fits
Spacecraft file(s): /scratch/kocevski/460071/ft2_4FGL_J1217.9+3007_daily_bin973.fits
Exposure map: /scratch/kocevski/460071/expmap_491529601_491788801_4FGL_J1217.9+3007_daily_bin973.fits
Exposure cube: /scratch/kocevski/460071/ltcube_491529601_491788801_4FGL_J1217.9+3007_daily_bin973.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/460071/Model_4FGL_J1217.9+3007_daily_bin973.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5227.73656603

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .76336E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .65568       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11168E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.6392       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12482E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.6773       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .25489       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.3641       1.0000         .10000E-03   10000.    
    17 'norm      '    .67447       1.0000         .10000E-03   10000.    
    18 'norm      '    5.7316       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.911       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.465       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.3919       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .16538E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.6692       1.0000         .10000E-03   10000.    
    28 'norm      '    .74029       1.0000         .10000E-03   10000.    
    29 'norm      '    3.5182       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .76308       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1403       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5227.596     FROM MIGRAD    STATUS=CONVERGED    115 CALLS     2894 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10010E-03    6.7240       -.54389E-05** at limit **
   2  Prefactor     .10001E-03    4.6318       -.14082E-05** at limit **
   3  Prefactor     .10000E-03    8.1395        .17873E-05** at limit **
   4  norm          .65579        .83563       -.74707E-07   -.68202E-03
   5  Prefactor     .10000E-03    5.2737       -.85049E-06** at limit **
   6  Prefactor     .10000E-03    .81244        .72216E-07** at limit **
   7  Prefactor     .10003E-03    73.508       -.14090E-04** at limit **
   8  Prefactor     .10001E-03    15.987        .52298E-05** at limit **
   9  norm          3.6387        1.4438        .13524E-06    .94553E-03
  10  Prefactor     .10000E-03    7.2763       -.96426E-06** at limit **
  11  Prefactor     .10001E-03    15.928        .52236E-05** at limit **
  12  norm          8.6769        3.0538       -.15778E-05   -.83696E-03
  13  Prefactor     .10000E-03    1.8102       -.78653E-06** at limit **
  14  Prefactor     .10000E-03    .73965        .93970E-07** at limit **
  15  Prefactor     .25557        2.9604       -.52997E-05   -.51593E-03
  16  Prefactor     4.3640        3.8471        .78849E-06   -.15388E-02
  17  norm          .67448        .28069       -.17921E-07   -.17465E-02
  18  norm          5.7319        2.0986       -.62707E-07    .37652E-02
  19  Prefactor     17.910        1.0222       -.11580E-06   -.58288E-04
  20  Prefactor     10.457        1.2488       -.18292E-06   -.96207E-05
  21  Prefactor     .10000E-03    16.796        .52371E-05** at limit **
  22  Prefactor     1.3927        1.0950        .11514E-07    .77933E-05
  23  Prefactor     .10000E-03    2.2609       -.12354E-06** at limit **
  24  norm          .10000E-03    27.112       -.14367E-04** at limit **
  25  Prefactor     .10000E-03    15.274        .23091E-05** at limit **
  26  norm          .10000E-03    1.7766        .74299E-06** at limit **
  27  Prefactor     8.6690        1.0056       -.17638E-08   -.42665E-06
  28  norm          .73600        3.1199        .27289E-05    .14896E-03
  29  norm          3.5227        1.8548        .11138E-05    .10649E-03
  30  Normalizat    .76301        .19744        .36295E-06   -.40743E-04
  31  Prefactor     1.1403        .23297        .36632E-06   -.89289E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100104
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 0.655787
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.000100032
  Prefactor  = 0.000100006
  norm       = 3.63869
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  norm       = 8.67685
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.255572
  Prefactor  = 4.36398
  norm       = 0.674481
  norm       = 5.73189
  Prefactor  = 17.9103
  Prefactor  = 10.4572
  Prefactor  = 0.000100002
  Prefactor  = 1.39266
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.66897
  norm       = 0.736004
  norm       = 3.52266
  Normalizat = 0.763013
  Prefactor  = 1.14032
 **********
 **   18 **HESSE 
 **********

 FCN=   5227.596     FROM HESSE     STATUS=OK           706 CALLS     3600 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10010E-03    39.623        .10465E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    9.3717        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.8854        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .65579        .95517        .17282E-01   -1.5546    
   5  Prefactor     .10000E-03    9.6194        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .79978        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10003E-03    73.096        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    48.975        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.6387        1.4498        .52942E-02   -1.5326    
  10  Prefactor     .10000E-03    3.4806        .42789E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    48.692        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.6769        3.0705        .34019E-02   -1.5119    
  13  Prefactor     .10000E-03    1.8093        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .72547        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .25557        1.6429        .29777E-01   -1.5607    
  16  Prefactor     4.3640        4.2280        .48201E-02   -1.5290    
  17  norm          .67448        .28263        .53324E-02   -1.5544    
  18  norm          5.7319        4.5700        .41943E-02   -1.5229    
  19  Prefactor     17.910        10.416        .23659E-02   -1.4861    
  20  Prefactor     10.457        18.889        .30964E-02   -1.5061    
  21  Prefactor     .10000E-03    47.994        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.3927        8.9538        .92067E-02   -1.5472    
  23  Prefactor     .10000E-03    2.2561        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.5761        .67067E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    15.237        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.7632        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     8.6690        12.393        .34035E-02   -1.5119    
  28  norm          .73600        32.646        .12215E-01   -1.5536    
  29  norm          3.5227        18.610        .53883E-02   -1.5333    
  30  Normalizat    .76301        .17375        .43127E-01   -1.0146    
  31  Prefactor     1.1403        .19992        .56298E-01   -.88188    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23967e-08
Minuit parameter uncertainties:
  1  0.00406665
  2  0.000484262
  3  5.08914e-05
  4  0.955194
  5  0.000424645
  6  6.67894e-06
  7  0.0030425
  8  0.00111369
  9  1.44986
  10  6.61627e-05
  11  0.00125264
  12  3.07054
  13  5.80084e-06
  14  6.98716e-06
  15  1.29575
  16  4.22824
  17  0.282631
  18  4.57028
  19  10.4167
  20  18.9001
  21  0.000676842
  22  7.06377
  23  9.80385e-06
  24  0.000126299
  25  1.59115e-05
  26  1.22057e-05
  27  12.3966
  28  9.80866
  29  16.2009
  30  0.173878
  31  0.200054
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  8.677e+00  3.071e+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.140e+00  2.001e-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.630e-01  1.739e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 43.55
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 7.56e-08 +/- 2.67e-08
Energy Flux (Fixed Index): 6.73e-05 +/- 2.38e-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) = 5226.50045104
delta logL = 1.09536707847

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5226.49949697
delta logL = 1.09632114868

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.8548       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4828       1.0000          .0000       5.0000    
     3 'Normalizat'    .77874       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1328       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=   5226.499     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      213 TOTAL
                     EDM=   .66E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.8552        3.1595        .33674E-02   -.16937E-03
   2  alpha         1.4831        .22880        .16371       -.17237E-04
   3  Normalizat    .77868        .16626        .43332E-01    .14912E-04
   4  Prefactor     1.1329        .19734        .56478E-01    .49202E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 8.85517
  alpha      = 1.48309
  Normalizat = 0.778684
  Prefactor  = 1.13294
 **********
 **   18 **HESSE 
 **********

 FCN=   5226.499     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.8552        3.2331        .74680E-04   -1.5113    
   2  alpha         1.4831        .24025        .70551E-02   -.41891    
   3  Normalizat    .77868        .19553        .25036E-03   -1.0086    
   4  Prefactor     1.1329        .23220        .24973E-03   -.88421    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14625e-12
Minuit parameter uncertainties:
  1  3.23313
  2  0.240694
  3  0.195705
  4  0.23241
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/460071': 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) = 5226.49949589
delta logL = 1.09632222824

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  8.855e+00  3.233e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.483e+00  2.407e-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.133e+00  2.324e-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.787e-01  1.957e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 45.76
Ra Dec: 184.476 30.118
Photon Index (Free Index): 1.48 +/- 0.24
Photon Flux (Free Index): 5.45e-08 +/- 2.30e-08
Energy Flux (Free Index): 1.35e-04 +/- 8.18e-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/460071/cmap_HighResolution_491529601_491788801_4FGL_J1217.9+3007_daily_bin973.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.56e-08', energy_flux2='1.35e-04', photon_flux_error='2.67e-08', dlogl='1.10e+00', energy_flux='6.73e-05', photon_flux2='5.45e-08', job_status='DONE', time_completed='2021-09-05 06:37:29.556599', photon_index_error2='0.24', photon_index2='1.48', ts='43.55', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='8.18e-05', EG='0.76', time_epoch_completed='1630849049.56', return_code='0', job_id='460071', GAL2='1.13', EG2='0.78', return_code2='0', energy_flux_error='2.38e-05', photon_flux_error2='2.30e-08', ts2='45.76', photon_index='1.85' WHERE bin_id='973' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:37:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 460071: <4FGL_J1217.9+3007_daily_bin973> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin973 184.476 30.1177 491529601 491788801 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 :                                   652.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   714 sec.
    Turnaround time :                            715 sec.

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

