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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin1109
RA = 184.476, Dec = 30.1177
tmin = 526780801, tmax = 527040001
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='460276', job_status='RUN', time_executed='2021-09-05 06:27:50.588157', time_epoch_executed='1630848470.59' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='1109'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/460276

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/460276/ft1_4FGL_J1217.9+3007_daily_bin1109.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/460276/ft2_4FGL_J1217.9+3007_daily_bin1109.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/460276/ft1_4FGL_J1217.9+3007_daily_bin1109.fits outfile=/scratch/kocevski/460276/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin1109.fits ra=184.476 dec=30.1177 rad=12.0 tmin=526780801.0 tmax=527040001.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 4.40
user 4.11
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/460276/ft1_filtered_4FGL_J1217.9+3007_daily_bin1109.fits evtable="EVENTS" scfile=/scratch/kocevski/460276/ft2_4FGL_J1217.9+3007_daily_bin1109.fits sctable="SC_DATA" expcube=/scratch/kocevski/460276/ltcube_526780801_527040001_4FGL_J1217.9+3007_daily_bin1109.fits outfile=/scratch/kocevski/460276/expmap_526780801_527040001_4FGL_J1217.9+3007_daily_bin1109.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/460276/ltcube_526780801_527040001_4FGL_J1217.9+3007_daily_bin1109.fits
.....................!
real 196.31
user 191.60
sys 4.32

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/460276/ft1_filtered_4FGL_J1217.9+3007_daily_bin1109.fits scfile=/scratch/kocevski/460276/ft2_4FGL_J1217.9+3007_daily_bin1109.fits outfile=/scratch/kocevski/460276/cmap_526780801_527040001_4FGL_J1217.9+3007_daily_bin1109.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.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.307       1.0000         .10000E-03   10000.    
     4 'norm      '    4.8331       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.949       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.7067       1.0000         .10000E-03   10000.    
     7 'Prefactor '    34.449       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.3110       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11310E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    15.259       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.2007       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.1483       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.2366       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.8492       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.4391       1.0000         .10000E-03   10000.    
    21 'Prefactor '    100.03       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.1335       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .94375       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.2616       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=   5913.452     FROM MIGRAD    STATUS=CONVERGED    800 CALLS     4077 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.1318        .46052E-07** at limit **
   2  Prefactor     .10000E-03    7.1646       -.99432E-07** at limit **
   3  Prefactor     16.307        7.6008        .14569E-06    .38751E-04
   4  norm          4.8325        1.9321       -.35328E-07    .18474E-04
   5  Prefactor     19.913        27.511       -.26399E-05   -.21187E-03
   6  Prefactor     2.7062        2.2107        .95518E-07    .69092E-05
   7  Prefactor     34.392        31.461       -.38786E-05   -.45350E-03
   8  Prefactor     .10000E-03    31.854       -.60898E-06** at limit **
   9  norm          3.3103        1.5899        .72729E-07    .36949E-05
  10  Prefactor     .10000E-03    3.2676        .15937E-06** at limit **
  11  Prefactor     .10000E-03    65.832        .24812E-07** at limit **
  12  norm          15.257        6.0740       -.11846E-05    .72721E-04
  13  Prefactor     .10000E-03    4.1114        .13963E-06** at limit **
  14  Prefactor     4.2012        4.1868        .31291E-05   -.31280E-03
  15  Prefactor     3.1477        2.6675       -.26515E-06   -.11621E-03
  16  Prefactor     .10000E-03    2.8652        .10557E-06** at limit **
  17  norm          .10000E-03    .11413        .11372E-06** at limit **
  18  norm          8.2361        5.8285       -.87704E-07   -.73322E-04
  19  Prefactor     6.8481        7.8623       -.23922E-06   -.95925E-05
  20  Prefactor     4.4414        24.036        .11237E-06   -.75759E-05
  21  Prefactor     99.989        94.018       -.36476E-05   -.10255E-03
  22  Prefactor     .10000E-03    2.5801        .67085E-07** at limit **
  23  Prefactor     .10000E-03    4.1812       -.26553E-07** at limit **
  24  norm          .10000E-03    2.8585       -.30468E-06** at limit **
  25  Prefactor     .10000E-03    18.141        .75849E-07** at limit **
  26  norm          2.1342        3.5535        .28571E-06    .44077E-04
  27  Prefactor     .10000E-03    7.8875       -.89877E-07** at limit **
  28  norm          .10000E-03    1.7306        .69225E-08** at limit **
  29  norm          .10000E-03    2.0907        .52059E-08** at limit **
  30  Normalizat    .94461        .21619        .49533E-05   -.26333E-03
  31  Prefactor     1.2605        .23270       -.41509E-05    .12265E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.307
  norm       = 4.83246
  Prefactor  = 19.9126
  Prefactor  = 2.7062
  Prefactor  = 34.3923
  Prefactor  = 0.0001
  norm       = 3.31034
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 15.2574
  Prefactor  = 0.0001
  Prefactor  = 4.20119
  Prefactor  = 3.14768
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.2361
  Prefactor  = 6.84814
  Prefactor  = 4.4414
  Prefactor  = 99.9885
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.1342
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.944611
  Prefactor  = 1.26051
 **********
 **   18 **HESSE 
 **********

 FCN=   5913.452     FROM HESSE     STATUS=OK           616 CALLS     4693 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.1390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.2038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.307        7.6102        .99182E-04   -1.4900    
   4  norm          4.8325        1.9317        .65004E-04   -1.5268    
   5  Prefactor     19.913        27.712        .89674E-04   -1.4815    
   6  Prefactor     2.7062        2.2022        .95473E-04   -1.5379    
   7  Prefactor     34.392        32.614        .68276E-04   -1.4534    
   8  Prefactor     .10000E-03    31.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.3103        1.5866        .63287E-04   -1.5344    
  10  Prefactor     .10000E-03    3.3871        .27136E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    66.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          15.257        6.1158        .96171E-04   -1.4927    
  13  Prefactor     .10000E-03    4.1333        .15227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.2012        4.3019        .65130E-03   -1.5298    
  15  Prefactor     3.1477        2.6601        .10787E-03   -1.5353    
  16  Prefactor     .10000E-03    2.8742        .12707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .15844        .50188E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.2361        5.8226        .13969E-03   -1.5134    
  19  Prefactor     6.8481        7.8567        .15331E-03   -1.5185    
  20  Prefactor     4.4414        24.025        .19113E-03   -1.5286    
  21  Prefactor     99.989        94.579        .20099E-03   -1.3705    
  22  Prefactor     .10000E-03    2.5822        .12063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.2379        .15351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.8808        .12680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    18.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.1342        3.5324        .18155E-03   -1.5416    
  27  Prefactor     .10000E-03    7.8926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    1.7444        .98776E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    2.0918        .10859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .94461        .24959        .29005E-03   -.94910    
  31  Prefactor     1.2605        .27092        .29150E-03   -.84489    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68791e-09
