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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin92
RA = 184.476, Dec = 30.1177
tmin = 263174401, tmax = 263433601
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='454572', job_status='RUN', time_executed='2021-09-05 06:12:39.878915', time_epoch_executed='1630847559.88' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='92'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/454572

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/454572/ft1_4FGL_J1217.9+3007_daily_bin92.fits


Retrieving the FT1 file...

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

Retrieving 42 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/454572/ft2_4FGL_J1217.9+3007_daily_bin92.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/454572/ft1_4FGL_J1217.9+3007_daily_bin92.fits outfile=/scratch/kocevski/454572/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin92.fits ra=184.476 dec=30.1177 rad=12.0 tmin=263174401.0 tmax=263433601.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 1.37
user 1.19
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/454572/ft1_filtered_4FGL_J1217.9+3007_daily_bin92.fits evtable="EVENTS" scfile=/scratch/kocevski/454572/ft2_4FGL_J1217.9+3007_daily_bin92.fits sctable="SC_DATA" expcube=/scratch/kocevski/454572/ltcube_263174401_263433601_4FGL_J1217.9+3007_daily_bin92.fits outfile=/scratch/kocevski/454572/expmap_263174401_263433601_4FGL_J1217.9+3007_daily_bin92.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/454572/ltcube_263174401_263433601_4FGL_J1217.9+3007_daily_bin92.fits
.....................!
real 190.92
user 185.39
sys 4.88

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/454572/ft1_filtered_4FGL_J1217.9+3007_daily_bin92.fits scfile=/scratch/kocevski/454572/ft2_4FGL_J1217.9+3007_daily_bin92.fits outfile=/scratch/kocevski/454572/cmap_263174401_263433601_4FGL_J1217.9+3007_daily_bin92.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.57
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/454572/ft1_filtered_4FGL_J1217.9+3007_daily_bin92.fits scfile=/scratch/kocevski/454572/ft2_4FGL_J1217.9+3007_daily_bin92.fits outfile=/scratch/kocevski/454572/cmap_HighResolution_263174401_263433601_4FGL_J1217.9+3007_daily_bin92.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.56
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.783       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.1845       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.3898       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.4853       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    97.965       1.0000         .10000E-03   10000.    
     9 'norm      '    3.2385       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5390       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.6575       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.0179       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.3950       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.9464       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.5859       1.0000         .10000E-03   10000.    
    17 'norm      '    .91024       1.0000         .10000E-03   10000.    
    18 'norm      '    .12138E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.6077       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11223E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    3.6793       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    4.4318       1.0000         .10000E-03   10000.    
    29 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .92560       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .99113       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=   4669.717     FROM MIGRAD    STATUS=CONVERGED    809 CALLS     4136 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.787        18.900       -.10036E-05   -.29943E-04
   2  Prefactor     4.1841        9.5515        .58844E-06   -.53954E-03
   3  Prefactor     .10000E-03    1.9369       -.18672E-08** at limit **
   4  norm          2.3900        1.7997       -.11685E-06   -.38520E-04
   5  Prefactor     .10000E-03    4.4294        .17629E-06** at limit **
   6  Prefactor     4.4857        2.1561       -.22650E-07   -.16619E-04
   7  Prefactor     .10000E-03    20.055        .51363E-05** at limit **
   8  Prefactor     97.968        85.967        .22069E-05    .10074E-04
   9  norm          3.2389        1.5255       -.22937E-07   -.98261E-04
  10  Prefactor     2.5395        2.9271        .31289E-06   -.20983E-02
  11  Prefactor     .10000E-03    21.046       -.15202E-05** at limit **
  12  norm          3.6578        4.2831        .39482E-06   -.47589E-04
  13  Prefactor     4.0186        7.1947        .10352E-06   -.90328E-03
  14  Prefactor     2.3952        2.5286       -.11117E-06   -.34478E-04
  15  Prefactor     7.9458        3.5129       -.16352E-06   -.17413E-03
  16  Prefactor     5.5851        5.8384       -.58186E-07   -.57925E-04
  17  norm          .91029        .34120       -.95426E-08   -.21204E-03
  18  norm          .10000E-03    4.4245        .28537E-06** at limit **
  19  Prefactor     .10000E-03    8.2180        .24149E-05** at limit **
  20  Prefactor     .10000E-03    8.6925       -.28927E-05** at limit **
  21  Prefactor     .10000E-03    27.832        .70877E-05** at limit **
  22  Prefactor     8.6078        11.615        .85008E-07   -.11818E-04
  23  Prefactor     .10000E-03    3.3554        .10775E-06** at limit **
  24  norm          .10000E-03    6.0449        .49589E-07** at limit **
  25  Prefactor     .10000E-03    128.37       -.18670E-05** at limit **
  26  norm          3.6800        4.2702        .38220E-07   -.49376E-03
  27  Prefactor     .10000E-03    23.868       -.10084E-04** at limit **
  28  norm          4.4269        4.4842       -.13374E-05   -.82721E-04
  29  norm          .10000E-03    4.9165       -.56730E-07** at limit **
  30  Normalizat    .92553        .20644        .72890E-06   -.34464E-04
  31  Prefactor     .99109        .23774       -.49359E-06   -.26984E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.7867
  Prefactor  = 4.18412
  Prefactor  = 0.0001
  norm       = 2.39002
  Prefactor  = 0.0001
  Prefactor  = 4.48566
  Prefactor  = 0.0001
  Prefactor  = 97.9678
  norm       = 3.23891
  Prefactor  = 2.53953
  Prefactor  = 0.0001
  norm       = 3.6578
  Prefactor  = 4.01865
  Prefactor  = 2.39522
  Prefactor  = 7.94584
  Prefactor  = 5.58511
  norm       = 0.91029
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.60783
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  norm       = 3.67999
  Prefactor  = 0.0001
  norm       = 4.42689
  norm       = 0.0001
  Normalizat = 0.925526
  Prefactor  = 0.991086
 **********
 **   18 **HESSE 
 **********

 FCN=   4669.717     FROM HESSE     STATUS=OK           626 CALLS     4762 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.787        18.917        .83918E-04   -1.4753    
   2  Prefactor     4.1841        10.163        .98508E-03   -1.5299    
   3  Prefactor     .10000E-03    1.9483        .92864E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.3900        1.7996        .72591E-04   -1.5399    
   5  Prefactor     .10000E-03    4.4311        .14046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.4857        2.1557        .67121E-04   -1.5284    
   7  Prefactor     .10000E-03    20.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     97.968        86.057        .40613E-04   -1.3725    
   9  norm          3.2389        1.5241        .55377E-04   -1.5348    
  10  Prefactor     2.5395        4.0223        .82792E-03   -1.5389    
  11  Prefactor     .10000E-03    21.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.6578        4.2558        .13502E-03   -1.5325    
  13  Prefactor     4.0186        8.2939        .10059E-02   -1.5307    
  14  Prefactor     2.3952        2.5228        .10196E-03   -1.5398    
  15  Prefactor     7.9458        3.5054        .78145E-04   -1.5144    
  16  Prefactor     5.5851        5.7766        .16076E-03   -1.5235    
  17  norm          .91029        .34007        .23047E-04   -1.5517    
  18  norm          .10000E-03    10.420        .27323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.2645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.7039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    27.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.6078        11.606        .13663E-03   -1.5121    
  23  Prefactor     .10000E-03    3.3686        .12224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    6.2388        .32752E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    130.65        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.6800        4.3177        .73930E-03   -1.5324    
  27  Prefactor     .10000E-03    23.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          4.4269        4.4719        .13914E-03   -1.5287    
  29  norm          .10000E-03    4.9298        .14755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .92553        .23776        .25288E-03   -.95569    
  31  Prefactor     .99109        .27341        .28834E-03   -.93027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.30812e-09
