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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin1115
RA = 184.476, Dec = 30.1177
tmin = 528336001, tmax = 528595201
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='460286', job_status='RUN', time_executed='2021-09-05 06:27:56.665458', time_epoch_executed='1630848476.67' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='1115'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/460286

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/460286/ft1_4FGL_J1217.9+3007_daily_bin1115.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/460286/ft2_4FGL_J1217.9+3007_daily_bin1115.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/460286/ft1_4FGL_J1217.9+3007_daily_bin1115.fits outfile=/scratch/kocevski/460286/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin1115.fits ra=184.476 dec=30.1177 rad=12.0 tmin=528336001.0 tmax=528595201.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.47
user 3.22
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/460286/ft2_4FGL_J1217.9+3007_daily_bin1115.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/460286/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin1115.fits evtable="EVENTS" outfile="/scratch/kocevski/460286/ft1_filtered_4FGL_J1217.9+3007_daily_bin1115.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.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/460286/ft1_filtered_4FGL_J1217.9+3007_daily_bin1115.fits evtable="EVENTS" scfile=/scratch/kocevski/460286/ft2_4FGL_J1217.9+3007_daily_bin1115.fits sctable="SC_DATA" expcube=/scratch/kocevski/460286/ltcube_528336001_528595201_4FGL_J1217.9+3007_daily_bin1115.fits outfile=/scratch/kocevski/460286/expmap_528336001_528595201_4FGL_J1217.9+3007_daily_bin1115.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/460286/ltcube_528336001_528595201_4FGL_J1217.9+3007_daily_bin1115.fits
.....................!
real 189.84
user 185.40
sys 4.04

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/460286/ft1_filtered_4FGL_J1217.9+3007_daily_bin1115.fits scfile=/scratch/kocevski/460286/ft2_4FGL_J1217.9+3007_daily_bin1115.fits outfile=/scratch/kocevski/460286/cmap_528336001_528595201_4FGL_J1217.9+3007_daily_bin1115.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/460286/ft1_filtered_4FGL_J1217.9+3007_daily_bin1115.fits scfile=/scratch/kocevski/460286/ft2_4FGL_J1217.9+3007_daily_bin1115.fits outfile=/scratch/kocevski/460286/cmap_HighResolution_528336001_528595201_4FGL_J1217.9+3007_daily_bin1115.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    14.737       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15668E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.0119       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    66.121       1.0000         .10000E-03   10000.    
     9 'norm      '    11.596       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .22703E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    33.773       1.0000         .10000E-03   10000.    
    12 'norm      '    8.0632       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.9125       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.6525       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .29344       1.0000         .10000E-03   10000.    
    18 'norm      '    .31279       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    31.183       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.7101       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.6566       1.0000         .10000E-03   10000.    
    24 'norm      '    2.6992       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .91552       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    3.7135       1.0000         .10000E-03   10000.    
    29 'norm      '    .77316       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2475       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .68851       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=   5882.656     FROM MIGRAD    STATUS=CONVERGED    841 CALLS     4216 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.9754        .57867E-07** at limit **
   2  Prefactor     14.737        10.793        .15641E-06    .61951E-05
   3  Prefactor     .10000E-03    7.8800        .41435E-05** at limit **
   4  norm          7.0120        2.2158        .41993E-07   -.44387E-05
   5  Prefactor     .10000E-03    11.407       -.12146E-06** at limit **
   6  Prefactor     .10000E-03    .85285        .38865E-07** at limit **
   7  Prefactor     .10000E-03    29.542       -.19101E-05** at limit **
   8  Prefactor     66.121        69.361        .10381E-06   -.78833E-06
   9  norm          11.596        2.2233        .25338E-07    .89289E-04
  10  Prefactor     .10001E-03    2.2741       -.72201E-08** at limit **
  11  Prefactor     33.761        40.731        .20919E-05   -.33757E-04
  12  norm          8.0628        3.2696       -.36597E-07   -.19320E-03
  13  Prefactor     7.9121        6.9673       -.14614E-06   -.15869E-04
  14  Prefactor     .10000E-03    1.3830       -.37009E-07** at limit **
  15  Prefactor     1.6515        1.5788       -.83789E-07   -.36488E-03
  16  Prefactor     .10000E-03    4.9510       -.26028E-07** at limit **
  17  norm          .29343        .31631        .57907E-07    .70921E-04
  18  norm          .35808        3.0263        .44837E-06   -.14987E-03
  19  Prefactor     .10000E-03    26.825        .44901E-06** at limit **
  20  Prefactor     .10000E-03    5.6763       -.22084E-09** at limit **
  21  Prefactor     31.186        46.967       -.36534E-06   -.12849E-04
  22  Prefactor     4.7108        6.6763        .19601E-05    .24472E-03
  23  Prefactor     3.6577        4.8770        .62804E-07   -.11005E-03
  24  norm          2.6993        2.7064       -.14509E-06   -.16831E-03
  25  Prefactor     .10000E-03    19.796        .72516E-06** at limit **
  26  norm          .91541        2.4652        .16139E-06    .40853E-04
  27  Prefactor     .10000E-03    13.168        .39014E-06** at limit **
  28  norm          3.7030        5.2113        .14710E-05   -.15352E-04
  29  norm          .79218        15.134       -.25290E-06    .96938E-04
  30  Normalizat    1.2478        .19032        .19243E-06   -.19739E-03
  31  Prefactor     .68804        .20566       -.16979E-05   -.20648E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 14.737
  Prefactor  = 0.000100003
  norm       = 7.01204
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 66.1214
  norm       = 11.5963
  Prefactor  = 0.000100009
  Prefactor  = 33.7605
  norm       = 8.06279
  Prefactor  = 7.91205
  Prefactor  = 0.0001
  Prefactor  = 1.65154
  Prefactor  = 0.0001
  norm       = 0.29343
  norm       = 0.358077
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 31.1861
  Prefactor  = 4.71082
  Prefactor  = 3.6577
  norm       = 2.69932
  Prefactor  = 0.0001
  norm       = 0.915406
  Prefactor  = 0.0001
  norm       = 3.70296
  norm       = 0.792177
  Normalizat = 1.24776
  Prefactor  = 0.688043
 **********
 **   18 **HESSE 
 **********

 FCN=   5882.656     FROM HESSE     STATUS=OK           642 CALLS     4858 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.9784        .16707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.737        10.777        .10433E-03   -1.4940    
   3  Prefactor     .10000E-03    16.477        .31399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.0120        2.2252        .57676E-04   -1.5178    
   5  Prefactor     .10000E-03    11.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .87348        .13825E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    29.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     66.121        69.607        .49356E-04   -1.4080    
   9  norm          11.596        2.2276        .47509E-04   -1.5027    
  10  Prefactor     .10001E-03    4.9064        .38704E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     33.761        41.082        .68954E-04   -1.4545    
  12  norm          8.0628        3.2654        .85218E-04   -1.5140    
  13  Prefactor     7.9121        6.9682        .14254E-03   -1.5145    
  14  Prefactor     .10000E-03    1.4306        .17590E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.6515        1.5902        .90758E-04   -1.5451    
  16  Prefactor     .10000E-03    4.9958        .16644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .29343        .30067        .40775E-03   -1.5600    
  18  norm          .35808        15.957        .24741E-02   -1.5588    
  19  Prefactor     .10000E-03    27.736        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.6773        .17847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     31.186        46.945        .71752E-04   -1.4590    
  22  Prefactor     4.7108        6.8283        .92707E-03   -1.5274    
  23  Prefactor     3.6577        4.8657        .18943E-03   -1.5325    
  24  norm          2.6993        2.7131        .12234E-03   -1.5379    
  25  Prefactor     .10000E-03    19.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .91541        1.9896        .19245E-02   -1.5517    
  27  Prefactor     .10000E-03    13.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          3.7030        5.3675        .79503E-03   -1.5323    
  29  norm          .79218        14.135        .43011E-03   -1.5530    
  30  Normalizat    1.2478        .22477        .23316E-03   -.85139    
  31  Prefactor     .68804        .24122        .34084E-03   -1.0400    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.00997e-10
