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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin1772
RA = 185.378, Dec = 28.2382
tmin = 698630401, tmax = 698889601
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='632006', job_status='RUN', time_executed='2023-02-24 01:36:20.761328', time_epoch_executed='1677231380.76' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='1772'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/632006

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/632006/ft1_4FGL_J1221.5+2814_daily_bin1772.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/632006/ft2_4FGL_J1221.5+2814_daily_bin1772.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/632006/ft1_4FGL_J1221.5+2814_daily_bin1772.fits outfile=/scratch/kocevski/632006/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1772.fits ra=185.378 dec=28.2382 rad=12.0 tmin=698630401.0 tmax=698889601.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 2.98
user 2.78
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/632006/ft2_4FGL_J1221.5+2814_daily_bin1772.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/632006/ft2_4FGL_J1221.5+2814_daily_bin1772.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/632006/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1772.fits evtable="EVENTS" outfile="/scratch/kocevski/632006/ft1_filtered_4FGL_J1221.5+2814_daily_bin1772.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.31
sys 0.16

Number of photons that the gtmktime cut: 167

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/632006/ft1_filtered_4FGL_J1221.5+2814_daily_bin1772.fits" evtable="EVENTS" scfile=/scratch/kocevski/632006/ft2_4FGL_J1221.5+2814_daily_bin1772.fits sctable="SC_DATA" outfile=/scratch/kocevski/632006/ltcube_698630401_698889601_4FGL_J1221.5+2814_daily_bin1772.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/632006/ft2_4FGL_J1221.5+2814_daily_bin1772.fits
.....................!
real 12.59
user 12.24
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/632006/ft1_filtered_4FGL_J1221.5+2814_daily_bin1772.fits evtable="EVENTS" scfile=/scratch/kocevski/632006/ft2_4FGL_J1221.5+2814_daily_bin1772.fits sctable="SC_DATA" expcube=/scratch/kocevski/632006/ltcube_698630401_698889601_4FGL_J1221.5+2814_daily_bin1772.fits outfile=/scratch/kocevski/632006/expmap_698630401_698889601_4FGL_J1221.5+2814_daily_bin1772.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/632006/ltcube_698630401_698889601_4FGL_J1221.5+2814_daily_bin1772.fits
.....................!
real 190.25
user 184.66
sys 5.22

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 197 point sources and 0 extended sources

