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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin1771
RA = 185.378, Dec = 28.2382
tmin = 698371201, tmax = 698630401
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='547561', job_status='RUN', time_executed='2023-02-21 00:52:37.785397', time_epoch_executed='1676969557.79' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='1771'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/547561

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/547561/ft1_4FGL_J1221.5+2814_daily_bin1771.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/547561/ft2_4FGL_J1221.5+2814_daily_bin1771.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/547561/ft1_4FGL_J1221.5+2814_daily_bin1771.fits outfile=/scratch/kocevski/547561/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1771.fits ra=185.378 dec=28.2382 rad=12.0 tmin=698371201.0 tmax=698630401.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.10
user 2.85
sys 0.20

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

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

Number of photons that the gtmktime cut: 117

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/547561/ft1_filtered_4FGL_J1221.5+2814_daily_bin1771.fits" evtable="EVENTS" scfile=/scratch/kocevski/547561/ft2_4FGL_J1221.5+2814_daily_bin1771.fits sctable="SC_DATA" outfile=/scratch/kocevski/547561/ltcube_698371201_698630401_4FGL_J1221.5+2814_daily_bin1771.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/547561/ft2_4FGL_J1221.5+2814_daily_bin1771.fits
.....................!
real 12.34
user 12.00
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/547561/ft1_filtered_4FGL_J1221.5+2814_daily_bin1771.fits evtable="EVENTS" scfile=/scratch/kocevski/547561/ft2_4FGL_J1221.5+2814_daily_bin1771.fits sctable="SC_DATA" expcube=/scratch/kocevski/547561/ltcube_698371201_698630401_4FGL_J1221.5+2814_daily_bin1771.fits outfile=/scratch/kocevski/547561/expmap_698371201_698630401_4FGL_J1221.5+2814_daily_bin1771.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/547561/ltcube_698371201_698630401_4FGL_J1221.5+2814_daily_bin1771.fits
.....................!
real 192.79
user 187.77
sys 4.69

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/547561/ft1_filtered_4FGL_J1221.5+2814_daily_bin1771.fits scfile=/scratch/kocevski/547561/ft2_4FGL_J1221.5+2814_daily_bin1771.fits outfile=/scratch/kocevski/547561/cmap_698371201_698630401_4FGL_J1221.5+2814_daily_bin1771.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/547561/ft1_filtered_4FGL_J1221.5+2814_daily_bin1771.fits scfile=/scratch/kocevski/547561/ft2_4FGL_J1221.5+2814_daily_bin1771.fits outfile=/scratch/kocevski/547561/cmap_HighResolution_698371201_698630401_4FGL_J1221.5+2814_daily_bin1771.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.59
user 0.38
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/547561/ft1_filtered_4FGL_J1221.5+2814_daily_bin1771.fits', '/scratch/kocevski/547561/ft2_4FGL_J1221.5+2814_daily_bin1771.fits', expMap='/scratch/kocevski/547561/expmap_698371201_698630401_4FGL_J1221.5+2814_daily_bin1771.fits', expCube='/scratch/kocevski/547561/ltcube_698371201_698630401_4FGL_J1221.5+2814_daily_bin1771.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/547561/Model_4FGL_J1221.5+2814_daily_bin1771.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/547561/ft1_filtered_4FGL_J1221.5+2814_daily_bin1771.fits
Spacecraft file(s): /scratch/kocevski/547561/ft2_4FGL_J1221.5+2814_daily_bin1771.fits
Exposure map: /scratch/kocevski/547561/expmap_698371201_698630401_4FGL_J1221.5+2814_daily_bin1771.fits
Exposure cube: /scratch/kocevski/547561/ltcube_698371201_698630401_4FGL_J1221.5+2814_daily_bin1771.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/547561/Model_4FGL_J1221.5+2814_daily_bin1771.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) = 1307.11900801

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20961E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    .14472E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    .35921E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    134.25       1.0000          .0000       .10000E+07
     5 'Prefactor '    3.2091       1.0000          .0000       .10000E+07
     6 'norm      '    57.805       1.0000          .0000       .10000E+07
     7 'Prefactor '    .19984E-08   1.0000          .0000       .10000E+07
     8 'Prefactor '    .61062E-09   1.0000          .0000       .10000E+07
     9 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
    10 'norm      '    16.652       1.0000          .0000       .10000E+07
    11 'Prefactor '    24.903       1.0000          .0000       .10000E+07
    12 'Prefactor '    .24392E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    .34328E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    .10884E-05   1.0000          .0000       .10000E+07
    15 'norm      '    .29310E-07   1.0000          .0000       .10000E+07
    16 'norm      '    23.515       1.0000          .0000       .10000E+07
    17 'Prefactor '    .11063E-06   1.0000          .0000       .10000E+07
    18 'Prefactor '    102.75       1.0000          .0000       .10000E+07
    19 'Prefactor '    22.498       1.0000          .0000       .10000E+07
    20 'Prefactor '    .26590E-07   1.0000          .0000       .10000E+07
    21 'norm      '    5.2865       1.0000          .0000       .10000E+07
    22 'Prefactor '    .53957E-07   1.0000          .0000       .10000E+07
    23 'norm      '    .69389E-08   1.0000          .0000       .10000E+07
    24 'norm      '    45.315       1.0000          .0000       .10000E+07
    25 'norm      '    .21128E-06   1.0000          .0000       .10000E+07
    26 'Normalizat'    1.9007       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .26351E-04   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=   1306.663     FROM MIGRAD    STATUS=CONVERGED    272 CALLS     3052 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17351E-02    381.83       -.94961E-06** at limit **
   2  Prefactor     .17035E-04    333.01        .30945E-06** at limit **
   3  Prefactor     .13325E-02    295.19       -.65728E-06** at limit **
   4  Prefactor     134.30        2.1546        .51933E-08   -.16150E-01
   5  Prefactor     3.1821        22.026        .38456E-06   -.12131E-02
   6  norm          57.802        7.5327        .23915E-07   -.52888E-01
   7  Prefactor     .19329E-06    8.8970        .10411E-06** at limit **
   8  Prefactor      .0000        4.2441       -.41956E-07** at limit **
   9  Prefactor      .0000        4.7695       -.13264E-07** at limit **
  10  norm          16.647        10.946       -.57109E-07   -.10822    
  11  Prefactor     24.889        41.266       -.10278E-06   -.29704E-01
  12  Prefactor     .21094E-08    6.9658        .95618E-07** at limit **
  13  Prefactor      .0000        4.4843       -.50851E-07** at limit **
  14  Prefactor     .83267E-09    16.973       -.64334E-07** at limit **
  15  norm           .0000        .58170       -.77787E-08** at limit **
  16  norm          23.515        4.3580       -.17651E-07    .12642E-01
  17  Prefactor     .18319E-07    19.512       -.14184E-07** at limit **
  18  Prefactor     102.74        1.2825       -.39994E-09    .12381E-02
  19  Prefactor     22.505        17.954        .11580E-07    .60038E-01
  20  Prefactor     .33862E-08    7.2701        .73881E-07** at limit **
  21  norm          5.2880        10.441       -.46542E-07    .83436E-02
  22  Prefactor     .93814E-08    13.099       -.12626E-07** at limit **
  23  norm          .18346E-06    8.3182        .91376E-07** at limit **
  24  norm          45.314        13.129        .53231E-07   -.95924E-01
  25  norm          .31752E-07    12.816       -.26578E-07** at limit **
  26  Normalizat    1.9010        .33023        .27680E-05    .27086E-03
  27  Prefactor     .54121E-09    7.7875        .33315E-04** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00173508
  Prefactor  = 1.70355e-05
  Prefactor  = 0.0013325
  Prefactor  = 134.297
  Prefactor  = 3.18207
  norm       = 57.8017
  Prefactor  = 1.9329e-07
  Prefactor  = 0
  Prefactor  = 0
  norm       = 16.6469
  Prefactor  = 24.8887
  Prefactor  = 2.10942e-09
  Prefactor  = 0
  Prefactor  = 8.32667e-10
  norm       = 0
  norm       = 23.5151
  Prefactor  = 1.83187e-08
  Prefactor  = 102.741
  Prefactor  = 22.5051
  Prefactor  = 3.38618e-09
  norm       = 5.28801
  Prefactor  = 9.38138e-09
  norm       = 1.83464e-07
  norm       = 45.3135
  norm       = 3.17524e-08
  Normalizat = 1.90099
  Prefactor  = 5.41215e-10
 **********
 **   18 **HESSE 
 **********

 FCN=   1306.663     FROM HESSE     STATUS=OK           536 CALLS     3588 TOTAL
                     EDM=   .53E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17351E-02    738.05        .42118E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .17035E-04    337.42        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .13325E-02    571.99        .42118E-03   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     134.30        310.63        .86312E-04   -1.5476    
   5  Prefactor     3.1821        28.251        .56531E-03   -1.5672    
   6  norm          57.802        21.127        .13154E-03   -1.5556    
   7  Prefactor     .19329E-06    9.3661        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        4.2496        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        4.7952        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          16.647        15.312        .24517E-03   -1.5626    
  11  Prefactor     24.889        43.046        .20043E-03   -1.5608    
  12  Prefactor     .21094E-08    7.0098        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        4.5114        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .83267E-09    16.996        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        .57678        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          23.515        22.690        .20627E-03   -1.5611    
  17  Prefactor     .18319E-07    19.662        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     102.74        79.869        .98659E-04   -1.5505    
  19  Prefactor     22.505        24.155        .21088E-03   -1.5613    
  20  Prefactor     .33862E-08    7.3012        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.2880        10.626        .43690E-03   -1.5662    
  22  Prefactor     .93814E-08    25.686        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .18346E-06    8.7157        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          45.314        13.746        .14856E-03   -1.5573    
  25  norm          .31752E-07    25.678        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.9010        .47857        .58938E-01   -.67056    
  27  Prefactor     .54121E-09    .86350        .32078       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.25718e-06
