/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 9 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 = 7398
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1217.9+3007_daily_bin168
RA = 184.476, Dec = 30.1177
tmin = 282873601, tmax = 283132801
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='454691', job_status='RUN', time_executed='2021-09-05 06:10:53.991966', time_epoch_executed='1630847453.99' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/454691

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/454691/ft1_4FGL_J1217.9+3007_daily_bin168.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/454691/ft2_4FGL_J1217.9+3007_daily_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/454691/ft1_4FGL_J1217.9+3007_daily_bin168.fits outfile=/scratch/kocevski/454691/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin168.fits ra=184.476 dec=30.1177 rad=12.0 tmin=282873601.0 tmax=283132801.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.28
user 3.04
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/454691/ft1_filtered_4FGL_J1217.9+3007_daily_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/454691/ft2_4FGL_J1217.9+3007_daily_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/454691/ltcube_282873601_283132801_4FGL_J1217.9+3007_daily_bin168.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/454691/ft2_4FGL_J1217.9+3007_daily_bin168.fits
.....................!
real 11.70
user 11.35
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/454691/ft1_filtered_4FGL_J1217.9+3007_daily_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/454691/ft2_4FGL_J1217.9+3007_daily_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/454691/ltcube_282873601_283132801_4FGL_J1217.9+3007_daily_bin168.fits outfile=/scratch/kocevski/454691/expmap_282873601_283132801_4FGL_J1217.9+3007_daily_bin168.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/454691/ltcube_282873601_283132801_4FGL_J1217.9+3007_daily_bin168.fits
.....................!
real 190.44
user 185.39
sys 4.30

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/454691/ft1_filtered_4FGL_J1217.9+3007_daily_bin168.fits scfile=/scratch/kocevski/454691/ft2_4FGL_J1217.9+3007_daily_bin168.fits outfile=/scratch/kocevski/454691/cmap_282873601_283132801_4FGL_J1217.9+3007_daily_bin168.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.67
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/454691/ft1_filtered_4FGL_J1217.9+3007_daily_bin168.fits scfile=/scratch/kocevski/454691/ft2_4FGL_J1217.9+3007_daily_bin168.fits outfile=/scratch/kocevski/454691/cmap_HighResolution_282873601_283132801_4FGL_J1217.9+3007_daily_bin168.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.70
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.3147       1.0000         .10000E-03   10000.    
     4 'norm      '    .69331       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0124       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.5376       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.6216       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.7874       1.0000         .10000E-03   10000.    
    12 'norm      '    8.9564       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .72358E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6897       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10282E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.9784       1.0000         .10000E-03   10000.    
    17 'norm      '    5.8623       1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.860       1.0000         .10000E-03   10000.    
    20 'Prefactor '    33.139       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.536       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10336E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.2277       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .84192       1.0000         .10000E-03   10000.    
    29 'norm      '    10.801       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0808       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .75914       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=   6761.616     FROM MIGRAD    STATUS=CONVERGED    812 CALLS     4245 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.4683        .57460E-06** at limit **
   2  Prefactor     .10000E-03    6.5418        .35343E-06** at limit **
   3  Prefactor     3.3176        5.7731        .56655E-06   -.45714E-04
   4  norm          .69338        .98166        .14729E-06    .15928E-03
   5  Prefactor     .10000E-03    15.795       -.97636E-06** at limit **
   6  Prefactor     3.0133        2.1048        .38724E-07    .30832E-04
   7  Prefactor     8.5255        28.500       -.22449E-05   -.83984E-04
   8  Prefactor     .10000E-03    24.523        .19442E-05** at limit **
   9  norm          2.6220        1.3529        .35983E-07    .31556E-03
  10  Prefactor     .10000E-03    1.3587        .18227E-07** at limit **
  11  Prefactor     4.7728        51.326       -.27336E-05   -.59090E-04
  12  norm          8.9563        3.6867       -.88971E-08    .46951E-03
  13  Prefactor     .10011E-03    5.3542       -.46420E-06** at limit **
  14  Prefactor     1.6896        1.7746        .75342E-09    .31458E-03
  15  Prefactor     .10002E-03    1.1518       -.58398E-06** at limit **
  16  Prefactor     8.9793        6.4222        .31387E-06   -.21748E-04
  17  norm          5.8624        .60004       -.48526E-08    .50134E-03
  18  norm          .10000E-03    1.8993       -.11513E-07** at limit **
  19  Prefactor     17.860        10.916       -.13307E-07    .17193E-03
  20  Prefactor     33.154        22.457        .86890E-06    .21934E-03
  21  Prefactor     .10000E-03    18.953       -.89047E-06** at limit **
  22  Prefactor     16.538        10.282       -.24592E-07   -.20190E-04
  23  Prefactor     .10000E-03    3.1943        .16856E-06** at limit **
  24  norm          .10000E-03    1.4701       -.26730E-07** at limit **
  25  Prefactor     .10000E-03    11.295        .79097E-06** at limit **
  26  norm          1.2281        2.5840        .47236E-06    .43536E-03
  27  Prefactor     .10000E-03    7.1341       -.65533E-06** at limit **
  28  norm          .84234        7.0546        .42803E-05   -.10975E-03
  29  norm          10.800        9.7799       -.19887E-05   -.18294E-03
  30  Normalizat    1.0807        .18625        .59656E-06    .48544E-04
  31  Prefactor     .75922        .20148       -.12030E-05    .12702E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.3176
  norm       = 0.693376
  Prefactor  = 0.0001
  Prefactor  = 3.01331
  Prefactor  = 8.52553
  Prefactor  = 0.000100001
  norm       = 2.62199
  Prefactor  = 0.0001
  Prefactor  = 4.77282
  norm       = 8.95632
  Prefactor  = 0.000100106
  Prefactor  = 1.68959
  Prefactor  = 0.000100019
  Prefactor  = 8.97928
  norm       = 5.86236
  norm       = 0.0001
  Prefactor  = 17.86
  Prefactor  = 33.1542
  Prefactor  = 0.0001
  Prefactor  = 16.5375
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.22805
  Prefactor  = 0.0001
  norm       = 0.842341
  norm       = 10.8004
  Normalizat = 1.08067
  Prefactor  = 0.759218
 **********
 **   18 **HESSE 
 **********

 FCN=   6761.616     FROM HESSE     STATUS=OK           630 CALLS     4875 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.5783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.3176        5.7447        .22235E-03   -1.5344    
   4  norm          .69338        .86943        .93836E-03   -1.5541    
   5  Prefactor     .10000E-03    15.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.0133        2.0980        .95176E-04   -1.5361    
   7  Prefactor     8.5255        28.450        .13719E-03   -1.5124    
   8  Prefactor     .10000E-03    24.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.6220        1.3485        .65195E-04   -1.5384    
  10  Prefactor     .10000E-03    1.3665        .93596E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.7728        51.188        .18388E-03   -1.5271    
  12  norm          8.9563        3.6462        .93412E-04   -1.5109    
  13  Prefactor     .10011E-03    44.715        .35614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.6896        1.7754        .10539E-03   -1.5448    
  15  Prefactor     .10002E-03    5.2887        .16076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.9793        6.4201        .66881E-03   -1.5109    
  17  norm          5.8624        .60085        .19356E-04   -1.5224    
  18  norm          .10000E-03    1.9088        .11060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.860        10.849        .94773E-04   -1.4862    
  20  Prefactor     33.154        22.678        .69608E-04   -1.4556    
  21  Prefactor     .10000E-03    19.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     16.538        10.257        .98492E-04   -1.4894    
  23  Prefactor     .10000E-03    3.2129        .14340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.4797        .97356E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    11.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.2281        2.0310        .19106E-02   -1.5486    
  27  Prefactor     .10000E-03    7.1953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .84234        7.1353        .27241E-03   -1.5524    
  29  norm          10.800        9.7325        .12191E-03   -1.5051    
  30  Normalizat    1.0807        .22107        .25696E-03   -.90375    
  31  Prefactor     .75922        .23850        .34361E-03   -1.0125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.3056e-09
