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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin954
RA = 184.476, Dec = 30.1177
tmin = 486604801, tmax = 486864001
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='460043', job_status='RUN', time_executed='2021-09-05 06:26:32.818065', time_epoch_executed='1630848392.82' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='954'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/460043

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/460043/ft1_4FGL_J1217.9+3007_daily_bin954.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/460043/ft2_4FGL_J1217.9+3007_daily_bin954.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/460043/ft1_4FGL_J1217.9+3007_daily_bin954.fits outfile=/scratch/kocevski/460043/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin954.fits ra=184.476 dec=30.1177 rad=12.0 tmin=486604801.0 tmax=486864001.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.60
user 3.38
sys 0.20

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/460043/ft1_filtered_4FGL_J1217.9+3007_daily_bin954.fits evtable="EVENTS" scfile=/scratch/kocevski/460043/ft2_4FGL_J1217.9+3007_daily_bin954.fits sctable="SC_DATA" expcube=/scratch/kocevski/460043/ltcube_486604801_486864001_4FGL_J1217.9+3007_daily_bin954.fits outfile=/scratch/kocevski/460043/expmap_486604801_486864001_4FGL_J1217.9+3007_daily_bin954.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/460043/ltcube_486604801_486864001_4FGL_J1217.9+3007_daily_bin954.fits
.....................!
real 192.19
user 185.46
sys 4.61

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/460043/ft1_filtered_4FGL_J1217.9+3007_daily_bin954.fits scfile=/scratch/kocevski/460043/ft2_4FGL_J1217.9+3007_daily_bin954.fits outfile=/scratch/kocevski/460043/cmap_486604801_486864001_4FGL_J1217.9+3007_daily_bin954.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.60
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.517       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.8897       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.2069       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.8385       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.1762       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.3608       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.8952       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .55146       1.0000         .10000E-03   10000.    
    18 'norm      '    4.0513       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.2247       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.255       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .57058       1.0000         .10000E-03   10000.    
    25 'Prefactor '    35.498       1.0000         .10000E-03   10000.    
    26 'norm      '    1.5356       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    2.3768       1.0000         .10000E-03   10000.    
    29 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3173       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .98756       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=   6562.825     FROM MIGRAD    STATUS=CONVERGED    806 CALLS     4227 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.518        23.266        .56718E-06    .29620E-04
   2  Prefactor     .10000E-03    9.7082       -.24690E-07** at limit **
   3  Prefactor     .10000E-03    2.8999       -.59720E-07** at limit **
   4  norm          .10000E-03    .43416       -.41612E-07** at limit **
   5  Prefactor     .10000E-03    24.280       -.64602E-07** at limit **
   6  Prefactor     4.8898        2.5763        .92037E-07    .15230E-03
   7  Prefactor     .10000E-03    10.541       -.45306E-07** at limit **
   8  Prefactor     .10000E-03    14.924       -.19811E-07** at limit **
   9  norm          2.2070        1.2841        .80579E-07    .74957E-04
  10  Prefactor     5.8385        5.6028        .14513E-05   -.16239E-03
  11  Prefactor     .10000E-03    18.591       -.72546E-07** at limit **
  12  norm          8.1764        3.2546        .21028E-08    .10943E-03
  13  Prefactor     6.3615        6.2581        .10383E-06   -.40461E-04
  14  Prefactor     .10000E-03    1.0108        .19383E-07** at limit **
  15  Prefactor     2.8953        2.4516       -.67116E-07   -.12645E-03
  16  Prefactor     .10000E-03    1.8383       -.20262E-07** at limit **
  17  norm          .55146        .24709        .14536E-07   -.28654E-04
  18  norm          4.0513        3.4331        .12417E-07   -.15712E-04
  19  Prefactor     2.2247        6.4739        .58490E-05   -.23604E-03
  20  Prefactor     .10000E-03    10.591       -.42260E-07** at limit **
  21  Prefactor     17.311        94.667       -.12397E-04   -.16202E-04
  22  Prefactor     .10000E-03    2.6609       -.24178E-07** at limit **
  23  Prefactor     .10000E-03    7.2507       -.18062E-06** at limit **
  24  norm          .57141        5.1720       -.23107E-06   -.22057E-03
  25  Prefactor     35.495        31.842       -.32088E-05   -.75112E-03
  26  norm          1.5356        1.6240       -.73995E-08   -.10722E-04
  27  Prefactor     .10000E-03    33.014       -.26109E-06** at limit **
  28  norm          2.3777        3.8408        .15156E-05   -.14090E-02
  29  norm          .10000E-03    9.1943        .32474E-06** at limit **
  30  Normalizat    1.3171        .19240       -.17572E-05   -.61570E-03
  31  Prefactor     .98788        .20819        .62021E-07   -.38754E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.5183
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.88978
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.20704
  Prefactor  = 5.83847
  Prefactor  = 0.0001
  norm       = 8.17644
  Prefactor  = 6.36152
  Prefactor  = 0.0001
  Prefactor  = 2.89527
  Prefactor  = 0.0001
  norm       = 0.55146
  norm       = 4.05132
  Prefactor  = 2.22473
  Prefactor  = 0.0001
  Prefactor  = 17.311
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.571409
  Prefactor  = 35.4946
  norm       = 1.53557
  Prefactor  = 0.0001
  norm       = 2.37774
  norm       = 0.0001
  Normalizat = 1.31707
  Prefactor  = 0.987876
 **********
 **   18 **HESSE 
 **********

 FCN=   6562.825     FROM HESSE     STATUS=OK           622 CALLS     4849 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.518        23.282        .86348E-04   -1.4780    
   2  Prefactor     .10000E-03    9.7250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.9176        .13468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .44521        .10421E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    24.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.8898        2.5750        .89848E-04   -1.5266    
   7  Prefactor     .10000E-03    10.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.2070        1.2818        .67027E-04   -1.5411    
  10  Prefactor     5.8385        5.6012        .83104E-03   -1.5225    
  11  Prefactor     .10000E-03    18.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.1764        3.2445        .87886E-04   -1.5136    
  13  Prefactor     6.3615        6.2651        .15915E-03   -1.5203    
  14  Prefactor     .10000E-03    2.0595        .15774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.8953        2.4425        .10962E-03   -1.5368    
  16  Prefactor     .10000E-03    1.8418        .10725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .55146        .24618        .25898E-04   -1.5559    
  18  norm          4.0513        3.4310        .13391E-03   -1.5305    
  19  Prefactor     2.2247        6.4891        .13784E-02   -1.5410    
  20  Prefactor     .10000E-03    10.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     17.311        96.102        .96419E-04   -1.4876    
  22  Prefactor     .10000E-03    2.6689        .12906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.3935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .57141        10.037        .30104E-02   -1.5557    
  25  Prefactor     35.495        32.189        .67263E-04   -1.4516    
  26  norm          1.5356        1.6368        .10368E-03   -1.5460    
  27  Prefactor     .10000E-03    33.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          2.3777        3.8635        .95805E-03   -1.5400    
  29  norm          .10000E-03    9.3615        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.3171        .22799        .25206E-03   -.83058    
  31  Prefactor     .98788        .24607        .31908E-03   -.93135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.00071e-08
