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


Performing analysis on: 4FGL_J1221.3+3010_daily_bin1750
RA = 185.345, Dec = 30.1677
tmin = 692928001, tmax = 693187201
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='10731', job_status='RUN', time_executed='2022-12-20 00:48:08.398150', time_epoch_executed='1671526088.4' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='1750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/10731

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/10731/ft1_4FGL_J1221.3+3010_daily_bin1750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/10731/ft2_4FGL_J1221.3+3010_daily_bin1750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/10731/ft1_4FGL_J1221.3+3010_daily_bin1750.fits outfile=/scratch/kocevski/10731/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin1750.fits ra=185.345 dec=30.1677 rad=12.0 tmin=692928001.0 tmax=693187201.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.44
user 3.23
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/10731/ft2_4FGL_J1221.3+3010_daily_bin1750.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/10731/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin1750.fits evtable="EVENTS" outfile="/scratch/kocevski/10731/ft1_filtered_4FGL_J1221.3+3010_daily_bin1750.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.49
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 719

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/10731/ft1_filtered_4FGL_J1221.3+3010_daily_bin1750.fits" evtable="EVENTS" scfile=/scratch/kocevski/10731/ft2_4FGL_J1221.3+3010_daily_bin1750.fits sctable="SC_DATA" outfile=/scratch/kocevski/10731/ltcube_692928001_693187201_4FGL_J1221.3+3010_daily_bin1750.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/10731/ft2_4FGL_J1221.3+3010_daily_bin1750.fits
.....................!
real 11.44
user 11.08
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/10731/ft1_filtered_4FGL_J1221.3+3010_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/10731/ft2_4FGL_J1221.3+3010_daily_bin1750.fits sctable="SC_DATA" expcube=/scratch/kocevski/10731/ltcube_692928001_693187201_4FGL_J1221.3+3010_daily_bin1750.fits outfile=/scratch/kocevski/10731/expmap_692928001_693187201_4FGL_J1221.3+3010_daily_bin1750.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/10731/ltcube_692928001_693187201_4FGL_J1221.3+3010_daily_bin1750.fits
.....................!
real 190.06
user 185.73
sys 4.02

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/10731/ft1_filtered_4FGL_J1221.3+3010_daily_bin1750.fits scfile=/scratch/kocevski/10731/ft2_4FGL_J1221.3+3010_daily_bin1750.fits outfile=/scratch/kocevski/10731/cmap_692928001_693187201_4FGL_J1221.3+3010_daily_bin1750.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.54
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/10731/ft1_filtered_4FGL_J1221.3+3010_daily_bin1750.fits scfile=/scratch/kocevski/10731/ft2_4FGL_J1221.3+3010_daily_bin1750.fits outfile=/scratch/kocevski/10731/cmap_HighResolution_692928001_693187201_4FGL_J1221.3+3010_daily_bin1750.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.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/10731/ft1_filtered_4FGL_J1221.3+3010_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/10731/ft2_4FGL_J1221.3+3010_daily_bin1750.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/10731/Model_4FGL_J1221.3+3010_daily_bin1750.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/10731/ft1_filtered_4FGL_J1221.3+3010_daily_bin1750.fits.....................!
real 63.07
user 61.71
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/10731/ft1_filtered_4FGL_J1221.3+3010_daily_bin1750.fits', '/scratch/kocevski/10731/ft2_4FGL_J1221.3+3010_daily_bin1750.fits', expMap='/scratch/kocevski/10731/expmap_692928001_693187201_4FGL_J1221.3+3010_daily_bin1750.fits', expCube='/scratch/kocevski/10731/ltcube_692928001_693187201_4FGL_J1221.3+3010_daily_bin1750.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/10731/Model_4FGL_J1221.3+3010_daily_bin1750.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/10731/ft1_filtered_4FGL_J1221.3+3010_daily_bin1750.fits
Spacecraft file(s): /scratch/kocevski/10731/ft2_4FGL_J1221.3+3010_daily_bin1750.fits
Exposure map: /scratch/kocevski/10731/expmap_692928001_693187201_4FGL_J1221.3+3010_daily_bin1750.fits
Exposure cube: /scratch/kocevski/10731/ltcube_692928001_693187201_4FGL_J1221.3+3010_daily_bin1750.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/10731/Model_4FGL_J1221.3+3010_daily_bin1750.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) = 7422.05328832

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .42744E-08   1.0000          .0000       .10000E+07
     2 'Prefactor '    .13465E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    4.4966       1.0000          .0000       .10000E+07
     4 'Prefactor '    6.9269       1.0000          .0000       .10000E+07
     5 'Prefactor '    .39951       1.0000          .0000       .10000E+07
     6 'Prefactor '    .35032E-03   1.0000          .0000       .10000E+07
     7 'norm      '    31.260       1.0000          .0000       .10000E+07
     8 'Prefactor '    .92919E-04   1.0000          .0000       .10000E+07
     9 'norm      '    7.6101       1.0000          .0000       .10000E+07
    10 'Prefactor '    .95593E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .69831E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    3.6836       1.0000          .0000       .10000E+07
    13 'Prefactor '    .15432E-03   1.0000          .0000       .10000E+07
    14 'norm      '     .0000       1.0000          .0000       .10000E+07
    15 'norm      '    4.7136       1.0000          .0000       .10000E+07
    16 'Prefactor '    6.3380       1.0000          .0000       .10000E+07
    17 'Prefactor '    .81219E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .49949E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .30834E-04   1.0000          .0000       .10000E+07
    20 'norm      '    1.1094       1.0000          .0000       .10000E+07
    21 'Prefactor '    .35042E-01   1.0000          .0000       .10000E+07
    22 'norm      '    6.3309       1.0000          .0000       .10000E+07
    23 'Prefactor '    .10397E-03   1.0000          .0000       .10000E+07
    24 'norm      '    .12553E-03   1.0000          .0000       .10000E+07
    25 'norm      '    25.622       1.0000          .0000       .10000E+07
    26 'norm      '    8.3061       1.0000          .0000       .10000E+07
    27 'Normalizat'    1.3600       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .45654       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=   7421.974     FROM MIGRAD    STATUS=CONVERGED    158 CALLS     1990 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11635E-06    5.4017        .25398E-06** at limit **
   2  Prefactor     .72886E-07    3.0269       -.17760E-06** at limit **
   3  Prefactor     4.4935        5.0036        .27145E-07    .20052E-02
   4  Prefactor     6.9847        1.0243        .65941E-08   -.21745E-02
   5  Prefactor     .39926        .93408       -.16149E-06   -.22080E-03
   6  Prefactor     .18874E-08    15.329        .45360E-06** at limit **
   7  norm          31.259        2.9772       -.12050E-07    .20689E-02
   8  Prefactor     .10325E-07    1.3681        .15441E-06** at limit **
   9  norm          7.6071        3.0907       -.95853E-07   -.50480E-03
  10  Prefactor      .0000        3.0374       -.31791E-06** at limit **
  11  Prefactor     .17764E-07    1.1698        .81844E-07** at limit **
  12  Prefactor     3.6884        2.9143        .41333E-07    .76985E-03
  13  Prefactor     .10547E-08    2.0106        .55104E-07** at limit **
  14  norm           .0000        .16667        .62823E-07** at limit **
  15  norm          4.6997        3.4595       -.85309E-07   -.27435E-04
  16  Prefactor     6.3422        1.1091       -.12581E-07    .35438E-02
  17  Prefactor     .88818E-09    3.8899        .79201E-08** at limit **
  18  Prefactor     .69111E-07    3.3576       -.35016E-06** at limit **
  19  Prefactor     .55511E-10    1.3874        .15222E-06** at limit **
  20  norm          1.1182        3.6133       -.12547E-06   -.79566E-03
  21  Prefactor      .0000        .75739        .46824E-07** at limit **
  22  norm          6.3280        3.8533        .28110E-07    .29913E-03
  23  Prefactor     .90095E-07    4.8855        .11076E-06** at limit **
  24  norm          .15543E-08    2.5487        .21716E-06** at limit **
  25  norm          25.624        4.6240        .76356E-07    .34233E-01
  26  norm          8.3223        2.8107        .80235E-07    .10582E-01
  27  Normalizat    1.3599        .20415       -.17577E-05    .32545E-04
  28  Prefactor     .45659        .21631        .11564E-04    .13148E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.16351e-07
  Prefactor  = 7.28861e-08
  Prefactor  = 4.49353
  Prefactor  = 6.98472
  Prefactor  = 0.399261
  Prefactor  = 1.88738e-09
  norm       = 31.2593
  Prefactor  = 1.03251e-08
  norm       = 7.60711
  Prefactor  = 0
  Prefactor  = 1.77636e-08
  Prefactor  = 3.68836
  Prefactor  = 1.05471e-09
  norm       = 0
  norm       = 4.69968
  Prefactor  = 6.3422
  Prefactor  = 8.88178e-10
  Prefactor  = 6.91114e-08
  Prefactor  = 5.55112e-11
  norm       = 1.1182
  Prefactor  = 0
  norm       = 6.32801
  Prefactor  = 9.00946e-08
  norm       = 1.55431e-09
  norm       = 25.6244
  norm       = 8.32233
  Normalizat = 1.35989
  Prefactor  = 0.45659
 **********
 **   18 **HESSE 
 **********

 FCN=   7421.974     FROM HESSE     STATUS=OK           585 CALLS     2575 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11635E-06    10.333        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .72886E-07    5.8029        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.4935        5.0150        .47456E-03   -1.5666    
   4  Prefactor     6.9847        16.267        .38095E-03   -1.5655    
   5  Prefactor     .39926        1.0701        .29400E-02   -1.5695    
   6  Prefactor     .18874E-08    15.368        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          31.259        2.9940        .17888E-03   -1.5596    
   8  Prefactor     .10325E-07    1.8923        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.6071        3.1001        .36329E-03   -1.5653    
  10  Prefactor      .0000        3.2642        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .17764E-07    2.0937        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.6884        3.0811        .52599E-03   -1.5670    
  13  Prefactor     .10547E-08    2.0819        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        .85447E-01    .98008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.6997        3.4617        .46325E-03   -1.5665    
  16  Prefactor     6.3422        11.579        .39847E-03   -1.5658    
  17  Prefactor     .88818E-09    4.0813        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .69111E-07    6.2213        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .55511E-10    1.3930        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.1182        3.6976        .11216E-02   -1.5687    
  21  Prefactor      .0000        39.725        .16195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.3280        3.8565        .39869E-03   -1.5658    
  23  Prefactor     .90095E-07    9.9780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .15543E-08    2.7934        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          25.624        7.7690        .19760E-03   -1.5607    
  26  norm          8.3223        11.056        .34761E-03   -1.5650    
  27  Normalizat    1.3599        .18036        .52921E-01   -.81796    
  28  Prefactor     .45659        .19286        .95208E-01   -1.1401    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.39408e-08
