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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin577
RA = 184.476, Dec = 30.1177
tmin = 388886401, tmax = 389145601
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='456588', job_status='RUN', time_executed='2021-09-05 06:15:57.332129', time_epoch_executed='1630847757.33' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='577'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/456588

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/456588/ft1_4FGL_J1217.9+3007_daily_bin577.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/456588/ft2_4FGL_J1217.9+3007_daily_bin577.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/456588/ft1_4FGL_J1217.9+3007_daily_bin577.fits outfile=/scratch/kocevski/456588/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin577.fits ra=184.476 dec=30.1177 rad=12.0 tmin=388886401.0 tmax=389145601.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.51
user 3.29
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/456588/ft1_filtered_4FGL_J1217.9+3007_daily_bin577.fits" evtable="EVENTS" scfile=/scratch/kocevski/456588/ft2_4FGL_J1217.9+3007_daily_bin577.fits sctable="SC_DATA" outfile=/scratch/kocevski/456588/ltcube_388886401_389145601_4FGL_J1217.9+3007_daily_bin577.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/456588/ft2_4FGL_J1217.9+3007_daily_bin577.fits
.....................!
real 12.18
user 11.74
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/456588/ft1_filtered_4FGL_J1217.9+3007_daily_bin577.fits evtable="EVENTS" scfile=/scratch/kocevski/456588/ft2_4FGL_J1217.9+3007_daily_bin577.fits sctable="SC_DATA" expcube=/scratch/kocevski/456588/ltcube_388886401_389145601_4FGL_J1217.9+3007_daily_bin577.fits outfile=/scratch/kocevski/456588/expmap_388886401_389145601_4FGL_J1217.9+3007_daily_bin577.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/456588/ltcube_388886401_389145601_4FGL_J1217.9+3007_daily_bin577.fits
.....................!
real 192.73
user 186.52
sys 5.06

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/456588/ft1_filtered_4FGL_J1217.9+3007_daily_bin577.fits scfile=/scratch/kocevski/456588/ft2_4FGL_J1217.9+3007_daily_bin577.fits outfile=/scratch/kocevski/456588/cmap_388886401_389145601_4FGL_J1217.9+3007_daily_bin577.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.61
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/456588/ft1_filtered_4FGL_J1217.9+3007_daily_bin577.fits scfile=/scratch/kocevski/456588/ft2_4FGL_J1217.9+3007_daily_bin577.fits outfile=/scratch/kocevski/456588/cmap_HighResolution_388886401_389145601_4FGL_J1217.9+3007_daily_bin577.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.58
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .17828       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.7151       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.3352       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7426       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.3189       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .24906       1.0000         .10000E-03   10000.    
    11 'Prefactor '    43.553       1.0000         .10000E-03   10000.    
    12 'norm      '    11.988       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.6394       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.706       1.0000         .10000E-03   10000.    
    17 'norm      '    .73394       1.0000         .10000E-03   10000.    
    18 'norm      '    14.315       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.096       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.541       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.7087       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    19.010       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    21.684       1.0000         .10000E-03   10000.    
    28 'norm      '    8.7126       1.0000         .10000E-03   10000.    
    29 'norm      '    .33327E-02   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3449       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .73941       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=   6536.148     FROM MIGRAD    STATUS=CONVERGED    824 CALLS     4181 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.8725        .14601E-08** at limit **
   2  Prefactor     .23089        38.856       -.77385E-05    .62434E-04
   3  Prefactor     .10000E-03    2.1383        .22465E-08** at limit **
   4  norm          2.7151        1.3035       -.37325E-08   -.55158E-04
   5  Prefactor     5.3283        26.135        .13089E-06    .80503E-05
   6  Prefactor     1.7429        2.2144       -.88635E-07   -.63265E-05
   7  Prefactor     .10000E-03    7.6278        .16137E-06** at limit **
   8  Prefactor     .10000E-03    33.396        .52991E-06** at limit **
   9  norm          2.3191        1.4151       -.21756E-07   -.22288E-04
  10  Prefactor     .22741        2.6039        .38134E-06   -.82178E-05
  11  Prefactor     43.525        35.316        .60276E-06    .26254E-03
  12  norm          11.988        4.0760        .82167E-08    .20849E-03
  13  Prefactor     .10000E-03    3.2243        .10551E-06** at limit **
  14  Prefactor     .10000E-03    .81543        .43609E-07** at limit **
  15  Prefactor     4.6393        2.6222       -.11497E-07   -.46320E-04
  16  Prefactor     10.708        8.2631       -.58045E-06    .11083E-03
  17  norm          .73398        .30587        .31933E-09    .10121E-03
  18  norm          14.314        7.0876        .11138E-06    .14842E-04
  19  Prefactor     13.098        9.1648        .23787E-10    .32568E-04
  20  Prefactor     .10000E-03    8.3821        .32859E-07** at limit **
  21  Prefactor     13.566        39.603       -.14428E-05   -.13247E-03
  22  Prefactor     .10000E-03    1.9207       -.36423E-08** at limit **
  23  Prefactor     4.7076        5.9765       -.11636E-05    .17875E-03
  24  norm          .10000E-03    1.4049       -.16915E-07** at limit **
  25  Prefactor     19.016        25.537       -.48898E-07   -.86582E-04
  26  norm          .10000E-03    1.0141       -.50593E-08** at limit **
  27  Prefactor     21.692        25.569        .54432E-06   -.21053E-04
  28  norm          8.6973        5.3488       -.76244E-06   -.71501E-03
  29  norm          .10001E-03    7.0910        .16427E-05** at limit **
  30  Normalizat    1.3449        .19690       -.20665E-06    .10703E-03
  31  Prefactor     .73943        .21306        .95951E-06   -.81408E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.230894
  Prefactor  = 0.0001
  norm       = 2.71507
  Prefactor  = 5.32834
  Prefactor  = 1.74287
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.31914
  Prefactor  = 0.227407
  Prefactor  = 43.5245
  norm       = 11.988
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.63925
  Prefactor  = 10.7076
  norm       = 0.733978
  norm       = 14.3141
  Prefactor  = 13.0982
  Prefactor  = 0.0001
  Prefactor  = 13.5656
  Prefactor  = 0.0001
  Prefactor  = 4.70763
  norm       = 0.0001
  Prefactor  = 19.0155
  norm       = 0.0001
  Prefactor  = 21.6921
  norm       = 8.69733
  norm       = 0.000100007
  Normalizat = 1.34486
  Prefactor  = 0.739427
 **********
 **   18 **HESSE 
 **********

 FCN=   6536.148     FROM HESSE     STATUS=OK           630 CALLS     4811 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.8781        .17427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .23089        38.855        .37431E-02   -1.5612    
   3  Prefactor     .10000E-03    2.1880        .11541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.7151        1.3034        .61755E-04   -1.5378    
   5  Prefactor     5.3283        25.705        .17399E-03   -1.5246    
   6  Prefactor     1.7429        2.1653        .12086E-03   -1.5444    
   7  Prefactor     .10000E-03    7.6344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    33.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.3191        1.4055        .70545E-04   -1.5403    
  10  Prefactor     .22741        19.166        .24327E-02   -1.5613    
  11  Prefactor     43.525        35.934        .60747E-04   -1.4388    
  12  norm          11.988        4.0726        .90007E-04   -1.5015    
  13  Prefactor     .10000E-03    3.2329        .14173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .81866        .71208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.6393        2.6206        .92609E-04   -1.5277    
  16  Prefactor     10.708        8.2779        .61225E-03   -1.5053    
  17  norm          .73398        .30371        .27303E-04   -1.5537    
  18  norm          14.314        7.0826        .10586E-03   -1.4951    
  19  Prefactor     13.098        9.1631        .11069E-03   -1.4984    
  20  Prefactor     .10000E-03    8.3881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.566        40.096        .10885E-03   -1.4971    
  22  Prefactor     .10000E-03    1.9220        .10942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.7076        6.0411        .92721E-03   -1.5274    
  24  norm          .10000E-03    1.4073        .93551E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     19.016        25.531        .91862E-04   -1.4836    
  26  norm          .10000E-03    1.0152        .79509E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     21.692        25.570        .86015E-04   -1.4776    
  28  norm          8.6973        5.5226        .13580E-03   -1.5118    
  29  norm          .10001E-03    120.21        .35903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.3449        .23141        .24024E-03   -.82237    
  31  Prefactor     .73943        .24616        .35177E-03   -1.0200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14841e-08
