aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 131 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7681
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1217.9+3007_daily_bin1780
RA = 184.476, Dec = 30.1177
tmin = 700704001, tmax = 700963201
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='62560', job_status='RUN', time_executed='2023-03-20 00:52:35.202736', time_epoch_executed='1679298755.2' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='1780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/62560

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/62560/ft1_4FGL_J1217.9+3007_daily_bin1780.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/62560/ft2_4FGL_J1217.9+3007_daily_bin1780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/62560/ft1_4FGL_J1217.9+3007_daily_bin1780.fits outfile=/scratch/kocevski/62560/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin1780.fits ra=184.476 dec=30.1177 rad=12.0 tmin=700704001.0 tmax=700963201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.12
user 3.83
sys 0.24

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

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

Number of photons that the gtmktime cut: 593

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/62560/ft1_filtered_4FGL_J1217.9+3007_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/62560/ft2_4FGL_J1217.9+3007_daily_bin1780.fits sctable="SC_DATA" expcube=/scratch/kocevski/62560/ltcube_700704001_700963201_4FGL_J1217.9+3007_daily_bin1780.fits outfile=/scratch/kocevski/62560/expmap_700704001_700963201_4FGL_J1217.9+3007_daily_bin1780.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/62560/ltcube_700704001_700963201_4FGL_J1217.9+3007_daily_bin1780.fits
.....................!
real 190.73
user 185.35
sys 5.04

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/62560/ft1_filtered_4FGL_J1217.9+3007_daily_bin1780.fits scfile=/scratch/kocevski/62560/ft2_4FGL_J1217.9+3007_daily_bin1780.fits outfile=/scratch/kocevski/62560/cmap_700704001_700963201_4FGL_J1217.9+3007_daily_bin1780.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/62560/ft1_filtered_4FGL_J1217.9+3007_daily_bin1780.fits scfile=/scratch/kocevski/62560/ft2_4FGL_J1217.9+3007_daily_bin1780.fits outfile=/scratch/kocevski/62560/cmap_HighResolution_700704001_700963201_4FGL_J1217.9+3007_daily_bin1780.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.55
user 0.38
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/62560/ft1_filtered_4FGL_J1217.9+3007_daily_bin1780.fits', '/scratch/kocevski/62560/ft2_4FGL_J1217.9+3007_daily_bin1780.fits', expMap='/scratch/kocevski/62560/expmap_700704001_700963201_4FGL_J1217.9+3007_daily_bin1780.fits', expCube='/scratch/kocevski/62560/ltcube_700704001_700963201_4FGL_J1217.9+3007_daily_bin1780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/62560/Model_4FGL_J1217.9+3007_daily_bin1780.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  0.000e+00  1.000e+06 ( 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 -5.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/62560/ft1_filtered_4FGL_J1217.9+3007_daily_bin1780.fits
Spacecraft file(s): /scratch/kocevski/62560/ft2_4FGL_J1217.9+3007_daily_bin1780.fits
Exposure map: /scratch/kocevski/62560/expmap_700704001_700963201_4FGL_J1217.9+3007_daily_bin1780.fits
Exposure cube: /scratch/kocevski/62560/ltcube_700704001_700963201_4FGL_J1217.9+3007_daily_bin1780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/62560/Model_4FGL_J1217.9+3007_daily_bin1780.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) = 6800.76775294

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .61314E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    2.8041       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.1484       1.0000          .0000       .10000E+07
     4 'norm      '    .47025       1.0000          .0000       .10000E+07
     5 'Prefactor '    24.323       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.1775       1.0000          .0000       .10000E+07
     7 'Prefactor '    .20106E-01   1.0000          .0000       .10000E+07
     8 'norm      '    21.666       1.0000          .0000       .10000E+07
     9 'Prefactor '    4.7727       1.0000          .0000       .10000E+07
    10 'norm      '    3.9982       1.0000          .0000       .10000E+07
    11 'Prefactor '    .83030       1.0000          .0000       .10000E+07
    12 'Prefactor '    .25043E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    2.6940       1.0000          .0000       .10000E+07
    14 'Prefactor '    1.6204       1.0000          .0000       .10000E+07
    15 'norm      '    .11269E-07   1.0000          .0000       .10000E+07
    16 'norm      '    1.6794       1.0000          .0000       .10000E+07
    17 'Prefactor '    .17764       1.0000          .0000       .10000E+07
    18 'Prefactor '    .88133E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .74150E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    7.8160       1.0000          .0000       .10000E+07
    21 'norm      '    10.356       1.0000          .0000       .10000E+07
    22 'Prefactor '    .76429E-03   1.0000          .0000       .10000E+07
    23 'norm      '    .61061E-05   1.0000          .0000       .10000E+07
    24 'Prefactor '    .36654       1.0000          .0000       .10000E+07
    25 'norm      '    18.607       1.0000          .0000       .10000E+07
    26 'norm      '    6.9841       1.0000          .0000       .10000E+07
    27 'Normalizat'    .32330       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.5716       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6800.737     FROM MIGRAD    STATUS=CONVERGED    189 CALLS     2604 TOTAL
                     EDM=   .93E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .94591E-07    58.653        .15426E-05** at limit **
   2  Prefactor     2.8138        12.249       -.16211E-05   -.48536E-03
   3  Prefactor     1.1407        4.1466        .18287E-06   -.18220E-03
   4  norm          .47048        .90724        .17476E-07    .13520E-03
   5  Prefactor     24.378        5.0041        .15860E-06   -.32524E-01
   6  Prefactor     1.1757        1.6754       -.19542E-07    .15038E-03
   7  Prefactor      .0000        29.323       -.13628E-06** at limit **
   8  norm          21.663        2.8193       -.23683E-07    .17609E-02
   9  Prefactor     4.7725        5.3166        .12490E-06   -.18012E-03
  10  norm          4.0029        2.7107       -.44134E-07   -.17418E-03
  11  Prefactor     .81708        16.615       -.11352E-05   -.10803E-01
  12  Prefactor      .0000        7.5541       -.30784E-06** at limit **
  13  Prefactor     2.7009        2.3750        .37209E-07   -.16853E-03
  14  Prefactor     1.6245        3.6463       -.77617E-08   -.16551E-03
  15  norm           .0000        .17169       -.97902E-07** at limit **
  16  norm          1.6807        3.4354        .95211E-07   -.27725E-03
  17  Prefactor     .27873E-04    35.000       -.16644E-05** at limit **
  18  Prefactor     .27756E-09    13.252        .10848E-06** at limit **
  19  Prefactor      .0000        2.8801        .31287E-07** at limit **
  20  Prefactor     7.8391        6.3404       -.36815E-08   -.10058E-02
  21  norm          10.347        4.7145        .54202E-07   -.53785E-04
  22  Prefactor     .28078E-06    46.167       -.42596E-06** at limit **
  23  norm           .0000        1.1509        .72426E-07** at limit **
  24  Prefactor     .21002E-05    22.493        .88392E-06** at limit **
  25  norm          18.663        6.0393        .12975E-06   -.66222E-02
  26  norm          7.0202        7.7012       -.44316E-06    .67485E-02
  27  Normalizat    .32333        .19732       -.37318E-05   -.10591E-04
  28  Prefactor     1.5720        .23259        .94383E-06   -.15571E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.4591e-08
  Prefactor  = 2.81384
  Prefactor  = 1.14065
  norm       = 0.470485
  Prefactor  = 24.3784
  Prefactor  = 1.17573
  Prefactor  = 0
  norm       = 21.6631
  Prefactor  = 4.7725
  norm       = 4.00287
  Prefactor  = 0.817085
  Prefactor  = 0
  Prefactor  = 2.7009
  Prefactor  = 1.62447
  norm       = 0
  norm       = 1.68075
  Prefactor  = 2.78726e-05
  Prefactor  = 2.77556e-10
  Prefactor  = 0
  Prefactor  = 7.83906
  norm       = 10.3471
  Prefactor  = 2.80775e-07
  norm       = 0
  Prefactor  = 2.10021e-06
  norm       = 18.6629
  norm       = 7.02022
  Normalizat = 0.323327
  Prefactor  = 1.57203
 **********
 **   18 **HESSE 
 **********

 FCN=   6800.737     FROM HESSE     STATUS=OK           607 CALLS     3211 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .94591E-07    63.885        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.8138        12.684        .60724E-03   -1.5674    
   3  Prefactor     1.1407        4.1846        .10805E-02   -1.5687    
   4  norm          .47048        .93944        .81760E-03   -1.5694    
   5  Prefactor     24.378        26.879        .20281E-03   -1.5609    
   6  Prefactor     1.1757        1.7714        .10543E-02   -1.5686    
   7  Prefactor      .0000        29.313        .17030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          21.663        2.8745        .21490E-03   -1.5615    
   9  Prefactor     4.7725        5.3493        .46030E-03   -1.5664    
  10  norm          4.0029        2.8782        .50413E-03   -1.5668    
  11  Prefactor     .81708        21.929        .50703E-03   -1.5690    
  12  Prefactor      .0000        1.3706        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.7009        2.4410        .62044E-03   -1.5675    
  14  Prefactor     1.6245        3.6849        .83111E-03   -1.5682    
  15  norm           .0000        .10066        .10530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.6807        3.4796        .81262E-03   -1.5682    
  17  Prefactor     .27873E-04    8.7296        .81597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .27756E-09    13.285        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        2.8874        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.8391        6.9807        .35843E-03   -1.5652    
  21  norm          10.347        4.7419        .31111E-03   -1.5644    
  22  Prefactor     .28078E-06    48.548        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm           .0000        1.1651        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .21002E-05    19.794        .11365E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          18.663        10.573        .23191E-03   -1.5622    
  26  norm          7.0202        17.814        .37937E-03   -1.5655    
  27  Normalizat    .32333        .20376        .97119E-01   -1.2147    
  28  Prefactor     1.5720        .22038        .56009E-01   -.75542    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91419e-07
