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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin1200
RA = 184.476, Dec = 30.1177
tmin = 550368001, tmax = 550627201
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='461324', job_status='RUN', time_executed='2021-09-05 06:31:45.584194', time_epoch_executed='1630848705.58' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='1200'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/461324

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/461324/ft1_4FGL_J1217.9+3007_daily_bin1200.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/461324/ft2_4FGL_J1217.9+3007_daily_bin1200.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/461324/ft1_4FGL_J1217.9+3007_daily_bin1200.fits outfile=/scratch/kocevski/461324/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin1200.fits ra=184.476 dec=30.1177 rad=12.0 tmin=550368001.0 tmax=550627201.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 4.00
user 3.76
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/461324/ft1_filtered_4FGL_J1217.9+3007_daily_bin1200.fits evtable="EVENTS" scfile=/scratch/kocevski/461324/ft2_4FGL_J1217.9+3007_daily_bin1200.fits sctable="SC_DATA" expcube=/scratch/kocevski/461324/ltcube_550368001_550627201_4FGL_J1217.9+3007_daily_bin1200.fits outfile=/scratch/kocevski/461324/expmap_550368001_550627201_4FGL_J1217.9+3007_daily_bin1200.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/461324/ltcube_550368001_550627201_4FGL_J1217.9+3007_daily_bin1200.fits
.....................!
real 193.90
user 186.13
sys 4.85

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/461324/ft1_filtered_4FGL_J1217.9+3007_daily_bin1200.fits scfile=/scratch/kocevski/461324/ft2_4FGL_J1217.9+3007_daily_bin1200.fits outfile=/scratch/kocevski/461324/cmap_550368001_550627201_4FGL_J1217.9+3007_daily_bin1200.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.55
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/461324/ft1_filtered_4FGL_J1217.9+3007_daily_bin1200.fits scfile=/scratch/kocevski/461324/ft2_4FGL_J1217.9+3007_daily_bin1200.fits outfile=/scratch/kocevski/461324/cmap_HighResolution_550368001_550627201_4FGL_J1217.9+3007_daily_bin1200.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .22766E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.6059       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.177       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11354E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    10.542       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.3875       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4245       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .57982       1.0000         .10000E-03   10000.    
    18 'norm      '    1.7054       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.012       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.3274       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10522E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    16.359       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .18516E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10949E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    5.4636       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3191       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .79445       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=   4601.307     FROM MIGRAD    STATUS=CONVERGED    812 CALLS     4135 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.687        .61122E-06** at limit **
   2  Prefactor     .10060E-03    15.246       -.19724E-05** at limit **
   3  Prefactor     5.6042        6.5574        .49773E-07    .76645E-04
   4  norm          .10000E-03    1.2950        .11673E-06** at limit **
   5  Prefactor     18.181        23.019       -.62515E-06   -.71279E-04
   6  Prefactor     .10000E-03    1.3431        .92763E-06** at limit **
   7  Prefactor     .10000E-03    14.748        .64449E-07** at limit **
   8  Prefactor     .10000E-03    70.380        .35050E-06** at limit **
   9  norm          10.541        2.4778       -.12512E-07   -.15305E-04
  10  Prefactor     .10000E-03    3.8254        .97736E-06** at limit **
  11  Prefactor     .10000E-03    53.561        .13299E-05** at limit **
  12  norm          7.3873        4.2867        .64812E-08   -.20114E-04
  13  Prefactor     .10000E-03    3.7136        .19685E-07** at limit **
  14  Prefactor     2.4245        2.9395        .10817E-06   -.20382E-04
  15  Prefactor     .10000E-03    1.0698       -.49397E-07** at limit **
  16  Prefactor     .10000E-03    2.3330       -.24053E-06** at limit **
  17  norm          .57974        .26629       -.33970E-07   -.12703E-02
  18  norm          1.7047        3.5156        .72625E-05   -.43300E-03
  19  Prefactor     .10000E-03    7.0411       -.53298E-06** at limit **
  20  Prefactor     .10000E-03    14.535       -.17332E-06** at limit **
  21  Prefactor     16.727        290.25       -.16731E-04   -.11854E-03
  22  Prefactor     7.3261        8.4235        .17908E-05   -.13849E-03
  23  Prefactor     .10000E-03    8.0975        .15144E-06** at limit **
  24  norm          16.371        11.778        .46375E-06    .38831E-04
  25  Prefactor     .10000E-03    73.997        .24361E-06** at limit **
  26  norm          .10000E-03    4.6968        .15226E-06** at limit **
  27  Prefactor     .10000E-03    31.230       -.33704E-06** at limit **
  28  norm          .10000E-03    5.0937       -.48353E-07** at limit **
  29  norm          5.4612        8.0683        .20283E-06   -.42198E-05
  30  Normalizat    1.3196        .23387        .15539E-05   -.32435E-03
  31  Prefactor     .79400        .23871       -.66154E-05   -.69203E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.000100601
  Prefactor  = 5.60418
  norm       = 0.0001
  Prefactor  = 18.1806
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.5405
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 7.38725
  Prefactor  = 0.0001
  Prefactor  = 2.42451
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.579744
  norm       = 1.70468
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.7273
  Prefactor  = 7.3261
  Prefactor  = 0.0001
  norm       = 16.3713
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.46119
  Normalizat = 1.31962
  Prefactor  = 0.794004
 **********
 **   18 **HESSE 
 **********

 FCN=   4601.307     FROM HESSE     STATUS=OK           616 CALLS     4751 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10060E-03    80.439        .50400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.6042        6.5430        .16967E-03   -1.5234    
   4  norm          .10000E-03    1.3000        .75384E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.181        22.916        .93943E-04   -1.4855    
   6  Prefactor     .10000E-03    2.7109        .14960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    70.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          10.541        2.4806        .48859E-04   -1.5059    
  10  Prefactor     .10000E-03    3.9924        .25890E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    53.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.3873        4.2946        .96970E-04   -1.5164    
  13  Prefactor     .10000E-03    3.7152        .12767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.4245        2.9315        .11636E-03   -1.5397    
  15  Prefactor     .10000E-03    1.0781        .68448E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.3401        .10121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .57974        .26482        .22171E-04   -1.5556    
  18  norm          1.7047        3.5271        .89039E-03   -1.5447    
  19  Prefactor     .10000E-03    7.0647        .17577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     16.727        301.26        .97105E-04   -1.4890    
  22  Prefactor     7.3261        8.4283        .74086E-03   -1.5167    
  23  Prefactor     .10000E-03    8.1508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          16.371        11.790        .99024E-04   -1.4899    
  25  Prefactor     .10000E-03    74.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    4.7823        .14348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    31.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    5.1049        .14903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          5.4612        8.0391        .17190E-03   -1.5241    
  30  Normalizat    1.3196        .27724        .25178E-03   -.82983    
  31  Prefactor     .79400        .27870        .33076E-03   -.99950    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.76017e-09
