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


Performing analysis on: 4FGL_J1221.3+3010_daily_bin1755
RA = 185.345, Dec = 30.1677
tmin = 694224001, tmax = 694483201
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='822187', job_status='RUN', time_executed='2023-01-04 00:56:21.407957', time_epoch_executed='1672822581.41' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='1755'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/822187

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/822187/ft1_4FGL_J1221.3+3010_daily_bin1755.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/822187/ft2_4FGL_J1221.3+3010_daily_bin1755.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/822187/ft1_4FGL_J1221.3+3010_daily_bin1755.fits outfile=/scratch/kocevski/822187/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin1755.fits ra=185.345 dec=30.1677 rad=12.0 tmin=694224001.0 tmax=694483201.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.52
user 2.85
sys 0.30

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

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

Number of photons that the gtmktime cut: 767

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/822187/ft1_filtered_4FGL_J1221.3+3010_daily_bin1755.fits" evtable="EVENTS" scfile=/scratch/kocevski/822187/ft2_4FGL_J1221.3+3010_daily_bin1755.fits sctable="SC_DATA" outfile=/scratch/kocevski/822187/ltcube_694224001_694483201_4FGL_J1221.3+3010_daily_bin1755.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/822187/ft2_4FGL_J1221.3+3010_daily_bin1755.fits
.....................!
real 18.58
user 18.06
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/822187/ft1_filtered_4FGL_J1221.3+3010_daily_bin1755.fits evtable="EVENTS" scfile=/scratch/kocevski/822187/ft2_4FGL_J1221.3+3010_daily_bin1755.fits sctable="SC_DATA" expcube=/scratch/kocevski/822187/ltcube_694224001_694483201_4FGL_J1221.3+3010_daily_bin1755.fits outfile=/scratch/kocevski/822187/expmap_694224001_694483201_4FGL_J1221.3+3010_daily_bin1755.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/822187/ltcube_694224001_694483201_4FGL_J1221.3+3010_daily_bin1755.fits
.....................!
real 193.04
user 187.95
sys 4.58

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/822187/ft1_filtered_4FGL_J1221.3+3010_daily_bin1755.fits scfile=/scratch/kocevski/822187/ft2_4FGL_J1221.3+3010_daily_bin1755.fits outfile=/scratch/kocevski/822187/cmap_694224001_694483201_4FGL_J1221.3+3010_daily_bin1755.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.61
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/822187/ft1_filtered_4FGL_J1221.3+3010_daily_bin1755.fits scfile=/scratch/kocevski/822187/ft2_4FGL_J1221.3+3010_daily_bin1755.fits outfile=/scratch/kocevski/822187/cmap_HighResolution_694224001_694483201_4FGL_J1221.3+3010_daily_bin1755.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.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .48250       1.0000          .0000       .10000E+07
     2 'Prefactor '    .75186E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .15969E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .24590E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .10245E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .48636E-03   1.0000          .0000       .10000E+07
     7 'norm      '    49.421       1.0000          .0000       .10000E+07
     8 'Prefactor '    8.1219       1.0000          .0000       .10000E+07
     9 'norm      '    5.0283       1.0000          .0000       .10000E+07
    10 'Prefactor '    .58018E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    4.6870       1.0000          .0000       .10000E+07
    12 'Prefactor '    1.9210       1.0000          .0000       .10000E+07
    13 'Prefactor '    .33223E-06   1.0000          .0000       .10000E+07
    14 'norm      '    .95188E-01   1.0000          .0000       .10000E+07
    15 'norm      '    20.265       1.0000          .0000       .10000E+07
    16 'Prefactor '    .25330E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    22.878       1.0000          .0000       .10000E+07
    18 'Prefactor '    .27915E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .11741E-06   1.0000          .0000       .10000E+07
    20 'norm      '    .38490E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    13.589       1.0000          .0000       .10000E+07
    22 'norm      '    1.3454       1.0000          .0000       .10000E+07
    23 'Prefactor '    11.130       1.0000          .0000       .10000E+07
    24 'norm      '    5.0523       1.0000          .0000       .10000E+07
    25 'norm      '    44.033       1.0000          .0000       .10000E+07
    26 'norm      '    .13157       1.0000          .0000       .10000E+07
    27 'Normalizat'    .89162       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .89653       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=   7854.063     FROM MIGRAD    STATUS=CONVERGED    174 CALLS     2024 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44550        .55265       -.66117E-07   -.63738E-03
   2  Prefactor     .33307E-09    5.7172       -.60436E-06** at limit **
   3  Prefactor      .0000        3.9855        .37227E-06** at limit **
   4  Prefactor     .77716E-08    3.9582        .46658E-06** at limit **
   5  Prefactor      .0000        1.3951        .11857E-06** at limit **
   6  Prefactor     .55511E-10    86.200        .65271E-06** at limit **
   7  norm          49.479        4.0273        .20993E-07    .32084E-03
   8  Prefactor     8.0900        5.4962        .25175E-06    .20893E-02
   9  norm          5.0164        3.5590       -.67562E-07    .19858E-02
  10  Prefactor     .55511E-10    4.3464        .16264E-08** at limit **
  11  Prefactor     4.6882        2.7725       -.85142E-07    .68926E-03
  12  Prefactor     1.9196        1.9022        .70097E-07    .10767E-02
  13  Prefactor     .23315E-08    1.2853       -.12787E-06** at limit **
  14  norm          .95145E-01    .22592       -.35707E-07** at limit **
  15  norm          20.257        5.7923        .42554E-07    .18055E-01
  16  Prefactor     .10825E-07    2.8517        .55582E-06** at limit **
  17  Prefactor     22.771        19.660        .31190E-05   -.54387E-02
  18  Prefactor     .11657E-08    8.8105       -.25095E-06** at limit **
  19  Prefactor     .28311E-08    1.2897       -.57394E-06** at limit **
  20  norm           .0000        3.3338        .49950E-06** at limit **
  21  Prefactor     13.443        3.6659       -.71751E-06   -.10649E-01
  22  norm          1.3457        2.1247        .29628E-08    .18762E-02
  23  Prefactor     11.134        1.2116       -.10052E-06    .34129E-02
  24  norm          5.0314        4.2909        .19335E-06   -.36273E-03
  25  norm          44.098        5.2900       -.65317E-07    .40132E-01
  26  norm          .35505E-06    3.6577        .85678E-06** at limit **
  27  Normalizat    .89147        .21182        .15129E-04    .10666E-04
  28  Prefactor     .89695        .23885       -.31126E-04    .48547E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.445496
  Prefactor  = 3.33067e-10
  Prefactor  = 0
  Prefactor  = 7.77156e-09
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  norm       = 49.4791
  Prefactor  = 8.09004
  norm       = 5.01636
  Prefactor  = 5.55112e-11
  Prefactor  = 4.68819
  Prefactor  = 1.91956
  Prefactor  = 2.33147e-09
  norm       = 0.0951453
  norm       = 20.257
  Prefactor  = 1.08247e-08
  Prefactor  = 22.7709
  Prefactor  = 1.16573e-09
  Prefactor  = 2.83107e-09
  norm       = 0
  Prefactor  = 13.4429
  norm       = 1.34571
  Prefactor  = 11.1344
  norm       = 5.03145
  norm       = 44.0982
  norm       = 3.55049e-07
  Normalizat = 0.891468
  Prefactor  = 0.896951
 **********
 **   18 **HESSE 
 **********

 FCN=   7854.063     FROM HESSE     STATUS=OK           593 CALLS     2617 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44550        16.836        .12148E-01   -1.5695    
   2  Prefactor     .33307E-09    5.8428        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        3.9827        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .77716E-08    6.6956        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        1.3619        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55511E-10    86.099        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          49.479        4.0311        .14226E-03   -1.5567    
   8  Prefactor     8.0900        5.5308        .35156E-03   -1.5651    
   9  norm          5.0164        3.5604        .44820E-03   -1.5663    
  10  Prefactor     .55511E-10    4.3563        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.6882        2.7721        .46459E-03   -1.5665    
  12  Prefactor     1.9196        1.9081        .74940E-03   -1.5680    
  13  Prefactor     .23315E-08    1.7888        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .95145E-01    .19967        .13768E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          20.257        6.2286        .22221E-03   -1.5618    
  16  Prefactor     .10825E-07    6.5486        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     22.771        20.152        .20912E-03   -1.5613    
  18  Prefactor     .11657E-08    9.0484        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .28311E-08    1.7731        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm           .0000        3.3165        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.443        17.603        .27146E-03   -1.5635    
  22  norm          1.3457        2.1632        .94376E-03   -1.5685    
  23  Prefactor     11.134        10.597        .30005E-03   -1.5641    
  24  norm          5.0314        4.3771        .44711E-03   -1.5663    
  25  norm          44.098        8.1240        .15071E-03   -1.5575    
  26  norm          .35505E-06    7.4147        .11221E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .89147        .17904        .67980E-01   -.96761    
  28  Prefactor     .89695        .19895        .77601E-01   -.96248    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80838e-08