Minuit parameter uncertainties:
  1  18.9223
  2  10.167
  3  4.83608e-07
  4  1.79962
  5  9.05884e-07
  6  2.15571
  7  6.4699e-05
  8  86.1669
  9  1.52407
  10  4.02272
  11  3.38636e-05
  12  4.25616
  13  8.29625
  14  2.52296
  15  3.50546
  16  5.77714
  17  0.340067
  18  0.000129271
  19  2.22927e-05
  20  2.97706e-05
  21  0.000144691
  22  11.609
  23  4.81701e-06
  24  3.87559e-05
  25  0.00116421
  26  4.31805
  27  0.000140507
  28  4.4722
  29  5.0415e-05
  30  0.238032
  31  0.273794
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  3.658e+00  4.256e+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.911e-01  2.738e-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.255e-01  2.380e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.15
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 3.19e-08 +/- 3.71e-08
Energy Flux (Fixed Index): 2.84e-05 +/- 3.30e-05

TS (Fixed Index): 1.15
Ra Dec: 184.476 30.118
Photon Flux Upper Limit: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.73e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/454572/likelihoodResults_263174401_263433601_4FGL_J1217.9+3007_daily_bin92.txt

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) = 4669.16554353
delta logL = 0.551784257253

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4669.16367618
delta logL = 0.553651608249

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5670       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6219       1.0000          .0000       5.0000    
     3 'Normalizat'    .88171       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0204       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4669.164     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      294 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5667        4.1882        .80130E-04   -.29354E-03
   2  alpha         2.6222        .97975        .99675E-02   -.23417E-04
   3  Normalizat    .88159        .23594        .25799E-03   -.13705E-03
   4  Prefactor     1.0206        .27527        .28454E-03   -.22352E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.56666
  alpha      = 2.62221
  Normalizat = 0.881593
  Prefactor  = 1.02059
 **********
 **   18 **HESSE 
 **********

 FCN=   4669.164     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5667        3.5507        .32052E-05   -1.5388    
   2  alpha         2.6222        .83606        .39870E-03    .48905E-01
   3  Normalizat    .88159        .23477        .10320E-04   -.97110    
   4  Prefactor     1.0206        .27387        .56908E-04   -.92046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79681e-10
