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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin678
RA = 184.476, Dec = 30.1177
tmin = 415065601, tmax = 415324801
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='456725', job_status='RUN', time_executed='2021-09-05 06:17:30.560627', time_epoch_executed='1630847850.56' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='678'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/456725

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/456725/ft1_4FGL_J1217.9+3007_daily_bin678.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/456725/ft2_4FGL_J1217.9+3007_daily_bin678.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/456725/ft1_4FGL_J1217.9+3007_daily_bin678.fits outfile=/scratch/kocevski/456725/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin678.fits ra=184.476 dec=30.1177 rad=12.0 tmin=415065601.0 tmax=415324801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.67
user 3.44
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/456725/ft1_filtered_4FGL_J1217.9+3007_daily_bin678.fits" evtable="EVENTS" scfile=/scratch/kocevski/456725/ft2_4FGL_J1217.9+3007_daily_bin678.fits sctable="SC_DATA" outfile=/scratch/kocevski/456725/ltcube_415065601_415324801_4FGL_J1217.9+3007_daily_bin678.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/456725/ft2_4FGL_J1217.9+3007_daily_bin678.fits
.....................!
real 12.44
user 11.62
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/456725/ft1_filtered_4FGL_J1217.9+3007_daily_bin678.fits evtable="EVENTS" scfile=/scratch/kocevski/456725/ft2_4FGL_J1217.9+3007_daily_bin678.fits sctable="SC_DATA" expcube=/scratch/kocevski/456725/ltcube_415065601_415324801_4FGL_J1217.9+3007_daily_bin678.fits outfile=/scratch/kocevski/456725/expmap_415065601_415324801_4FGL_J1217.9+3007_daily_bin678.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/456725/ltcube_415065601_415324801_4FGL_J1217.9+3007_daily_bin678.fits
.....................!
real 191.67
user 185.27
sys 5.98

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/456725/ft1_filtered_4FGL_J1217.9+3007_daily_bin678.fits scfile=/scratch/kocevski/456725/ft2_4FGL_J1217.9+3007_daily_bin678.fits outfile=/scratch/kocevski/456725/cmap_415065601_415324801_4FGL_J1217.9+3007_daily_bin678.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/456725/ft1_filtered_4FGL_J1217.9+3007_daily_bin678.fits scfile=/scratch/kocevski/456725/ft2_4FGL_J1217.9+3007_daily_bin678.fits outfile=/scratch/kocevski/456725/cmap_HighResolution_415065601_415324801_4FGL_J1217.9+3007_daily_bin678.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.54
user 0.36
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/456725/ft1_filtered_4FGL_J1217.9+3007_daily_bin678.fits', '/scratch/kocevski/456725/ft2_4FGL_J1217.9+3007_daily_bin678.fits', expMap='/scratch/kocevski/456725/expmap_415065601_415324801_4FGL_J1217.9+3007_daily_bin678.fits', expCube='/scratch/kocevski/456725/ltcube_415065601_415324801_4FGL_J1217.9+3007_daily_bin678.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/456725/Model_4FGL_J1217.9+3007_daily_bin678.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/456725/ft1_filtered_4FGL_J1217.9+3007_daily_bin678.fits
Spacecraft file(s): /scratch/kocevski/456725/ft2_4FGL_J1217.9+3007_daily_bin678.fits
Exposure map: /scratch/kocevski/456725/expmap_415065601_415324801_4FGL_J1217.9+3007_daily_bin678.fits
Exposure cube: /scratch/kocevski/456725/ltcube_415065601_415324801_4FGL_J1217.9+3007_daily_bin678.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/456725/Model_4FGL_J1217.9+3007_daily_bin678.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 24.4526914412

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 18.1840807077

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4676       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1322       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8480       1.0000         .10000E-03   10000.    
     4 'norm      '    2.7046       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.1490       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .63130E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.7442       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.1470       1.0000         .10000E-03   10000.    
     9 'norm      '    387.19       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .49994E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.8144       1.0000         .10000E-03   10000.    
    12 'norm      '    1.2274       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .42689E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .37518       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .97115E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .18147       1.0000         .10000E-03   10000.    
    17 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .50894E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1384.6       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .33171       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.2245       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .19977E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11310E-02   1.0000         .10000E-03   10000.    
    24 'norm      '    .36162E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.1530       1.0000         .10000E-03   10000.    
    26 'norm      '    .59844E-01   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .12923       1.0000         .10000E-03   10000.    
    28 'norm      '    .16984       1.0000         .10000E-03   10000.    
    29 'norm      '    .25373E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .10010E-01   1.0000         .10000E-01   10.000    
    31 'Prefactor '    .62714E-09   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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   18.17751     FROM MIGRAD    STATUS=CONVERGED    190 CALLS      315 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4676        1.0222         .0000         .0000    
   2  Prefactor     2.1322        1.0305         .0000         .0000    
   3  Prefactor     1.8480        1.0423         .0000         .0000    
   4  norm          2.7046        1.0182         .0000         .0000    
   5  Prefactor     .18265        .21136       -.33924E-02    .12446E-02
   6  Prefactor     .12943E-03    .21781        .12831E-02** at limit **
   7  Prefactor     .21967        .21640       -.36092E-02    .15501E-02
   8  Prefactor     8.1470        1.0019         .0000         .0000    
   9  norm          387.95        1.0009        .35766E-04    .71267E-03
  10  Prefactor     .17046E-03    .27977        .15978E-02** at limit **
  11  Prefactor     .15838        .20555       -.29916E-02   -.26012E-02
  12  norm          .10006E-03    .25792       -.57877E-04** at limit **
  13  Prefactor     .17621E-02    .23552        .25897E-04** at limit **
  14  Prefactor     .10000E-03    .28891       -.16070E-05** at limit **
  15  Prefactor     .10037E-03    .22550       -.31424E-03** at limit **
  16  Prefactor     .10302E-03    .24466       -.38438E-04** at limit **
  17  norm          .10000E-03    .20571       -.61998E-08** at limit **
  18  norm          .10003E-03    .21504        .39336E-04** at limit **
  19  Prefactor     1385.3        1.0002        .21464E-04   -.63095E-02
  20  Prefactor     .51282E-03    .27895       -.51270E-03** at limit **
  21  Prefactor     .15545E-02    .40452E-01    .14031E-02** at limit **
  22  Prefactor     .14423E-03    .25578        .12113E-02** at limit **
  23  Prefactor     .63391E-03    .26727       -.41188E-03** at limit **
  24  norm          .10014E-03    .28380        .11075E-03** at limit **
  25  Prefactor     .10412E-03    .28960       -.52102E-04** at limit **
  26  norm          .10092E-03    .21706       -.51692E-03** at limit **
  27  Prefactor     .71926E-03    .23279       -.28479E-04** at limit **
  28  norm          .10126E-03    .24202        .58918E-03** at limit **
  29  norm          .10142E-03    .28780        .82250E-04** at limit **
  30  Normalizat    .10000E-01    .25505       -.30926E-07** at limit **
  31  Prefactor      .0000        .25504        .12375E-07** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.46756
  Prefactor  = 2.13221
  Prefactor  = 1.84799
  norm       = 2.70459
  Prefactor  = 0.182649
  Prefactor  = 0.000129433
  Prefactor  = 0.21967
  Prefactor  = 8.14703
  norm       = 387.954
  Prefactor  = 0.000170461
  Prefactor  = 0.158381
  norm       = 0.000100055
  Prefactor  = 0.00176207
  Prefactor  = 0.0001
  Prefactor  = 0.000100373
  Prefactor  = 0.000103018
  norm       = 0.0001
  norm       = 0.000100027
  Prefactor  = 1385.26
  Prefactor  = 0.00051282
  Prefactor  = 0.00155446
  Prefactor  = 0.000144228
  Prefactor  = 0.000633912
  norm       = 0.000100142
  Prefactor  = 0.000104117
  norm       = 0.000100922
  Prefactor  = 0.000719258
  norm       = 0.000101262
  norm       = 0.000101423
  Normalizat = 0.01
  Prefactor  = 0
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   18.17751     FROM HESSE     STATUS=FAILED         9 CALLS      324 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     561.76        559.18         .0000       -1.5394    
   2  Prefactor     2.1322        1.0305         .0000       -1.5416    
   3  Prefactor     1.8480        1.0423         .0000       -1.5436    
   4  norm          2.7046        1.0182         .0000       -1.5379    
   5  Prefactor     .18265        .21136       -.33924E-02   -1.5623    
   6  Prefactor     .12943E-03    .21781        .12831E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .21967        .21640       -.36092E-02   -1.5614    
   8  Prefactor     8.1470        1.0019         .0000       -1.5137    
   9  norm          387.95        1.0009        .35766E-04   -1.1743    
  10  Prefactor     .17046E-03    .27977        .15978E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .15838        .20555       -.29916E-02   -1.5788    
  12  norm          .10006E-03    .25792       -.57877E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .17621E-02    .23552        .25897E-04   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .28891       -.16070E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10037E-03    .22550       -.31424E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10302E-03    .24466       -.38438E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .20571       -.61998E-08   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10003E-03    .21504        .39336E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1385.3        1.0002        .21464E-04   -.80806    
  20  Prefactor     .51282E-03    .27895       -.51270E-03   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .15545E-02    .40452E-01    .14031E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .14423E-03    .25578        .12113E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .63391E-03    .26727       -.41188E-03   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10014E-03    .28380        .11075E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10412E-03    .28960       -.52102E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10092E-03    .21706       -.51692E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .71926E-03    .23279       -.28479E-04   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10126E-03    .24202        .58918E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10142E-03    .28780        .82250E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .10000E-01    .25505       -.30926E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor      .0000        .25504        .12375E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.12789e-09
