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


Performing analysis on: 4FGL_J1221.3+3010_daily_bin1713
RA = 185.345, Dec = 30.1677
tmin = 683337601, tmax = 683596801
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='117681', job_status='RUN', time_executed='2022-09-16 16:42:59.416540', time_epoch_executed='1663371779.42' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='1713'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/117681

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/117681/ft1_4FGL_J1221.3+3010_daily_bin1713.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/117681/ft2_4FGL_J1221.3+3010_daily_bin1713.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/117681/ft1_4FGL_J1221.3+3010_daily_bin1713.fits outfile=/scratch/kocevski/117681/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin1713.fits ra=185.345 dec=30.1677 rad=12.0 tmin=683337601.0 tmax=683596801.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.57
user 3.30
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/117681/ft2_4FGL_J1221.3+3010_daily_bin1713.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/117681/ft2_4FGL_J1221.3+3010_daily_bin1713.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/117681/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin1713.fits evtable="EVENTS" outfile="/scratch/kocevski/117681/ft1_filtered_4FGL_J1221.3+3010_daily_bin1713.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.55
user 0.36
sys 0.18

Number of photons that the gtmktime cut: 659

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/117681/ft1_filtered_4FGL_J1221.3+3010_daily_bin1713.fits" evtable="EVENTS" scfile=/scratch/kocevski/117681/ft2_4FGL_J1221.3+3010_daily_bin1713.fits sctable="SC_DATA" outfile=/scratch/kocevski/117681/ltcube_683337601_683596801_4FGL_J1221.3+3010_daily_bin1713.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/117681/ft2_4FGL_J1221.3+3010_daily_bin1713.fits
.....................!
real 14.10
user 13.67
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/117681/ft1_filtered_4FGL_J1221.3+3010_daily_bin1713.fits evtable="EVENTS" scfile=/scratch/kocevski/117681/ft2_4FGL_J1221.3+3010_daily_bin1713.fits sctable="SC_DATA" expcube=/scratch/kocevski/117681/ltcube_683337601_683596801_4FGL_J1221.3+3010_daily_bin1713.fits outfile=/scratch/kocevski/117681/expmap_683337601_683596801_4FGL_J1221.3+3010_daily_bin1713.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/117681/ltcube_683337601_683596801_4FGL_J1221.3+3010_daily_bin1713.fits
.....................!
real 192.64
user 186.38
sys 4.81

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 J1221.3+3010 @ 185.345 30.1677

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/117681/ft1_filtered_4FGL_J1221.3+3010_daily_bin1713.fits scfile=/scratch/kocevski/117681/ft2_4FGL_J1221.3+3010_daily_bin1713.fits outfile=/scratch/kocevski/117681/cmap_683337601_683596801_4FGL_J1221.3+3010_daily_bin1713.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=185.345 yref=30.1677 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/117681/ft1_filtered_4FGL_J1221.3+3010_daily_bin1713.fits scfile=/scratch/kocevski/117681/ft2_4FGL_J1221.3+3010_daily_bin1713.fits outfile=/scratch/kocevski/117681/cmap_HighResolution_683337601_683596801_4FGL_J1221.3+3010_daily_bin1713.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=185.345 yref=30.1677 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/117681/ft1_filtered_4FGL_J1221.3+3010_daily_bin1713.fits evtable="EVENTS" scfile=/scratch/kocevski/117681/ft2_4FGL_J1221.3+3010_daily_bin1713.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/117681/Model_4FGL_J1221.3+3010_daily_bin1713.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/117681/ft1_filtered_4FGL_J1221.3+3010_daily_bin1713.fits.....................!
real 61.04
user 59.35
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/117681/ft1_filtered_4FGL_J1221.3+3010_daily_bin1713.fits', '/scratch/kocevski/117681/ft2_4FGL_J1221.3+3010_daily_bin1713.fits', expMap='/scratch/kocevski/117681/expmap_683337601_683596801_4FGL_J1221.3+3010_daily_bin1713.fits', expCube='/scratch/kocevski/117681/ltcube_683337601_683596801_4FGL_J1221.3+3010_daily_bin1713.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/117681/Model_4FGL_J1221.3+3010_daily_bin1713.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1221.3+3010'

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  1.833e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
318        Index:  1.707e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  4.501e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/117681/ft1_filtered_4FGL_J1221.3+3010_daily_bin1713.fits
Spacecraft file(s): /scratch/kocevski/117681/ft2_4FGL_J1221.3+3010_daily_bin1713.fits
Exposure map: /scratch/kocevski/117681/expmap_683337601_683596801_4FGL_J1221.3+3010_daily_bin1713.fits
Exposure cube: /scratch/kocevski/117681/ltcube_683337601_683596801_4FGL_J1221.3+3010_daily_bin1713.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/117681/Model_4FGL_J1221.3+3010_daily_bin1713.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) = 7182.75780029

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.724       1.0000          .0000       .10000E+07
     2 'Prefactor '    2.3733       1.0000          .0000       .10000E+07
     3 'Prefactor '    .16521E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .14886E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    2.3104       1.0000          .0000       .10000E+07
     6 'Prefactor '    .14594       1.0000          .0000       .10000E+07
     7 'norm      '    28.511       1.0000          .0000       .10000E+07
     8 'Prefactor '    6.2014       1.0000          .0000       .10000E+07
     9 'norm      '    9.3896       1.0000          .0000       .10000E+07
    10 'Prefactor '    .76714E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    2.3737       1.0000          .0000       .10000E+07
    12 'Prefactor '    3.0096       1.0000          .0000       .10000E+07
    13 'Prefactor '    .57630E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .11990E-07   1.0000          .0000       .10000E+07
    15 'norm      '    4.5091       1.0000          .0000       .10000E+07
    16 'Prefactor '    7.6258       1.0000          .0000       .10000E+07
    17 'Prefactor '    23.780       1.0000          .0000       .10000E+07
    18 'Prefactor '    .35656E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    4.1209       1.0000          .0000       .10000E+07
    20 'norm      '    2.2463       1.0000          .0000       .10000E+07
    21 'Prefactor '    6.8220       1.0000          .0000       .10000E+07
    22 'norm      '    .87380       1.0000          .0000       .10000E+07
    23 'Prefactor '    .81500E-02   1.0000          .0000       .10000E+07
    24 'norm      '    .44574E-03   1.0000          .0000       .10000E+07
    25 'norm      '    9.4384       1.0000          .0000       .10000E+07
    26 'norm      '    9.2373       1.0000          .0000       .10000E+07
    27 'Normalizat'    .96858       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1439       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7182.724     FROM MIGRAD    STATUS=CONVERGED    140 CALLS     2642 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.709        1.0389       -.46164E-07    .88770E-02
   2  Prefactor     2.3656        1.0717        .61355E-08   -.87182E-03
   3  Prefactor     .22204E-09    3.1701        .25765E-06** at limit **
   4  Prefactor     .55511E-10    14.721        .68582E-06** at limit **
   5  Prefactor     2.3096        1.6396       -.84068E-07   -.25497E-01
   6  Prefactor     .30420E-06    15.045       -.59004E-05** at limit **
   7  norm          28.510        3.1193        .98410E-08   -.37209E-02
   8  Prefactor     6.2165        4.6666        .51205E-06    .31989E-02
   9  norm          9.4023        3.8289        .40767E-07    .76897E-02
  10  Prefactor     .20317E-07    3.4049       -.15152E-05** at limit **
  11  Prefactor     2.3714        2.2395        .29053E-07    .80411E-02
  12  Prefactor     3.0078        2.5067       -.39158E-07   -.89792E-02
  13  Prefactor     .74385E-08    26.504        .44204E-06** at limit **
  14  norm           .0000        .10602        .14740E-08** at limit **
  15  norm          4.4879        4.1260        .69590E-07   -.12674E-01
  16  Prefactor     7.6322        1.1505        .12442E-06   -.52657E-02
  17  Prefactor     23.716        1.2370        .10526E-06   -.21042E-01
  18  Prefactor     .18874E-08    2.9214       -.40716E-06** at limit **
  19  Prefactor     4.1198        4.7119        .72522E-06    .52686E-03
  20  norm          2.2559        3.5552        .63214E-08    .37922E-02
  21  Prefactor     6.8558        1.1788        .74684E-07   -.57442E-02
  22  norm          .84981        .49109       -.96255E-07   -.20403E-02
  23  Prefactor     .38858E-09    7.0682       -.23226E-06** at limit **
  24  norm          .17486E-07    3.5947        .20412E-05** at limit **
  25  norm          9.4243        3.9755        .67447E-07    .51570E-02
  26  norm          9.2386        2.4017        .19356E-06   -.52784E-02
  27  Normalizat    .96872        .21721       -.12542E-05   -.30109E-03
  28  Prefactor     1.1440        .25205       -.58244E-06   -.19986E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.7095
  Prefactor  = 2.36562
  Prefactor  = 2.22045e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 2.30958
  Prefactor  = 3.04201e-07
  norm       = 28.5098
  Prefactor  = 6.21649
  norm       = 9.4023
  Prefactor  = 2.03171e-08
  Prefactor  = 2.37144
  Prefactor  = 3.00776
  Prefactor  = 7.43849e-09
  norm       = 0
  norm       = 4.48793
  Prefactor  = 7.63218
  Prefactor  = 23.7158
  Prefactor  = 1.88738e-09
  Prefactor  = 4.11977
  norm       = 2.25587
  Prefactor  = 6.85581
  norm       = 0.849812
  Prefactor  = 3.88578e-10
  norm       = 1.7486e-08
  norm       = 9.4243
  norm       = 9.2386
  Normalizat = 0.968719
  Prefactor  = 1.14397
 **********
 **   18 **HESSE 
 **********

 FCN=   7182.724     FROM HESSE     STATUS=OK           587 CALLS     3229 TOTAL
                     EDM=   .43E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.709        32.605        .23119E-03   -1.5621    
   2  Prefactor     2.3656        39.606        .66478E-03   -1.5677    
   3  Prefactor     .22204E-09    3.2020        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .55511E-10    14.719        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.3096        1.6394        .67472E-03   -1.5678    
   6  Prefactor     .30420E-06    32.010        .12830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          28.510        3.1286        .18731E-03   -1.5601    
   8  Prefactor     6.2165        4.6778        .40289E-03   -1.5658    
   9  norm          9.4023        3.8387        .32681E-03   -1.5647    
  10  Prefactor     .20317E-07    4.3820        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.3714        2.2448        .66471E-03   -1.5677    
  12  Prefactor     3.0078        2.5720        .58480E-03   -1.5673    
  13  Prefactor     .74385E-08    26.212        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        .69406E-01    .11610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.4879        4.1448        .47389E-03   -1.5666    
  16  Prefactor     7.6322        11.660        .36291E-03   -1.5653    
  17  Prefactor     23.716        19.062        .20512E-03   -1.5611    
  18  Prefactor     .18874E-08    2.9299        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.1198        4.7826        .49633E-03   -1.5667    
  20  norm          2.2559        3.7165        .68537E-03   -1.5678    
  21  Prefactor     6.8558        28.915        .38390E-03   -1.5656    
  22  norm          .84981        3.9836        .47588E-03   -1.5690    
  23  Prefactor     .38858E-09    7.0823        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .17486E-07    4.6290        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          9.4243        7.1953        .32596E-03   -1.5647    
  26  norm          9.2386        10.791        .32951E-03   -1.5647    
  27  Normalizat    .96872        .18601        .66709E-01   -.94086    
  28  Prefactor     1.1440        .21314        .71911E-01   -.88073    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29423e-07