Minuit parameter uncertainties:
  1  1.70808e-06
  2  10.7788
  3  0.000454153
  4  2.22519
  5  2.22918e-05
  6  2.04665e-06
  7  0.000162815
  8  69.6932
  9  2.22761
  10  0.000429005
  11  41.1167
  12  3.2655
  13  6.96889
  14  2.11434e-06
  15  1.59022
  16  4.60113e-06
  17  0.300675
  18  4.78146
  19  0.000280974
  20  8.5552e-07
  21  47.0009
  22  6.82941
  23  4.86626
  24  2.71319
  25  7.2239e-05
  26  1.98971
  27  7.03471e-05
  28  5.3682
  29  6.69397
  30  0.224942
  31  0.241587
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  8.063e+00  3.265e+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:  6.880e-01  2.416e-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.248e+00  2.249e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 39.15
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 7.02e-08 +/- 2.84e-08
Energy Flux (Fixed Index): 6.25e-05 +/- 2.53e-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) = 5881.67444986
delta logL = 0.981165588348

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5881.60402484
delta logL = 1.051590608

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.7250       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3599       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2799       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67044       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=   5881.604     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      216 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.7265        2.9542        .38682E-02   -.10990E-03
   2  alpha         1.3600        .26686        .20464       -.40968E-04
   3  Normalizat    1.2799        .18035        .52221E-01   -.12999E-06
   4  Prefactor     .67051        .20224        .77963E-01    .21478E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.72651
  alpha      = 1.36001
  Normalizat = 1.27989
  Prefactor  = 0.670508
 **********
 **   18 **HESSE 
 **********

 FCN=   5881.604     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.7265        3.3771        .82718E-04   -1.5189    
   2  alpha         1.3600        .31628        .87213E-02   -.47349    
   3  Normalizat    1.2799        .20976        .23089E-03   -.84169    
   4  Prefactor     .67051        .23472        .34520E-03   -1.0469    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37971e-12
