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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin1754
RA = 184.476, Dec = 30.1177
tmin = 693964801, tmax = 694224001
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='641994', job_status='RUN', time_executed='2023-01-01 01:08:20.027928', time_epoch_executed='1672564100.03' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='1754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/641994

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/641994/ft1_4FGL_J1217.9+3007_daily_bin1754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/641994/ft2_4FGL_J1217.9+3007_daily_bin1754.fits


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

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

Done.
real 3.93
user 3.67
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/641994/ft2_4FGL_J1217.9+3007_daily_bin1754.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/641994/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin1754.fits evtable="EVENTS" outfile="/scratch/kocevski/641994/ft1_filtered_4FGL_J1217.9+3007_daily_bin1754.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.53
user 0.36
sys 0.15

Number of photons that the gtmktime cut: 587

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/641994/ft1_filtered_4FGL_J1217.9+3007_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/641994/ft2_4FGL_J1217.9+3007_daily_bin1754.fits sctable="SC_DATA" expcube=/scratch/kocevski/641994/ltcube_693964801_694224001_4FGL_J1217.9+3007_daily_bin1754.fits outfile=/scratch/kocevski/641994/expmap_693964801_694224001_4FGL_J1217.9+3007_daily_bin1754.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/641994/ltcube_693964801_694224001_4FGL_J1217.9+3007_daily_bin1754.fits
.....................!
real 191.42
user 186.06
sys 4.51

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/641994/ft1_filtered_4FGL_J1217.9+3007_daily_bin1754.fits scfile=/scratch/kocevski/641994/ft2_4FGL_J1217.9+3007_daily_bin1754.fits outfile=/scratch/kocevski/641994/cmap_693964801_694224001_4FGL_J1217.9+3007_daily_bin1754.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/641994/ft1_filtered_4FGL_J1217.9+3007_daily_bin1754.fits scfile=/scratch/kocevski/641994/ft2_4FGL_J1217.9+3007_daily_bin1754.fits outfile=/scratch/kocevski/641994/cmap_HighResolution_693964801_694224001_4FGL_J1217.9+3007_daily_bin1754.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.61
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.099       1.0000          .0000       .10000E+07
     2 'Prefactor '    .87536E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    8.0245       1.0000          .0000       .10000E+07
     4 'norm      '    1.9017       1.0000          .0000       .10000E+07
     5 'Prefactor '    23.708       1.0000          .0000       .10000E+07
     6 'Prefactor '    4.5376       1.0000          .0000       .10000E+07
     7 'Prefactor '    22.349       1.0000          .0000       .10000E+07
     8 'norm      '    27.085       1.0000          .0000       .10000E+07
     9 'Prefactor '    3.3966       1.0000          .0000       .10000E+07
    10 'norm      '    1.0206       1.0000          .0000       .10000E+07
    11 'Prefactor '    .42187E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .21978E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    1.4718       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.7969       1.0000          .0000       .10000E+07
    15 'norm      '    .72130E-01   1.0000          .0000       .10000E+07
    16 'norm      '    2.5933       1.0000          .0000       .10000E+07
    17 'Prefactor '    .77619E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    .22477E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .28814E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .70106E-03   1.0000          .0000       .10000E+07
    21 'norm      '    .21099E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    .37499E-02   1.0000          .0000       .10000E+07
    23 'norm      '    .10416E-03   1.0000          .0000       .10000E+07
    24 'Prefactor '    9.1583       1.0000          .0000       .10000E+07
    25 'norm      '    22.920       1.0000          .0000       .10000E+07
    26 'norm      '    6.9567       1.0000          .0000       .10000E+07
    27 'Normalizat'    1.2795       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .62329       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=   6104.763     FROM MIGRAD    STATUS=CONVERGED    220 CALLS     2093 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.634        15.770       -.31376E-06   -.53533E-01
   2  Prefactor     .83267E-09    9.2420        .48620E-06** at limit **
   3  Prefactor     8.0247        5.8518       -.71631E-07   -.12236E-04
   4  norm          1.9084        1.2810        .69141E-08    .26964E-03
   5  Prefactor     23.515        18.248        .11714E-06   -.93810E-01
   6  Prefactor     4.5444        2.6149        .78384E-07    .17533E-02
   7  Prefactor     19.888        32.984        .52872E-06   -.36016E-01
   8  norm          27.084        3.2061       -.36765E-08    .49750E-03
   9  Prefactor     3.3722        4.6023        .49572E-06    .93515E-04
  10  norm          1.0058        2.7182       -.11660E-06   -.28299E-03
  11  Prefactor      .0000        2.1771        .29018E-06** at limit **
  12  Prefactor      .0000        1.1443        .33046E-06** at limit **
  13  Prefactor     1.4717        1.6528       -.55921E-07    .24346E-03
  14  Prefactor     2.7971        2.7856        .88694E-07   -.78839E-04
  15  norm          .71809E-01    .23243        .63474E-07** at limit **
  16  norm          2.5958        2.7926        .18427E-07    .45667E-04
  17  Prefactor      .0000        3.5343        .59744E-07** at limit **
  18  Prefactor     .16653E-09    6.6833        .94262E-07** at limit **
  19  Prefactor     .11803E-05    66.889       -.37633E-07** at limit **
  20  Prefactor      .0000        1.8259       -.66598E-07** at limit **
  21  norm           .0000        2.1010        .53705E-06** at limit **
  22  Prefactor     .14917E-05    108.13       -.52368E-06** at limit **
  23  norm           .0000        1.3607        .20526E-06** at limit **
  24  Prefactor     9.3254        15.795       -.29039E-06   -.56246E-01
  25  norm          22.937        7.4357        .90814E-07    .37883E-03
  26  norm          6.9216        9.6773        .79355E-07    .25554E-03
  27  Normalizat    1.2798        .21919       -.11787E-05    .98390E-06
  28  Prefactor     .62394        .23677        .29488E-05    .99200E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.6336
  Prefactor  = 8.32667e-10
  Prefactor  = 8.02472
  norm       = 1.90843
  Prefactor  = 23.515
  Prefactor  = 4.54439
  Prefactor  = 19.8878
  norm       = 27.0838
  Prefactor  = 3.3722
  norm       = 1.0058
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.47171
  Prefactor  = 2.7971
  norm       = 0.0718094
  norm       = 2.59577
  Prefactor  = 0
  Prefactor  = 1.66533e-10
  Prefactor  = 1.18028e-06
  Prefactor  = 0
  norm       = 0
  Prefactor  = 1.4917e-06
  norm       = 0
  Prefactor  = 9.32545
  norm       = 22.9366
  norm       = 6.9216
  Normalizat = 1.2798
  Prefactor  = 0.623936
 **********
 **   18 **HESSE 
 **********

 FCN=   6104.763     FROM HESSE     STATUS=OK           585 CALLS     2678 TOTAL
                     EDM=   .51E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.634        16.735        .26649E-03   -1.5634    
   2  Prefactor     .83267E-09    9.2388        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.0247        5.8517        .35370E-03   -1.5651    
   4  norm          1.9084        1.2840        .75387E-03   -1.5680    
   5  Prefactor     23.515        24.189        .20543E-03   -1.5611    
   6  Prefactor     4.5444        2.6513        .47236E-03   -1.5665    
   7  Prefactor     19.888        36.296        .21159E-03   -1.5619    
   8  norm          27.084        3.2060        .19218E-03   -1.5604    
   9  Prefactor     3.3722        4.6153        .54871E-03   -1.5671    
  10  norm          1.0058        2.7035        .12778E-02   -1.5728    
  11  Prefactor      .0000        2.1849        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        1.1419        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.4717        1.6622        .88530E-03   -1.5684    
  14  Prefactor     2.7971        2.7785        .60807E-03   -1.5675    
  15  norm          .71809E-01    .17521        .14321E-02   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.5958        2.7925        .63333E-03   -1.5676    
  17  Prefactor      .0000        3.5350        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .16653E-09    6.6780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .11803E-05    66.012        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        1.8335        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm           .0000        2.1013        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .14917E-05    110.64        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm           .0000        1.3590        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     9.3254        18.032        .33094E-03   -1.5647    
  25  norm          22.937        7.3789        .20893E-03   -1.5612    
  26  norm          6.9216        9.6265        .38013E-03   -1.5655    
  27  Normalizat    1.2798        .18752        .54099E-01   -.84171    
  28  Prefactor     .62394        .20473        .83209E-01   -1.0659    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.1252e-07