Minuit parameter uncertainties:
  1  1.02216
  2  1.03054
  3  1.04231
  4  1.0182
  5  0.211365
  6  0.0050639
  7  0.216401
  8  1.00189
  9  1.00095
  10  0.00887992
  11  0.205549
  12  0.000239176
  13  0.0395707
  14  8.19831e-06
  15  0.000580378
  16  0.00171861
  17  4.22849e-09
  18  0.000153742
  19  1.00018
  20  0.0214623
  21  0.0153409
  22  0.0067269
  23  0.0238915
  24  0.000402007
  25  0.00218375
  26  0.000894564
  27  0.0240132
  28  0.00110534
  29  0.00128006
  30  7.8223e-11
  31  1.60962e-09
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 18.177505735

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.001e-04  2.392e-04  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:  0.000e+00  1.610e-09  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.000e-02  7.822e-11  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 184.476 30.118
Photon Flux Upper Limit: 1.49e-05 ph cm-2 s-1
Energy Flux Upper Limit: 1.32e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/456725/likelihoodResults_415065601_415324801_4FGL_J1217.9+3007_daily_bin678.txt

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) = 18.1775217722
delta logL = -1.60372809717e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 18.1775059689
delta logL = -2.33957003104e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10533E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7826       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83581E-08   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=   18.17751     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      269 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10003E-03    9932.2        .49641E-02** at limit **
   2  alpha         1.6047        2.7419        .16596        .64630E-08
   3  Normalizat    .10000E-01    .40483        .18031E-02** at limit **
   4  Prefactor     .32874E-11    .44460        .18900E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100028
  alpha      = 1.60471
  Normalizat = 0.01
  Prefactor  = 3.28737e-12
 **********
 **   18 **HESSE 
 **********

 FCN=   18.17751     FROM HESSE     STATUS=OK            27 CALLS      296 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10003E-03    333.83        .74231E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6047        4.1895        .66382E-01   -.36625    
   3  Normalizat    .10000E-01    1.7143        .36062E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .32874E-11    1.8738        .37800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02217e-10
Minuit parameter uncertainties:
  1  0.00617702
  2  2078.34
  3  3.65441e-06
  4  5.13364e-06
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/456725': 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) = 18.1775057267
delta logL = 8.23267498617e-09

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.000e-04  6.177e-03  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.605e+00  2.078e+03  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:  3.287e-12  5.134e-06  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.000e-02  3.654e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 184.476 30.118

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/456725/cmap_HighResolution_415065601_415324801_4FGL_J1217.9+3007_daily_bin678.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.32e-02', job_status='DONE', photon_flux_upper_limit='1.49e-05', time_completed='2021-09-05 06:23:01.311253', job_id='456725', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630848181.31', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.00', dlogl='8.23e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='678' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:23:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 456725: <4FGL_J1217.9+3007_daily_bin678> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin678 184.476 30.1177 415065601 415324801 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 :                                   326.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             269.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   425 sec.
    Turnaround time :                            429 sec.

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