Minuit parameter uncertainties:
  1  0.00020388
  2  0.013926
  3  6.5438
  4  1.14977e-06
  5  22.9274
  6  6.53206e-05
  7  2.93032e-05
  8  0.000216035
  9  2.4806
  10  1.30633e-05
  11  0.000521557
  12  4.29475
  13  2.09396e-06
  14  2.93167
  15  3.32688e-06
  16  2.37812e-05
  17  0.264824
  18  3.52757
  19  1.47741e-05
  20  5.88903e-05
  21  142.821
  22  8.42962
  23  2.71272e-05
  24  11.7918
  25  9.66752e-05
  26  5.99106e-06
  27  0.000182155
  28  1.59045e-05
  29  8.04072
  30  0.27755
  31  0.279197
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  7.387e+00  4.295e+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.940e-01  2.792e-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.320e+00  2.776e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.23
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 6.43e-08 +/- 3.74e-08
Energy Flux (Fixed Index): 5.73e-05 +/- 3.33e-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) = 4601.01434069
delta logL = 0.292206221357

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4600.95653034
delta logL = 0.350016565313

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3289       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5009       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3358       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79084       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=   4600.957     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      216 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3235        3.7500        .39888E-02    .51641E-04
   2  alpha         1.5003        .34266        .23600       -.43824E-04
   3  Normalizat    1.3357        .22329        .56696E-01   -.15330E-03
   4  Prefactor     .79123        .23503        .74946E-01   -.60288E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.32351
  alpha      = 1.50033
  Normalizat = 1.33566
  Prefactor  = 0.791229
 **********
 **   18 **HESSE 
 **********

 FCN=   4600.957     FROM HESSE     STATUS=OK            31 CALLS      247 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3235        4.4010        .97676E-04   -1.5205    
   2  alpha         1.5003        .42568        .98354E-02   -.41137    
   3  Normalizat    1.3357        .26449        .25071E-03   -.82508    
   4  Prefactor     .79123        .27804        .33172E-03   -1.0005    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.43182e-11
Minuit parameter uncertainties:
  1  4.40121
  2  0.428163
  3  0.264757
  4  0.278529
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/461324': 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) = 4600.95652796
delta logL = 0.350018949202

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  6.324e+00  4.401e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.500e+00  4.282e-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.912e-01  2.785e-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.336e+00  2.648e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.97
Ra Dec: 184.476 30.118
Photon Index (Free Index): 1.50 +/- 0.43
Photon Flux (Free Index): 3.93e-08 +/- 3.45e-08
Energy Flux (Free Index): 9.26e-05 +/- 7.94e-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/461324/cmap_HighResolution_550368001_550627201_4FGL_J1217.9+3007_daily_bin1200.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.43e-08', energy_flux2='9.26e-05', photon_flux_error='3.74e-08', dlogl='3.50e-01', energy_flux='5.73e-05', photon_flux2='3.93e-08', job_status='DONE', time_completed='2021-09-05 06:43:08.347002', photon_index_error2='0.43', photon_index2='1.50', ts='19.23', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='7.94e-05', EG='1.32', time_epoch_completed='1630849388.35', return_code='0', job_id='461324', GAL2='0.79', EG2='1.34', return_code2='0', energy_flux_error='3.33e-05', photon_flux_error2='3.45e-08', ts2='19.97', photon_index='1.85' WHERE bin_id='1200' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:43:08 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin1200 184.476 30.1177 550368001 550627201 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 :                                   673.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            769 sec.

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