Minuit parameter uncertainties:
  1  16.7347
  2  0.000176413
  3  5.85169
  4  1.28395
  5  24.189
  6  2.65125
  7  36.2963
  8  3.20603
  9  4.61527
  10  2.70349
  11  1.53417e-06
  12  2.4083e-06
  13  1.66221
  14  2.77852
  15  0.175213
  16  2.79248
  17  1.51143e-05
  18  7.14396e-05
  19  0.017654
  20  1.30645e-07
  21  3.79139e-06
  22  0.0256937
  23  3.45452e-06
  24  18.0323
  25  7.37887
  26  9.62652
  27  0.187619
  28  0.20498
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.006e+00  2.703e+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:  6.239e-01  2.050e-01  0.000e+00  1.000e+01 ( 1.000e+00)
627        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
628        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
625   Normalization:  1.280e+00  1.876e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.16
Ra Dec: 184.476 30.118
Photon Flux Upper Limit: 6.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.14e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/641994/likelihoodResults_693964801_694224001_4FGL_J1217.9+3007_daily_bin1754.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) = 6103.99412246
delta logL = 0.76902424304

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6103.98513877
delta logL = 0.778007936877

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1331       1.0000          .0000       .10000E+07
     2 'alpha     '    2.9338       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2405       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64094       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=   6103.985     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      225 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1324        16.289        .10957E-02    .78408E-02
   2  alpha         2.9342        3.8582        .34087        .53392E-04
   3  Normalizat    1.2406        .44995E-01    .54698E-01    .22074E-05
   4  Prefactor     .64095        .49628E-01    .82008E-01    .24974E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.1324
  alpha      = 2.93421
  Normalizat = 1.24056
  Prefactor  = 0.640947
 **********
 **   18 **HESSE 
 **********

 FCN=   6103.985     FROM HESSE     STATUS=OK            33 CALLS      258 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1324        2.0975        .71176E-05   -1.5687    
   2  alpha         2.9342        1.0233        .11677E-01    .17457    
   3  Normalizat    1.2406        .21449        .24185E-03   -.85358    
   4  Prefactor     .64095        .23632        .36323E-03   -1.0589    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3434e-11
