/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 2 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 = 7493
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1217.9+3007_daily_bin285
RA = 184.476, Dec = 30.1177
tmin = 313200001, tmax = 313459201
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='454879', job_status='RUN', time_executed='2021-09-05 06:11:01.708711', time_epoch_executed='1630847461.71' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='285'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/454879

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/454879/ft1_4FGL_J1217.9+3007_daily_bin285.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/454879/ft2_4FGL_J1217.9+3007_daily_bin285.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/454879/ft1_4FGL_J1217.9+3007_daily_bin285.fits outfile=/scratch/kocevski/454879/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin285.fits ra=184.476 dec=30.1177 rad=12.0 tmin=313200001.0 tmax=313459201.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.36
user 3.16
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/454879/ft1_filtered_4FGL_J1217.9+3007_daily_bin285.fits evtable="EVENTS" scfile=/scratch/kocevski/454879/ft2_4FGL_J1217.9+3007_daily_bin285.fits sctable="SC_DATA" expcube=/scratch/kocevski/454879/ltcube_313200001_313459201_4FGL_J1217.9+3007_daily_bin285.fits outfile=/scratch/kocevski/454879/expmap_313200001_313459201_4FGL_J1217.9+3007_daily_bin285.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/454879/ltcube_313200001_313459201_4FGL_J1217.9+3007_daily_bin285.fits
.....................!
real 191.00
user 185.33
sys 5.08

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/454879/ft1_filtered_4FGL_J1217.9+3007_daily_bin285.fits scfile=/scratch/kocevski/454879/ft2_4FGL_J1217.9+3007_daily_bin285.fits outfile=/scratch/kocevski/454879/cmap_313200001_313459201_4FGL_J1217.9+3007_daily_bin285.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/454879/ft1_filtered_4FGL_J1217.9+3007_daily_bin285.fits scfile=/scratch/kocevski/454879/ft2_4FGL_J1217.9+3007_daily_bin285.fits outfile=/scratch/kocevski/454879/cmap_HighResolution_313200001_313459201_4FGL_J1217.9+3007_daily_bin285.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.61
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .22465E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.1028       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    14.563       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17279       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.0675       1.0000         .10000E-03   10000.    
    12 'norm      '    5.8785       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.2581       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0747       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.9540       1.0000         .10000E-03   10000.    
    17 'norm      '    6.3170       1.0000         .10000E-03   10000.    
    18 'norm      '    4.0211       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.918       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11366E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    20.796       1.0000         .10000E-03   10000.    
    25 'Prefactor '    38.554       1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .21997       1.0000         .10000E-03   10000.    
    29 'norm      '    17.390       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2235       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .64679       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=   8104.428     FROM MIGRAD    STATUS=CONVERGED    857 CALLS     3638 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.9233        .16629E-06** at limit **
   2  Prefactor     .10000E-03    3.0388        .23765E-06** at limit **
   3  Prefactor     .10001E-03    3.3330        .77326E-06** at limit **
   4  norm          1.1028        .86743        .52600E-08   -.22350E-03
   5  Prefactor     .10000E-03    4.6663        .15219E-06** at limit **
   6  Prefactor     .10000E-03    .71151        .39337E-07** at limit **
   7  Prefactor     .10000E-03    5.0144       -.22844E-06** at limit **
   8  Prefactor     .10000E-03    24.716        .75115E-06** at limit **
   9  norm          14.563        2.0408        .16401E-07   -.98019E-04
  10  Prefactor     .17505        1.7386       -.27012E-06   -.10905E-03
  11  Prefactor     6.0624        13.756       -.99005E-06   -.57987E-04
  12  norm          5.8787        2.6808        .12902E-07    .18480E-04
  13  Prefactor     .10000E-03    2.8832        .62706E-07** at limit **
  14  Prefactor     3.2580        1.9351        .14454E-07    .11298E-03
  15  Prefactor     2.0745        1.7866       -.36817E-07   -.23822E-03
  16  Prefactor     5.9535        5.6719        .24539E-07   -.25624E-04
  17  norm          6.3168        .58208        .55723E-08    .15156E-03
  18  norm          4.0208        3.8095        .28486E-06   -.42395E-04
  19  Prefactor     15.916        10.363        .11218E-06   -.11119E-04
  20  Prefactor     .10000E-03    8.5372       -.29256E-06** at limit **
  21  Prefactor     .10000E-03    57.794       -.19789E-04** at limit **
  22  Prefactor     .10000E-03    3.7310       -.20116E-09** at limit **
  23  Prefactor     .10000E-03    2.9798       -.35753E-06** at limit **
  24  norm          20.806        7.7383       -.11613E-05   -.58096E-04
  25  Prefactor     38.624        28.018        .92017E-05   -.43839E-04
  26  norm          .10000E-03    2.9056       -.24448E-06** at limit **
  27  Prefactor     .10000E-03    11.672       -.19471E-05** at limit **
  28  norm          .14904        3.4742        .39421E-06   -.10206E-02
  29  norm          17.467        9.5687       -.13488E-05   -.18303E-03
  30  Normalizat    1.2239        .17428       -.93443E-06   -.53488E-04
  31  Prefactor     .64651        .19149        .61416E-06   -.11374E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 1.10279
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.5629
  Prefactor  = 0.175051
  Prefactor  = 6.06244
  norm       = 5.87868
  Prefactor  = 0.0001
  Prefactor  = 3.25796
  Prefactor  = 2.07454
  Prefactor  = 5.95352
  norm       = 6.31679
  norm       = 4.02075
  Prefactor  = 15.9159
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.8058
  Prefactor  = 38.624
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.149041
  norm       = 17.4672
  Normalizat = 1.2239
  Prefactor  = 0.646506
 **********
 **   18 **HESSE 
 **********

 FCN=   8104.428     FROM HESSE     STATUS=OK           634 CALLS     4272 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.9387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.0423        .15326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    11.257        .31348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.1028        .86823        .72055E-04   -1.5498    
   5  Prefactor     .10000E-03    4.6743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.6150        .14740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.0177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    24.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          14.563        2.0429        .46342E-04   -1.4945    
  10  Prefactor     .17505        15.298        .22885E-02   -1.5624    
  11  Prefactor     6.0624        13.760        .16300E-03   -1.5215    
  12  norm          5.8787        2.6838        .93962E-04   -1.5223    
  13  Prefactor     .10000E-03    2.8995        .14926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.2580        1.9396        .91463E-04   -1.5347    
  15  Prefactor     2.0745        1.7811        .10651E-03   -1.5420    
  16  Prefactor     5.9535        5.6674        .16456E-03   -1.5220    
  17  norm          6.3168        .58283        .19829E-04   -1.5205    
  18  norm          4.0208        3.8042        .16371E-03   -1.5307    
  19  Prefactor     15.916        10.358        .10039E-03   -1.4910    
  20  Prefactor     .10000E-03    8.5606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    57.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.7508        .16981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    14.657        .30149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          20.806        7.7718        .87831E-04   -1.4795    
  25  Prefactor     38.624        28.791        .64551E-04   -1.4464    
  26  norm          .10000E-03    3.0174        .29958E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    11.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .14904        123.43        .27039E-02   -1.5631    
  29  norm          17.467        13.641        .96043E-04   -1.4872    
  30  Normalizat    1.2239        .20357        .25940E-03   -.85867    
  31  Prefactor     .64651        .22277        .39051E-03   -1.0566    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.67392e-08