Minuit parameter uncertainties:
  1  0.00219271
  2  0.00130055
  3  5.01502
  4  16.2667
  5  1.07008
  6  0.00034289
  7  2.99397
  8  0.000279863
  9  3.10013
  10  9.37329e-07
  11  0.000385822
  12  3.08112
  13  9.28261e-05
  14  3.32778e-07
  15  3.4617
  16  11.5794
  17  0.000121559
  18  0.00131121
  19  2.13419e-05
  20  3.69763
  21  2.26983e-05
  22  3.8565
  23  0.00189607
  24  0.00013251
  25  7.76904
  26  11.0557
  27  0.180441
  28  0.193137
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  1.776e-08  3.858e-04  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:  4.566e-01  1.931e-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:  1.360e+00  1.804e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 185.345 30.168
Photon Flux Upper Limit: 4.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/10731/likelihoodResults_692928001_693187201_4FGL_J1221.3+3010_daily_bin1750.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): 102
logL (Free Index) = 7421.35116343
delta logL = 0.623294754854

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7421.12704341
delta logL = 0.847414770991

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .57349E-06   1.0000          .0000       .10000E+07
     2 'Index     '    6.5065       1.0000          .0000       10.000    
     3 'Normalizat'    1.2950       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .50541       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7421.974     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      514 TOTAL
                     EDM=   .43E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .15672        .42118E-03** at limit **
   2  Index         .44041E-01    .13921       -.26719E-07     .0000    
   3  Normalizat    1.3599        1.1033       -.89159E-06   -.67522E-05
   4  Prefactor     .45659        .80804       -.31096E-05    .42709E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.0440414
  Normalizat = 1.35989
  Prefactor  = 0.45659
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7421.974     FROM HESSE     STATUS=FAILED         9 CALLS      523 TOTAL
                     EDM=   .43E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .15672        .42118E-03   -2294.9    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .35146        .19666       -.26719E-07   -.97190E+07
   3  Normalizat    1.3599        1.1033       -.89159E-06    1310.9    
   4  Prefactor     .45659        .80804       -.31096E-05    1877.5    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.28114e-14