Minuit parameter uncertainties:
  1  2.26353
  2  0.151641
  3  1.74622
  4  310.665
  5  18.963
  6  21.1275
  7  0.00269088
  8  5.98583e-06
  9  4.27256e-06
  10  15.312
  11  43.0465
  12  0.000241878
  13  2.00016e-05
  14  0.00023566
  15  2.73703e-06
  16  22.6898
  17  0.00120099
  18  79.87
  19  24.1554
  20  0.000315236
  21  10.6263
  22  0.000982116
  23  0.00252889
  24  13.7462
  25  0.00180607
  26  0.479773
  27  4.38837e-05
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  0.000e+00  2.000e-05  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:  5.412e-10  4.388e-05  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.901e+00  4.798e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 185.378 28.238
Photon Flux Upper Limit: 3.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.45e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/547561/likelihoodResults_698371201_698630401_4FGL_J1221.5+2814_daily_bin1771.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) = 1306.66349318
delta logL = -0.000658490524529

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1306.66283484
delta logL = -1.50252617459e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20539E-08   1.0000          .0000       .10000E+07
     2 'Index     '    .83836       1.0000          .0000       10.000    
     3 'Normalizat'    1.9010       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .21612E-05   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=   1306.663     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      288 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22204E-09    4.4611        .42118E-03** at limit **
   2  Index         1.4289        5.5896        .44214       -.10928E-09
   3  Normalizat    1.9010        .14961E-01    .58938E-01    .26199E-03
   4  Prefactor     .77461E-10    .92817E-03    .32180    ** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.22045e-10
  Index      = 1.42888
  Normalizat = 1.90098
  Prefactor  = 7.74614e-11
 **********
 **   18 **HESSE 
 **********

 FCN=   1306.663     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      321 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22204E-09    9.9790        .64410E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.4289        9.2846        .50000       -.79551    
   3  Normalizat    1.9010        .22406E-01    .26054E-03   -.67056    
   4  Prefactor     .77461E-10    .41880E-01    .13131E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.41844e-10
