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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin1279
RA = 184.476, Dec = 30.1177
tmin = 570844801, tmax = 571104001
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='461445', job_status='RUN', time_executed='2021-09-05 06:32:54.364974', time_epoch_executed='1630848774.37' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='1279'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/461445

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/461445/ft1_4FGL_J1217.9+3007_daily_bin1279.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/461445/ft2_4FGL_J1217.9+3007_daily_bin1279.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/461445/ft1_4FGL_J1217.9+3007_daily_bin1279.fits outfile=/scratch/kocevski/461445/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin1279.fits ra=184.476 dec=30.1177 rad=12.0 tmin=570844801.0 tmax=571104001.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.10
user 2.82
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/461445/ft1_filtered_4FGL_J1217.9+3007_daily_bin1279.fits evtable="EVENTS" scfile=/scratch/kocevski/461445/ft2_4FGL_J1217.9+3007_daily_bin1279.fits sctable="SC_DATA" expcube=/scratch/kocevski/461445/ltcube_570844801_571104001_4FGL_J1217.9+3007_daily_bin1279.fits outfile=/scratch/kocevski/461445/expmap_570844801_571104001_4FGL_J1217.9+3007_daily_bin1279.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/461445/ltcube_570844801_571104001_4FGL_J1217.9+3007_daily_bin1279.fits
.....................!
real 191.19
user 186.58
sys 4.19

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/461445/ft1_filtered_4FGL_J1217.9+3007_daily_bin1279.fits scfile=/scratch/kocevski/461445/ft2_4FGL_J1217.9+3007_daily_bin1279.fits outfile=/scratch/kocevski/461445/cmap_570844801_571104001_4FGL_J1217.9+3007_daily_bin1279.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.58
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/461445/ft1_filtered_4FGL_J1217.9+3007_daily_bin1279.fits scfile=/scratch/kocevski/461445/ft2_4FGL_J1217.9+3007_daily_bin1279.fits outfile=/scratch/kocevski/461445/cmap_HighResolution_570844801_571104001_4FGL_J1217.9+3007_daily_bin1279.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/461445/ft1_filtered_4FGL_J1217.9+3007_daily_bin1279.fits evtable="EVENTS" scfile=/scratch/kocevski/461445/ft2_4FGL_J1217.9+3007_daily_bin1279.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/461445/Model_4FGL_J1217.9+3007_daily_bin1279.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/461445/ft1_filtered_4FGL_J1217.9+3007_daily_bin1279.fits.....................!
real 33.45
user 31.94
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    37.912       1.0000         .10000E-03   10000.    
     4 'norm      '    1.5983       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .90107E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10585E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.7858       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.9007       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.0532       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.5718       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    12.452       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.3162       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    169.25       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.5345       1.0000         .10000E-03   10000.    
    24 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    15.126       1.0000         .10000E-03   10000.    
    26 'norm      '    5.5943       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    1.3325       1.0000         .10000E-03   10000.    
    29 'norm      '    17.394       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0121       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .96360       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3030.867     FROM MIGRAD    STATUS=CONVERGED   1448 CALLS     5400 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    25.443        .18142E-02** at limit **
   2  Prefactor     .10000E-03    20.644        .18142E-02** at limit **
   3  Prefactor     37.916        25.682        .65093E-04    .34581E-04
   4  norm          1.5994        4.3670        .17985E-03    .19659E-03
   5  Prefactor     .10009E-03    111.45        .13918    ** at limit **
   6  Prefactor     .10000E-03    2.9568        .91989E-03** at limit **
   7  Prefactor     .10001E-03    30.152        .18142E-02** at limit **
   8  Prefactor     .10000E-03    136.12        .18142E-02** at limit **
   9  norm          5.7854        3.2944        .69192E-04    .99159E-04
  10  Prefactor     4.9001        8.7369        .90847E-03    .13890E-03
  11  Prefactor     .10000E-03    28.610        .18142E-02** at limit **
  12  norm          5.0533        4.2716        .10008E-03    .42354E-03
  13  Prefactor     .10000E-03    5.9445        .13078E-02** at limit **
  14  Prefactor     .10000E-03    1.3843        .63160E-03** at limit **
  15  Prefactor     2.5719        2.7449        .90060E-04    .77003E-05
  16  Prefactor     .10000E-03    7.1904        .14339E-02** at limit **
  17  norm          .10000E-03    .15551        .39506E-03** at limit **
  18  norm          12.453        6.4100        .96954E-04    .90641E-04
  19  Prefactor     9.3166        9.0386        .13130E-03   -.10044E-04
  20  Prefactor     .10000E-03    8.0684        .15273E-02** at limit **
  21  Prefactor     169.25        112.93        .31011E-04   -.36331E-04
  22  Prefactor     .10000E-03    3.0910        .94477E-03** at limit **
  23  Prefactor     7.5326        7.5318        .14466E-03    .18948E-03
  24  norm          .10000E-03    7.5911        .29228E-03** at limit **
  25  Prefactor     15.139        32.941        .10298E-03   -.75179E-04
  26  norm          5.5942        4.5053        .10131E-03    .24014E-04
  27  Prefactor     .10000E-03    62.219        .18142E-02** at limit **
  28  norm          1.3241        12.761        .24958E-03    .38457E-03
  29  norm          17.406        14.474        .96032E-04    .15212E-04
  30  Normalizat    1.0117        .31857        .26002E-03    .24470E-03
  31  Prefactor     .96399        .34085        .30582E-03    .57992E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100015
  Prefactor  = 0.000100001
  Prefactor  = 37.9157
  norm       = 1.59941
  Prefactor  = 0.00010009
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  norm       = 5.78541
  Prefactor  = 4.90009
  Prefactor  = 0.0001
  norm       = 5.05334
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.57191
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 12.4527
  Prefactor  = 9.31657
  Prefactor  = 0.0001
  Prefactor  = 169.249
  Prefactor  = 0.0001
  Prefactor  = 7.53259
  norm       = 0.0001
  Prefactor  = 15.1393
  norm       = 5.59424
  Prefactor  = 0.000100002
  norm       = 1.32413
  norm       = 17.4061
  Normalizat = 1.01175
  Prefactor  = 0.963986
 **********
 **   18 **HESSE 
 **********

 FCN=   3030.867     FROM HESSE     STATUS=OK           600 CALLS     6000 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    25.443        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.644        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     37.916        25.681        .26037E-05   -1.4476    
   4  norm          1.5994        4.3664        .71941E-05   -1.5455    
   5  Prefactor     .10009E-03    121.86        .13208       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.9570        .18398E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    30.153        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    136.12        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.7854        3.2963        .27677E-05   -1.5227    
  10  Prefactor     4.9001        8.7348        .36339E-04   -1.5265    
  11  Prefactor     .10000E-03    28.611        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.0533        4.2715        .20016E-04   -1.5258    
  13  Prefactor     .10000E-03    5.9450        .26157E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.3843        .12632E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.5719        2.7447        .36024E-05   -1.5387    
  16  Prefactor     .10000E-03    7.1921        .28678E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .15556        .79012E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          12.453        6.4099        .38782E-05   -1.5002    
  19  Prefactor     9.3166        9.0385        .52521E-05   -1.5097    
  20  Prefactor     .10000E-03    8.0684        .30546E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     169.25        112.94        .62021E-05   -1.3099    
  22  Prefactor     .10000E-03    3.0911        .18895E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.5326        7.5312        .57864E-05   -1.5159    
  24  norm          .10000E-03    7.5912        .58456E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     15.139        32.927        .41193E-05   -1.4930    
  26  norm          5.5942        4.5053        .40524E-05   -1.5235    
  27  Prefactor     .10000E-03    62.255        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          1.3241        12.655        .99831E-05   -1.5478    
  29  norm          17.406        14.420        .38413E-05   -1.4873    
  30  Normalizat    1.0117        .31890        .52004E-04   -.92638    
  31  Prefactor     .96399        .34120        .12233E-04   -.93940    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29831e-09
