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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin1178
RA = 184.476, Dec = 30.1177
tmin = 544665601, tmax = 544924801
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='461292', job_status='RUN', time_executed='2021-09-05 06:31:34.075095', time_epoch_executed='1630848694.08' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='1178'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/461292

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/461292/ft1_4FGL_J1217.9+3007_daily_bin1178.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/461292/ft2_4FGL_J1217.9+3007_daily_bin1178.fits


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

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

Done.
real 4.00
user 3.79
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/461292/ft1_filtered_4FGL_J1217.9+3007_daily_bin1178.fits" evtable="EVENTS" scfile=/scratch/kocevski/461292/ft2_4FGL_J1217.9+3007_daily_bin1178.fits sctable="SC_DATA" outfile=/scratch/kocevski/461292/ltcube_544665601_544924801_4FGL_J1217.9+3007_daily_bin1178.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/461292/ft2_4FGL_J1217.9+3007_daily_bin1178.fits
.....................!
real 11.33
user 10.99
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/461292/ft1_filtered_4FGL_J1217.9+3007_daily_bin1178.fits evtable="EVENTS" scfile=/scratch/kocevski/461292/ft2_4FGL_J1217.9+3007_daily_bin1178.fits sctable="SC_DATA" expcube=/scratch/kocevski/461292/ltcube_544665601_544924801_4FGL_J1217.9+3007_daily_bin1178.fits outfile=/scratch/kocevski/461292/expmap_544665601_544924801_4FGL_J1217.9+3007_daily_bin1178.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/461292/ltcube_544665601_544924801_4FGL_J1217.9+3007_daily_bin1178.fits
.....................!
real 190.58
user 185.43
sys 4.76

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/461292/ft1_filtered_4FGL_J1217.9+3007_daily_bin1178.fits scfile=/scratch/kocevski/461292/ft2_4FGL_J1217.9+3007_daily_bin1178.fits outfile=/scratch/kocevski/461292/cmap_544665601_544924801_4FGL_J1217.9+3007_daily_bin1178.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/461292/ft1_filtered_4FGL_J1217.9+3007_daily_bin1178.fits scfile=/scratch/kocevski/461292/ft2_4FGL_J1217.9+3007_daily_bin1178.fits outfile=/scratch/kocevski/461292/cmap_HighResolution_544665601_544924801_4FGL_J1217.9+3007_daily_bin1178.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .14452E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    117.64       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.1119       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10397E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3626.9       1.0000         .10000E-03   10000.    
     9 'norm      '    32.740       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.0849       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .36668E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    56.049       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.0173       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .41660       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .79302       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.617       1.0000         .10000E-03   10000.    
    20 'Prefactor '    63.075       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.5207       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    18.830       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10343E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .25675       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.4038       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=   1894.683     FROM MIGRAD    STATUS=CONVERGED    814 CALLS     4765 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    271.30        .84017E-06** at limit **
   2  Prefactor     .10000E-03    89.689        .26070E-05** at limit **
   3  Prefactor     .10000E-03    41.791        .82275E-06** at limit **
   4  norm          .10000E-03    168.88       -.44500E-05** at limit **
   5  Prefactor     117.64        93.343        .80896E-06   -.28596E-04
   6  Prefactor     5.1142        7.7588        .64295E-06   -.68917E-04
   7  Prefactor     .10000E-03    116.81        .72660E-07** at limit **
   8  Prefactor     3627.7        4033.8        .25532E-06    .60915E-07
   9  norm          32.741        8.3352        .17905E-06   -.36429E-03
  10  Prefactor     8.0890        11.188        .14097E-05   -.43082E-04
  11  Prefactor     .10000E-03    859.45        .25741E-04** at limit **
  12  norm          .10000E-03    19.731        .84644E-07** at limit **
  13  Prefactor     56.060        45.357        .47490E-06   -.68015E-04
  14  Prefactor     6.0236        8.9765       -.45642E-07   -.13127E-03
  15  Prefactor     .40720        8.3626        .17436E-05   -.30318E-03
  16  Prefactor     .10000E-03    6.7547       -.43187E-07** at limit **
  17  norm          .79319        .49518        .22835E-06   -.37064E-03
  18  norm          .10000E-03    2.3244        .14911E-07** at limit **
  19  Prefactor     14.619        14.697        .82465E-07   -.27378E-04
  20  Prefactor     63.026        113.96        .38027E-05    .29592E-05
  21  Prefactor     .10000E-03    62.203       -.59467E-06** at limit **
  22  Prefactor     1.5233        18.761        .40421E-05    .40201E-04
  23  Prefactor     .10000E-03    12.458       -.50987E-10** at limit **
  24  norm          18.831        13.124        .47210E-06    .13963E-05
  25  Prefactor     .10000E-03    45.646       -.79850E-06** at limit **
  26  norm          .10000E-03    1.7052        .88078E-07** at limit **
  27  Prefactor     .10000E-03    63.577       -.29399E-06** at limit **
  28  norm          .10000E-03    27.664        .74249E-06** at limit **
  29  norm          .10000E-03    11.122        .69466E-07** at limit **
  30  Normalizat    .25657        .47585       -.20951E-04   -.37979E-04
  31  Prefactor     1.4039        .49721        .50113E-05   -.39810E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 117.64
  Prefactor  = 5.11422
  Prefactor  = 0.0001
  Prefactor  = 3627.74
  norm       = 32.7411
  Prefactor  = 8.08904
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 56.0599
  Prefactor  = 6.0236
  Prefactor  = 0.407201
  Prefactor  = 0.0001
  norm       = 0.793186
  norm       = 0.0001
  Prefactor  = 14.6185
  Prefactor  = 63.0258
  Prefactor  = 0.0001
  Prefactor  = 1.52328
  Prefactor  = 0.0001
  norm       = 18.8306
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.256571
  Prefactor  = 1.40389
 **********
 **   18 **HESSE 
 **********

 FCN=   1894.683     FROM HESSE     STATUS=OK           612 CALLS     5377 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    272.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    89.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    41.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    168.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     117.64        93.078        .37099E-04   -1.3534    
   6  Prefactor     5.1142        7.7309        .12428E-03   -1.5256    
   7  Prefactor     .10000E-03    116.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3627.7        4033.8        .41599E-04   -.27802    
   9  norm          32.741        8.2972        .58373E-04   -1.4563    
  10  Prefactor     8.0890        11.190        .14101E-03   -1.5139    
  11  Prefactor     .10000E-03    862.88        .19600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    19.861        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     56.060        45.461        .53581E-04   -1.4209    
  14  Prefactor     6.0236        9.0722        .13134E-03   -1.5217    
  15  Prefactor     .40720        28.434        .18928E-02   -1.5580    
  16  Prefactor     .10000E-03    6.7853        .11046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .79319        .49802        .20897E-04   -1.5530    
  18  norm          .10000E-03    2.3253        .64812E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.619        14.715        .10476E-03   -1.4943    
  20  Prefactor     63.026        114.30        .25263E-03   -1.4119    
  21  Prefactor     .10000E-03    62.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.5233        18.995        .17011E-02   -1.5461    
  23  Prefactor     .10000E-03    12.461        .15008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          18.831        13.098        .92300E-04   -1.4840    
  25  Prefactor     .10000E-03    45.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.7077        .55525E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    63.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    28.780        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    11.140        .14178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .25657        .48042        .55773E-03   -1.2553    
  31  Prefactor     1.4039        .50794        .27247E-03   -.80268    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.28916e-10
