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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin1717
RA = 184.476, Dec = 30.1177
tmin = 684374401, tmax = 684633601
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='117590', job_status='RUN', time_executed='2022-09-16 16:42:14.594620', time_epoch_executed='1663371734.59' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='1717'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/117590

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/117590/ft1_4FGL_J1217.9+3007_daily_bin1717.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/117590/ft2_4FGL_J1217.9+3007_daily_bin1717.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/117590/ft1_4FGL_J1217.9+3007_daily_bin1717.fits outfile=/scratch/kocevski/117590/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin1717.fits ra=184.476 dec=30.1177 rad=12.0 tmin=684374401.0 tmax=684633601.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 5.10
user 4.75
sys 0.29

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

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

Number of photons that the gtmktime cut: 614

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/117590/ft1_filtered_4FGL_J1217.9+3007_daily_bin1717.fits" evtable="EVENTS" scfile=/scratch/kocevski/117590/ft2_4FGL_J1217.9+3007_daily_bin1717.fits sctable="SC_DATA" outfile=/scratch/kocevski/117590/ltcube_684374401_684633601_4FGL_J1217.9+3007_daily_bin1717.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/117590/ft2_4FGL_J1217.9+3007_daily_bin1717.fits
.....................!
real 15.95
user 14.94
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/117590/ft1_filtered_4FGL_J1217.9+3007_daily_bin1717.fits evtable="EVENTS" scfile=/scratch/kocevski/117590/ft2_4FGL_J1217.9+3007_daily_bin1717.fits sctable="SC_DATA" expcube=/scratch/kocevski/117590/ltcube_684374401_684633601_4FGL_J1217.9+3007_daily_bin1717.fits outfile=/scratch/kocevski/117590/expmap_684374401_684633601_4FGL_J1217.9+3007_daily_bin1717.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/117590/ltcube_684374401_684633601_4FGL_J1217.9+3007_daily_bin1717.fits
.....................!
real 193.78
user 187.32
sys 5.91

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/117590/ft1_filtered_4FGL_J1217.9+3007_daily_bin1717.fits scfile=/scratch/kocevski/117590/ft2_4FGL_J1217.9+3007_daily_bin1717.fits outfile=/scratch/kocevski/117590/cmap_684374401_684633601_4FGL_J1217.9+3007_daily_bin1717.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=184.476 yref=30.1177 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.59
user 0.37
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/117590/ft1_filtered_4FGL_J1217.9+3007_daily_bin1717.fits scfile=/scratch/kocevski/117590/ft2_4FGL_J1217.9+3007_daily_bin1717.fits outfile=/scratch/kocevski/117590/cmap_HighResolution_684374401_684633601_4FGL_J1217.9+3007_daily_bin1717.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.57
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14839E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    4.7047       1.0000          .0000       .10000E+07
     3 'Prefactor '    6.5049       1.0000          .0000       .10000E+07
     4 'norm      '    .45721       1.0000          .0000       .10000E+07
     5 'Prefactor '    37.064       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.7623       1.0000          .0000       .10000E+07
     7 'Prefactor '    .27063E-04   1.0000          .0000       .10000E+07
     8 'norm      '    15.279       1.0000          .0000       .10000E+07
     9 'Prefactor '    .11500E-03   1.0000          .0000       .10000E+07
    10 'norm      '    6.2172       1.0000          .0000       .10000E+07
    11 'Prefactor '    .29110E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    5.4794       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.8924       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.9617       1.0000          .0000       .10000E+07
    15 'norm      '    .20928E-07   1.0000          .0000       .10000E+07
    16 'norm      '    11.447       1.0000          .0000       .10000E+07
    17 'Prefactor '    .41568E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    .25327E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    16.965       1.0000          .0000       .10000E+07
    20 'Prefactor '    .61594E-03   1.0000          .0000       .10000E+07
    21 'norm      '    2.3308       1.0000          .0000       .10000E+07
    22 'Prefactor '    .21196E-02   1.0000          .0000       .10000E+07
    23 'norm      '    2.4949       1.0000          .0000       .10000E+07
    24 'Prefactor '    .19395E-04   1.0000          .0000       .10000E+07
    25 'norm      '    26.349       1.0000          .0000       .10000E+07
    26 'norm      '    3.3693       1.0000          .0000       .10000E+07
    27 'Normalizat'    .95196       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .92892       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=   6424.189     FROM MIGRAD    STATUS=CONVERGED    151 CALLS     2490 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .57614E-05    7.8244        .92780E-06** at limit **
   2  Prefactor     4.7131        3.4488        .58248E-06   -.23063E-01
   3  Prefactor     6.5177        5.5933        .20703E-06    .12989E-02
   4  norm          .45718        .49676       -.54157E-07   -.21483E-02
   5  Prefactor     37.241        1.3121        .59095E-07   -.27420E-01
   6  Prefactor     1.7599        1.5622        .75247E-07    .12051E-03
   7  Prefactor     .38454E-05    12.678       -.97611E-06** at limit **
   8  norm          15.287        2.3683        .22660E-07   -.31082E-02
   9  Prefactor     .21705E-07    2.8162       -.57650E-06** at limit **
  10  norm          6.1792        3.2119       -.41557E-07    .40681E-03
  11  Prefactor     .46463E-07    2.6260        .11608E-05** at limit **
  12  Prefactor     5.4933        2.7857       -.12359E-07    .10259E-02
  13  Prefactor     1.8947        1.8456        .35346E-06    .26899E-02
  14  Prefactor     2.9667        5.9093        .15266E-05    .20442E-01
  15  norm           .0000        .26506       -.90807E-07** at limit **
  16  norm          11.461        5.6702       -.54372E-06   -.41713E-01
  17  Prefactor     .32030E-07    4.3747        .34099E-06** at limit **
  18  Prefactor     .24886E-06    4.4012       -.30148E-06** at limit **
  19  Prefactor     16.968        1.2824        .65506E-07   -.15876E-02
  20  Prefactor     .33806E-07    3.7322        .20906E-07** at limit **
  21  norm          2.3364        2.7720       -.31579E-07    .55647E-03
  22  Prefactor     .67557E-07    3.7894       -.79097E-06** at limit **
  23  norm          2.5142        3.1899       -.46859E-07   -.26957E-03
  24  Prefactor     .37165E-06    9.5930        .47101E-06** at limit **
  25  norm          26.648        5.1843       -.24431E-07    .64211E-02
  26  norm          2.8356        3.1082        .16770E-06    .93341E-03
  27  Normalizat    .95088        .20453       -.80186E-05   -.24994E-04
  28  Prefactor     .92959        .23534       -.33333E-05   -.47570E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.76139e-06
  Prefactor  = 4.71311
  Prefactor  = 6.51765
  norm       = 0.457176
  Prefactor  = 37.2413
  Prefactor  = 1.75992
  Prefactor  = 3.84542e-06
  norm       = 15.2871
  Prefactor  = 2.17049e-08
  norm       = 6.17919
  Prefactor  = 4.64628e-08
  Prefactor  = 5.49334
  Prefactor  = 1.89469
  Prefactor  = 2.96667
  norm       = 0
  norm       = 11.461
  Prefactor  = 3.20299e-08
  Prefactor  = 2.48856e-07
  Prefactor  = 16.9683
  Prefactor  = 3.38063e-08
  norm       = 2.33638
  Prefactor  = 6.75571e-08
  norm       = 2.51424
  Prefactor  = 3.71647e-07
  norm       = 26.6483
  norm       = 2.83565
  Normalizat = 0.950878
  Prefactor  = 0.929586
 **********
 **   18 **HESSE 
 **********

 FCN=   6424.189     FROM HESSE     STATUS=OK           587 CALLS     3077 TOTAL
                     EDM=   .69E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .57614E-05    17.034        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.7131        11.316        .46369E-03   -1.5665    
   3  Prefactor     6.5177        5.6134        .39325E-03   -1.5657    
   4  norm          .45718        .49198        .83137E-03   -1.5694    
   5  Prefactor     37.241        23.961        .16427E-03   -1.5586    
   6  Prefactor     1.7599        1.5944        .78891E-03   -1.5681    
   7  Prefactor     .38454E-05    18.795        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          15.287        2.3979        .25597E-03   -1.5630    
   9  Prefactor     .21705E-07    2.8701        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.1792        3.2049        .40237E-03   -1.5658    
  11  Prefactor     .46463E-07    2.7270        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.4933        2.7798        .42901E-03   -1.5661    
  13  Prefactor     1.8947        1.8642        .75604E-03   -1.5680    
  14  Prefactor     2.9667        6.0126        .58979E-03   -1.5674    
  15  norm           .0000        .12572        .10019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          11.461        5.7563        .29585E-03   -1.5640    
  17  Prefactor     .32030E-07    4.5152        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .24886E-06    7.7061        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.968        8.3897        .24290E-03   -1.5626    
  20  Prefactor     .33806E-07    3.8264        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.3364        2.7876        .67144E-03   -1.5677    
  22  Prefactor     .67557E-07    8.1367        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.5142        3.2097        .64681E-03   -1.5676    
  24  Prefactor     .37165E-06    10.996        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          26.648        9.2856        .19485E-03   -1.5605    
  26  norm          2.8356        16.998        .55103E-03   -1.5674    
  27  Normalizat    .95088        .17879        .45562E-01   -.94695    
  28  Prefactor     .92959        .20138        .69179E-01   -.95115    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.93642e-07
