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 94 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7533
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1221.5+2814_daily_bin1754
RA = 185.378, Dec = 28.2382
tmin = 693964801, tmax = 694224001
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='642004', job_status='RUN', time_executed='2023-01-01 01:08:12.093839', time_epoch_executed='1672564092.09' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='1754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/642004

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/642004/ft1_4FGL_J1221.5+2814_daily_bin1754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/642004/ft2_4FGL_J1221.5+2814_daily_bin1754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/642004/ft1_4FGL_J1221.5+2814_daily_bin1754.fits outfile=/scratch/kocevski/642004/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1754.fits ra=185.378 dec=28.2382 rad=12.0 tmin=693964801.0 tmax=694224001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.93
user 3.67
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/642004/ft2_4FGL_J1221.5+2814_daily_bin1754.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/642004/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1754.fits evtable="EVENTS" outfile="/scratch/kocevski/642004/ft1_filtered_4FGL_J1221.5+2814_daily_bin1754.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 606

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/642004/ft1_filtered_4FGL_J1221.5+2814_daily_bin1754.fits" evtable="EVENTS" scfile=/scratch/kocevski/642004/ft2_4FGL_J1221.5+2814_daily_bin1754.fits sctable="SC_DATA" outfile=/scratch/kocevski/642004/ltcube_693964801_694224001_4FGL_J1221.5+2814_daily_bin1754.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /scratch/kocevski/642004/ft2_4FGL_J1221.5+2814_daily_bin1754.fits
.....................!
real 13.55
user 13.17
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/642004/ft1_filtered_4FGL_J1221.5+2814_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/642004/ft2_4FGL_J1221.5+2814_daily_bin1754.fits sctable="SC_DATA" expcube=/scratch/kocevski/642004/ltcube_693964801_694224001_4FGL_J1221.5+2814_daily_bin1754.fits outfile=/scratch/kocevski/642004/expmap_693964801_694224001_4FGL_J1221.5+2814_daily_bin1754.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/642004/ltcube_693964801_694224001_4FGL_J1221.5+2814_daily_bin1754.fits
.....................!
real 192.17
user 186.19
sys 5.51

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/642004/ft1_filtered_4FGL_J1221.5+2814_daily_bin1754.fits scfile=/scratch/kocevski/642004/ft2_4FGL_J1221.5+2814_daily_bin1754.fits outfile=/scratch/kocevski/642004/cmap_693964801_694224001_4FGL_J1221.5+2814_daily_bin1754.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/642004/ft1_filtered_4FGL_J1221.5+2814_daily_bin1754.fits scfile=/scratch/kocevski/642004/ft2_4FGL_J1221.5+2814_daily_bin1754.fits outfile=/scratch/kocevski/642004/cmap_HighResolution_693964801_694224001_4FGL_J1221.5+2814_daily_bin1754.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=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.55
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/642004/ft1_filtered_4FGL_J1221.5+2814_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/642004/ft2_4FGL_J1221.5+2814_daily_bin1754.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/642004/Model_4FGL_J1221.5+2814_daily_bin1754.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/642004/ft1_filtered_4FGL_J1221.5+2814_daily_bin1754.fits.....................!
real 56.24
user 54.85
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/642004/ft1_filtered_4FGL_J1221.5+2814_daily_bin1754.fits', '/scratch/kocevski/642004/ft2_4FGL_J1221.5+2814_daily_bin1754.fits', expMap='/scratch/kocevski/642004/expmap_693964801_694224001_4FGL_J1221.5+2814_daily_bin1754.fits', expCube='/scratch/kocevski/642004/ltcube_693964801_694224001_4FGL_J1221.5+2814_daily_bin1754.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/642004/Model_4FGL_J1221.5+2814_daily_bin1754.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/642004/ft1_filtered_4FGL_J1221.5+2814_daily_bin1754.fits
Spacecraft file(s): /scratch/kocevski/642004/ft2_4FGL_J1221.5+2814_daily_bin1754.fits
Exposure map: /scratch/kocevski/642004/expmap_693964801_694224001_4FGL_J1221.5+2814_daily_bin1754.fits
Exposure cube: /scratch/kocevski/642004/ltcube_693964801_694224001_4FGL_J1221.5+2814_daily_bin1754.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/642004/Model_4FGL_J1221.5+2814_daily_bin1754.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.838       1.0000          .0000       .10000E+07
     2 'Prefactor '    .18720E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    9.5039       1.0000          .0000       .10000E+07
     4 'Prefactor '    21.795       1.0000          .0000       .10000E+07
     5 'Prefactor '    4.3267       1.0000          .0000       .10000E+07
     6 'norm      '    26.686       1.0000          .0000       .10000E+07
     7 'Prefactor '    2.6067       1.0000          .0000       .10000E+07
     8 'Prefactor '    .31530E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    3.9750       1.0000          .0000       .10000E+07
    10 'norm      '    .69279       1.0000          .0000       .10000E+07
    11 'Prefactor '    .14743E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .49699E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    1.3285       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.7495       1.0000          .0000       .10000E+07
    15 'norm      '    .19162E-01   1.0000          .0000       .10000E+07
    16 'norm      '    2.4062       1.0000          .0000       .10000E+07
    17 'Prefactor '    .18763E-07   1.0000          .0000       .10000E+07
    18 'Prefactor '    .17489E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .13658E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    .19582E-03   1.0000          .0000       .10000E+07
    21 'norm      '    .77705E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '    .32537       1.0000          .0000       .10000E+07
    23 'norm      '    .36587E-06   1.0000          .0000       .10000E+07
    24 'norm      '    21.938       1.0000          .0000       .10000E+07
    25 'norm      '    8.4753       1.0000          .0000       .10000E+07
    26 'Normalizat'    1.2656       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .76276       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=   6306.201     FROM MIGRAD    STATUS=CONVERGED    196 CALLS     2012 TOTAL
                     EDM=   .64E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.353        18.010       -.41592E-06   -.14689E-02
   2  Prefactor      .0000        7.7742       -.91549E-10** at limit **
   3  Prefactor     9.5129        1.1048        .17631E-09   -.37398E-02
   4  Prefactor     21.660        3.3000       -.36261E-07   -.23309E-01
   5  Prefactor     4.3302        2.5150       -.27775E-07    .12774E-02
   6  norm          26.695        3.1666       -.33455E-07    .63268E-03
   7  Prefactor     2.6444        4.3255       -.62641E-07    .37241E-03
   8  Prefactor      .0000        1.0801       -.58409E-08** at limit **
   9  Prefactor     3.9652        3.3837        .17556E-06   -.88458E-03
  10  norm          .69225        2.6556       -.28586E-06    .16504E-03
  11  Prefactor      .0000        2.0840        .46094E-06** at limit **
  12  Prefactor      .0000        1.1019        .20272E-06** at limit **
  13  Prefactor     1.3271        1.5955       -.10940E-07   -.13541E-02
  14  Prefactor     2.7428        2.7382        .13183E-06   -.15511E-02
  15  norm          .18610E-01    .67256       -.79291E-07** at limit **
  16  norm          2.4184        2.6752        .15163E-06    .18855E-03
  17  Prefactor      .0000        3.2809        .36185E-06** at limit **
  18  Prefactor      .0000        6.3566       -.47925E-06** at limit **
  19  Prefactor     .11102E-09    24.608        .24293E-06** at limit **
  20  Prefactor      .0000        2.3427        .14578E-06** at limit **
  21  norm           .0000        2.0026        .41198E-07** at limit **
  22  Prefactor     .76605E-08    259.11       -.10090E-04** at limit **
  23  norm           .0000        1.1428       -.10354E-06** at limit **
  24  norm          21.964        4.6805       -.82524E-07   -.11592E-01
  25  norm          8.4610        3.0477       -.55559E-07    .13901E-01
  26  Normalizat    1.2664        .22076        .84096E-05    .10830E-03
  27  Prefactor     .76252        .23779       -.93033E-05    .45273E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.3534
  Prefactor  = 0
  Prefactor  = 9.51288
  Prefactor  = 21.6604
  Prefactor  = 4.33016
  norm       = 26.6947
  Prefactor  = 2.64438
  Prefactor  = 0
  Prefactor  = 3.96519
  norm       = 0.692252
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.32712
  Prefactor  = 2.7428
  norm       = 0.0186102
  norm       = 2.41836
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  norm       = 0
  Prefactor  = 7.66054e-09
  norm       = 0
  norm       = 21.9645
  norm       = 8.46102
  Normalizat = 1.26642
  Prefactor  = 0.762515
 **********
 **   18 **HESSE 
 **********

 FCN=   6306.201     FROM HESSE     STATUS=OK           556 CALLS     2568 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.353        18.168        .25975E-03   -1.5632    
   2  Prefactor      .0000        7.7750        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.5129        6.7945        .32483E-03   -1.5646    
   4  Prefactor     21.660        23.543        .21426E-03   -1.5615    
   5  Prefactor     4.3302        2.5990        .48404E-03   -1.5666    
   6  norm          26.695        3.1909        .19361E-03   -1.5605    
   7  Prefactor     2.6444        4.3548        .63158E-03   -1.5675    
   8  Prefactor      .0000        1.0809        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.9652        3.3844        .50565E-03   -1.5668    
  10  norm          .69225        2.6802        .61295E-03   -1.5691    
  11  Prefactor      .0000        2.0890        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        1.1044        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.3271        1.6322        .95279E-03   -1.5685    
  14  Prefactor     2.7428        2.7279        .61368E-03   -1.5675    
  15  norm          .18610E-01    .17178        .11093E-02   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.4184        2.6759        .65976E-03   -1.5677    
  17  Prefactor      .0000        3.2884        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        6.3740        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .11102E-09    24.340        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        2.3424        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm           .0000        2.0051        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .76605E-08    22.588        .11735E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm           .0000        1.1408        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          21.964        7.8033        .21356E-03   -1.5614    
  25  norm          8.4610        10.530        .34410E-03   -1.5650    
  26  Normalizat    1.2664        .18837        .55540E-01   -.84574    
  27  Prefactor     .76252        .20261        .77382E-01   -1.0113    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1599e-08
