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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin1408
RA = 184.476, Dec = 30.1177
tmin = 604281601, tmax = 604540801
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='461691', job_status='RUN', time_executed='2021-09-05 06:31:33.506832', time_epoch_executed='1630848693.51' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='1408'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/461691

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/461691/ft1_4FGL_J1217.9+3007_daily_bin1408.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/461691/ft2_4FGL_J1217.9+3007_daily_bin1408.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/461691/ft1_4FGL_J1217.9+3007_daily_bin1408.fits outfile=/scratch/kocevski/461691/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin1408.fits ra=184.476 dec=30.1177 rad=12.0 tmin=604281601.0 tmax=604540801.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.69
user 3.43
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/461691/ft2_4FGL_J1217.9+3007_daily_bin1408.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/461691/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin1408.fits evtable="EVENTS" outfile="/scratch/kocevski/461691/ft1_filtered_4FGL_J1217.9+3007_daily_bin1408.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/461691/ft1_filtered_4FGL_J1217.9+3007_daily_bin1408.fits" evtable="EVENTS" scfile=/scratch/kocevski/461691/ft2_4FGL_J1217.9+3007_daily_bin1408.fits sctable="SC_DATA" outfile=/scratch/kocevski/461691/ltcube_604281601_604540801_4FGL_J1217.9+3007_daily_bin1408.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/461691/ft2_4FGL_J1217.9+3007_daily_bin1408.fits
.....................!
real 12.23
user 11.55
sys 0.47

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/461691/ft1_filtered_4FGL_J1217.9+3007_daily_bin1408.fits evtable="EVENTS" scfile=/scratch/kocevski/461691/ft2_4FGL_J1217.9+3007_daily_bin1408.fits sctable="SC_DATA" expcube=/scratch/kocevski/461691/ltcube_604281601_604540801_4FGL_J1217.9+3007_daily_bin1408.fits outfile=/scratch/kocevski/461691/expmap_604281601_604540801_4FGL_J1217.9+3007_daily_bin1408.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/461691/ltcube_604281601_604540801_4FGL_J1217.9+3007_daily_bin1408.fits
.....................!
real 194.16
user 186.57
sys 6.29

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/461691/ft1_filtered_4FGL_J1217.9+3007_daily_bin1408.fits scfile=/scratch/kocevski/461691/ft2_4FGL_J1217.9+3007_daily_bin1408.fits outfile=/scratch/kocevski/461691/cmap_604281601_604540801_4FGL_J1217.9+3007_daily_bin1408.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.59
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4606       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.5594       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.191       1.0000         .10000E-03   10000.    
     4 'norm      '    4.1995       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8173       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.460       1.0000         .10000E-03   10000.    
     9 'norm      '    1.5193       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.5470       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.9447       1.0000         .10000E-03   10000.    
    12 'norm      '    3.8626       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .84398       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .73427       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .22475E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .21120       1.0000         .10000E-03   10000.    
    18 'norm      '    6.0905       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.6153       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    105.71       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.4303       1.0000         .10000E-03   10000.    
    24 'norm      '    .10231E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    14.286       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    20.525       1.0000         .10000E-03   10000.    
    29 'norm      '    18.778       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .90432       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .94422       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=   6162.912     FROM MIGRAD    STATUS=CONVERGED    805 CALLS     4149 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4945        26.164       -.86762E-05    .43208E-05
   2  Prefactor     2.5318        36.563        .11390E-04    .15035E-03
   3  Prefactor     11.190        6.7134        .92654E-08   -.15215E-03
   4  norm          4.1996        1.5571        .28207E-07    .67621E-05
   5  Prefactor     .10000E-03    9.6486       -.38153E-06** at limit **
   6  Prefactor     2.8178        2.3028        .21996E-07   -.10353E-03
   7  Prefactor     .10001E-03    30.651        .17836E-05** at limit **
   8  Prefactor     28.458        40.796       -.10480E-06   -.38092E-04
   9  norm          1.5194        1.0619       -.23467E-07   -.20295E-03
  10  Prefactor     5.5470        3.8627        .39108E-07    .39902E-04
  11  Prefactor     7.9442        14.253        .11955E-06   -.75912E-07
  12  norm          3.8628        3.2664       -.14765E-06   -.16083E-03
  13  Prefactor     .10000E-03    2.2140        .85034E-08** at limit **
  14  Prefactor     .84337        2.2953        .12919E-09   -.60207E-04
  15  Prefactor     .73455        2.8597        .37205E-06    .50900E-03
  16  Prefactor     .10016E-03    8.4260       -.41429E-05** at limit **
  17  norm          .21119        .18305        .92828E-08    .14031E-02
  18  norm          6.0888        4.9789       -.19472E-06    .76093E-03
  19  Prefactor     2.6152        9.5459        .43966E-05    .26641E-03
  20  Prefactor     .10000E-03    7.5427        .38833E-07** at limit **
  21  Prefactor     105.70        82.208       -.71827E-06   -.14891E-03
  22  Prefactor     .10000E-03    3.3200        .14118E-07** at limit **
  23  Prefactor     1.4308        3.7059        .27483E-06    .74068E-04
  24  norm          .10000E-03    2.7307       -.20145E-06** at limit **
  25  Prefactor     14.275        24.448       -.44235E-06   -.16362E-03
  26  norm          .10000E-03    4.5083        .31218E-07** at limit **
  27  Prefactor     .10000E-03    13.349        .45227E-06** at limit **
  28  norm          20.525        9.8188        .16286E-06    .57887E-04
  29  norm          18.777        15.523       -.11966E-06   -.14636E-04
  30  Normalizat    .90439        .18663       -.51907E-06    .48473E-04
  31  Prefactor     .94410        .20562       -.65085E-06    .24726E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.49448
  Prefactor  = 2.53176
  Prefactor  = 11.1896
  norm       = 4.19963
  Prefactor  = 0.0001
  Prefactor  = 2.81784
  Prefactor  = 0.000100008
  Prefactor  = 28.4578
  norm       = 1.51938
  Prefactor  = 5.54696
  Prefactor  = 7.94417
  norm       = 3.86279
  Prefactor  = 0.0001
  Prefactor  = 0.843374
  Prefactor  = 0.734554
  Prefactor  = 0.000100156
  norm       = 0.21119
  norm       = 6.08879
  Prefactor  = 2.61522
  Prefactor  = 0.0001
  Prefactor  = 105.699
  Prefactor  = 0.0001
  Prefactor  = 1.43075
  norm       = 0.0001
  Prefactor  = 14.2754
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 20.5245
  norm       = 18.7772
  Normalizat = 0.90439
  Prefactor  = 0.944097
 **********
 **   18 **HESSE 
 **********

 FCN=   6162.912     FROM HESSE     STATUS=OK           634 CALLS     4783 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4945        26.813        .15790E-03   -1.5198    
   2  Prefactor     2.5318        37.847        .25519E-03   -1.5390    
   3  Prefactor     11.190        6.7060        .11976E-03   -1.5039    
   4  norm          4.1996        1.5599        .56686E-04   -1.5298    
   5  Prefactor     .10000E-03    9.6796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.8178        2.2949        .10136E-03   -1.5372    
   7  Prefactor     .10001E-03    31.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     28.458        40.855        .75098E-04   -1.4641    
   9  norm          1.5194        1.0617        .34668E-04   -1.5461    
  10  Prefactor     5.5470        3.8596        .12412E-03   -1.5237    
  11  Prefactor     7.9442        14.246        .14225E-03   -1.5144    
  12  norm          3.8628        3.2042        .10708E-03   -1.5315    
  13  Prefactor     .10000E-03    2.2185        .11407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .84337        2.0473        .15804E-02   -1.5524    
  15  Prefactor     .73455        2.7083        .21248E-03   -1.5537    
  16  Prefactor     .10016E-03    23.403        .32264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .21119        .17896        .29753E-04   -1.5616    
  18  norm          6.0888        4.7687        .14358E-03   -1.5214    
  19  Prefactor     2.6152        9.8811        .12611E-02   -1.5385    
  20  Prefactor     .10000E-03    7.5524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     105.70        82.432        .39112E-04   -1.3648    
  22  Prefactor     .10000E-03    3.3311        .13968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.4308        3.6545        .23579E-03   -1.5469    
  24  norm          .10000E-03    2.7669        .12640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     14.275        24.475        .10597E-03   -1.4952    
  26  norm          .10000E-03    4.6559        .32528E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    13.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          20.525        9.9667        .88409E-04   -1.4802    
  29  norm          18.777        15.746        .92426E-04   -1.4841    
  30  Normalizat    .90439        .21819        .25383E-03   -.96306    
  31  Prefactor     .94410        .24076        .28365E-03   -.94617    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75143e-08
