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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin1029
RA = 184.476, Dec = 30.1177
tmin = 506044801, tmax = 506304001
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='460155', job_status='RUN', time_executed='2021-09-05 06:25:49.367190', time_epoch_executed='1630848349.37' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='1029'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/460155

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/460155/ft1_4FGL_J1217.9+3007_daily_bin1029.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/460155/ft2_4FGL_J1217.9+3007_daily_bin1029.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/460155/ft1_4FGL_J1217.9+3007_daily_bin1029.fits outfile=/scratch/kocevski/460155/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin1029.fits ra=184.476 dec=30.1177 rad=12.0 tmin=506044801.0 tmax=506304001.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.33
user 4.03
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/460155/ft1_filtered_4FGL_J1217.9+3007_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/460155/ft2_4FGL_J1217.9+3007_daily_bin1029.fits sctable="SC_DATA" expcube=/scratch/kocevski/460155/ltcube_506044801_506304001_4FGL_J1217.9+3007_daily_bin1029.fits outfile=/scratch/kocevski/460155/expmap_506044801_506304001_4FGL_J1217.9+3007_daily_bin1029.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/460155/ltcube_506044801_506304001_4FGL_J1217.9+3007_daily_bin1029.fits
.....................!
real 190.42
user 185.21
sys 4.80

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/460155/ft1_filtered_4FGL_J1217.9+3007_daily_bin1029.fits scfile=/scratch/kocevski/460155/ft2_4FGL_J1217.9+3007_daily_bin1029.fits outfile=/scratch/kocevski/460155/cmap_506044801_506304001_4FGL_J1217.9+3007_daily_bin1029.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/460155/ft1_filtered_4FGL_J1217.9+3007_daily_bin1029.fits scfile=/scratch/kocevski/460155/ft2_4FGL_J1217.9+3007_daily_bin1029.fits outfile=/scratch/kocevski/460155/cmap_HighResolution_506044801_506304001_4FGL_J1217.9+3007_daily_bin1029.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.3237       1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.086       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .12352E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.874       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3569       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.855       1.0000         .10000E-03   10000.    
     9 'norm      '    3.9363       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3329       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    11.272       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .72054       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.1372       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .34044       1.0000         .10000E-03   10000.    
    18 'norm      '    5.2892       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    51.095       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.6610       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.1035       1.0000         .10000E-03   10000.    
    24 'norm      '    .49750E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    13.018       1.0000         .10000E-03   10000.    
    26 'norm      '    8.7384       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    1.0271       1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0391       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .90555       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=   5641.529     FROM MIGRAD    STATUS=CONVERGED    813 CALLS     4157 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3239        11.293        .91100E-06   -.30585E-04
   2  Prefactor     20.086        13.225       -.11701E-06   -.10646E-04
   3  Prefactor     .10000E-03    1.7582        .26383E-07** at limit **
   4  norm          .10000E-03    .53887        .79879E-07** at limit **
   5  Prefactor     11.874        17.029        .48856E-07   -.13034E-04
   6  Prefactor     4.3570        2.5930        .46714E-07   -.40386E-04
   7  Prefactor     .10000E-03    11.164        .16507E-05** at limit **
   8  Prefactor     23.848        44.091       -.64850E-06   -.62310E-04
   9  norm          3.9364        1.5400        .14738E-07   -.17386E-03
  10  Prefactor     3.3328        4.0702        .16588E-06   -.24590E-04
  11  Prefactor     .10000E-03    45.921       -.15080E-05** at limit **
  12  norm          11.273        4.0402       -.15092E-06   -.13018E-03
  13  Prefactor     .10000E-03    3.1280        .56237E-08** at limit **
  14  Prefactor     .71912        2.0065        .75433E-06    .28162E-03
  15  Prefactor     3.1380        2.0870       -.64987E-07   -.21412E-03
  16  Prefactor     .10000E-03    5.0305        .18574E-06** at limit **
  17  norm          .34046        .20955        .95068E-08   -.11292E-03
  18  norm          5.2899        3.6105        .94789E-07    .10874E-03
  19  Prefactor     .10000E-03    9.7760       -.11143E-05** at limit **
  20  Prefactor     .10000E-03    16.878       -.18598E-05** at limit **
  21  Prefactor     51.091        65.148       -.33473E-06   -.67465E-04
  22  Prefactor     1.6611        6.0017        .14422E-05   -.31643E-04
  23  Prefactor     2.1015        6.6357        .81622E-06   -.80833E-04
  24  norm          .10028E-03    2.5906        .70397E-06** at limit **
  25  Prefactor     13.013        20.194       -.16704E-06   -.17426E-03
  26  norm          8.7384        4.8903       -.20382E-07   -.41610E-04
  27  Prefactor     .10000E-03    27.676        .73833E-06** at limit **
  28  norm          1.0276        2.8240        .66827E-06   -.78917E-04
  29  norm          .10000E-03    3.9686       -.21379E-06** at limit **
  30  Normalizat    1.0390        .18372       -.38857E-06   -.18751E-03
  31  Prefactor     .90562        .21201       -.25419E-06   -.13378E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.32388
  Prefactor  = 20.086
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.8736
  Prefactor  = 4.35704
  Prefactor  = 0.000100001
  Prefactor  = 23.8476
  norm       = 3.9364
  Prefactor  = 3.3328
  Prefactor  = 0.000100001
  norm       = 11.2734
  Prefactor  = 0.0001
  Prefactor  = 0.719124
  Prefactor  = 3.13802
  Prefactor  = 0.0001
  norm       = 0.340459
  norm       = 5.2899
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 51.0914
  Prefactor  = 1.6611
  Prefactor  = 2.10149
  norm       = 0.000100275
  Prefactor  = 13.0132
  norm       = 8.73841
  Prefactor  = 0.0001
  norm       = 1.02756
  norm       = 0.0001
  Normalizat = 1.03904
  Prefactor  = 0.905616
 **********
 **   18 **HESSE 
 **********

 FCN=   5641.529     FROM HESSE     STATUS=OK           632 CALLS     4789 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3239        11.291        .69477E-03   -1.5131    
   2  Prefactor     20.086        13.214        .89368E-04   -1.4811    
   3  Prefactor     .10000E-03    1.7728        .97244E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.5602        .10472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.874        17.004        .11625E-03   -1.5019    
   6  Prefactor     4.3570        2.5867        .85304E-04   -1.5290    
   7  Prefactor     .10000E-03    11.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     23.848        43.647        .82013E-04   -1.4731    
   9  norm          3.9364        1.5401        .55162E-04   -1.5311    
  10  Prefactor     3.3328        4.0624        .16060E-03   -1.5343    
  11  Prefactor     .10000E-03    46.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          11.273        3.9939        .81010E-04   -1.5036    
  13  Prefactor     .10000E-03    3.1385        .12972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .71912        1.8916        .16564E-02   -1.5538    
  15  Prefactor     3.1380        2.0803        .84214E-04   -1.5354    
  16  Prefactor     .10000E-03    5.1779        .32877E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .34046        .20851        .25892E-04   -1.5591    
  18  norm          5.2899        3.6135        .11437E-03   -1.5248    
  19  Prefactor     .10000E-03    10.149        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     51.091        64.815        .56105E-04   -1.4277    
  22  Prefactor     1.6611        6.0081        .32734E-03   -1.5450    
  23  Prefactor     2.1015        6.6709        .28452E-03   -1.5418    
  24  norm          .10028E-03    32.822        .21197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     13.013        19.397        .11102E-03   -1.4986    
  26  norm          8.7384        4.8889        .12015E-03   -1.5117    
  27  Prefactor     .10000E-03    27.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          1.0276        2.7517        .19941E-03   -1.5505    
  29  norm          .10000E-03    3.9932        .14582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0390        .21607        .23645E-03   -.91734    
  31  Prefactor     .90562        .24873        .29605E-03   -.95945    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.02238e-09