Minuit parameter uncertainties:
  1  18.1678
  2  1.84878e-05
  3  6.79451
  4  23.5431
  5  2.59898
  6  3.19092
  7  4.3548
  8  5.91928e-07
  9  3.38443
  10  2.68018
  11  6.06238e-07
  12  1.58203e-07
  13  1.63218
  14  2.72793
  15  0.113083
  16  2.6759
  17  5.04386e-06
  18  1.93535e-05
  19  0.000101803
  20  2.36742e-06
  21  1.94348e-06
  22  0.000831174
  23  4.34172e-06
  24  7.80335
  25  10.5297
  26  0.188471
  27  0.202804
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  1.327e+00  1.632e+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

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  7.625e-01  2.028e-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.266e+00  1.885e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.31
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 1.94e-08 +/- 2.39e-08
Energy Flux (Fixed Index): 9.55e-06 +/- 1.17e-05

TS (Fixed Index): 1.31
Ra Dec: 185.378 28.238
Photon Flux Upper Limit: 8.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/642004/likelihoodResults_693964801_694224001_4FGL_J1221.5+2814_daily_bin1754.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6306.19943219
delta logL = 0.0013497478667

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6306.19931104
delta logL = 0.0014708983399

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3494       1.0000          .0000       .10000E+07
     2 'Index     '    2.1057       1.0000          .0000       10.000    
     3 'Normalizat'    1.2675       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76190       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=   6306.199     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      204 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3498        48.015        .94168E-03    .30734E-02
   2  Index         2.1067        5.8466        .25214        .24928E-04
   3  Normalizat    1.2675        .59238E-01    .55521E-01   -.59404E-05
   4  Prefactor     .76191        .59639E-01    .77410E-01    .14868E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.3498
  Index      = 2.10672
  Normalizat = 1.26746
  Prefactor  = 0.761911
 **********
 **   18 **HESSE 
 **********

 FCN=   6306.199     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3498        1.6757        .10829E-04   -1.5685    
   2  Index         2.1067        .85676        .10639E-01   -.61708    
   3  Normalizat    1.2675        .21310        .24550E-03   -.84543    
   4  Prefactor     .76191        .23678        .34269E-03   -1.0115    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.50845e-10