Minuit parameter uncertainties:
  1  0.00125101
  2  0.000235004
  3  25.6886
  4  4.36726
  5  0.00663657
  6  1.49124e-06
  7  0.00104758
  8  0.000298991
  9  3.29641
  10  8.73703
  11  0.000132195
  12  4.27179
  13  2.73768e-05
  14  6.04673e-06
  15  2.74487
  16  6.30798e-06
  17  1.57393e-06
  18  6.41021
  19  9.03984
  20  2.1558e-06
  21  113.086
  22  5.24199e-06
  23  7.53219
  24  5.35803e-06
  25  32.9669
  26  4.50555
  27  0.00064616
  28  8.18892
  29  14.4233
  30  0.319504
  31  0.341961
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  5.053e+00  4.272e+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.640e-01  3.420e-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.012e+00  3.195e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.09
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 4.40e-08 +/- 3.72e-08
Energy Flux (Fixed Index): 3.92e-05 +/- 3.31e-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) = 3030.82777892
delta logL = 0.0394890921812

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3030.81113729
delta logL = 0.0561307213411

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0582       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5458       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0251       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96211       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=   3030.811     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      202 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0582        3.7579        .50038E-02    .44687E-02
   2  alpha         1.5458        .56620        .33361        .17927E-04
   3  Normalizat    1.0252        .25313        .42684E-01    .62046E-05
   4  Prefactor     .96203        .29124        .69255E-01    .50201E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.05819
  alpha      = 1.54582
  Normalizat = 1.0252
  Prefactor  = 0.962026
 **********
 **   18 **HESSE 
 **********

 FCN=   3030.811     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0582        5.2101        .99056E-04   -1.5305    
   2  alpha         1.5458        .86768        .13060E-01   -.39161    
   3  Normalizat    1.0252        .29101        .25868E-03   -.92191    
   4  Prefactor     .96203        .33524        .30636E-03   -.94006    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61114e-08
Minuit parameter uncertainties:
  1  5.21065
  2  0.889489
  3  0.29146
  4  0.335965
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/461445': 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) = 3030.81113726
delta logL = 0.0561307501289

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  4.058e+00  5.211e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.546e+00  8.895e-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.620e-01  3.360e-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.025e+00  2.915e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.21
Ra Dec: 184.476 30.118
Photon Index (Free Index): 1.55 +/- 0.89
Photon Flux (Free Index): 2.60e-08 +/- 4.71e-08
Energy Flux (Free Index): 5.36e-05 +/- 7.53e-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/461445/cmap_HighResolution_570844801_571104001_4FGL_J1217.9+3007_daily_bin1279.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.40e-08', energy_flux2='5.36e-05', photon_flux_error='3.72e-08', dlogl='5.61e-02', energy_flux='3.92e-05', photon_flux2='2.60e-08', job_status='DONE', time_completed='2021-09-05 06:45:33.492821', photon_index_error2='0.89', photon_index2='1.55', ts='8.09', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='7.53e-05', EG='1.01', time_epoch_completed='1630849533.49', return_code='0', job_id='461445', GAL2='0.96', EG2='1.03', return_code2='0', energy_flux_error='3.31e-05', photon_flux_error2='4.71e-08', ts2='8.21', photon_index='1.85' WHERE bin_id='1279' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:45:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 461445: <4FGL_J1217.9+3007_daily_bin1279> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin1279 184.476 30.1177 570844801 571104001 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 :                                   605.37 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             251.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            906 sec.

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

