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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin56
RA = 184.476, Dec = 30.1177
tmin = 253843201, tmax = 254102401
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='453013', job_status='RUN', time_executed='2021-09-05 06:09:04.820456', time_epoch_executed='1630847344.82' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='56'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/453013

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/453013/ft1_4FGL_J1217.9+3007_daily_bin56.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/453013/ft2_4FGL_J1217.9+3007_daily_bin56.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/453013/ft1_4FGL_J1217.9+3007_daily_bin56.fits outfile=/scratch/kocevski/453013/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin56.fits ra=184.476 dec=30.1177 rad=12.0 tmin=253843201.0 tmax=254102401.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.50
user 1.26
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/453013/ft1_filtered_4FGL_J1217.9+3007_daily_bin56.fits evtable="EVENTS" scfile=/scratch/kocevski/453013/ft2_4FGL_J1217.9+3007_daily_bin56.fits sctable="SC_DATA" expcube=/scratch/kocevski/453013/ltcube_253843201_254102401_4FGL_J1217.9+3007_daily_bin56.fits outfile=/scratch/kocevski/453013/expmap_253843201_254102401_4FGL_J1217.9+3007_daily_bin56.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/453013/ltcube_253843201_254102401_4FGL_J1217.9+3007_daily_bin56.fits
.....................!
real 189.77
user 185.07
sys 4.34

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/453013/ft1_filtered_4FGL_J1217.9+3007_daily_bin56.fits scfile=/scratch/kocevski/453013/ft2_4FGL_J1217.9+3007_daily_bin56.fits outfile=/scratch/kocevski/453013/cmap_253843201_254102401_4FGL_J1217.9+3007_daily_bin56.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/453013/ft1_filtered_4FGL_J1217.9+3007_daily_bin56.fits scfile=/scratch/kocevski/453013/ft2_4FGL_J1217.9+3007_daily_bin56.fits outfile=/scratch/kocevski/453013/cmap_HighResolution_253843201_254102401_4FGL_J1217.9+3007_daily_bin56.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/453013/ft1_filtered_4FGL_J1217.9+3007_daily_bin56.fits evtable="EVENTS" scfile=/scratch/kocevski/453013/ft2_4FGL_J1217.9+3007_daily_bin56.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/453013/Model_4FGL_J1217.9+3007_daily_bin56.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/453013/ft1_filtered_4FGL_J1217.9+3007_daily_bin56.fits.....................!
real 47.97
user 45.91
sys 1.62

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.379       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.0638       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .45871E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3033       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.236       1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.169       1.0000         .10000E-03   10000.    
     9 'norm      '    3.3135       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.938       1.0000         .10000E-03   10000.    
    12 'norm      '    7.2324       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2328       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.9871       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.9439       1.0000         .10000E-03   10000.    
    17 'norm      '    .20329       1.0000         .10000E-03   10000.    
    18 'norm      '    2.6498       1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.022       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.7424       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .53295       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    52.702       1.0000         .10000E-03   10000.    
    26 'norm      '    6.4253       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    5.4220       1.0000         .10000E-03   10000.    
    29 'norm      '    11.768       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0549       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .84436       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=   5352.852     FROM MIGRAD    STATUS=CONVERGED    807 CALLS     4171 TOTAL
                     EDM=   .91E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.668        .77113E-06** at limit **
   2  Prefactor     13.378        15.388       -.22509E-06   -.71028E-04
   3  Prefactor     .10000E-03    1.7419        .13810E-06** at limit **
   4  norm          1.0635        1.1668       -.29297E-06    .31585E-04
   5  Prefactor     .10000E-03    19.044        .22440E-05** at limit **
   6  Prefactor     2.3042        1.8027       -.22142E-06   -.31448E-03
   7  Prefactor     16.238        25.552        .40115E-06   -.22321E-04
   8  Prefactor     22.246        62.461        .34674E-06   -.93562E-05
   9  norm          3.3138        1.4683       -.10547E-06   -.37152E-03
  10  Prefactor     .10000E-03    1.5674        .23962E-06** at limit **
  11  Prefactor     16.941        27.304        .26350E-06   -.11006E-04
  12  norm          7.2326        3.6450        .23144E-07   -.19249E-04
  13  Prefactor     .10000E-03    2.6030        .12930E-06** at limit **
  14  Prefactor     1.2328        2.0928        .74490E-07    .10665E-04
  15  Prefactor     7.9867        3.1691       -.38602E-07   -.54450E-04
  16  Prefactor     3.9439        4.1786       -.54582E-07   -.76117E-06
  17  norm          .20329        .16058        .70859E-08    .54656E-04
  18  norm          2.6496        5.0102        .21605E-06   -.67794E-05
  19  Prefactor     25.020        13.931       -.18524E-07   -.11156E-04
  20  Prefactor     .10000E-03    8.4029        .17916E-06** at limit **
  21  Prefactor     .10000E-03    38.665        .38312E-06** at limit **
  22  Prefactor     6.7427        6.7641       -.59250E-08    .45720E-05
  23  Prefactor     .53348        6.0617        .16761E-05   -.53167E-04
  24  norm          .10000E-03    1.8455        .34349E-06** at limit **
  25  Prefactor     52.693        33.947       -.44181E-07   -.19758E-04
  26  norm          6.4249        4.4854        .19654E-07    .26446E-05
  27  Prefactor     .10000E-03    13.000        .41415E-06** at limit **
  28  norm          5.4209        8.2668       -.27184E-07   -.21689E-04
  29  norm          11.769        12.970        .27357E-06   -.29761E-04
  30  Normalizat    1.0552        .21344       -.22113E-05   -.39961E-04
  31  Prefactor     .84399        .23374        .17178E-05   -.17461E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 13.378
  Prefactor  = 0.0001
  norm       = 1.06352
  Prefactor  = 0.000100001
  Prefactor  = 2.30416
  Prefactor  = 16.2375
  Prefactor  = 22.2461
  norm       = 3.31377
  Prefactor  = 0.0001
  Prefactor  = 16.9407
  norm       = 7.23255
  Prefactor  = 0.0001
  Prefactor  = 1.23283
  Prefactor  = 7.98672
  Prefactor  = 3.94387
  norm       = 0.203285
  norm       = 2.64963
  Prefactor  = 25.0198
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.74275
  Prefactor  = 0.533484
  norm       = 0.0001
  Prefactor  = 52.6925
  norm       = 6.42488
  Prefactor  = 0.0001
  norm       = 5.42093
  norm       = 11.7689
  Normalizat = 1.05522
  Prefactor  = 0.843992
 **********
 **   18 **HESSE 
 **********

 FCN=   5352.852     FROM HESSE     STATUS=OK           636 CALLS     4807 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.378        15.421        .10951E-03   -1.4976    
   3  Prefactor     .10000E-03    1.7505        .94339E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.0635        1.1432        .77051E-04   -1.5502    
   5  Prefactor     .10000E-03    90.440        .57401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.3042        1.7975        .83016E-04   -1.5404    
   7  Prefactor     16.238        25.552        .99399E-04   -1.4902    
   8  Prefactor     22.246        62.425        .85071E-04   -1.4764    
   9  norm          3.3138        1.4673        .56193E-04   -1.5344    
  10  Prefactor     .10000E-03    1.5881        .89541E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.941        27.296        .97316E-04   -1.4885    
  12  norm          7.2326        3.6569        .88210E-04   -1.5170    
  13  Prefactor     .10000E-03    2.6110        .11530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.2328        2.0550        .12371E-03   -1.5486    
  15  Prefactor     7.9867        3.1656        .76707E-04   -1.5143    
  16  Prefactor     3.9439        4.1734        .14791E-03   -1.5311    
  17  norm          .20329        .15796        .25140E-04   -1.5618    
  18  norm          2.6496        4.9813        .21107E-03   -1.5382    
  19  Prefactor     25.020        13.928        .80082E-04   -1.4707    
  20  Prefactor     .10000E-03    8.4072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    38.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.7427        6.7638        .15453E-03   -1.5189    
  23  Prefactor     .53348        6.1000        .17443E-02   -1.5562    
  24  norm          .10000E-03    1.8527        .97039E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     52.693        33.950        .55248E-04   -1.4255    
  26  norm          6.4249        4.4831        .12517E-03   -1.5201    
  27  Prefactor     .10000E-03    13.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          5.4209        8.4895        .16541E-03   -1.5242    
  29  norm          11.769        13.362        .11678E-03   -1.5022    
  30  Normalizat    1.0552        .23528        .24116E-03   -.91203    
  31  Prefactor     .84399        .25925        .30882E-03   -.98127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.81668e-09
