/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 34 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 = 7417
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1217.9+3007_daily_bin523
RA = 184.476, Dec = 30.1177
tmin = 374889601, tmax = 375148801
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='456499', job_status='RUN', time_executed='2021-09-05 06:16:42.742468', time_epoch_executed='1630847802.74' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='523'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/456499

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/456499/ft1_4FGL_J1217.9+3007_daily_bin523.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/456499/ft2_4FGL_J1217.9+3007_daily_bin523.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/456499/ft1_4FGL_J1217.9+3007_daily_bin523.fits outfile=/scratch/kocevski/456499/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin523.fits ra=184.476 dec=30.1177 rad=12.0 tmin=374889601.0 tmax=375148801.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.60
user 3.36
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/456499/ft1_filtered_4FGL_J1217.9+3007_daily_bin523.fits evtable="EVENTS" scfile=/scratch/kocevski/456499/ft2_4FGL_J1217.9+3007_daily_bin523.fits sctable="SC_DATA" expcube=/scratch/kocevski/456499/ltcube_374889601_375148801_4FGL_J1217.9+3007_daily_bin523.fits outfile=/scratch/kocevski/456499/expmap_374889601_375148801_4FGL_J1217.9+3007_daily_bin523.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/456499/ltcube_374889601_375148801_4FGL_J1217.9+3007_daily_bin523.fits
.....................!
real 192.21
user 187.19
sys 4.60

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/456499/ft1_filtered_4FGL_J1217.9+3007_daily_bin523.fits scfile=/scratch/kocevski/456499/ft2_4FGL_J1217.9+3007_daily_bin523.fits outfile=/scratch/kocevski/456499/cmap_374889601_375148801_4FGL_J1217.9+3007_daily_bin523.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.60
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/456499/ft1_filtered_4FGL_J1217.9+3007_daily_bin523.fits scfile=/scratch/kocevski/456499/ft2_4FGL_J1217.9+3007_daily_bin523.fits outfile=/scratch/kocevski/456499/cmap_HighResolution_374889601_375148801_4FGL_J1217.9+3007_daily_bin523.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.69
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.7198       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.566       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2372       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .75254E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .72771       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.4474       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.7346       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.2027       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.7371       1.0000         .10000E-03   10000.    
    17 'norm      '    1.5201       1.0000         .10000E-03   10000.    
    18 'norm      '    3.1083       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10238E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10100E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    45.609       1.0000         .10000E-03   10000.    
    26 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    28.345       1.0000         .10000E-03   10000.    
    28 'norm      '    2.2051       1.0000         .10000E-03   10000.    
    29 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2095       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .72236       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=   6269.769     FROM MIGRAD    STATUS=CONVERGED    816 CALLS     4121 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.3850        .90712E-02** at limit **
   2  Prefactor     .10000E-03    3.6217        .90712E-02** at limit **
   3  Prefactor     .10000E-03    2.7143        .90712E-02** at limit **
   4  norm          1.7197        1.2256        .80087E-02    .24711E-03
   5  Prefactor     19.560        20.110        .22637E-02    .12479E-03
   6  Prefactor     2.2368        2.2557        .68702E-02    .55832E-03
   7  Prefactor     .10000E-03    10.257        .13888    ** at limit **
   8  Prefactor     .10000E-03    32.731        .90712E-02** at limit **
   9  norm          .72739        .86378        .12168E-01    .63761E-03
  10  Prefactor     .10000E-03    1.2800        .90712E-02** at limit **
  11  Prefactor     .10000E-03    13.912        .90712E-02** at limit **
  12  norm          8.4472        3.3359        .34482E-02    .62493E-03
  13  Prefactor     4.7341        4.7217        .46231E-02   -.44741E-04
  14  Prefactor     .10000E-03    .58486        .90712E-02** at limit **
  15  Prefactor     5.2031        2.7537        .44059E-02    .48694E-02
  16  Prefactor     3.7375        4.5489        .52217E-02    .18632E-03
  17  norm          1.5201        .34679        .47960E-02    .12859E-04
  18  norm          3.1084        3.0578        .57499E-02   -.30237E-04
  19  Prefactor     .10000E-03    9.7081        .90712E-02** at limit **
  20  Prefactor     .10000E-03    5.6747        .90712E-02** at limit **
  21  Prefactor     .10000E-03    21.167        .90712E-02** at limit **
  22  Prefactor     .10000E-03    2.7010        .90712E-02** at limit **
  23  Prefactor     .10000E-03    3.6184        .90712E-02** at limit **
  24  norm          .10000E-03    1.9817        .90712E-02** at limit **
  25  Prefactor     45.601        26.290        .14842E-02    .17683E-02
  26  norm          .10000E-03    2.4763        .90712E-02** at limit **
  27  Prefactor     28.344        25.233        .18813E-02   -.10113E-03
  28  norm          2.2038        2.0976        .69259E-02   -.19692E-03
  29  norm          .10000E-03    4.0791        .90712E-02** at limit **
  30  Normalizat    1.2097        .17616        .51650E-01   -.38456E-04
  31  Prefactor     .72210        .18745        .72838E-01    .15291E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.71968
  Prefactor  = 19.5598
  Prefactor  = 2.23684
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.727385
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.44722
  Prefactor  = 4.73407
  Prefactor  = 0.0001
  Prefactor  = 5.20309
  Prefactor  = 3.73746
  norm       = 1.52006
  norm       = 3.10844
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 45.6013
  norm       = 0.0001
  Prefactor  = 28.3441
  norm       = 2.20383
  norm       = 0.0001
  Normalizat = 1.20967
  Prefactor  = 0.722101
 **********
 **   18 **HESSE 
 **********

 FCN=   6269.769     FROM HESSE     STATUS=OK           620 CALLS     4741 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.3932        .17945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.6278        .14716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.7559        .12733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.7197        1.2174        .71193E-04   -1.5446    
   5  Prefactor     19.560        20.069        .90547E-04   -1.4823    
   6  Prefactor     2.2368        2.2269        .10682E-03   -1.5409    
   7  Prefactor     .10000E-03    84.013        .48454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    32.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .72739        .82226        .76797E-03   -1.5537    
  10  Prefactor     .10000E-03    1.2896        .87474E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.4472        3.3339        .86018E-04   -1.5127    
  13  Prefactor     4.7341        4.7240        .16699E-03   -1.5273    
  14  Prefactor     .10000E-03    .58557        .59103E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.2031        2.7543        .44549E-03   -1.5252    
  16  Prefactor     3.7375        4.5379        .17825E-03   -1.5321    
  17  norm          1.5201        .34722        .21219E-04   -1.5461    
  18  norm          3.1084        3.0566        .13175E-03   -1.5355    
  19  Prefactor     .10000E-03    9.8542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.6760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    21.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.7081        .12709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.6273        .14680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.9923        .10865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     45.601        26.294        .59368E-04   -1.4356    
  26  norm          .10000E-03    2.5340        .12165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     28.344        25.230        .75250E-04   -1.4643    
  28  norm          2.2038        2.0902        .10816E-03   -1.5411    
  29  norm          .10000E-03    4.1151        .15523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.2097        .20613        .22836E-03   -.86304    
  31  Prefactor     .72210        .21880        .32238E-03   -1.0267    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.8583e-09
