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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin149
RA = 184.476, Dec = 30.1177
tmin = 277948801, tmax = 278208001
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='454661', job_status='RUN', time_executed='2021-09-05 06:10:52.750273', time_epoch_executed='1630847452.75' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='149'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/454661

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/454661/ft1_4FGL_J1217.9+3007_daily_bin149.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/454661/ft2_4FGL_J1217.9+3007_daily_bin149.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/454661/ft1_4FGL_J1217.9+3007_daily_bin149.fits outfile=/scratch/kocevski/454661/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin149.fits ra=184.476 dec=30.1177 rad=12.0 tmin=277948801.0 tmax=278208001.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 6.81
user 3.94
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/454661/ft1_filtered_4FGL_J1217.9+3007_daily_bin149.fits" evtable="EVENTS" scfile=/scratch/kocevski/454661/ft2_4FGL_J1217.9+3007_daily_bin149.fits sctable="SC_DATA" outfile=/scratch/kocevski/454661/ltcube_277948801_278208001_4FGL_J1217.9+3007_daily_bin149.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/454661/ft2_4FGL_J1217.9+3007_daily_bin149.fits
.....................!
real 14.55
user 12.34
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/454661/ft1_filtered_4FGL_J1217.9+3007_daily_bin149.fits evtable="EVENTS" scfile=/scratch/kocevski/454661/ft2_4FGL_J1217.9+3007_daily_bin149.fits sctable="SC_DATA" expcube=/scratch/kocevski/454661/ltcube_277948801_278208001_4FGL_J1217.9+3007_daily_bin149.fits outfile=/scratch/kocevski/454661/expmap_277948801_278208001_4FGL_J1217.9+3007_daily_bin149.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/454661/ltcube_277948801_278208001_4FGL_J1217.9+3007_daily_bin149.fits
.....................!
real 194.31
user 186.61
sys 5.65

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/454661/ft1_filtered_4FGL_J1217.9+3007_daily_bin149.fits scfile=/scratch/kocevski/454661/ft2_4FGL_J1217.9+3007_daily_bin149.fits outfile=/scratch/kocevski/454661/cmap_277948801_278208001_4FGL_J1217.9+3007_daily_bin149.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/454661/ft1_filtered_4FGL_J1217.9+3007_daily_bin149.fits scfile=/scratch/kocevski/454661/ft2_4FGL_J1217.9+3007_daily_bin149.fits outfile=/scratch/kocevski/454661/cmap_HighResolution_277948801_278208001_4FGL_J1217.9+3007_daily_bin149.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.54
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.0306       1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.458       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.5095       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .32917E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.9567       1.0000         .10000E-03   10000.    
    12 'norm      '    5.2493       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16872E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.8614       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.5665       1.0000         .10000E-03   10000.    
    18 'norm      '    13.605       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.8615       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    22.592       1.0000         .10000E-03   10000.    
    26 'norm      '    9.7164       1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.8353       1.0000         .10000E-03   10000.    
    28 'norm      '    6.9953       1.0000         .10000E-03   10000.    
    29 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .84698       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0664       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=   5501.770     FROM MIGRAD    STATUS=CONVERGED    808 CALLS     4148 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8040        .67188E-08** at limit **
   2  Prefactor     .10000E-03    2.4406       -.10651E-06** at limit **
   3  Prefactor     .10000E-03    2.6488       -.49590E-06** at limit **
   4  norm          1.0306        1.0572       -.76465E-07   -.13156E-03
   5  Prefactor     22.443        18.758        .24404E-06    .97019E-04
   6  Prefactor     .10000E-03    .65143       -.18249E-06** at limit **
   7  Prefactor     .10000E-03    12.348       -.49284E-06** at limit **
   8  Prefactor     .10000E-03    15.446        .12771E-06** at limit **
   9  norm          1.5092        1.2030       -.56833E-07    .26943E-03
  10  Prefactor     .10417E-03    21.751        .56312E-05** at limit **
  11  Prefactor     5.8949        46.201        .15178E-05    .47536E-04
  12  norm          5.2500        3.0989        .66021E-07    .48913E-03
  13  Prefactor     .10018E-03    24.113        .32507E-05** at limit **
  14  Prefactor     .10000E-03    1.2616       -.24787E-06** at limit **
  15  Prefactor     4.8609        2.6634       -.22547E-08    .26331E-03
  16  Prefactor     .10000E-03    2.5548       -.11642E-07** at limit **
  17  norm          1.5664        .37970       -.53686E-08    .98824E-03
  18  norm          13.603        6.1565       -.10769E-06    .43564E-05
  19  Prefactor     7.8603        13.732       -.22612E-06    .28585E-04
  20  Prefactor     .10000E-03    5.8970       -.10583E-06** at limit **
  21  Prefactor     .10000E-03    25.205       -.12415E-05** at limit **
  22  Prefactor     .10000E-03    3.0827       -.12250E-06** at limit **
  23  Prefactor     .10000E-03    2.6427       -.24174E-06** at limit **
  24  norm          .10000E-03    1.7724       -.28992E-06** at limit **
  25  Prefactor     22.592        23.837       -.43112E-06   -.92317E-04
  26  norm          9.7157        4.9514       -.66494E-07    .45525E-04
  27  Prefactor     8.8248        16.915        .10067E-06    .27424E-04
  28  norm          6.9947        4.4806       -.80129E-07   -.14687E-03
  29  norm          .10000E-03    5.6021       -.23979E-06** at limit **
  30  Normalizat    .84770        .21527       -.38274E-05    .45014E-03
  31  Prefactor     1.0656        .23928        .62759E-05    .67801E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.03064
  Prefactor  = 22.4432
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.50922
  Prefactor  = 0.000104175
  Prefactor  = 5.89492
  norm       = 5.25001
  Prefactor  = 0.000100183
  Prefactor  = 0.0001
  Prefactor  = 4.86087
  Prefactor  = 0.0001
  norm       = 1.56639
  norm       = 13.6025
  Prefactor  = 7.86031
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 22.5918
  norm       = 9.71575
  Prefactor  = 8.82484
  norm       = 6.99471
  norm       = 0.0001
  Normalizat = 0.847697
  Prefactor  = 1.06557
 **********
 **   18 **HESSE 
 **********

 FCN=   5501.770     FROM HESSE     STATUS=OK           630 CALLS     4778 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.8041        .12130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.4424        .11318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.7035        .11809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.0306        1.0163        .74473E-03   -1.5505    
   5  Prefactor     22.443        18.735        .84522E-04   -1.4760    
   6  Prefactor     .10000E-03    .66174        .58499E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.5092        1.1893        .68532E-04   -1.5462    
  10  Prefactor     .10417E-03    5.3124        .37048E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.8949        46.793        .16453E-03   -1.5222    
  12  norm          5.2500        3.0886        .95289E-04   -1.5250    
  13  Prefactor     .10018E-03    27.553        .30972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.2875        .81276E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.8609        2.6574        .83097E-04   -1.5267    
  16  Prefactor     .10000E-03    2.5614        .11574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.5664        .37945        .21401E-04   -1.5458    
  18  norm          13.603        6.1575        .10859E-03   -1.4970    
  19  Prefactor     7.8603        13.715        .14301E-03   -1.5147    
  20  Prefactor     .10000E-03    5.8993        .17594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    25.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.0891        .12721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.6559        .11769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.7911        .96454E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     22.592        23.869        .42136E-03   -1.4757    
  26  norm          9.7157        4.9524        .11457E-03   -1.5084    
  27  Prefactor     8.8248        16.895        .13485E-03   -1.5114    
  28  norm          6.9947        4.4723        .11903E-03   -1.5179    
  29  norm          .10000E-03    5.6180        .17093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .84770        .21887        .25483E-03   -.98323    
  31  Prefactor     1.0656        .24184        .27282E-03   -.90575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04273e-08