Minuit parameter uncertainties:
  1  4.04266e-05
  2  15.4252
  3  1.13164e-06
  4  1.14327
  5  0.000534304
  6  1.79757
  7  25.5688
  8  62.6091
  9  1.46736
  10  9.14816e-07
  11  27.3157
  12  3.65702
  13  1.30528e-06
  14  2.05507
  15  3.16567
  16  4.17368
  17  0.157965
  18  4.9821
  19  13.9301
  20  5.63901e-07
  21  7.74531e-06
  22  6.76452
  23  3.60804
  24  7.51442e-07
  25  33.9622
  26  4.48331
  27  1.54882e-06
  28  8.49139
  29  13.3651
  30  0.235512
  31  0.259624
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  7.233e+00  3.657e+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:  8.440e-01  2.596e-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.055e+00  2.355e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.29
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 6.30e-08 +/- 3.18e-08
Energy Flux (Fixed Index): 5.61e-05 +/- 2.84e-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) = 5352.69752228
delta logL = 0.154560760951

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5352.69023592
delta logL = 0.161847118176

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.4962       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6717       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0642       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83832       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=   5352.690     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      201 TOTAL
                     EDM=   .75E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.4970        4.0411        .36620E-02    .67579E-04
   2  alpha         1.6715        .34232        .21400       -.12518E-04
   3  Normalizat    1.0642        .18814        .39689E-01    .39279E-05
   4  Prefactor     .83835        .21848        .70021E-01    .19242E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.497
  alpha      = 1.67146
  Normalizat = 1.06419
  Prefactor  = 0.838353
 **********
 **   18 **HESSE 
 **********

 FCN=   5352.690     FROM HESSE     STATUS=OK            31 CALLS      232 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.4970        3.4976        .90876E-04   -1.5160    
   2  alpha         1.6715        .31321        .89437E-02   -.33781    
   3  Normalizat    1.0642        .21851        .24034E-03   -.90910    
   4  Prefactor     .83835        .25364        .30981E-03   -.98330    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51033e-12