Minuit parameter uncertainties:
  1  32.6049
  2  19.3591
  3  5.53194e-05
  4  4.39629e-05
  5  1.63941
  6  0.00624091
  7  3.12863
  8  4.67777
  9  3.83874
  10  0.000596732
  11  2.24482
  12  2.57205
  13  0.000883296
  14  1.20816e-06
  15  4.14476
  16  11.6601
  17  19.0622
  18  0.000147864
  19  4.7826
  20  3.71648
  21  28.1595
  22  3.67986
  23  0.000104364
  24  0.000568705
  25  7.19528
  26  10.7907
  27  0.186133
  28  0.213301
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  2.371e+00  2.245e+00  0.000e+00  1.000e+06 ( 1.000e-13)
318        Index:  1.707e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  4.501e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  1.144e+00  2.133e-01  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  9.687e-01  1.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.58
Ra Dec: 185.345 30.168
Photon Index (Fixed Index): 1.71 +/- 0.00
Photon Flux (Fixed Index): 2.21e-08 +/- 2.09e-08
Energy Flux (Fixed Index): 3.53e-05 +/- 3.34e-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) = 7182.70833902
delta logL = 0.0153779512193

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7182.70601153
delta logL = 0.0177054383876

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5261       1.0000          .0000       .10000E+07
     2 'Index     '    1.6042       1.0000          .0000       10.000    
     3 'Normalizat'    .97039       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1441       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+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=   7182.706     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      264 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5269        2.4641        .12183E-04    .14614E-02
   2  Index         1.6049        .55510        .95365E-02    .30404E-04
   3  Normalizat    .97046        .21429        .29489E-03   -.55285E-04
   4  Prefactor     1.1440        .24986        .31823E-03   -.60052E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.5269
  Index      = 1.60494
  Normalizat = 0.970464
  Prefactor  = 1.14397
 **********
 **   18 **HESSE 
 **********

 FCN=   7182.706     FROM HESSE     STATUS=OK            25 CALLS      289 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5269        2.4307        .48731E-06   -1.5676    
   2  Index         1.6049        .54784        .38146E-03   -.74642    
   3  Normalizat    .97046        .21448        .11795E-04   -.94027    
   4  Prefactor     1.1440        .25012        .12729E-04   -.88073    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54699e-11