Setting source of interest to:
4FGL J1221.5+2814 @ 185.378 28.2382

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/632006/ft1_filtered_4FGL_J1221.5+2814_daily_bin1772.fits scfile=/scratch/kocevski/632006/ft2_4FGL_J1221.5+2814_daily_bin1772.fits outfile=/scratch/kocevski/632006/cmap_698630401_698889601_4FGL_J1221.5+2814_daily_bin1772.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.378 yref=28.2382 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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/632006/ft1_filtered_4FGL_J1221.5+2814_daily_bin1772.fits scfile=/scratch/kocevski/632006/ft2_4FGL_J1221.5+2814_daily_bin1772.fits outfile=/scratch/kocevski/632006/cmap_HighResolution_698630401_698889601_4FGL_J1221.5+2814_daily_bin1772.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.378 yref=28.2382 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/632006/ft1_filtered_4FGL_J1221.5+2814_daily_bin1772.fits evtable="EVENTS" scfile=/scratch/kocevski/632006/ft2_4FGL_J1221.5+2814_daily_bin1772.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/632006/Model_4FGL_J1221.5+2814_daily_bin1772.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/632006/ft1_filtered_4FGL_J1221.5+2814_daily_bin1772.fits.....................!
real 25.62
user 24.33
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/632006/ft1_filtered_4FGL_J1221.5+2814_daily_bin1772.fits', '/scratch/kocevski/632006/ft2_4FGL_J1221.5+2814_daily_bin1772.fits', expMap='/scratch/kocevski/632006/expmap_698630401_698889601_4FGL_J1221.5+2814_daily_bin1772.fits', expCube='/scratch/kocevski/632006/ltcube_698630401_698889601_4FGL_J1221.5+2814_daily_bin1772.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/632006/Model_4FGL_J1221.5+2814_daily_bin1772.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1221.5+2814'

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  3.206e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
325        Index:  2.153e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
326        Scale:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/632006/ft1_filtered_4FGL_J1221.5+2814_daily_bin1772.fits
Spacecraft file(s): /scratch/kocevski/632006/ft2_4FGL_J1221.5+2814_daily_bin1772.fits
Exposure map: /scratch/kocevski/632006/expmap_698630401_698889601_4FGL_J1221.5+2814_daily_bin1772.fits
Exposure cube: /scratch/kocevski/632006/ltcube_698630401_698889601_4FGL_J1221.5+2814_daily_bin1772.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/632006/Model_4FGL_J1221.5+2814_daily_bin1772.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) = 1927.42403104

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19127E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    71.974       1.0000          .0000       .10000E+07
     3 'Prefactor '    .33487E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .14277E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    .10662E-02   1.0000          .0000       .10000E+07
     6 'norm      '    37.663       1.0000          .0000       .10000E+07
     7 'Prefactor '    .17210E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .37099E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .45819E-05   1.0000          .0000       .10000E+07
    10 'norm      '    6.1853       1.0000          .0000       .10000E+07
    11 'Prefactor '    .58189E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .10795E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    14.276       1.0000          .0000       .10000E+07
    14 'Prefactor '    .32203E-01   1.0000          .0000       .10000E+07
    15 'norm      '    .26360       1.0000          .0000       .10000E+07
    16 'norm      '    45.942       1.0000          .0000       .10000E+07
    17 'Prefactor '    28.781       1.0000          .0000       .10000E+07
    18 'Prefactor '    12.683       1.0000          .0000       .10000E+07
    19 'Prefactor '    .21832E-01   1.0000          .0000       .10000E+07
    20 'Prefactor '    .20773E-05   1.0000          .0000       .10000E+07
    21 'norm      '    .14560E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    .39397E-02   1.0000          .0000       .10000E+07
    23 'norm      '    .25032E-04   1.0000          .0000       .10000E+07
    24 'norm      '    37.768       1.0000          .0000       .10000E+07
    25 'norm      '    .38000E-05   1.0000          .0000       .10000E+07
    26 'Normalizat'    .29345       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.6871       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1927.407     FROM MIGRAD    STATUS=CONVERGED    222 CALLS     2522 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .52975E-04    285.27        .18519E-05** at limit **
   2  Prefactor     71.397        19.942       -.19319E-06    .26998    
   3  Prefactor     .16459E-06    83.131       -.87549E-06** at limit **
   4  Prefactor     .36054E-06    98.745        .26243E-05** at limit **
   5  Prefactor     .42022E-07    7.5777       -.12639E-05** at limit **
   6  norm          37.691        10.721        .34422E-08   -.31542E-02
   7  Prefactor     .76328E-07    6.1344        .32787E-06** at limit **
   8  Prefactor     .21427E-07    2.8949        .36059E-06** at limit **
   9  Prefactor     .13323E-07    3.3321        .41214E-06** at limit **
  10  norm          6.1063        7.6699        .11359E-05    .33277E-02
  11  Prefactor     .62728E-08    8.8002       -.70617E-06** at limit **
  12  Prefactor     .16176E-06    5.3934       -.10409E-05** at limit **
  13  Prefactor     14.315        8.3887        .10166E-06   -.15031E-01
  14  Prefactor      .0000        48.368       -.31363E-05** at limit **
  15  norm          .25945        .91813       -.31808E-06   -.11418E-02
  16  norm          46.104        21.979       -.25866E-06    .11319E-01
  17  Prefactor     29.055        13.092        .11501E-06    .15437    
  18  Prefactor     11.581        8.0946        .22060E-06    .31434E-02
  19  Prefactor      .0000        29.929       -.39572E-06** at limit **
  20  Prefactor      .0000        4.3651       -.44202E-07** at limit **
  21  norm           .0000        2.6950       -.42255E-06** at limit **
  22  Prefactor     .12712E-07    37.504       -.10033E-05** at limit **
  23  norm           .0000        2.2313       -.10518E-05** at limit **
  24  norm          37.792        10.137       -.12246E-06    .14263E-02
  25  norm          .44409E-09    4.6685       -.48762E-06** at limit **
  26  Normalizat    .29149        .46419       -.99118E-04   -.18238E-05
  27  Prefactor     1.6908        .55233        .35424E-04    .56299E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.29754e-05
  Prefactor  = 71.3968
  Prefactor  = 1.64591e-07
  Prefactor  = 3.60545e-07
  Prefactor  = 4.20219e-08
  norm       = 37.6915
  Prefactor  = 7.63278e-08
  Prefactor  = 2.14273e-08
  Prefactor  = 1.33227e-08
  norm       = 6.10626
  Prefactor  = 6.27276e-09
  Prefactor  = 1.61759e-07
  Prefactor  = 14.3152
  Prefactor  = 0
  norm       = 0.259449
  norm       = 46.1038
  Prefactor  = 29.0546
  Prefactor  = 11.5809
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 1.27121e-08
  norm       = 0
  norm       = 37.7922
  norm       = 4.44089e-10
  Normalizat = 0.29149
  Prefactor  = 1.69084
 **********
 **   18 **HESSE 
 **********

 FCN=   1927.407     FROM HESSE     STATUS=OK           542 CALLS     3064 TOTAL
                     EDM=   .44E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .52975E-04    288.61        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     71.397        204.70        .11788E-03   -1.5539    
   3  Prefactor     .16459E-06    88.950        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .36054E-06    108.60        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .42022E-07    8.6098        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          37.691        10.777        .16296E-03   -1.5585    
   7  Prefactor     .76328E-07    7.3174        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .21427E-07    8.1026        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .13323E-07    8.1598        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.1063        11.877        .40342E-03   -1.5659    
  11  Prefactor     .62728E-08    9.1035        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .16176E-06    7.4132        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.315        12.187        .26483E-03   -1.5632    
  14  Prefactor      .0000        46.953        .16336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .25945        .81724        .10738E-02   -1.5718    
  16  norm          46.104        22.317        .14755E-03   -1.5572    
  17  Prefactor     29.055        35.463        .18643E-03   -1.5600    
  18  Prefactor     11.581        45.678        .28102E-03   -1.5640    
  19  Prefactor      .0000        17.446        .60457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        4.3674        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm           .0000        2.6949        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .12712E-07    37.439        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm           .0000        2.2291        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          37.792        10.296        .16274E-03   -1.5585    
  25  norm          .44409E-09    7.7883        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .29149        .50659        .12177       -1.2335    
  27  Prefactor     1.6908        .56112        .63265E-01   -.72326    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42018e-05