Minuit parameter uncertainties:
  1  6.25805e-07
  2  3.18044e-07
  3  0.00050125
  4  0.868244
  5  1.41078e-06
  6  2.46556e-06
  7  7.23559e-07
  8  3.93847e-06
  9  2.0429
  10  3.27276
  11  13.7669
  12  2.68382
  13  1.67028e-06
  14  1.93963
  15  1.78114
  16  5.6679
  17  0.582835
  18  3.80443
  19  10.3594
  20  1.39099e-06
  21  1.90482e-05
  22  1.43499e-06
  23  8.69719e-05
  24  7.77217
  25  28.8014
  26  3.40509e-06
  27  3.09614e-05
  28  8.59299
  29  13.643
  30  0.203704
  31  0.223079
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  5.879e+00  2.684e+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:  6.465e-01  2.231e-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.224e+00  2.037e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.33
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 5.12e-08 +/- 2.34e-08
Energy Flux (Fixed Index): 4.56e-05 +/- 2.08e-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) = 8104.42762311
delta logL = 0.000736235489967

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8104.4275965
delta logL = 0.00076284728766

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.8661       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8689       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2231       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64695       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=   8104.428     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      230 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.8608        62.155        .41452E-02   -.58549E-03
   2  alpha         1.8680        3.2441        .28301        .24264E-04
   3  Normalizat    1.2233        .19542        .58671E-01    .20831E-04
   4  Prefactor     .64688        .16479        .88104E-01    .43075E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.86076
  alpha      = 1.86798
  Normalizat = 1.22326
  Prefactor  = 0.64688
 **********
 **   18 **HESSE 
 **********

 FCN=   8104.428     FROM HESSE     STATUS=OK            33 CALLS      263 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.8608        2.6480        .46818E-03   -1.5224    
   2  alpha         1.8680        .35433        .11028E-01   -.25558    
   3  Normalizat    1.2233        .19625        .25945E-03   -.85887    
   4  Prefactor     .64688        .22113        .39039E-03   -1.0565    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65339e-12
Minuit parameter uncertainties:
  1  2.64809
  2  0.355615
  3  0.196367
  4  0.221429
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/454879': 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) = 8104.42758994
delta logL = 0.000769398581724

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  5.861e+00  2.648e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.868e+00  3.556e-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:  6.469e-01  2.214e-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.223e+00  1.964e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.39
Ra Dec: 184.476 30.118
Photon Index (Free Index): 1.87 +/- 0.36
Photon Flux (Free Index): 5.19e-08 +/- 2.88e-08
Energy Flux (Free Index): 4.47e-05 +/- 3.03e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/454879/cmap_HighResolution_313200001_313459201_4FGL_J1217.9+3007_daily_bin285.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.12e-08', energy_flux2='4.47e-05', photon_flux_error='2.34e-08', dlogl='7.69e-04', energy_flux='4.56e-05', photon_flux2='5.19e-08', job_status='DONE', time_completed='2021-09-05 06:27:05.187860', photon_index_error2='0.36', photon_index2='1.87', ts='16.33', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', energy_flux_error2='3.03e-05', EG='1.22', time_epoch_completed='1630848425.19', return_code='0', job_id='454879', GAL2='0.65', EG2='1.22', return_code2='0', energy_flux_error='2.08e-05', photon_flux_error2='2.88e-08', ts2='16.39', photon_index='1.85' WHERE bin_id='285' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:27:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 454879: <4FGL_J1217.9+3007_daily_bin285> in cluster <slac> Done

Job <4FGL_J1217.9+3007_daily_bin285> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 06:10:48 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 06:10:48 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:10:48 2021
Terminated at Sun Sep  5 06:27:05 2021
Results reported at Sun Sep  5 06:27:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin285 184.476 30.1177 313200001 313459201 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 :                                   952.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             352.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            977 sec.

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