Minuit parameter uncertainties:
  1  5.47736
  2  8.73874e-05
  3  6.39941e-06
  4  0.000455662
  5  6.20192e-06
  6  0.000132527
  7  4.03107
  8  5.53082
  9  3.56042
  10  2.31163e-05
  11  2.77206
  12  1.90811
  13  0.000129559
  14  0.199671
  15  6.22864
  16  0.000532864
  17  20.1519
  18  0.000203169
  19  0.000141184
  20  5.63815e-07
  21  17.6032
  22  2.16324
  23  10.5975
  24  4.3771
  25  8.12397
  26  0.00324518
  27  0.179156
  28  0.199114
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  4.688e+00  2.772e+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:  8.970e-01  1.991e-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:  8.915e-01  1.792e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.33
Ra Dec: 185.345 30.168
Photon Index (Fixed Index): 1.71 +/- 0.00
Photon Flux (Fixed Index): 4.38e-08 +/- 2.59e-08
Energy Flux (Fixed Index): 6.98e-05 +/- 4.13e-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) = 7853.64048012
delta logL = 0.422330320908

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7853.63771755
delta logL = 0.425092888797

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9976       1.0000          .0000       .10000E+07
     2 'Index     '    2.0996       1.0000          .0000       10.000    
     3 'Normalizat'    .86111       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91234       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.

 FCN=   7853.638     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      252 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9976        24.269        .58604E-03   -.24717E-02
   2  Index         2.0996        2.1964        .83123E-01    .14874E-03
   3  Normalizat    .86110        .94778E-01    .68903E-01   -.30461E-04
   4  Prefactor     .91235        .81658E-01    .76886E-01    .17909E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.9976
  Index      = 2.09961
  Normalizat = 0.861103
  Prefactor  = 0.912353
 **********
 **   18 **HESSE 
 **********

 FCN=   7853.638     FROM HESSE     STATUS=OK            33 CALLS      285 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9976        2.8761        .72147E-05   -1.5673    
   2  Index         2.0996        .47288        .41402E-02   -.61882    
   3  Normalizat    .86110        .21167        .30486E-03   -.97841    
   4  Prefactor     .91235        .23909        .34026E-03   -.95711    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81412e-11