Minuit parameter uncertainties:
  1  2.09748
  2  1.0553
  3  0.21464
  4  0.236684
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/641994': 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) = 6103.98513858
delta logL = 0.778008125227

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.132e+00  2.097e+00  0.000e+00  1.000e+06 ( 1.000e-12)
318        alpha:  2.934e+00  1.055e+00  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:  6.409e-01  2.367e-01  0.000e+00  1.000e+01 ( 1.000e+00)
627        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
628        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
625   Normalization:  1.241e+00  2.146e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.73
Ra Dec: 184.476 30.118
Photon Index (Free Index): 2.93 +/- 1.06
Photon Flux (Free Index): 5.52e-08 +/- 5.18e-08
Energy Flux (Free Index): 1.19e-05 +/- 1.10e-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/641994/cmap_HighResolution_693964801_694224001_4FGL_J1217.9+3007_daily_bin1754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.14e-05', comment='SUCCESS', energy_flux2='1.19e-05', dlogl='7.78e-01', photon_flux2='5.52e-08', job_status='DONE', time_completed='2023-01-01 01:20:13.530435', photon_index_error2='1.06', photon_index2='2.93', ts='0.16', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', photon_flux_upper_limit='6.90e-08', energy_flux_error2='1.10e-05', EG='1.28', time_epoch_completed='1672564813.53', return_code='0', job_id='641994', GAL2='0.64', EG2='1.24', return_code2='0', photon_flux_error2='5.18e-08', ts2='1.73', photon_index='1.85' WHERE bin_id='1754' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan  1 01:20:13 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 641994: <4FGL_J1217.9+3007_daily_bin1754> in cluster <slac> Done

Job <4FGL_J1217.9+3007_daily_bin1754> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Jan  1 01:05:18 2023
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan  1 01:06:22 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan  1 01:06:22 2023
Terminated at Sun Jan  1 01:20:14 2023
Results reported at Sun Jan  1 01:20:14 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin1754 184.476 30.1177 693964801 694224001 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 :                                   713.52 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             292.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            896 sec.

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