Minuit parameter uncertainties:
  1  1.41474e-06
  2  6.92355e-06
  3  2.65477e-05
  4  1.01634
  5  18.7395
  6  1.19552e-05
  7  4.98544e-05
  8  7.12906e-06
  9  1.18937
  10  0.00941975
  11  33.2523
  12  3.08869
  13  0.0044901
  14  1.35741e-05
  15  2.65749
  16  6.57636e-06
  17  0.379453
  18  6.15774
  19  13.7209
  20  1.48627e-05
  21  0.000180345
  22  1.233e-05
  23  2.97166e-05
  24  1.89236e-05
  25  23.8786
  26  4.95261
  27  16.9037
  28  4.47247
  29  7.16369e-05
  30  0.219096
  31  0.242085
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  5.250e+00  3.089e+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:  1.066e+00  2.421e-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.477e-01  2.191e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.59
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 4.57e-08 +/- 2.69e-08
Energy Flux (Fixed Index): 4.07e-05 +/- 2.40e-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) = 5501.61316272
delta logL = 0.156533164464

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5501.60850486
delta logL = 0.161191024213

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.9758       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1205       1.0000          .0000       5.0000    
     3 'Normalizat'    .83044       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0754       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=   5501.609     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      230 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.9758        59.161        .45072E-02   -.46817E-03
   2  alpha         2.1206        3.4242        .28119        .31897E-04
   3  Normalizat    .83041        .13522        .44006E-01    .15024E-04
   4  Prefactor     1.0754        .97623E-01    .61410E-01    .81326E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.97584
  alpha      = 2.12057
  Normalizat = 0.830407
  Prefactor  = 1.07542
 **********
 **   18 **HESSE 
 **********

 FCN=   5501.609     FROM HESSE     STATUS=OK            33 CALLS      263 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.9758        2.9724        .86450E-04   -1.5262    
   2  alpha         2.1206        .47987        .10483E-01   -.15236    
   3  Normalizat    .83041        .20349        .25710E-03   -.98951    
   4  Prefactor     1.0754        .23949        .27159E-03   -.90256    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.05595e-11
Minuit parameter uncertainties:
  1  2.9725
  2  0.482934
  3  0.203681
  4  0.239729
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/454661': 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) = 5501.6085048
delta logL = 0.161191081193

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  4.976e+00  2.973e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  2.121e+00  4.829e-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:  1.075e+00  2.397e-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.304e-01  2.037e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.89
Ra Dec: 184.476 30.118
Photon Index (Free Index): 2.12 +/- 0.48
Photon Flux (Free Index): 6.18e-08 +/- 4.37e-08
Energy Flux (Free Index): 3.14e-05 +/- 2.14e-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/454661/cmap_HighResolution_277948801_278208001_4FGL_J1217.9+3007_daily_bin149.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.57e-08', energy_flux2='3.14e-05', photon_flux_error='2.69e-08', dlogl='1.61e-01', energy_flux='4.07e-05', photon_flux2='6.18e-08', job_status='DONE', time_completed='2021-09-05 06:24:28.278573', photon_index_error2='0.48', photon_index2='2.12', ts='10.59', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='2.14e-05', EG='0.85', time_epoch_completed='1630848268.28', return_code='0', job_id='454661', GAL2='1.08', EG2='0.83', return_code2='0', energy_flux_error='2.40e-05', photon_flux_error2='4.37e-08', ts2='10.89', photon_index='1.85' WHERE bin_id='149' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:24:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 454661: <4FGL_J1217.9+3007_daily_bin149> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin149 184.476 30.1177 277948801 278208001 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 :                                   775.18 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             259.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            837 sec.

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