Minuit parameter uncertainties:
  1  1.67571
  2  0.863192
  3  0.213247
  4  0.237094
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/642004': 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) = 6306.19931024
delta logL = 0.00147169092907

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  1.350e+00  1.676e+00  0.000e+00  1.000e+06 ( 1.000e-12)
325        Index:  2.107e+00  8.632e-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:  7.619e-01  2.371e-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.267e+00  2.132e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.31
Ra Dec: 185.378 28.238
Photon Index (Free Index): 2.11 +/- 0.86
Photon Flux (Free Index): 1.84e-08 +/- 2.82e-08
Energy Flux (Free Index): 9.97e-06 +/- 1.49e-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/642004/cmap_HighResolution_693964801_694224001_4FGL_J1221.5+2814_daily_bin1754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.27e-03', comment='SUCCESS', photon_flux='1.94e-08', energy_flux2='9.97e-06', photon_flux_error='2.39e-08', dlogl='1.47e-03', energy_flux='9.55e-06', photon_flux2='1.84e-08', job_status='DONE', time_completed='2023-01-01 01:19:55.084500', photon_index_error2='0.86', photon_index2='2.11', ts='1.31', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='8.26e-08', energy_flux_error2='1.49e-05', EG='1.27', time_epoch_completed='1672564795.08', return_code='0', job_id='642004', GAL2='0.76', EG2='1.27', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='2.82e-08', ts2='1.31', photon_index='2.15' WHERE bin_id='1754' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan  1 01:19:55 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 642004: <4FGL_J1221.5+2814_daily_bin1754> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin1754> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Jan  1 01:05:18 2023
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan  1 01:06:29 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan  1 01:06:29 2023
Terminated at Sun Jan  1 01:19:55 2023
Results reported at Sun Jan  1 01:19:55 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin1754 185.378 28.2382 693964801 694224001 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 :                                   705.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            877 sec.

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