Minuit parameter uncertainties:
  1  7.03976e-06
  2  4.2013e-06
  3  7.61063
  4  1.93171
  5  27.7297
  6  2.20231
  7  32.6307
  8  0.000140947
  9  1.58663
  10  2.41694e-06
  11  0.000957463
  12  6.11604
  13  5.57637e-06
  14  4.3022
  15  2.66017
  16  4.27013e-07
  17  2.63248e-06
  18  5.82304
  19  7.85787
  20  20.6722
  21  94.7219
  22  1.05175e-06
  23  1.05772e-05
  24  1.60248e-06
  25  2.46861e-05
  26  3.53279
  27  1.43288e-05
  28  1.47406e-06
  29  2.39596e-07
  30  0.249895
  31  0.271217
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.526e+01  6.116e+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.261e+00  2.712e-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:  9.446e-01  2.499e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 29.15
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 1.33e-07 +/- 5.33e-08
Energy Flux (Fixed Index): 1.18e-04 +/- 4.74e-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) = 5913.30575073
delta logL = 0.146147210234

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5913.27732471
delta logL = 0.174573229653

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.099       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6984       1.0000          .0000       5.0000    
     3 'Normalizat'    .96258       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2522       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=   5913.277     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      215 TOTAL
                     EDM=   .31E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.100        5.4475        .25769E-02    .36109E-04
   2  alpha         1.6985        .25650        .18183       -.12233E-04
   3  Normalizat    .96258        .20021        .45696E-01    .14257E-04
   4  Prefactor     1.2522        .22810        .66147E-01    .62106E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 15.1004
  alpha      = 1.69851
  Normalizat = 0.962579
  Prefactor  = 1.2522
 **********
 **   18 **HESSE 
 **********

 FCN=   5913.277     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.100        5.2961        .99477E-04   -1.4931    
   2  alpha         1.6985        .26143        .76356E-02   -.32636    
   3  Normalizat    .96258        .23469        .28763E-03   -.94295    
   4  Prefactor     1.2522        .26764        .29259E-03   -.84740    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95828e-11
Minuit parameter uncertainties:
  1  5.2963
  2  0.261965
  3  0.234943
  4  0.267936
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/460276': 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) = 5913.27732461
delta logL = 0.174573328112

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.510e+01  5.296e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.699e+00  2.620e-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.252e+00  2.679e-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:  9.626e-01  2.349e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 30.17
Ra Dec: 184.476 30.118
Photon Index (Free Index): 1.70 +/- 0.26
Photon Flux (Free Index): 1.11e-07 +/- 5.27e-08
Energy Flux (Free Index): 1.48e-04 +/- 7.67e-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/460276/cmap_HighResolution_526780801_527040001_4FGL_J1217.9+3007_daily_bin1109.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.33e-07', energy_flux2='1.48e-04', photon_flux_error='5.33e-08', dlogl='1.75e-01', energy_flux='1.18e-04', photon_flux2='1.11e-07', job_status='DONE', time_completed='2021-09-05 06:41:04.345173', photon_index_error2='0.26', photon_index2='1.70', ts='29.15', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', energy_flux_error2='7.67e-05', EG='0.94', time_epoch_completed='1630849264.35', return_code='0', job_id='460276', GAL2='1.25', EG2='0.96', return_code2='0', energy_flux_error='4.74e-05', photon_flux_error2='5.27e-08', ts2='30.17', photon_index='1.85' WHERE bin_id='1109' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:41:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 460276: <4FGL_J1217.9+3007_daily_bin1109> in cluster <slac> Done

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

Your job looked like:

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

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