Minuit parameter uncertainties:
  1  0.247311
  2  204.717
  3  0.00765235
  4  0.0125151
  5  0.00120326
  6  10.7774
  7  0.00149479
  8  0.000833062
  9  0.000659392
  10  11.8771
  11  0.000477637
  12  0.00218999
  13  12.1873
  14  5.94557e-05
  15  0.817239
  16  22.3165
  17  35.4634
  18  45.6795
  19  2.20751e-05
  20  4.32039e-06
  21  9.68861e-06
  22  0.00138111
  23  4.55765e-06
  24  10.2957
  25  0.000117032
  26  0.514869
  27  0.563233
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  1.432e+01  1.219e+01  0.000e+00  1.000e+06 ( 1.000e-12)
325        Index:  2.153e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
326        Scale:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  1.691e+00  5.632e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  2.915e-01  5.149e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.44
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 2.10e-07 +/- 1.78e-07
Energy Flux (Fixed Index): 1.03e-04 +/- 8.77e-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) = 1926.64843152
delta logL = 0.758986008132

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1926.64416473
delta logL = 0.763252801073

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.2820       1.0000          .0000       .10000E+07
     2 'Index     '    2.8096       1.0000          .0000       10.000    
     3 'Normalizat'    .15174       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.7861       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1926.644     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      277 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.2977        96.472        .32871E-03    .10036E-02
   2  Index         2.8110        3.3803        .65666E-01    .66678E-04
   3  Normalizat    .15114        .28357        .16846       -.13255E-04
   4  Prefactor     1.7863        .27187        .61533E-01   -.79864E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.2977
  Index      = 2.81103
  Normalizat = 0.15114
  Prefactor  = 1.78628
 **********
 **   18 **HESSE 
 **********

 FCN=   1926.644     FROM HESSE     STATUS=OK            31 CALLS      308 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.2977        8.5145        .65150E-05   -1.5647    
   2  Index         2.8110        .57125        .27832E-02   -.45314    
   3  Normalizat    .15114        .46366        .72902E-03   -1.3325    
   4  Prefactor     1.7863        .54712        .27200E-03   -.69808    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14131e-10
Minuit parameter uncertainties:
  1  8.51451
  2  0.572801
  3  0.476533
  4  0.548999
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/632006': 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) = 1926.64413823
delta logL = 0.763279302864

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  9.298e+00  8.515e+00  0.000e+00  1.000e+06 ( 1.000e-12)
325        Index:  2.811e+00  5.728e-01  0.000e+00  1.000e+01 (-1.000e+00)
326        Scale:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  1.786e+00  5.490e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.511e-01  4.765e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.36
Ra Dec: 185.378 28.238
Photon Index (Free Index): 2.81 +/- 0.57
Photon Flux (Free Index): 4.16e-07 +/- 2.50e-07
Energy Flux (Free Index): 9.24e-05 +/- 4.89e-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/632006/cmap_HighResolution_698630401_698889601_4FGL_J1221.5+2814_daily_bin1772.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.10e-07', energy_flux2='9.24e-05', photon_flux_error='1.78e-07', dlogl='7.63e-01', energy_flux='1.03e-04', photon_flux2='4.16e-07', job_status='DONE', time_completed='2023-02-24 01:43:18.762985', photon_index_error2='0.57', photon_index2='2.81', ts='4.44', fit_tolerance='1e-08', GAL='1.69', photon_index_error='0.00', energy_flux_error2='4.89e-05', EG='0.29', time_epoch_completed='1677231798.76', return_code='0', job_id='632006', GAL2='1.79', EG2='0.15', return_code2='0', energy_flux_error='8.77e-05', photon_flux_error2='2.50e-07', ts2='6.36', photon_index='2.15' WHERE bin_id='1772' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb 24 01:43:18 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 632006: <4FGL_J1221.5+2814_daily_bin1772> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin1772> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Feb 24 01:35:17 2023
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb 24 01:35:18 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb 24 01:35:18 2023
Terminated at Fri Feb 24 01:43:19 2023
Results reported at Fri Feb 24 01:43:19 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin1772 185.378 28.2382 698630401 698889601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1221.5+2814 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   419.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             239.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   481 sec.
    Turnaround time :                            482 sec.

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