Minuit parameter uncertainties:
  1  1.77507e-06
  2  5.99311
  3  3.2567e-06
  4  1.30338
  5  23.4226
  6  2.16535
  7  5.44337e-06
  8  0.000341529
  9  1.40553
  10  4.17589
  11  35.9521
  12  4.07273
  13  3.96452e-06
  14  1.40031e-06
  15  2.62066
  16  8.2788
  17  0.303711
  18  7.083
  19  9.16413
  20  1.50513e-05
  21  40.1754
  22  1.28544e-07
  23  6.04187
  24  2.18716e-06
  25  25.546
  26  6.6304e-08
  27  25.5829
  28  5.52294
  29  0.00181562
  30  0.231594
  31  0.246526
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.199e+01  4.073e+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:  7.394e-01  2.465e-01  0.000e+00  1.000e+01 ( 1.000e+00)
627        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
628        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
625   Normalization:  1.345e+00  2.316e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 50.70
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 1.04e-07 +/- 3.55e-08
Energy Flux (Fixed Index): 9.30e-05 +/- 3.16e-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) = 6535.99910465
delta logL = 0.148908562739

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6535.96323266
delta logL = 0.184780560923

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.355       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6594       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3689       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72755       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=   6535.963     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      218 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.354        4.0215        .29722E-02    .27556E-04
   2  alpha         1.6593        .27498        .21922       -.37885E-04
   3  Normalizat    1.3688        .18598        .53993E-01   -.57069E-05
   4  Prefactor     .72763        .20724        .80117E-01    .49418E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.3536
  alpha      = 1.6593
  Normalizat = 1.36882
  Prefactor  = 0.727635
 **********
 **   18 **HESSE 
 **********

 FCN=   6535.963     FROM HESSE     STATUS=OK            33 CALLS      251 TOTAL
                     EDM=   .92E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.354        4.3424        .92895E-04   -1.5034    
   2  alpha         1.6593        .31871        .89692E-02   -.34296    
   3  Normalizat    1.3688        .21732        .23873E-03   -.81535    
   4  Prefactor     .72763        .24139        .35473E-03   -1.0245    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.20136e-12