Minuit parameter uncertainties:
  1  0.00491715
  2  11.9482
  3  4.18465
  4  0.939443
  5  26.8789
  6  1.77144
  7  3.06579e-05
  8  2.87453
  9  5.34932
  10  2.87822
  11  8.46599
  12  9.12074e-06
  13  2.44098
  14  3.68491
  15  1.54551e-07
  16  3.47957
  17  0.0311973
  18  0.000125277
  19  2.5761e-06
  20  6.98069
  21  4.74189
  22  0.00738444
  23  2.74361e-07
  24  0.0128953
  25  10.5733
  26  17.8139
  27  0.204231
  28  0.220515
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  4.003e+00  2.878e+00  0.000e+00  1.000e+06 ( 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 -5.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.572e+00  2.205e-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:  3.233e-01  2.042e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.90
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 3.49e-08 +/- 2.51e-08
Energy Flux (Fixed Index): 3.10e-05 +/- 2.23e-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) = 6800.61566326
delta logL = 0.12116203597

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6800.45057471
delta logL = 0.286250584248

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8932       1.0000          .0000       .10000E+07
     2 'alpha     '    1.1874       1.0000          .0000       5.0000    
     3 'Normalizat'    .34142       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5688       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=   6800.451     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      215 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8962        1.7354        .75584E-03   -.18425E-03
   2  alpha         1.1882        .40136        .33046       -.56756E-04
   3  Normalizat    .34139        .17880        .94700E-01    .68135E-04
   4  Prefactor     1.5688        .21506        .56137E-01    .22722E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 1.8962
  alpha      = 1.18816
  Normalizat = 0.341394
  Prefactor  = 1.56885
 **********
 **   18 **HESSE 
 **********

 FCN=   6800.451     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .99E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8962        2.8126        .89693E-05   -1.5680    
   2  alpha         1.1882        .69299        .13512E-01   -.55240    
   3  Normalizat    .34139        .19047        .41966E-03   -1.2045    
   4  Prefactor     1.5688        .23012        .24817E-03   -.75629    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.85625e-12
