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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin936
RA = 184.476, Dec = 30.1177
tmin = 481939201, tmax = 482198401
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='460016', job_status='RUN', time_executed='2021-09-05 06:26:32.957593', time_epoch_executed='1630848392.96' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='936'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/460016

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/460016/ft1_4FGL_J1217.9+3007_daily_bin936.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/460016/ft2_4FGL_J1217.9+3007_daily_bin936.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/460016/ft1_4FGL_J1217.9+3007_daily_bin936.fits outfile=/scratch/kocevski/460016/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin936.fits ra=184.476 dec=30.1177 rad=12.0 tmin=481939201.0 tmax=482198401.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.67
user 3.35
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/460016/ft1_filtered_4FGL_J1217.9+3007_daily_bin936.fits" evtable="EVENTS" scfile=/scratch/kocevski/460016/ft2_4FGL_J1217.9+3007_daily_bin936.fits sctable="SC_DATA" outfile=/scratch/kocevski/460016/ltcube_481939201_482198401_4FGL_J1217.9+3007_daily_bin936.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/460016/ft2_4FGL_J1217.9+3007_daily_bin936.fits
.....................!
real 12.40
user 12.00
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/460016/ft1_filtered_4FGL_J1217.9+3007_daily_bin936.fits evtable="EVENTS" scfile=/scratch/kocevski/460016/ft2_4FGL_J1217.9+3007_daily_bin936.fits sctable="SC_DATA" expcube=/scratch/kocevski/460016/ltcube_481939201_482198401_4FGL_J1217.9+3007_daily_bin936.fits outfile=/scratch/kocevski/460016/expmap_481939201_482198401_4FGL_J1217.9+3007_daily_bin936.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/460016/ltcube_481939201_482198401_4FGL_J1217.9+3007_daily_bin936.fits
.....................!
real 192.47
user 186.58
sys 4.46

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/460016/ft1_filtered_4FGL_J1217.9+3007_daily_bin936.fits scfile=/scratch/kocevski/460016/ft2_4FGL_J1217.9+3007_daily_bin936.fits outfile=/scratch/kocevski/460016/cmap_481939201_482198401_4FGL_J1217.9+3007_daily_bin936.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.81
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/460016/ft1_filtered_4FGL_J1217.9+3007_daily_bin936.fits scfile=/scratch/kocevski/460016/ft2_4FGL_J1217.9+3007_daily_bin936.fits outfile=/scratch/kocevski/460016/cmap_HighResolution_481939201_482198401_4FGL_J1217.9+3007_daily_bin936.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/460016/ft1_filtered_4FGL_J1217.9+3007_daily_bin936.fits evtable="EVENTS" scfile=/scratch/kocevski/460016/ft2_4FGL_J1217.9+3007_daily_bin936.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/460016/Model_4FGL_J1217.9+3007_daily_bin936.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/460016/ft1_filtered_4FGL_J1217.9+3007_daily_bin936.fits.....................!
real 55.22
user 53.11
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2978       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .32286E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10817E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.7629       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0811       1.0000         .10000E-03   10000.    
    12 'norm      '    9.0903       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5572       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.1732       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.7428       1.0000         .10000E-03   10000.    
    17 'norm      '    .32893       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    91.059       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.2307       1.0000         .10000E-03   10000.    
    24 'norm      '    22.179       1.0000         .10000E-03   10000.    
    25 'Prefactor '    53.801       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    30.320       1.0000         .10000E-03   10000.    
    28 'norm      '    .73908       1.0000         .10000E-03   10000.    
    29 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3192       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .79915       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=   6314.567     FROM MIGRAD    STATUS=CONVERGED    840 CALLS     4302 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.4229       -.34547E-07** at limit **
   2  Prefactor     .10000E-03    4.6899       -.53933E-07** at limit **
   3  Prefactor     .10000E-03    5.6390       -.20150E-06** at limit **
   4  norm          .10000E-03    .58353       -.15077E-06** at limit **
   5  Prefactor     .10000E-03    8.0251       -.61108E-07** at limit **
   6  Prefactor     2.2981        2.1483        .84689E-07   -.10596E-03
   7  Prefactor     .10002E-03    26.996        .31425E-06** at limit **
   8  Prefactor     .10000E-03    153.88       -.43521E-06** at limit **
   9  norm          2.7630        1.2787        .27916E-07   -.22934E-03
  10  Prefactor     .10000E-03    2.2600       -.90708E-07** at limit **
  11  Prefactor     1.1376        36.299        .28583E-06   -.78444E-04
  12  norm          9.0902        4.1390        .16325E-06   -.29194E-03
  13  Prefactor     1.5595        11.890        .17439E-05   -.10901E-03
  14  Prefactor     8.1730        3.7624       -.49477E-07   -.10080E-03
  15  Prefactor     .10000E-03    1.1222       -.17747E-07** at limit **
  16  Prefactor     7.7422        6.1518        .33632E-07   -.29699E-04
  17  norm          .32895        .21082        .57243E-08   -.11900E-03
  18  norm          .10000E-03    2.2134       -.18976E-07** at limit **
  19  Prefactor     .10000E-03    3.9800        .92334E-07** at limit **
  20  Prefactor     .10000E-03    7.1172       -.28076E-07** at limit **
  21  Prefactor     91.198        130.63        .80135E-06    .26947E-04
  22  Prefactor     .10000E-03    2.2008       -.12571E-07** at limit **
  23  Prefactor     4.2297        10.049        .46156E-06   -.70588E-04
  24  norm          22.182        10.452       -.15787E-06   -.11091E-03
  25  Prefactor     53.804        42.733       -.21677E-06   -.44449E-04
  26  norm          .10000E-03    .99209        .73693E-08** at limit **
  27  Prefactor     30.332        37.861       -.37935E-06   -.26376E-04
  28  norm          .73204        2.0154        .15601E-05    .51653E-03
  29  norm          .10000E-03    3.5619       -.12695E-05** at limit **
  30  Normalizat    1.3194        .20444       -.12706E-05    .26553E-04
  31  Prefactor     .79888        .21294        .16415E-05   -.12839E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.29811
  Prefactor  = 0.000100018
  Prefactor  = 0.0001
  norm       = 2.76298
  Prefactor  = 0.0001
  Prefactor  = 1.13764
  norm       = 9.09016
  Prefactor  = 1.55951
  Prefactor  = 8.17297
  Prefactor  = 0.0001
  Prefactor  = 7.74217
  norm       = 0.328946
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 91.1978
  Prefactor  = 0.0001
  Prefactor  = 4.2297
  norm       = 22.1817
  Prefactor  = 53.8038
  norm       = 0.0001
  Prefactor  = 30.3322
  norm       = 0.732037
  norm       = 0.000100001
  Normalizat = 1.31938
  Prefactor  = 0.798876
 **********
 **   18 **HESSE 
 **********

 FCN=   6314.567     FROM HESSE     STATUS=OK           632 CALLS     4934 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.4275        .18073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.6979        .16806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.7873        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .87815        .11677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.0420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.2981        2.1340        .10679E-03   -1.5405    
   7  Prefactor     .10002E-03    193.97        .73229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    156.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.7630        1.2756        .58621E-04   -1.5376    
  10  Prefactor     .10000E-03    2.2912        .11659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.1376        275.04        .82704E-02   -1.5495    
  12  norm          9.0902        4.1349        .48581E-03   -1.5105    
  13  Prefactor     1.5595        11.467        .34110E-03   -1.5458    
  14  Prefactor     8.1730        3.7691        .93463E-04   -1.5136    
  15  Prefactor     .10000E-03    1.1404        .82096E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.7422        6.1381        .14411E-03   -1.5151    
  17  norm          .32895        .20890        .27930E-04   -1.5593    
  18  norm          .10000E-03    2.2343        .11528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.9850        .15479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.1185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     91.198        130.63        .21055E-03   -1.3795    
  22  Prefactor     .10000E-03    2.2040        .11513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.2297        9.8878        .19591E-03   -1.5297    
  24  norm          22.182        10.473        .85052E-04   -1.4766    
  25  Prefactor     53.804        42.786        .54683E-04   -1.4240    
  26  norm          .10000E-03    .99333        .77296E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     30.332        37.469        .72763E-04   -1.4606    
  28  norm          .73204        2.0885        .20527E-02   -1.5537    
  29  norm          .10000E-03    7.6358        .27839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.3194        .23941        .24220E-03   -.82990    
  31  Prefactor     .79888        .24946        .33247E-03   -.99770    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1097e-09