Minuit parameter uncertainties:
  1  2.87611
  2  0.47395
  3  0.211875
  4  0.239366
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/822187': 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) = 7853.63771755
delta logL = 0.425092890577

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  2.998e+00  2.876e+00  0.000e+00  1.000e+06 ( 1.000e-13)
318        Index:  2.100e+00  4.739e-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:  9.124e-01  2.394e-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:  8.611e-01  2.119e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.21
Ra Dec: 185.345 30.168
Photon Index (Free Index): 2.10 +/- 0.47
Photon Flux (Free Index): 8.07e-08 +/- 5.93e-08
Energy Flux (Free Index): 4.43e-05 +/- 3.01e-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/822187/cmap_HighResolution_694224001_694483201_4FGL_J1221.3+3010_daily_bin1755.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.38e-08', energy_flux2='4.43e-05', photon_flux_error='2.59e-08', dlogl='4.25e-01', energy_flux='6.98e-05', photon_flux2='8.07e-08', job_status='DONE', time_completed='2023-01-04 01:08:42.009785', photon_index_error2='0.47', photon_index2='2.10', ts='10.33', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='3.01e-05', EG='0.89', time_epoch_completed='1672823322.01', return_code='0', job_id='822187', GAL2='0.91', EG2='0.86', return_code2='0', energy_flux_error='4.13e-05', photon_flux_error2='5.93e-08', ts2='11.21', photon_index='1.71' WHERE bin_id='1755' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan  4 01:08:42 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 822187: <4FGL_J1221.3+3010_daily_bin1755> in cluster <slac> Done

Job <4FGL_J1221.3+3010_daily_bin1755> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jan  4 00:55:20 2023
Job was executed on host(s) <bullet0156>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan  4 00:56:01 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan  4 00:56:01 2023
Terminated at Wed Jan  4 01:08:42 2023
Results reported at Wed Jan  4 01:08:42 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.3+3010_daily_bin1755 185.345 30.1677 694224001 694483201 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 :                                   741.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             350.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            802 sec.

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

