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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin1326
RA = 184.476, Dec = 30.1177
tmin = 583027201, tmax = 583286401
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='461539', job_status='RUN', time_executed='2021-09-05 06:31:13.756771', time_epoch_executed='1630848673.76' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='1326'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/461539

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/461539/ft1_4FGL_J1217.9+3007_daily_bin1326.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/461539/ft2_4FGL_J1217.9+3007_daily_bin1326.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/461539/ft1_4FGL_J1217.9+3007_daily_bin1326.fits outfile=/scratch/kocevski/461539/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin1326.fits ra=184.476 dec=30.1177 rad=12.0 tmin=583027201.0 tmax=583286401.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 5.75
user 3.32
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/461539/ft1_filtered_4FGL_J1217.9+3007_daily_bin1326.fits evtable="EVENTS" scfile=/scratch/kocevski/461539/ft2_4FGL_J1217.9+3007_daily_bin1326.fits sctable="SC_DATA" expcube=/scratch/kocevski/461539/ltcube_583027201_583286401_4FGL_J1217.9+3007_daily_bin1326.fits outfile=/scratch/kocevski/461539/expmap_583027201_583286401_4FGL_J1217.9+3007_daily_bin1326.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/461539/ltcube_583027201_583286401_4FGL_J1217.9+3007_daily_bin1326.fits
.....................!
real 190.42
user 184.97
sys 4.71

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/461539/ft1_filtered_4FGL_J1217.9+3007_daily_bin1326.fits scfile=/scratch/kocevski/461539/ft2_4FGL_J1217.9+3007_daily_bin1326.fits outfile=/scratch/kocevski/461539/cmap_583027201_583286401_4FGL_J1217.9+3007_daily_bin1326.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.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .54064E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.2643       1.0000         .10000E-03   10000.    
     4 'norm      '    7.3930       1.0000         .10000E-03   10000.    
     5 'Prefactor '    48.739       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.2487       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10255E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .22578       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    13.801       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.1877       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.4384       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    15.197       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.0312       1.0000         .10000E-03   10000.    
    21 'Prefactor '    83.033       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .26595E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.8635       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10697E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .12074E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    11.841       1.0000         .10000E-03   10000.    
    28 'norm      '    11.242       1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .86410       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.3097       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=   6553.321     FROM MIGRAD    STATUS=CONVERGED    864 CALLS     4266 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.847       -.87746E-07** at limit **
   2  Prefactor     .10000E-03    9.0184        .11630E-05** at limit **
   3  Prefactor     4.2644        5.1422       -.23687E-05   -.67121E-04
   4  norm          7.3912        2.0679        .45051E-07   -.95533E-04
   5  Prefactor     48.739        29.552       -.39025E-06    .42800E-04
   6  Prefactor     4.2481        2.4847        .41533E-07   -.15700E-03
   7  Prefactor     .10000E-03    56.254       -.61965E-05** at limit **
   8  Prefactor     .10000E-03    73.863        .57796E-05** at limit **
   9  norm          .22508        .82903       -.82947E-06   -.24020E-02
  10  Prefactor     .10000E-03    2.6377        .51359E-08** at limit **
  11  Prefactor     .10000E-03    8.6217       -.57091E-06** at limit **
  12  norm          13.800        4.3120        .16815E-05   -.79972E-03
  13  Prefactor     .10000E-03    4.0956        .27498E-07** at limit **
  14  Prefactor     1.1875        1.8956       -.86643E-06   -.57499E-03
  15  Prefactor     3.4382        2.4023       -.38098E-06   -.25489E-04
  16  Prefactor     .10000E-03    5.0212        .14771E-06** at limit **
  17  norm          .10000E-03    .17845        .12978E-07** at limit **
  18  norm          15.198        6.4550       -.72121E-07   -.12539E-04
  19  Prefactor     .10000E-03    9.7435        .27352E-06** at limit **
  20  Prefactor     4.0213        26.959        .90686E-06   -.59997E-04
  21  Prefactor     83.034        69.494       -.18274E-06   -.77976E-05
  22  Prefactor     .10007E-03    3.9714       -.34892E-07** at limit **
  23  Prefactor     .10000E-03    7.9684        .28276E-06** at limit **
  24  norm          2.8650        4.6551        .54830E-07   -.65073E-03
  25  Prefactor     .10000E-03    44.432        .16264E-05** at limit **
  26  norm          .10000E-03    2.3610       -.99386E-07** at limit **
  27  Prefactor     11.833        27.241        .13210E-05   -.60794E-04
  28  norm          11.244        5.5213        .10702E-05   -.46623E-03
  29  norm          .10000E-03    2.9392       -.80360E-07** at limit **
  30  Normalizat    .86419        .19404       -.78217E-06    .36905E-04
  31  Prefactor     1.3098        .21346        .60911E-06   -.41491E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 4.26438
  norm       = 7.3912
  Prefactor  = 48.7391
  Prefactor  = 4.24807
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  norm       = 0.225083
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.8005
  Prefactor  = 0.0001
  Prefactor  = 1.18745
  Prefactor  = 3.43816
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 15.1976
  Prefactor  = 0.0001
  Prefactor  = 4.02128
  Prefactor  = 83.0336
  Prefactor  = 0.000100069
  Prefactor  = 0.0001
  norm       = 2.86498
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 11.8335
  norm       = 11.2439
  norm       = 0.0001
  Normalizat = 0.864186
  Prefactor  = 1.30979
 **********
 **   18 **HESSE 
 **********

 FCN=   6553.321     FROM HESSE     STATUS=OK           634 CALLS     4900 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    65.858        .46049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.2644        5.1622        .19385E-03   -1.5295    
   4  norm          7.3912        2.0654        .58856E-04   -1.5164    
   5  Prefactor     48.739        29.369        .57439E-04   -1.4311    
   6  Prefactor     4.2481        2.4753        .89120E-04   -1.5296    
   7  Prefactor     .10000E-03    56.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    73.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .22508        .86685        .14266E-03   -1.5613    
  10  Prefactor     .10000E-03    2.6936        .12833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.6260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          13.800        4.2468        .85004E-04   -1.4965    
  13  Prefactor     .10000E-03    4.2488        .31992E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.1875        1.8571        .13208E-03   -1.5490    
  15  Prefactor     3.4382        2.3908        .98655E-04   -1.5337    
  16  Prefactor     .10000E-03    5.0539        .17689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .57162        .64631E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          15.198        6.4290        .10274E-03   -1.4928    
  19  Prefactor     .10000E-03    9.9304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.0213        26.783        .20084E-03   -1.5307    
  21  Prefactor     83.034        69.426        .44081E-04   -1.3883    
  22  Prefactor     .10007E-03    6.7562        .57838E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.0322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.8650        4.6303        .20759E-03   -1.5369    
  25  Prefactor     .10000E-03    44.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    4.5193        .24112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     11.833        27.158        .11642E-03   -1.5020    
  28  norm          11.244        5.4802        .11949E-03   -1.5037    
  29  norm          .10000E-03    2.9420        .13546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .86419        .23130        .28721E-03   -.97730    
  31  Prefactor     1.3098        .25675        .28001E-03   -.83016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6712e-09