Minuit parameter uncertainties:
  1  3.4977
  2  0.314133
  3  0.218698
  4  0.253997
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/453013': 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) = 5352.69023561
delta logL = 0.161847432984

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  7.497e+00  3.498e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.671e+00  3.141e-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:  8.384e-01  2.540e-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.064e+00  2.187e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.75
Ra Dec: 184.476 30.118
Photon Index (Free Index): 1.67 +/- 0.31
Photon Flux (Free Index): 5.36e-08 +/- 2.97e-08
Energy Flux (Free Index): 7.69e-05 +/- 5.69e-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/453013/cmap_HighResolution_253843201_254102401_4FGL_J1217.9+3007_daily_bin56.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.30e-08', energy_flux2='7.69e-05', photon_flux_error='3.18e-08', dlogl='1.62e-01', energy_flux='5.61e-05', photon_flux2='5.36e-08', job_status='DONE', time_completed='2021-09-05 06:21:21.070951', photon_index_error2='0.31', photon_index2='1.67', ts='14.29', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='5.69e-05', EG='1.06', time_epoch_completed='1630848081.07', return_code='0', job_id='453013', GAL2='0.84', EG2='1.06', return_code2='0', energy_flux_error='2.84e-05', photon_flux_error2='2.97e-08', ts2='14.75', photon_index='1.85' WHERE bin_id='56' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:21:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 453013: <4FGL_J1217.9+3007_daily_bin56> in cluster <slac> Done

Job <4FGL_J1217.9+3007_daily_bin56> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Sep  5 06:05:44 2021
Job was executed on host(s) <bullet0169>, 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:21:21 2021
Results reported at Sun Sep  5 06:21:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin56 184.476 30.1177 253843201 254102401 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 :                                   736.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             308.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            937 sec.

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