Minuit parameter uncertainties:
  1  9.49924e-05
  2  128009
  3  0.0224061
  4  3.60476e-06
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/547561': 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): 102
logL (Free Index) = 1306.66283469
delta logL = 9.54969436862e-12

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  2.220e-10  9.499e-05  0.000e+00  1.000e+06 ( 1.000e-12)
325        Index:  1.429e+00  1.280e+05  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.746e-11  3.605e-06  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.901e+00  2.241e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 185.378 28.238

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/547561/cmap_HighResolution_698371201_698630401_4FGL_J1221.5+2814_daily_bin1771.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.45e-02', job_status='DONE', photon_flux_upper_limit='3.23e-07', time_completed='2023-02-21 00:59:31.609747', job_id='547561', GAL2='0.00', fit_tolerance='1e-08', EG2='1.90', EG='1.90', time_epoch_completed='1676969971.61', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='9.55e-12', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1771' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Feb 21 00:59:31 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 547561: <4FGL_J1221.5+2814_daily_bin1771> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin1771> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Feb 21 00:50:18 2023
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 00:50:19 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 00:50:19 2023
Terminated at Tue Feb 21 00:59:32 2023
Results reported at Tue Feb 21 00:59:32 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin1771 185.378 28.2382 698371201 698630401 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 :                                   416.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   552 sec.
    Turnaround time :                            554 sec.

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