Minuit parameter uncertainties:
  1  3.37715
  2  0.317354
  3  0.209899
  4  0.235068
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/460286': 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) = 5881.60402464
delta logL = 1.05159081123

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  6.727e+00  3.377e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.360e+00  3.174e-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:  6.705e-01  2.351e-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.280e+00  2.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 41.27
Ra Dec: 184.476 30.118
Photon Index (Free Index): 1.36 +/- 0.32
Photon Flux (Free Index): 3.90e-08 +/- 2.21e-08
Energy Flux (Free Index): 1.40e-04 +/- 1.01e-04

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/460286/cmap_HighResolution_528336001_528595201_4FGL_J1217.9+3007_daily_bin1115.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.02e-08', energy_flux2='1.40e-04', photon_flux_error='2.84e-08', dlogl='1.05e+00', energy_flux='6.25e-05', photon_flux2='3.90e-08', job_status='DONE', time_completed='2021-09-05 06:41:23.814507', photon_index_error2='0.32', photon_index2='1.36', ts='39.15', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', energy_flux_error2='1.01e-04', EG='1.25', time_epoch_completed='1630849283.81', return_code='0', job_id='460286', GAL2='0.67', EG2='1.28', return_code2='0', energy_flux_error='2.53e-05', photon_flux_error2='2.21e-08', ts2='41.27', photon_index='1.85' WHERE bin_id='1115' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:41:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 460286: <4FGL_J1217.9+3007_daily_bin1115> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin1115 184.476 30.1177 528336001 528595201 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 :                                   801.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            936 sec.

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

