/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 5 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 = 7685
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1217.9+3007_daily_bin52
RA = 184.476, Dec = 30.1177
tmin = 252806401, tmax = 253065601
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='453004', job_status='RUN', time_executed='2021-09-05 06:06:23.969386', time_epoch_executed='1630847183.97' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='52'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/453004

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/453004/ft1_4FGL_J1217.9+3007_daily_bin52.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/453004/ft2_4FGL_J1217.9+3007_daily_bin52.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/453004/ft1_4FGL_J1217.9+3007_daily_bin52.fits outfile=/scratch/kocevski/453004/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin52.fits ra=184.476 dec=30.1177 rad=12.0 tmin=252806401.0 tmax=253065601.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 1.45
user 1.21
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/453004/ft2_4FGL_J1217.9+3007_daily_bin52.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/453004/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin52.fits evtable="EVENTS" outfile="/scratch/kocevski/453004/ft1_filtered_4FGL_J1217.9+3007_daily_bin52.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.50
user 0.30
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/453004/ft1_filtered_4FGL_J1217.9+3007_daily_bin52.fits" evtable="EVENTS" scfile=/scratch/kocevski/453004/ft2_4FGL_J1217.9+3007_daily_bin52.fits sctable="SC_DATA" outfile=/scratch/kocevski/453004/ltcube_252806401_253065601_4FGL_J1217.9+3007_daily_bin52.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/453004/ft2_4FGL_J1217.9+3007_daily_bin52.fits
.....................!
real 12.54
user 12.14
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/453004/ft1_filtered_4FGL_J1217.9+3007_daily_bin52.fits evtable="EVENTS" scfile=/scratch/kocevski/453004/ft2_4FGL_J1217.9+3007_daily_bin52.fits sctable="SC_DATA" expcube=/scratch/kocevski/453004/ltcube_252806401_253065601_4FGL_J1217.9+3007_daily_bin52.fits outfile=/scratch/kocevski/453004/expmap_252806401_253065601_4FGL_J1217.9+3007_daily_bin52.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/453004/ltcube_252806401_253065601_4FGL_J1217.9+3007_daily_bin52.fits
.....................!
real 189.19
user 184.47
sys 4.31

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/453004/ft1_filtered_4FGL_J1217.9+3007_daily_bin52.fits scfile=/scratch/kocevski/453004/ft2_4FGL_J1217.9+3007_daily_bin52.fits outfile=/scratch/kocevski/453004/cmap_252806401_253065601_4FGL_J1217.9+3007_daily_bin52.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.55
user 0.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.034       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.4022       1.0000         .10000E-03   10000.    
     4 'norm      '    .83758       1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.210       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10551E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10545E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.985       1.0000         .10000E-03   10000.    
     9 'norm      '    4.9015       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.012       1.0000         .10000E-03   10000.    
    12 'norm      '    8.0608       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6984       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.8695       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .43787       1.0000         .10000E-03   10000.    
    18 'norm      '    1.6531       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.289       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .20002       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.9868       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    6.4563       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    7.3437       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    10.024       1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1293       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .64906       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=   6618.180     FROM MIGRAD    STATUS=CONVERGED    869 CALLS     4217 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.031        12.876       -.16240E-06   -.92906E-06
   2  Prefactor     .10000E-03    5.7410       -.35341E-06** at limit **
   3  Prefactor     8.4003        5.3008        .12492E-06   -.10938E-02
   4  norm          .83765        .83635        .24041E-07   -.36023E-06
   5  Prefactor     26.195        18.059        .36582E-05    .26166E-03
   6  Prefactor     .10000E-03    .79210       -.25459E-06** at limit **
   7  Prefactor     .10000E-03    34.065        .99466E-06** at limit **
   8  Prefactor     24.982        30.939       -.10691E-05   -.16743E-04
   9  norm          4.9012        1.5217       -.82493E-07    .44021E-04
  10  Prefactor     .10000E-03    1.7959       -.13950E-07** at limit **
  11  Prefactor     16.000        33.497       -.37492E-05   -.37901E-04
  12  norm          8.0607        3.7145        .17542E-06    .45790E-04
  13  Prefactor     .10000E-03    5.4703        .26955E-06** at limit **
  14  Prefactor     1.6982        1.9863       -.20736E-07   -.60170E-05
  15  Prefactor     9.8691        3.0249       -.57891E-07   -.36369E-05
  16  Prefactor     .10000E-03    3.3866        .18782E-07** at limit **
  17  norm          .43776        .24576       -.60799E-08   -.20747E-03
  18  norm          1.6514        3.3078        .70827E-08   -.18166E-03
  19  Prefactor     11.289        7.4407       -.49225E-07   -.32087E-05
  20  Prefactor     .32962E-02    9.1898       -.19791E-07    .25853E-04
  21  Prefactor     .10000E-03    38.333       -.11897E-05** at limit **
  22  Prefactor     2.9855        3.4050        .49683E-06   -.18348E-02
  23  Prefactor     .10000E-03    1.9154        .93282E-08** at limit **
  24  norm          6.4570        4.4137       -.75273E-06   -.19475E-03
  25  Prefactor     .10000E-03    11.060       -.20404E-06** at limit **
  26  norm          7.3433        5.3529        .14707E-06   -.99253E-03
  27  Prefactor     .10000E-03    21.911        .10263E-06** at limit **
  28  norm          10.028        4.8446       -.77616E-06   -.32973E-03
  29  norm          .10000E-03    10.284        .60043E-06** at limit **
  30  Normalizat    1.1291        .17462        .60491E-07    .61399E-04
  31  Prefactor     .64933        .18501       -.12687E-06    .43375E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.0307
  Prefactor  = 0.0001
  Prefactor  = 8.40032
  norm       = 0.837651
  Prefactor  = 26.1951
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.9822
  norm       = 4.90119
  Prefactor  = 0.0001
  Prefactor  = 16
  norm       = 8.06068
  Prefactor  = 0.0001
  Prefactor  = 1.69823
  Prefactor  = 9.86907
  Prefactor  = 0.0001
  norm       = 0.43776
  norm       = 1.65141
  Prefactor  = 11.2887
  Prefactor  = 0.00329615
  Prefactor  = 0.0001
  Prefactor  = 2.98545
  Prefactor  = 0.0001
  norm       = 6.45697
  Prefactor  = 0.0001
  norm       = 7.34327
  Prefactor  = 0.0001
  norm       = 10.0282
  norm       = 0.000100001
  Normalizat = 1.12911
  Prefactor  = 0.64933
 **********
 **   18 **HESSE 
 **********

 FCN=   6618.180     FROM HESSE     STATUS=OK           638 CALLS     4855 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.031        12.862        .12061E-03   -1.5044    
   2  Prefactor     .10000E-03    5.7745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.4003        5.6014        .69150E-03   -1.5128    
   4  norm          .83765        .81727        .71659E-04   -1.5525    
   5  Prefactor     26.195        18.134        .78249E-04   -1.4684    
   6  Prefactor     .10000E-03    1.2717        .14030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    34.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     24.982        30.913        .80140E-04   -1.4708    
   9  norm          4.9012        1.5212        .52452E-04   -1.5265    
  10  Prefactor     .10000E-03    3.2931        .21056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.000        33.689        .10009E-03   -1.4908    
  12  norm          8.0607        3.7061        .96237E-04   -1.5140    
  13  Prefactor     .10000E-03    5.5559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.6982        1.9732        .11467E-03   -1.5447    
  15  Prefactor     9.8691        3.0236        .72619E-04   -1.5080    
  16  Prefactor     .10000E-03    3.4981        .29206E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .43776        .24191        .28231E-04   -1.5576    
  18  norm          1.6514        3.2901        .20092E-03   -1.5451    
  19  Prefactor     11.289        7.4390        .11924E-03   -1.5036    
  20  Prefactor     .32962E-02    10.131        .89980E-01   -1.5697    
  21  Prefactor     .10000E-03    38.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.9855        5.3656        .11745E-02   -1.5362    
  23  Prefactor     .10000E-03    1.9193        .10994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          6.4570        4.4122        .13507E-03   -1.5200    
  25  Prefactor     .10000E-03    11.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          7.3433        5.4604        .74003E-03   -1.5166    
  27  Prefactor     .10000E-03    22.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          10.028        4.8300        .11860E-03   -1.5075    
  29  norm          .10000E-03    10.543        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.1291        .20088        .22807E-03   -.88823    
  31  Prefactor     .64933        .20950        .32708E-03   -1.0555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.51072e-09
