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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin1403
RA = 184.476, Dec = 30.1177
tmin = 602985601, tmax = 603244801
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='461682', job_status='RUN', time_executed='2021-09-05 06:31:24.643045', time_epoch_executed='1630848684.64' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='1403'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/461682

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/461682/ft1_4FGL_J1217.9+3007_daily_bin1403.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/461682/ft2_4FGL_J1217.9+3007_daily_bin1403.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/461682/ft1_4FGL_J1217.9+3007_daily_bin1403.fits outfile=/scratch/kocevski/461682/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin1403.fits ra=184.476 dec=30.1177 rad=12.0 tmin=602985601.0 tmax=603244801.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.02
user 2.83
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/461682/ft1_filtered_4FGL_J1217.9+3007_daily_bin1403.fits" evtable="EVENTS" scfile=/scratch/kocevski/461682/ft2_4FGL_J1217.9+3007_daily_bin1403.fits sctable="SC_DATA" outfile=/scratch/kocevski/461682/ltcube_602985601_603244801_4FGL_J1217.9+3007_daily_bin1403.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/461682/ft2_4FGL_J1217.9+3007_daily_bin1403.fits
.....................!
real 12.37
user 11.91
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/461682/ft1_filtered_4FGL_J1217.9+3007_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/461682/ft2_4FGL_J1217.9+3007_daily_bin1403.fits sctable="SC_DATA" expcube=/scratch/kocevski/461682/ltcube_602985601_603244801_4FGL_J1217.9+3007_daily_bin1403.fits outfile=/scratch/kocevski/461682/expmap_602985601_603244801_4FGL_J1217.9+3007_daily_bin1403.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/461682/ltcube_602985601_603244801_4FGL_J1217.9+3007_daily_bin1403.fits
.....................!
real 190.19
user 185.71
sys 4.04

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 199 point sources and 0 extended sources

Setting source of interest to:
4FGL J1217.9+3007 @ 184.476 30.1177

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/461682/ft1_filtered_4FGL_J1217.9+3007_daily_bin1403.fits scfile=/scratch/kocevski/461682/ft2_4FGL_J1217.9+3007_daily_bin1403.fits outfile=/scratch/kocevski/461682/cmap_602985601_603244801_4FGL_J1217.9+3007_daily_bin1403.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/461682/ft1_filtered_4FGL_J1217.9+3007_daily_bin1403.fits scfile=/scratch/kocevski/461682/ft2_4FGL_J1217.9+3007_daily_bin1403.fits outfile=/scratch/kocevski/461682/cmap_HighResolution_602985601_603244801_4FGL_J1217.9+3007_daily_bin1403.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    38.568       1.0000         .10000E-03   10000.    
     4 'norm      '    .11275E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .90719       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .98258       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.633       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.5451       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.7111       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .63122       1.0000         .10000E-03   10000.    
    18 'norm      '    5.0354       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.5664       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    6.0066       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    32.494       1.0000         .10000E-03   10000.    
    29 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .73863       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.5016       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=   3380.289     FROM MIGRAD    STATUS=CONVERGED    781 CALLS     3470 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.521       -.40447E-05** at limit **
   2  Prefactor     .10000E-03    21.007       -.91212E-05** at limit **
   3  Prefactor     38.566        23.072       -.43740E-06    .79647E-04
   4  norm          .10000E-03    1.6623       -.20476E-06** at limit **
   5  Prefactor     .10000E-03    24.549       -.38894E-05** at limit **
   6  Prefactor     .90791        5.8239       -.37363E-05   -.65538E-03
   7  Prefactor     .10000E-03    41.805        .74863E-05** at limit **
   8  Prefactor     .10000E-03    41.222        .95205E-05** at limit **
   9  norm          .98256        1.9833       -.22293E-06   -.42705E-03
  10  Prefactor     .10000E-03    4.0183        .60523E-06** at limit **
  11  Prefactor     .10000E-03    50.962       -.36885E-04** at limit **
  12  norm          .10000E-03    1.7716        .24341E-06** at limit **
  13  Prefactor     14.632        14.524       -.66229E-07    .46124E-04
  14  Prefactor     3.5449        3.1972       -.46944E-06    .52185E-04
  15  Prefactor     4.7108        3.7975        .10115E-05   -.33696E-04
  16  Prefactor     .10000E-03    4.0447        .13804E-06** at limit **
  17  norm          .63121        .38429       -.22680E-07   -.46961E-04
  18  norm          5.0355        7.1829       -.16863E-06   -.20650E-03
  19  Prefactor     .10000E-03    6.8055        .20743E-05** at limit **
  20  Prefactor     .10000E-03    8.9288       -.78673E-05** at limit **
  21  Prefactor     .10000E-03    38.982        .15247E-04** at limit **
  22  Prefactor     .10000E-03    4.2876       -.81721E-06** at limit **
  23  Prefactor     2.5666        5.0772       -.32442E-06   -.25951E-03
  24  norm          .10000E-03    1.9974       -.33622E-06** at limit **
  25  Prefactor     .10000E-03    16.882        .40720E-05** at limit **
  26  norm          6.0066        4.4937       -.27015E-07    .69755E-05
  27  Prefactor     .10000E-03    9.9525        .81421E-05** at limit **
  28  norm          32.489        8.0868       -.14595E-06   -.17923E-02
  29  norm          .10000E-03    32.354        .16584E-04** at limit **
  30  Normalizat    .73885        .26878        .19003E-06    .54728E-04
  31  Prefactor     1.5014        .31193        .13976E-05    .55707E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.5658
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.907909
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.982556
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.6315
  Prefactor  = 3.54494
  Prefactor  = 4.71082
  Prefactor  = 0.0001
  norm       = 0.631209
  norm       = 5.03549
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.56661
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.00659
  Prefactor  = 0.0001
  norm       = 32.4893
  norm       = 0.000100001
  Normalizat = 0.738848
  Prefactor  = 1.50142
 **********
 **   18 **HESSE 
 **********

 FCN=   3380.289     FROM HESSE     STATUS=OK           614 CALLS     4084 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     38.566        23.046        .64539E-04   -1.4465    
   4  norm          .10000E-03    3.2701        .14577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    24.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .90791        6.1473        .26734E-03   -1.5517    
   7  Prefactor     .10000E-03    41.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    41.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .98256        1.7714        .11095E-02   -1.5510    
  10  Prefactor     .10000E-03    4.0262        .11382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    50.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.7794        .75521E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.632        14.543        .10470E-03   -1.4943    
  14  Prefactor     3.5449        3.1988        .94757E-04   -1.5331    
  15  Prefactor     4.7108        3.7861        .95531E-04   -1.5274    
  16  Prefactor     .10000E-03    4.0533        .11415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .63121        .38240        .26818E-04   -1.5549    
  18  norm          5.0355        7.1663        .17607E-03   -1.5259    
  19  Prefactor     .10000E-03    6.8133        .14807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.9148        .16953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    38.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.2953        .11757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.5666        5.0577        .17840E-03   -1.5388    
  24  norm          .10000E-03    2.0025        .80227E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    16.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          6.0066        4.4932        .10339E-03   -1.5218    
  27  Prefactor     .10000E-03    9.9387        .17893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          32.489        8.0288        .70293E-04   -1.4567    
  29  norm          .10000E-03    32.748        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .73885        .31698        .31862E-03   -1.0238    
  31  Prefactor     1.5014        .37030        .27524E-03   -.77500    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0739e-09