Minuit parameter uncertainties:
  1  0.000120591
  2  6.71735e-05
  3  3.57126e-05
  4  0.000168725
  5  93.1944
  6  7.73245
  7  9.877e-07
  8  4785.89
  9  8.29754
  10  11.193
  11  0.00274534
  12  0.000144738
  13  45.489
  14  9.07422
  15  6.80787
  16  5.16162e-06
  17  0.498019
  18  1.26183e-06
  19  14.7184
  20  114.701
  21  2.58082e-05
  22  10.762
  23  2.50004e-05
  24  13.1001
  25  4.04991e-05
  26  5.90574e-08
  27  5.24378e-05
  28  1.10239e-05
  29  1.42918e-06
  30  0.488467
  31  0.509769
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.000e-04  1.447e-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:  1.404e+00  5.098e-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:  2.566e-01  4.885e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 184.476 30.118
Photon Flux Upper Limit: 2.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.00e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/461292/likelihoodResults_544665601_544924801_4FGL_J1217.9+3007_daily_bin1178.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): 102
logL (Free Index) = 1894.68350688
delta logL = -0.000239062653236

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1894.61707551
delta logL = 0.0661923159821

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1015       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6114       1.0000          .0000       5.0000    
     3 'Normalizat'    .23519       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4044       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=   1894.617     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      412 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0944        296.06        .71168E-02    .26213E-03
   2  alpha         2.6124        2.9217        .41203        .11677E-04
   3  Normalizat    .23864        .87079E-01    .13035        .24072E-04
   4  Prefactor     1.4009        .97776E-01    .61462E-01    .58828E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.09443
  alpha      = 2.61243
  Normalizat = 0.238643
  Prefactor  = 1.40092
 **********
 **   18 **HESSE 
 **********

 FCN=   1894.617     FROM HESSE     STATUS=OK            33 CALLS      445 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0944        7.1883        .16965E-03   -1.5419    
   2  alpha         2.6124        1.2813        .14183E-01    .44986E-01
   3  Normalizat    .23864        .43848        .57593E-03   -1.2671    
   4  Prefactor     1.4009        .48289        .27175E-03   -.80354    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.55379e-10
Minuit parameter uncertainties:
  1  7.19123
  2  1.34548
  3  0.445028
  4  0.484458
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/461292': 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) = 1894.61704424
delta logL = 0.0662235810792

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  2.094e+00  7.191e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  2.612e+00  1.345e+00  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:  1.401e+00  4.845e-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:  2.386e-01  4.450e-01  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/461292/cmap_HighResolution_544665601_544924801_4FGL_J1217.9+3007_daily_bin1178.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.00e-04', job_status='DONE', photon_flux_upper_limit='2.24e-07', time_completed='2021-09-05 06:40:17.369638', job_id='461292', GAL2='1.40', fit_tolerance='1e-08', EG2='0.24', EG='0.26', time_epoch_completed='1630849217.37', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.40', dlogl='6.62e-02', ts2='0.14', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1178' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:40:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 461292: <4FGL_J1217.9+3007_daily_bin1178> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin1178 184.476 30.1177 544665601 544924801 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 :                                   519.11 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             282.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   598 sec.
    Turnaround time :                            601 sec.

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