Minuit parameter uncertainties:
  1  26.4123
  2  19.592
  3  6.70648
  4  1.55991
  5  9.92015e-05
  6  2.29493
  7  0.00101745
  8  40.8949
  9  1.06175
  10  3.85979
  11  14.2524
  12  3.20438
  13  1.48179e-06
  14  2.0475
  15  2.70876
  16  0.00382476
  17  0.178965
  18  4.76903
  19  9.88725
  20  1.15878e-05
  21  82.5214
  22  3.05853e-06
  23  3.65509
  24  1.12743e-05
  25  24.492
  26  8.77856e-06
  27  0.000172125
  28  9.96752
  29  15.7491
  30  0.218399
  31  0.24103
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  3.863e+00  3.204e+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.441e-01  2.410e-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.044e-01  2.184e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.76
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 3.36e-08 +/- 2.79e-08
Energy Flux (Fixed Index): 3.00e-05 +/- 2.48e-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) = 6162.88107534
delta logL = 0.0310566349081

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6162.87841279
delta logL = 0.0337191843391

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0521       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9978       1.0000          .0000       5.0000    
     3 'Normalizat'    .89692       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94623       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=   6162.878     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      207 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0524        83.458        .50077E-02    .18177E-03
   2  alpha         1.9978        2.8065        .27439        .21693E-04
   3  Normalizat    .89681        .15939        .44862E-01    .62963E-05
   4  Prefactor     .94632        .12696        .45592E-01    .11078E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.05242
  alpha      = 1.99777
  Normalizat = 0.896807
  Prefactor  = 0.946316
 **********
 **   18 **HESSE 
 **********

 FCN=   6162.878     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0524        2.7115        .10161E-03   -1.5305    
   2  alpha         1.9978        .52487        .13599E-01   -.20227    
   3  Normalizat    .89681        .21070        .25474E-03   -.96572    
   4  Prefactor     .94632        .23875        .28325E-03   -.94541    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63517e-10