Minuit parameter uncertainties:
  1  3.55096
  2  0.852522
  3  0.235042
  4  0.274247
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/454572': 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) = 4669.1636759
delta logL = 0.553651888824

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  2.567e+00  3.551e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  2.622e+00  8.525e-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.021e+00  2.742e-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.816e-01  2.350e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.28
Ra Dec: 184.476 30.118
Photon Index (Free Index): 2.62 +/- 0.85
Photon Flux (Free Index): 7.15e-08 +/- 5.99e-08
Energy Flux (Free Index): 1.92e-05 +/- 1.67e-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/454572/cmap_HighResolution_263174401_263433601_4FGL_J1217.9+3007_daily_bin92.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.73e-05', comment='SUCCESS', photon_flux='3.19e-08', energy_flux2='1.92e-05', photon_flux_error='3.71e-08', dlogl='5.54e-01', energy_flux='2.84e-05', photon_flux2='7.15e-08', job_status='DONE', time_completed='2021-09-05 06:25:42.192369', photon_index_error2='0.85', photon_index2='2.62', ts='1.15', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='1.67e-05', EG='0.93', time_epoch_completed='1630848342.19', return_code='0', job_id='454572', GAL2='1.02', EG2='0.88', return_code2='0', energy_flux_error='3.30e-05', photon_flux_error2='5.99e-08', ts2='2.28', photon_index='1.85' WHERE bin_id='92' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:25:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 454572: <4FGL_J1217.9+3007_daily_bin92> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin92 184.476 30.1177 263174401 263433601 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 :                                   778.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             265.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            917 sec.

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