Minuit parameter uncertainties:
  1  4.3425
  2  0.319692
  3  0.217461
  4  0.241734
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/456588': 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) = 6535.96323254
delta logL = 0.184780678744

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.135e+01  4.343e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.659e+00  3.197e-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:  7.276e-01  2.417e-01  0.000e+00  1.000e+01 ( 1.000e+00)
627        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
628        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
625   Normalization:  1.369e+00  2.175e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 51.11
Ra Dec: 184.476 30.118
Photon Index (Free Index): 1.66 +/- 0.32
Photon Flux (Free Index): 8.02e-08 +/- 4.58e-08
Energy Flux (Free Index): 1.19e-04 +/- 6.76e-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/456588/cmap_HighResolution_388886401_389145601_4FGL_J1217.9+3007_daily_bin577.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.04e-07', energy_flux2='1.19e-04', photon_flux_error='3.55e-08', dlogl='1.85e-01', energy_flux='9.30e-05', photon_flux2='8.02e-08', job_status='DONE', time_completed='2021-09-05 06:30:24.635366', photon_index_error2='0.32', photon_index2='1.66', ts='50.70', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', energy_flux_error2='6.76e-05', EG='1.34', time_epoch_completed='1630848624.64', return_code='0', job_id='456588', GAL2='0.73', EG2='1.37', return_code2='0', energy_flux_error='3.16e-05', photon_flux_error2='4.58e-08', ts2='51.11', photon_index='1.85' WHERE bin_id='577' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:30:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 456588: <4FGL_J1217.9+3007_daily_bin577> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin577 184.476 30.1177 388886401 389145601 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 :                                   859.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             368.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            880 sec.

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