Minuit parameter uncertainties:
  1  11.2938
  2  13.2162
  3  6.17058e-07
  4  2.69797e-05
  5  17.0111
  6  2.5868
  7  0.000182265
  8  43.7055
  9  1.54013
  10  4.06277
  11  0.000326966
  12  3.99399
  13  3.94656e-07
  14  1.89179
  15  2.08031
  16  5.85159e-06
  17  0.20851
  18  3.61362
  19  8.86323e-05
  20  0.000234248
  21  64.9048
  22  6.01026
  23  6.67324
  24  0.00601564
  25  19.4068
  26  4.88909
  27  0.000149242
  28  2.75203
  29  2.09344e-05
  30  0.216251
  31  0.249043
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.127e+01  3.994e+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:  9.056e-01  2.490e-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.039e+00  2.163e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 41.49
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 9.82e-08 +/- 3.48e-08
Energy Flux (Fixed Index): 8.74e-05 +/- 3.10e-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) = 5641.24760757
delta logL = 0.281333387477

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5641.24749247
delta logL = 0.281448488012

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.221       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6502       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0592       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89447       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=   5641.247     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      203 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.221        3.9954        .29899E-02   -.90557E-03
   2  alpha         1.6501        .26106        .18488       -.91010E-05
   3  Normalizat    1.0592        .17905        .39979E-01   -.33724E-04
   4  Prefactor     .89447        .21029        .67348E-01    .56578E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.2213
  alpha      = 1.65013
  Normalizat = 1.05919
  Prefactor  = 0.89447
 **********
 **   18 **HESSE 
 **********

 FCN=   5641.247     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.221        3.9325        .84297E-04   -1.5038    
   2  alpha         1.6501        .26886        .77833E-02   -.34686    
   3  Normalizat    1.0592        .20965        .23461E-03   -.91073    
   4  Prefactor     .89447        .24613        .29792E-03   -.96335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71696e-10
Minuit parameter uncertainties:
  1  3.93254
  2  0.269451
  3  0.209814
  4  0.246431
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/460155': 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) = 5641.24749246
delta logL = 0.281448492243

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.122e+01  3.933e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.650e+00  2.695e-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.945e-01  2.464e-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.059e+00  2.098e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 42.17
Ra Dec: 184.476 30.118
Photon Index (Free Index): 1.65 +/- 0.27
Photon Flux (Free Index): 7.86e-08 +/- 3.64e-08
Energy Flux (Free Index): 1.20e-04 +/- 6.78e-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/460155/cmap_HighResolution_506044801_506304001_4FGL_J1217.9+3007_daily_bin1029.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.82e-08', energy_flux2='1.20e-04', photon_flux_error='3.48e-08', dlogl='2.81e-01', energy_flux='8.74e-05', photon_flux2='7.86e-08', job_status='DONE', time_completed='2021-09-05 06:38:59.452641', photon_index_error2='0.27', photon_index2='1.65', ts='41.49', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='6.78e-05', EG='1.04', time_epoch_completed='1630849139.45', return_code='0', job_id='460155', GAL2='0.89', EG2='1.06', return_code2='0', energy_flux_error='3.10e-05', photon_flux_error2='3.64e-08', ts2='42.17', photon_index='1.85' WHERE bin_id='1029' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:38:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 460155: <4FGL_J1217.9+3007_daily_bin1029> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin1029 184.476 30.1177 506044801 506304001 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 :                                   783.45 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             340.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   798 sec.
    Turnaround time :                            800 sec.

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