Minuit parameter uncertainties:
  1  2.43074
  2  0.549892
  3  0.214673
  4  0.250379
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/117681': 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) = 7182.70601041
delta logL = 0.0177065604412

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  2.527e+00  2.431e+00  0.000e+00  1.000e+06 ( 1.000e-13)
318        Index:  1.605e+00  5.499e-01  0.000e+00  1.000e+01 (-1.000e+00)
319        Scale:  4.501e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  1.144e+00  2.504e-01  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  9.705e-01  2.147e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.64
Ra Dec: 185.345 30.168
Photon Index (Free Index): 1.60 +/- 0.55
Photon Flux (Free Index): 1.85e-08 +/- 2.54e-08
Energy Flux (Free Index): 4.12e-05 +/- 5.11e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/117681/cmap_HighResolution_683337601_683596801_4FGL_J1221.3+3010_daily_bin1713.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.21e-08', energy_flux2='4.12e-05', photon_flux_error='2.09e-08', dlogl='1.77e-02', energy_flux='3.53e-05', photon_flux2='1.85e-08', job_status='DONE', time_completed='2022-09-16 16:55:17.956395', photon_index_error2='0.55', photon_index2='1.60', ts='5.58', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='5.11e-05', EG='0.97', time_epoch_completed='1663372517.96', return_code='0', job_id='117681', GAL2='1.14', EG2='0.97', return_code2='0', energy_flux_error='3.34e-05', photon_flux_error2='2.54e-08', ts2='5.64', photon_index='1.71' WHERE bin_id='1713' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 16:55:17 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 117681: <4FGL_J1221.3+3010_daily_bin1713> in cluster <slac> Done

Job <4FGL_J1221.3+3010_daily_bin1713> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Sep 16 16:40:37 2022
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 16:41:54 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:54 2022
Terminated at Fri Sep 16 16:55:18 2022
Results reported at Fri Sep 16 16:55:18 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.3+3010_daily_bin1713 185.345 30.1677 683337601 683596801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1221.3+3010 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   738.30 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             321.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            881 sec.

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