Minuit parameter uncertainties:
  1  1.93503e-06
  2  3.06676e-06
  3  3.93565e-06
  4  1.21738
  5  20.0758
  6  2.22701
  7  0.00110099
  8  6.03505e-05
  9  0.82227
  10  7.50495e-07
  11  2.50505e-05
  12  3.33396
  13  4.7244
  14  3.63902e-07
  15  2.75437
  16  4.53832
  17  0.34722
  18  3.05677
  19  7.44356e-06
  20  5.83609e-06
  21  1.51623e-05
  22  1.22006e-06
  23  5.28737e-07
  24  1.60183e-06
  25  26.3006
  26  1.71892e-06
  27  25.2394
  28  2.09023
  29  6.38078e-07
  30  0.206272
  31  0.21906
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  8.447e+00  3.334e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.854e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
319         beta:  4.615e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
320           Eb:  1.094e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
626    Prefactor:  7.221e-01  2.191e-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.210e+00  2.063e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 32.29
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 7.36e-08 +/- 2.90e-08
Energy Flux (Fixed Index): 6.55e-05 +/- 2.59e-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) = 6269.60254864
delta logL = 0.166793795171

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6269.57156714
delta logL = 0.197775298011

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.8345       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6163       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2295       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71322       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=   6269.572     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      214 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.8339        3.2725        .35814E-02   -.14564E-03
   2  alpha         1.6163        .30972        .24941       -.30846E-04
   3  Normalizat    1.2294        .16758        .51342E-01    .25503E-05
   4  Prefactor     .71322        .18688        .73317E-01    .23381E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.83386
  alpha      = 1.61625
  Normalizat = 1.22945
  Prefactor  = 0.713216
 **********
 **   18 **HESSE 
 **********

 FCN=   6269.572     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.8339        3.6566        .89191E-04   -1.5148    
   2  alpha         1.6163        .37870        .10013E-01   -.36131    
   3  Normalizat    1.2294        .19490        .22699E-03   -.85698    
   4  Prefactor     .71322        .21673        .32451E-03   -1.0301    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.70186e-12
Minuit parameter uncertainties:
  1  3.65672
  2  0.380373
  3  0.195017
  4  0.216982
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/456499': 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) = 6269.57156711
delta logL = 0.1977753278

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  7.834e+00  3.657e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.616e+00  3.804e-01  0.000e+00  5.000e+00 ( 1.000e+00)
319         beta:  4.615e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
320           Eb:  1.094e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
626    Prefactor:  7.132e-01  2.170e-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.229e+00  1.950e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 32.69
Ra Dec: 184.476 30.118
Photon Index (Free Index): 1.62 +/- 0.38
Photon Flux (Free Index): 5.32e-08 +/- 3.64e-08
Energy Flux (Free Index): 8.93e-05 +/- 6.11e-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/456499/cmap_HighResolution_374889601_375148801_4FGL_J1217.9+3007_daily_bin523.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.36e-08', energy_flux2='8.93e-05', photon_flux_error='2.90e-08', dlogl='1.98e-01', energy_flux='6.55e-05', photon_flux2='5.32e-08', job_status='DONE', time_completed='2021-09-05 06:30:57.598195', photon_index_error2='0.38', photon_index2='1.62', ts='32.29', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', energy_flux_error2='6.11e-05', EG='1.21', time_epoch_completed='1630848657.6', return_code='0', job_id='456499', GAL2='0.71', EG2='1.23', return_code2='0', energy_flux_error='2.59e-05', photon_flux_error2='3.64e-08', ts2='32.69', photon_index='1.85' WHERE bin_id='523' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:30:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 456499: <4FGL_J1217.9+3007_daily_bin523> in cluster <slac> Done

Job <4FGL_J1217.9+3007_daily_bin523> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 06:15:39 2021
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 06:15:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 06:15:41 2021
Terminated at Sun Sep  5 06:30:58 2021
Results reported at Sun Sep  5 06:30:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin523 184.476 30.1177 374889601 375148801 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 :                                   836.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            919 sec.

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