Minuit parameter uncertainties:
  1  4.97128e-05
  2  3.65707e-05
  3  5.74565
  4  0.869446
  5  0.000133294
  6  2.09806
  7  28.4955
  8  0.000347828
  9  1.34855
  10  2.66255e-07
  11  31.2947
  12  3.64629
  13  0.00435354
  14  1.77545
  15  0.000627853
  16  6.42063
  17  0.600852
  18  5.18948e-07
  19  10.8505
  20  22.6835
  21  0.000147676
  22  10.258
  23  8.88102e-06
  24  4.12378e-06
  25  7.6934e-05
  26  2.03112
  27  7.61619e-05
  28  4.9037
  29  9.73393
  30  0.221263
  31  0.238828
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  8.956e+00  3.646e+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.592e-01  2.388e-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.081e+00  2.213e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 22.69
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 7.80e-08 +/- 3.17e-08
Energy Flux (Fixed Index): 6.95e-05 +/- 2.83e-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) = 6761.5849857
delta logL = 0.0306387356823

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6761.58459847
delta logL = 0.0310259638218

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.0430       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7788       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0854       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75723       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=   6761.585     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      205 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.0430        5.0375        .33320E-02   -.28887E-02
   2  alpha         1.7788        .38918        .22583        .61345E-04
   3  Normalizat    1.0854        .17421        .58008E-01    .55931E-05
   4  Prefactor     .75719        .19838        .77727E-01    .23810E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.04299
  alpha      = 1.77882
  Normalizat = 1.08543
  Prefactor  = 0.757195
 **********
 **   18 **HESSE 
 **********

 FCN=   6761.585     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.0430        3.6019        .95165E-04   -1.5106    
   2  alpha         1.7788        .30101        .92024E-02   -.29263    
   3  Normalizat    1.0854        .20577        .25652E-03   -.90221    
   4  Prefactor     .75719        .23450        .34410E-03   -1.0133    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26544e-09
