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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin565
RA = 184.476, Dec = 30.1177
tmin = 385776001, tmax = 386035201
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='456570', job_status='RUN', time_executed='2021-09-05 06:17:13.511328', time_epoch_executed='1630847833.51' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='565'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/456570

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/456570/ft1_4FGL_J1217.9+3007_daily_bin565.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/456570/ft2_4FGL_J1217.9+3007_daily_bin565.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/456570/ft1_4FGL_J1217.9+3007_daily_bin565.fits outfile=/scratch/kocevski/456570/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin565.fits ra=184.476 dec=30.1177 rad=12.0 tmin=385776001.0 tmax=386035201.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.96
user 3.63
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/456570/ft1_filtered_4FGL_J1217.9+3007_daily_bin565.fits" evtable="EVENTS" scfile=/scratch/kocevski/456570/ft2_4FGL_J1217.9+3007_daily_bin565.fits sctable="SC_DATA" outfile=/scratch/kocevski/456570/ltcube_385776001_386035201_4FGL_J1217.9+3007_daily_bin565.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/456570/ft2_4FGL_J1217.9+3007_daily_bin565.fits
.....................!
real 12.64
user 12.07
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/456570/ft1_filtered_4FGL_J1217.9+3007_daily_bin565.fits evtable="EVENTS" scfile=/scratch/kocevski/456570/ft2_4FGL_J1217.9+3007_daily_bin565.fits sctable="SC_DATA" expcube=/scratch/kocevski/456570/ltcube_385776001_386035201_4FGL_J1217.9+3007_daily_bin565.fits outfile=/scratch/kocevski/456570/expmap_385776001_386035201_4FGL_J1217.9+3007_daily_bin565.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/456570/ltcube_385776001_386035201_4FGL_J1217.9+3007_daily_bin565.fits
.....................!
real 190.85
user 185.94
sys 4.44

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/456570/ft1_filtered_4FGL_J1217.9+3007_daily_bin565.fits scfile=/scratch/kocevski/456570/ft2_4FGL_J1217.9+3007_daily_bin565.fits outfile=/scratch/kocevski/456570/cmap_385776001_386035201_4FGL_J1217.9+3007_daily_bin565.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.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5918       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10768E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    51.374       1.0000         .10000E-03   10000.    
     8 'Prefactor '    64.110       1.0000         .10000E-03   10000.    
     9 'norm      '    5.2628       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6976       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11327E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.4261       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.534       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .86721       1.0000         .10000E-03   10000.    
    17 'norm      '    .28956       1.0000         .10000E-03   10000.    
    18 'norm      '    21.282       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.957       1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.836       1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.354       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .62886E-01   1.0000         .10000E-03   10000.    
    25 'Prefactor '    24.661       1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3653       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .66986       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=   6092.378     FROM MIGRAD    STATUS=CONVERGED    821 CALLS     4124 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5927        19.468       -.55769E-06    .94149E-04
   2  Prefactor     .10000E-03    16.830        .49736E-06** at limit **
   3  Prefactor     .10000E-03    2.3580        .30539E-08** at limit **
   4  norm          .10000E-03    .94910        .89103E-06** at limit **
   5  Prefactor     .10000E-03    20.469       -.84288E-06** at limit **
   6  Prefactor     .10000E-03    .86031       -.25356E-06** at limit **
   7  Prefactor     51.336        34.860       -.44908E-06    .15463E-03
   8  Prefactor     64.048        65.525        .20969E-05   -.33807E-04
   9  norm          5.2628        1.6717        .31538E-08    .54050E-03
  10  Prefactor     1.6977        4.0867       -.31760E-06   -.45748E-04
  11  Prefactor     .10000E-03    19.914        .24396E-06** at limit **
  12  norm          3.4261        2.6166       -.19655E-07    .34352E-04
  13  Prefactor     .10000E-03    2.9670       -.16701E-06** at limit **
  14  Prefactor     .10000E-03    .73385       -.33203E-07** at limit **
  15  Prefactor     11.534        3.7604       -.76263E-07    .25143E-03
  16  Prefactor     .86780        11.612        .74365E-05   -.10812E-03
  17  norm          .28963        .24591       -.11729E-06   -.16215E-02
  18  norm          21.284        7.3302       -.35378E-06    .90701E-04
  19  Prefactor     .10000E-03    6.0339       -.22351E-06** at limit **
  20  Prefactor     13.957        19.975       -.54149E-07    .20818E-04
  21  Prefactor     21.811        37.419       -.81156E-06    .65059E-04
  22  Prefactor     12.354        10.260       -.10855E-06    .79365E-04
  23  Prefactor     .10000E-03    1.9839       -.88651E-07** at limit **
  24  norm          .76093E-01    4.8840       -.22637E-05   -.25832E-04
  25  Prefactor     24.544        29.214        .93101E-06    .15871E-03
  26  norm          .10000E-03    1.7340       -.12630E-06** at limit **
  27  Prefactor     .10000E-03    6.5932       -.10085E-06** at limit **
  28  norm          .10000E-03    1.5155       -.95465E-07** at limit **
  29  norm          .10000E-03    2.7077       -.66181E-07** at limit **
  30  Normalizat    1.3658        .19525       -.77133E-06    .13573E-03
  31  Prefactor     .66925        .20751        .30589E-05    .31846E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.59266
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.3361
  Prefactor  = 64.0484
  norm       = 5.26277
  Prefactor  = 1.69772
  Prefactor  = 0.0001
  norm       = 3.42614
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.5341
  Prefactor  = 0.867803
  norm       = 0.289633
  norm       = 21.2837
  Prefactor  = 0.0001
  Prefactor  = 13.9574
  Prefactor  = 21.8114
  Prefactor  = 12.3544
  Prefactor  = 0.0001
  norm       = 0.0760926
  Prefactor  = 24.5437
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.36579
  Prefactor  = 0.669251
 **********
 **   18 **HESSE 
 **********

 FCN=   6092.378     FROM HESSE     STATUS=OK           618 CALLS     4742 TOTAL
                     EDM=   .76E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5927        19.406        .15630E-03   -1.5194    
   2  Prefactor     .10000E-03    16.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.3725        .11701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .97026        .11122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .88987        .14183E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     51.336        34.927        .55953E-04   -1.4274    
   8  Prefactor     64.048        65.464        .25060E-03   -1.4106    
   9  norm          5.2628        1.6708        .54283E-04   -1.5249    
  10  Prefactor     1.6977        4.0682        .23364E-03   -1.5447    
  11  Prefactor     .10000E-03    19.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.4261        2.6137        .10486E-03   -1.5338    
  13  Prefactor     .10000E-03    2.9774        .13136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .73560        .65239E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.534        3.7591        .80170E-04   -1.5029    
  16  Prefactor     .86780        12.179        .24529E-02   -1.5522    
  17  norm          .28963        .23990        .33858E-04   -1.5600    
  18  norm          21.284        7.3630        .86824E-04   -1.4785    
  19  Prefactor     .10000E-03    6.0976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.957        19.974        .10721E-03   -1.4961    
  21  Prefactor     21.811        37.322        .85716E-04   -1.4774    
  22  Prefactor     12.354        10.258        .11397E-03   -1.5005    
  23  Prefactor     .10000E-03    1.9864        .10738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .76093E-01    38.728        .27521E-02   -1.5653    
  25  Prefactor     24.544        30.775        .80665E-04   -1.4717    
  26  norm          .10000E-03    1.7452        .10041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    6.5956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    1.5237        .93812E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    2.7223        .12543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.3658        .22563        .23787E-03   -.81623    
  31  Prefactor     .66925        .24265        .35911E-03   -1.0474    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.60772e-08