Minuit parameter uncertainties:
  1  23.2917
  2  2.08874e-05
  3  3.46478e-06
  4  8.17556e-07
  5  0.000292651
  6  2.57501
  7  6.27142e-05
  8  8.61238e-05
  9  1.28184
  10  5.60168
  11  9.821e-05
  12  3.24456
  13  6.26579
  14  4.58507e-07
  15  2.44257
  16  7.40954e-07
  17  0.246184
  18  3.4312
  19  6.49112
  20  6.91473e-05
  21  81.7774
  22  1.01582e-06
  23  5.2445e-06
  24  4.79026
  25  32.2045
  26  1.63682
  27  0.000163594
  28  3.86392
  29  1.98012e-05
  30  0.228165
  31  0.24635
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  8.176e+00  3.245e+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:  9.879e-01  2.464e-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.317e+00  2.282e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 38.13
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 7.12e-08 +/- 2.83e-08
Energy Flux (Fixed Index): 6.34e-05 +/- 2.52e-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) = 6562.45545329
delta logL = 0.369286409563

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6562.42803115
delta logL = 0.396708549943

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3464       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5285       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3418       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97595       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=   6562.428     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      217 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3412        3.0092        .36995E-02   -.15836E-03
   2  alpha         1.5276        .29265        .24064       -.34174E-04
   3  Normalizat    1.3416        .18516        .56588E-01    .34890E-04
   4  Prefactor     .97620        .20654        .72546E-01    .42833E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.34121
  alpha      = 1.52761
  Normalizat = 1.3416
  Prefactor  = 0.976202
 **********
 **   18 **HESSE 
 **********

 FCN=   6562.428     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3412        3.3538        .87328E-04   -1.5166    
   2  alpha         1.5276        .34704        .99613E-02   -.39950    
   3  Normalizat    1.3416        .21846        .25023E-03   -.82333    
   4  Prefactor     .97620        .24358        .32097E-03   -.93527    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.76319e-10
Minuit parameter uncertainties:
  1  3.35386
  2  0.348368
  3  0.218612
  4  0.243853
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/460043': 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) = 6562.42802749
delta logL = 0.396712210116

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  7.341e+00  3.354e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.528e+00  3.484e-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:  9.762e-01  2.439e-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.342e+00  2.186e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 38.95
Ra Dec: 184.476 30.118
Photon Index (Free Index): 1.53 +/- 0.35
Photon Flux (Free Index): 4.65e-08 +/- 2.83e-08
Energy Flux (Free Index): 1.01e-04 +/- 7.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/460043/cmap_HighResolution_486604801_486864001_4FGL_J1217.9+3007_daily_bin954.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.12e-08', energy_flux2='1.01e-04', photon_flux_error='2.83e-08', dlogl='3.97e-01', energy_flux='6.34e-05', photon_flux2='4.65e-08', job_status='DONE', time_completed='2021-09-05 06:40:49.899904', photon_index_error2='0.35', photon_index2='1.53', ts='38.13', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='7.16e-05', EG='1.32', time_epoch_completed='1630849249.9', return_code='0', job_id='460043', GAL2='0.98', EG2='1.34', return_code2='0', energy_flux_error='2.52e-05', photon_flux_error2='2.83e-08', ts2='38.95', photon_index='1.85' WHERE bin_id='954' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:40:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 460043: <4FGL_J1217.9+3007_daily_bin954> in cluster <slac> Done

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

Your job looked like:

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

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