Minuit parameter uncertainties:
  1  3.46443e-08
  2  0.140257
  3  1.12344
  4  0.829719
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/10731': 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): 101
logL (Free Index) = 7421.97445818
delta logL = 4.2045940063e-09

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  0.000e+00  3.464e-08  0.000e+00  1.000e+06 ( 1.000e-13)
318        Index:  4.404e-02  1.403e-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:  4.566e-01  8.297e-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:  1.360e+00  1.123e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 185.345 30.168

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/10731/cmap_HighResolution_692928001_693187201_4FGL_J1221.3+3010_daily_bin1750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.47e-03', job_status='DONE', photon_flux_upper_limit='4.76e-08', time_completed='2022-12-20 01:01:13.728904', job_id='10731', GAL2='0.46', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1671526873.73', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.46', dlogl='4.20e-09', ts2='0.00', photon_index_error='0.00', photon_index='1.71' WHERE bin_id='1750' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 20 01:01:13 PST 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 10731: <4FGL_J1221.3+3010_daily_bin1750> in cluster <slac> Done

Job <4FGL_J1221.3+3010_daily_bin1750> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Dec 20 00:45:14 2022
Job was executed on host(s) <bullet0119>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 20 00:45:16 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 20 00:45:16 2022
Terminated at Tue Dec 20 01:01:14 2022
Results reported at Tue Dec 20 01:01:14 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.3+3010_daily_bin1750 185.345 30.1677 692928001 693187201 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 :                                   787.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             281.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   958 sec.
    Turnaround time :                            960 sec.

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