Minuit parameter uncertainties:
  1  3.60194
  2  0.301809
  3  0.205917
  4  0.234812
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/454691': 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) = 6761.58459846
delta logL = 0.0310259771486

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  9.043e+00  3.602e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.779e+00  3.018e-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.572e-01  2.348e-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.085e+00  2.059e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 22.74
Ra Dec: 184.476 30.118
Photon Index (Free Index): 1.78 +/- 0.30
Photon Flux (Free Index): 7.22e-08 +/- 3.66e-08
Energy Flux (Free Index): 7.76e-05 +/- 4.77e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/454691/cmap_HighResolution_282873601_283132801_4FGL_J1217.9+3007_daily_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.80e-08', energy_flux2='7.76e-05', photon_flux_error='3.17e-08', dlogl='3.10e-02', energy_flux='6.95e-05', photon_flux2='7.22e-08', job_status='DONE', time_completed='2021-09-05 06:25:49.437715', photon_index_error2='0.30', photon_index2='1.78', ts='22.69', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', energy_flux_error2='4.77e-05', EG='1.08', time_epoch_completed='1630848349.44', return_code='0', job_id='454691', GAL2='0.76', EG2='1.09', return_code2='0', energy_flux_error='2.83e-05', photon_flux_error2='3.66e-08', ts2='22.74', photon_index='1.85' WHERE bin_id='168' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:25:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 454691: <4FGL_J1217.9+3007_daily_bin168> in cluster <slac> Done

Job <4FGL_J1217.9+3007_daily_bin168> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 06:10:34 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 06:10:36 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:10:36 2021
Terminated at Sun Sep  5 06:25:50 2021
Results reported at Sun Sep  5 06:25:50 2021

Your job looked like:

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

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