Minuit parameter uncertainties:
  1  7.11946e-06
  2  1.10816e-05
  3  23.0515
  4  1.93746e-05
  5  4.23371e-05
  6  4.72533
  7  2.31192e-05
  8  8.83294e-07
  9  1.77148
  10  5.12626e-06
  11  2.12882e-05
  12  3.5202e-06
  13  14.5465
  14  3.19899
  15  3.7863
  16  4.58606e-06
  17  0.382402
  18  7.16752
  19  1.22519e-05
  20  2.16067e-06
  21  1.54635e-05
  22  2.44167e-06
  23  5.0585
  24  2.74098e-06
  25  2.01402e-05
  26  4.49349
  27  4.81056e-06
  28  8.02906
  29  0.000333195
  30  0.317776
  31  0.370962
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.000e-04  3.520e-06  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.501e+00  3.710e-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:  7.388e-01  3.178e-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: 7.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.50e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/461682/likelihoodResults_602985601_603244801_4FGL_J1217.9+3007_daily_bin1403.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) = 3380.2918122
delta logL = -0.00243698034865

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3380.28937524
delta logL = -1.71576175489e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8562       1.0000          .0000       5.0000    
     3 'Normalizat'    .73887       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5014       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=   3380.289     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      244 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    212.42        .75533E-03** at limit **
   2  alpha         1.8983        2.6751        .50000        .13972E-07
   3  Normalizat    .73885        .84938E-01    .31862E-03   -.31203E-04
   4  Prefactor     1.5014        .10103        .27524E-03   -.37641E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.89827
  Normalizat = 0.738847
  Prefactor  = 1.50142
 **********
 **   18 **HESSE 
 **********

 FCN=   3380.289     FROM HESSE     STATUS=OK            29 CALLS      273 TOTAL
                     EDM=   .43E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.9803        .15107E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8983        3.4667        .50000       -.24308    
   3  Normalizat    .73885        .30314        .12745E-04   -1.0238    
   4  Prefactor     1.5014        .36077        .55048E-04   -.77500    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29867e-12
Minuit parameter uncertainties:
  1  9.10746e-07
  2  130.366
  3  0.303831
  4  0.361385
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/461682': 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) = 3380.28937516
delta logL = 5.80025698582e-08

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.000e-04  9.107e-07  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.898e+00  1.304e+02  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.501e+00  3.614e-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:  7.388e-01  3.038e-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/461682/cmap_HighResolution_602985601_603244801_4FGL_J1217.9+3007_daily_bin1403.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.50e-05', job_status='DONE', photon_flux_upper_limit='7.29e-08', time_completed='2021-09-05 06:41:42.197996', job_id='461682', GAL2='1.50', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1630849302.2', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.50', dlogl='5.80e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1403' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:41:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 461682: <4FGL_J1217.9+3007_daily_bin1403> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin1403 184.476 30.1177 602985601 603244801 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 :                                   611.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             364.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   661 sec.
    Turnaround time :                            662 sec.

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