Minuit parameter uncertainties:
  1  2.71155
  2  0.528974
  3  0.210895
  4  0.239011
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/461691': 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) = 6162.87841262
delta logL = 0.0337193560435

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  4.052e+00  2.712e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.998e+00  5.290e-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:  9.463e-01  2.390e-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:  8.968e-01  2.109e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.83
Ra Dec: 184.476 30.118
Photon Index (Free Index): 2.00 +/- 0.53
Photon Flux (Free Index): 4.24e-08 +/- 4.22e-08
Energy Flux (Free Index): 2.73e-05 +/- 2.08e-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/461691/cmap_HighResolution_604281601_604540801_4FGL_J1217.9+3007_daily_bin1408.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.36e-08', energy_flux2='2.73e-05', photon_flux_error='2.79e-08', dlogl='3.37e-02', energy_flux='3.00e-05', photon_flux2='4.24e-08', job_status='DONE', time_completed='2021-09-05 06:46:02.048387', photon_index_error2='0.53', photon_index2='2.00', ts='5.76', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='2.08e-05', EG='0.90', time_epoch_completed='1630849562.05', return_code='0', job_id='461691', GAL2='0.95', EG2='0.90', return_code2='0', energy_flux_error='2.48e-05', photon_flux_error2='4.22e-08', ts2='5.83', photon_index='1.85' WHERE bin_id='1408' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:46:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 461691: <4FGL_J1217.9+3007_daily_bin1408> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin1408 184.476 30.1177 604281601 604540801 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 :                                   806.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             305.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            923 sec.

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