Minuit parameter uncertainties:
  1  3.61176e-06
  2  2.59713e-06
  3  1.14906e-05
  4  1.39654e-05
  5  5.6256e-06
  6  2.13409
  7  0.00376431
  8  0.000141452
  9  1.27559
  10  3.41136e-06
  11  35.5424
  12  4.13501
  13  8.45951
  14  3.76921
  15  6.34255e-07
  16  6.13862
  17  0.208897
  18  1.57158e-08
  19  4.68169e-06
  20  3.31318e-06
  21  131.044
  22  3.32993e-07
  23  9.89165
  24  10.4734
  25  42.8106
  26  1.31567e-07
  27  37.4984
  28  2.08866
  29  0.000153635
  30  0.239615
  31  0.249811
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  9.090e+00  4.135e+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.989e-01  2.498e-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.319e+00  2.396e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.22
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 7.92e-08 +/- 3.60e-08
Energy Flux (Fixed Index): 7.05e-05 +/- 3.21e-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) = 6314.48593769
delta logL = 0.0807188765357

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6314.47589509
delta logL = 0.0907614758462

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.5623       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6865       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3343       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79236       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=   6314.476     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      212 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.5652        3.9607        .34248E-02    .43869E-03
   2  alpha         1.6869        .33464        .26279       -.97461E-04
   3  Normalizat    1.3342        .18925        .54556E-01    .54390E-04
   4  Prefactor     .79244        .20705        .75446E-01    .24607E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.56522
  alpha      = 1.68691
  Normalizat = 1.33421
  Prefactor  = 0.792436
 **********
 **   18 **HESSE 
 **********

 FCN=   6314.476     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.5652        4.2158        .99997E-04   -1.5123    
   2  alpha         1.6869        .39662        .10355E-01   -.33126    
   3  Normalizat    1.3342        .22667        .24123E-03   -.82551    
   4  Prefactor     .79244        .24732        .33394E-03   -1.0001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63582e-10