Minuit parameter uncertainties:
  1  12.8647
  2  1.00699e-05
  3  5.60178
  4  0.817276
  5  18.1378
  6  4.52762e-05
  7  0.000129544
  8  30.9325
  9  1.52123
  10  2.10719e-05
  11  33.7292
  12  3.70618
  13  1.35695e-05
  14  1.97327
  15  3.02364
  16  5.31264e-08
  17  0.241912
  18  3.29046
  19  7.43963
  20  0.359943
  21  8.9158e-06
  22  5.36644
  23  1.59014e-06
  24  4.4124
  25  3.70554e-05
  26  5.4608
  27  3.36735e-05
  28  4.83015
  29  0.000176924
  30  0.20102
  31  0.209757
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
625   Normalization:  1.129e+00  2.010e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.74
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 7.02e-08 +/- 3.23e-08
Energy Flux (Fixed Index): 6.25e-05 +/- 2.87e-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) = 6617.24625038
delta logL = 0.933403824284

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6617.22514572
delta logL = 0.954508483249

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.2833       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3760       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0698       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68407       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=   6617.225     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      259 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.2844        35.138        .37156E-02    .51009E-03
   2  alpha         2.3762        3.6452        .19588        .13830E-03
   3  Normalizat    1.0694        .11997        .39390E-01   -.27243E-03
   4  Prefactor     .68429        .85532E-01    .71963E-01   -.25264E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.28436
  alpha      = 2.3762
  Normalizat = 1.06935
  Prefactor  = 0.684286
 **********
 **   18 **HESSE 
 **********

 FCN=   6617.225     FROM HESSE     STATUS=OK            31 CALLS      290 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.2844        3.3140        .73261E-04   -1.5168    
   2  alpha         2.3762        .37570        .76729E-02   -.49542E-01
   3  Normalizat    1.0694        .19185        .23265E-03   -.90742    
   4  Prefactor     .68429        .20936        .31851E-03   -1.0415    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43125e-10