Minuit parameter uncertainties:
  1  0.0198132
  2  11.3157
  3  5.61345
  4  0.491981
  5  23.9609
  6  1.59436
  7  0.0170032
  8  2.39786
  9  0.000498921
  10  3.20487
  11  0.000712047
  12  2.77983
  13  1.86417
  14  6.0126
  15  1.0467e-06
  16  5.75634
  17  0.000760742
  18  0.00276949
  19  8.38967
  20  0.000719589
  21  2.78759
  22  0.00148308
  23  3.20972
  24  0.00404298
  25  9.28565
  26  13.8852
  27  0.178907
  28  0.201543
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  6.179e+00  3.205e+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:  9.296e-01  2.015e-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.509e-01  1.789e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.22
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 5.38e-08 +/- 2.79e-08
Energy Flux (Fixed Index): 4.79e-05 +/- 2.49e-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) = 6424.16731971
delta logL = 0.021418184414

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6424.16705087
delta logL = 0.0216870218001

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.1797       1.0000          .0000       .10000E+07
     2 'alpha     '    1.7801       1.0000          .0000       5.0000    
     3 'Normalizat'    .95397       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92838       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=   6424.167     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      195 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.2008        4.8942        .40360E-03    .73944E-03
   2  alpha         1.7804        .50549        .25945        .43075E-04
   3  Normalizat    .95392        .17165        .45588E-01    .28097E-04
   4  Prefactor     .92836        .20085        .69236E-01    .27845E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.20078
  alpha      = 1.78035
  Normalizat = 0.953915
  Prefactor  = 0.928356
 **********
 **   18 **HESSE 
 **********

 FCN=   6424.167     FROM HESSE     STATUS=OK            33 CALLS      228 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.2008        3.1015        .97002E-05   -1.5658    
   2  alpha         1.7804        .35240        .10417E-01   -.29199    
   3  Normalizat    .95392        .19963        .25818E-03   -.94591    
   4  Prefactor     .92836        .23433        .30628E-03   -.95157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30485e-11