Minuit parameter uncertainties:
  1  19.4245
  2  0.00025082
  3  6.52187e-06
  4  2.14054e-05
  5  0.000162608
  6  1.85455e-05
  7  34.9409
  8  65.5379
  9  1.67079
  10  4.06883
  11  3.26334e-05
  12  2.61381
  13  1.97965e-05
  14  2.3114e-06
  15  3.75917
  16  6.5033
  17  0.239903
  18  7.36331
  19  4.90177e-05
  20  19.9835
  21  37.3616
  22  10.259
  23  1.15209e-05
  24  3.43328
  25  30.7947
  26  1.37901e-05
  27  2.07918e-05
  28  1.46519e-05
  29  1.46304e-05
  30  0.225794
  31  0.243031
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  3.426e+00  2.614e+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.693e-01  2.430e-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.366e+00  2.258e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.17
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 2.98e-08 +/- 2.28e-08
Energy Flux (Fixed Index): 2.66e-05 +/- 2.03e-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) = 6092.37768706
delta logL = 0.000580801548494

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6092.37767781
delta logL = 0.0005900477654

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4258       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8338       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3665       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66888       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=   6092.378     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      207 TOTAL
                     EDM=   .96E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4046        4.5708        .54636E-02    .34876E-04
   2  alpha         1.8323        .89210        .32152       -.46081E-05
   3  Normalizat    1.3664        .18900        .53790E-01    .30593E-07
   4  Prefactor     .66903        .20628        .81106E-01    .25348E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.40462
  alpha      = 1.83231
  Normalizat = 1.36644
  Prefactor  = 0.669025
 **********
 **   18 **HESSE 
 **********

 FCN=   6092.378     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4046        2.6174        .10508E-03   -1.5339    
   2  alpha         1.8323        .60788        .15939E-01   -.27036    
   3  Normalizat    1.3664        .21510        .23783E-03   -.81604    
   4  Prefactor     .66903        .23564        .35918E-03   -1.0475    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92313e-11
Minuit parameter uncertainties:
  1  2.61753
  2  0.61452
  3  0.215241
  4  0.235994
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/456570': 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) = 6092.37764557
delta logL = 0.000622286664111

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  3.405e+00  2.618e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.832e+00  6.145e-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.690e-01  2.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.366e+00  2.152e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.19
Ra Dec: 184.476 30.118
Photon Index (Free Index): 1.83 +/- 0.61
Photon Flux (Free Index): 2.89e-08 +/- 3.36e-08
Energy Flux (Free Index): 2.71e-05 +/- 2.66e-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/456570/cmap_HighResolution_385776001_386035201_4FGL_J1217.9+3007_daily_bin565.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.98e-08', energy_flux2='2.71e-05', photon_flux_error='2.28e-08', dlogl='6.22e-04', energy_flux='2.66e-05', photon_flux2='2.89e-08', job_status='DONE', time_completed='2021-09-05 06:30:44.659698', photon_index_error2='0.61', photon_index2='1.83', ts='7.17', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', energy_flux_error2='2.66e-05', EG='1.37', time_epoch_completed='1630848644.66', return_code='0', job_id='456570', GAL2='0.67', EG2='1.37', return_code2='0', energy_flux_error='2.03e-05', photon_flux_error2='3.36e-08', ts2='7.19', photon_index='1.85' WHERE bin_id='565' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:30:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 456570: <4FGL_J1217.9+3007_daily_bin565> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin565 184.476 30.1177 385776001 386035201 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 :                                   800.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            901 sec.

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