Minuit parameter uncertainties:
  1  2.81259
  2  0.705858
  3  0.190835
  4  0.23027
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/62560': 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) = 6800.4505742
delta logL = 0.286251095936

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.896e+00  2.813e+00  0.000e+00  1.000e+06 ( 1.000e-12)
318        alpha:  1.188e+00  7.059e-01  0.000e+00  5.000e+00 ( 1.000e+00)
319         beta:  4.615e-02  0.000e+00 -5.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.569e+00  2.303e-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:  3.414e-01  1.908e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.46
Ra Dec: 184.476 30.118
Photon Index (Free Index): 1.19 +/- 0.71
Photon Flux (Free Index): 1.08e-08 +/- 1.52e-08
Energy Flux (Free Index): 6.41e-05 +/- 7.63e-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/62560/cmap_HighResolution_700704001_700963201_4FGL_J1217.9+3007_daily_bin1780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.49e-08', energy_flux2='6.41e-05', photon_flux_error='2.51e-08', dlogl='2.86e-01', energy_flux='3.10e-05', photon_flux2='1.08e-08', job_status='DONE', time_completed='2023-03-20 01:04:09.858247', photon_index_error2='0.71', photon_index2='1.19', ts='9.90', fit_tolerance='1e-08', GAL='1.57', photon_index_error='0.00', energy_flux_error2='7.63e-05', EG='0.32', time_epoch_completed='1679299449.86', return_code='0', job_id='62560', GAL2='1.57', EG2='0.34', return_code2='0', energy_flux_error='2.23e-05', photon_flux_error2='1.52e-08', ts2='10.46', photon_index='1.85' WHERE bin_id='1780' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 20 01:04:09 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 62560: <4FGL_J1217.9+3007_daily_bin1780> in cluster <slac> Done

Job <4FGL_J1217.9+3007_daily_bin1780> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Mar 20 00:50:15 2023
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 20 00:50:16 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 20 00:50:16 2023
Terminated at Mon Mar 20 01:04:10 2023
Results reported at Mon Mar 20 01:04:10 2023

Your job looked like:

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

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