Minuit parameter uncertainties:
  1  3.10147
  2  0.353688
  3  0.199783
  4  0.234582
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/117590': 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) = 6424.16702761
delta logL = 0.021710284137

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  6.201e+00  3.101e+00  0.000e+00  1.000e+06 ( 1.000e-12)
318        alpha:  1.780e+00  3.537e-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:  9.284e-01  2.346e-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.539e-01  1.998e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.41
Ra Dec: 184.476 30.118
Photon Index (Free Index): 1.78 +/- 0.35
Photon Flux (Free Index): 4.96e-08 +/- 3.17e-08
Energy Flux (Free Index): 5.31e-05 +/- 3.82e-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/117590/cmap_HighResolution_684374401_684633601_4FGL_J1217.9+3007_daily_bin1717.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.38e-08', energy_flux2='5.31e-05', photon_flux_error='2.79e-08', dlogl='2.17e-02', energy_flux='4.79e-05', photon_flux2='4.96e-08', job_status='DONE', time_completed='2022-09-16 16:53:58.647164', photon_index_error2='0.35', photon_index2='1.78', ts='19.22', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='3.82e-05', EG='0.95', time_epoch_completed='1663372438.65', return_code='0', job_id='117590', GAL2='0.93', EG2='0.95', return_code2='0', energy_flux_error='2.49e-05', photon_flux_error2='3.17e-08', ts2='19.41', photon_index='1.85' WHERE bin_id='1717' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 16:53:58 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 117590: <4FGL_J1217.9+3007_daily_bin1717> in cluster <slac> Done

Job <4FGL_J1217.9+3007_daily_bin1717> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Sep 16 16:40:32 2022
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 16:41:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 16:41:26 2022
Terminated at Fri Sep 16 16:53:59 2022
Results reported at Fri Sep 16 16:53:59 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin1717 184.476 30.1177 684374401 684633601 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 :                                   704.50 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             340.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   752 sec.
    Turnaround time :                            807 sec.

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