Minuit parameter uncertainties:
  1  4.21593
  2  0.398507
  3  0.226844
  4  0.247671
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/460016': 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) = 6314.47589438
delta logL = 0.0907621812576

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  8.565e+00  4.216e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.687e+00  3.985e-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.924e-01  2.477e-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.334e+00  2.268e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.69
Ra Dec: 184.476 30.118
Photon Index (Free Index): 1.69 +/- 0.40
Photon Flux (Free Index): 6.21e-08 +/- 4.65e-08
Energy Flux (Free Index): 8.54e-05 +/- 5.67e-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/460016/cmap_HighResolution_481939201_482198401_4FGL_J1217.9+3007_daily_bin936.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.92e-08', energy_flux2='8.54e-05', photon_flux_error='3.60e-08', dlogl='9.08e-02', energy_flux='7.05e-05', photon_flux2='6.21e-08', job_status='DONE', time_completed='2021-09-05 06:40:40.602428', photon_index_error2='0.40', photon_index2='1.69', ts='17.22', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='5.67e-05', EG='1.32', time_epoch_completed='1630849240.6', return_code='0', job_id='460016', GAL2='0.79', EG2='1.33', return_code2='0', energy_flux_error='3.21e-05', photon_flux_error2='4.65e-08', ts2='17.69', photon_index='1.85' WHERE bin_id='936' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:40:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 460016: <4FGL_J1217.9+3007_daily_bin936> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin936 184.476 30.1177 481939201 482198401 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 :                                   836.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             335.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            910 sec.

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