Minuit parameter uncertainties:
  1  3.21049e-05
  2  0.000652106
  3  5.1627
  4  2.06538
  5  29.3776
  6  2.47534
  7  0.000818599
  8  0.000425453
  9  0.866896
  10  8.91279e-07
  11  1.59001e-05
  12  4.24687
  13  4.16559e-06
  14  1.85715
  15  2.39087
  16  7.9298e-07
  17  1.05937e-06
  18  6.4293
  19  1.89387e-05
  20  20.7692
  21  69.4934
  22  0.00136566
  23  5.58662e-05
  24  4.63085
  25  0.000384672
  26  1.57103e-05
  27  27.1862
  28  5.48041
  29  1.70456e-05
  30  0.231561
  31  0.256999
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.380e+01  4.247e+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:  1.310e+00  2.570e-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:  8.642e-01  2.316e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 52.99
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 1.20e-07 +/- 3.70e-08
Energy Flux (Fixed Index): 1.07e-04 +/- 3.29e-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) = 6553.2042141
delta logL = 0.116596404696

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6553.19069285
delta logL = 0.130117656764

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.597       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7165       1.0000          .0000       5.0000    
     3 'Normalizat'    .88339       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2996       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=   6553.191     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      213 TOTAL
                     EDM=   .49E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.596        4.4010        .27156E-02   -.63335E-04
   2  alpha         1.7165        .26332        .19488       -.12640E-04
   3  Normalizat    .88372        .18150        .64325E-01   -.55410E-04
   4  Prefactor     1.2995        .21062        .63567E-01   -.53258E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.596
  alpha      = 1.71649
  Normalizat = 0.883718
  Prefactor  = 1.29949
 **********
 **   18 **HESSE 
 **********

 FCN=   6553.191     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .75E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.596        4.2396        .88071E-04   -1.4970    
   2  alpha         1.7165        .27074        .80238E-02   -.31878    
   3  Normalizat    .88372        .21729        .28453E-03   -.97035    
   4  Prefactor     1.2995        .25237        .28115E-03   -.83322    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.50537e-12
Minuit parameter uncertainties:
  1  4.23971
  2  0.271329
  3  0.217501
  4  0.252605
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/461539': 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) = 6553.19068991
delta logL = 0.130120600779

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.360e+01  4.240e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.716e+00  2.713e-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:  1.299e+00  2.526e-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:  8.837e-01  2.175e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 53.39
Ra Dec: 184.476 30.118
Photon Index (Free Index): 1.72 +/- 0.27
Photon Flux (Free Index): 1.02e-07 +/- 4.67e-08
Energy Flux (Free Index): 1.29e-04 +/- 6.38e-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/461539/cmap_HighResolution_583027201_583286401_4FGL_J1217.9+3007_daily_bin1326.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.20e-07', energy_flux2='1.29e-04', photon_flux_error='3.70e-08', dlogl='1.30e-01', energy_flux='1.07e-04', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-09-05 06:45:50.149372', photon_index_error2='0.27', photon_index2='1.72', ts='52.99', fit_tolerance='1e-08', GAL='1.31', photon_index_error='0.00', energy_flux_error2='6.38e-05', EG='0.86', time_epoch_completed='1630849550.15', return_code='0', job_id='461539', GAL2='1.30', EG2='0.88', return_code2='0', energy_flux_error='3.29e-05', photon_flux_error2='4.67e-08', ts2='53.39', photon_index='1.85' WHERE bin_id='1326' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:45:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 461539: <4FGL_J1217.9+3007_daily_bin1326> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin1326 184.476 30.1177 583027201 583286401 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 :                                   863.27 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             325.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            918 sec.

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