Minuit parameter uncertainties:
  1  3.31413
  2  0.37713
  3  0.19197
  4  0.2096
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/453004': 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) = 6617.22514162
delta logL = 0.954512581178

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  7.284e+00  3.314e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  2.376e+00  3.771e-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.843e-01  2.096e-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.069e+00  1.920e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 23.81
Ra Dec: 184.476 30.118
Photon Index (Free Index): 2.38 +/- 0.38
Photon Flux (Free Index): 1.34e-07 +/- 6.36e-08
Energy Flux (Free Index): 4.64e-05 +/- 1.76e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/453004/cmap_HighResolution_252806401_253065601_4FGL_J1217.9+3007_daily_bin52.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.02e-08', energy_flux2='4.64e-05', photon_flux_error='3.23e-08', dlogl='9.55e-01', energy_flux='6.25e-05', photon_flux2='1.34e-07', job_status='DONE', time_completed='2021-09-05 06:20:45.399312', photon_index_error2='0.38', photon_index2='2.38', ts='21.74', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', energy_flux_error2='1.76e-05', EG='1.13', time_epoch_completed='1630848045.4', return_code='0', job_id='453004', GAL2='0.68', EG2='1.07', return_code2='0', energy_flux_error='2.87e-05', photon_flux_error2='6.36e-08', ts2='23.81', photon_index='1.85' WHERE bin_id='52' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:20:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0164>
Subject: Job 453004: <4FGL_J1217.9+3007_daily_bin52> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin52 184.476 30.1177 252806401 253065601 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 :                                   857.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             322.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            903 sec.

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

