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 4 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.3+3010_daily_bin1772
RA = 185.345, Dec = 30.1677
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='632005', job_status='RUN', time_executed='2023-02-24 01:35:31.861669', time_epoch_executed='1677231331.86' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='1772'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/632005

Creating custom pfile directory:
/scratch/kocevski/632005/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/632005/ft1_4FGL_J1221.3+3010_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/632005/ft2_4FGL_J1221.3+3010_daily_bin1772.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/632005/ft1_4FGL_J1221.3+3010_daily_bin1772.fits outfile=/scratch/kocevski/632005/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin1772.fits ra=185.345 dec=30.1677 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.99
user 2.79
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/632005/ft2_4FGL_J1221.3+3010_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/632005/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin1772.fits evtable="EVENTS" outfile="/scratch/kocevski/632005/ft1_filtered_4FGL_J1221.3+3010_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.32
sys 0.16

Number of photons that the gtmktime cut: 181

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/632005/ft1_filtered_4FGL_J1221.3+3010_daily_bin1772.fits" evtable="EVENTS" scfile=/scratch/kocevski/632005/ft2_4FGL_J1221.3+3010_daily_bin1772.fits sctable="SC_DATA" outfile=/scratch/kocevski/632005/ltcube_698630401_698889601_4FGL_J1221.3+3010_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/632005/ft2_4FGL_J1221.3+3010_daily_bin1772.fits
.....................!
real 13.51
user 12.22
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/632005/ft1_filtered_4FGL_J1221.3+3010_daily_bin1772.fits evtable="EVENTS" scfile=/scratch/kocevski/632005/ft2_4FGL_J1221.3+3010_daily_bin1772.fits sctable="SC_DATA" expcube=/scratch/kocevski/632005/ltcube_698630401_698889601_4FGL_J1221.3+3010_daily_bin1772.fits outfile=/scratch/kocevski/632005/expmap_698630401_698889601_4FGL_J1221.3+3010_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/632005/ltcube_698630401_698889601_4FGL_J1221.3+3010_daily_bin1772.fits
.....................!
real 189.90
user 183.98
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 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/632005/ft1_filtered_4FGL_J1221.3+3010_daily_bin1772.fits scfile=/scratch/kocevski/632005/ft2_4FGL_J1221.3+3010_daily_bin1772.fits outfile=/scratch/kocevski/632005/cmap_698630401_698889601_4FGL_J1221.3+3010_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.345 yref=30.1677 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/632005/ft1_filtered_4FGL_J1221.3+3010_daily_bin1772.fits scfile=/scratch/kocevski/632005/ft2_4FGL_J1221.3+3010_daily_bin1772.fits outfile=/scratch/kocevski/632005/cmap_HighResolution_698630401_698889601_4FGL_J1221.3+3010_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.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/632005/ft1_filtered_4FGL_J1221.3+3010_daily_bin1772.fits evtable="EVENTS" scfile=/scratch/kocevski/632005/ft2_4FGL_J1221.3+3010_daily_bin1772.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/632005/Model_4FGL_J1221.3+3010_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/632005/ft1_filtered_4FGL_J1221.3+3010_daily_bin1772.fits.....................!
real 26.51
user 25.30
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .51721       1.0000          .0000       .10000E+07
     2 'Prefactor '    58.599       1.0000          .0000       .10000E+07
     3 'Prefactor '    .78006E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    .20776       1.0000          .0000       .10000E+07
     5 'Prefactor '    .32211E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    274.31       1.0000          .0000       .10000E+07
     7 'norm      '    37.449       1.0000          .0000       .10000E+07
     8 'Prefactor '    .20826E-03   1.0000          .0000       .10000E+07
     9 'norm      '    5.7174       1.0000          .0000       .10000E+07
    10 'Prefactor '    .37441E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .21895E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    14.147       1.0000          .0000       .10000E+07
    13 'Prefactor '    .17815E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .13547       1.0000          .0000       .10000E+07
    15 'norm      '    43.564       1.0000          .0000       .10000E+07
    16 'Prefactor '    25.933       1.0000          .0000       .10000E+07
    17 'Prefactor '    7.8529       1.0000          .0000       .10000E+07
    18 'Prefactor '    .21653E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .31086E-08   1.0000          .0000       .10000E+07
    20 'norm      '    .49521E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    .19030E-01   1.0000          .0000       .10000E+07
    22 'norm      '    .42355E-07   1.0000          .0000       .10000E+07
    23 'Prefactor '    14.802       1.0000          .0000       .10000E+07
    24 'norm      '    .24176E-04   1.0000          .0000       .10000E+07
    25 'norm      '    40.625       1.0000          .0000       .10000E+07
    26 'norm      '    .61623E-05   1.0000          .0000       .10000E+07
    27 'Normalizat'    .40390       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.7163       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=   2075.609     FROM MIGRAD    STATUS=CONVERGED    224 CALLS     2696 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .25729E-06    255.15       -.32510E-05** at limit **
   2  Prefactor     62.092        201.04       -.10137E-04   -.85451E-03
   3  Prefactor     .13342E-05    75.067        .21093E-05** at limit **
   4  Prefactor     .55511E-10    113.51       -.22672E-05** at limit **
   5  Prefactor     .18840E-06    2.9727        .24965E-06** at limit **
   6  Prefactor     274.76        25.616       -.56991E-06   -.79131E-01
   7  norm          37.429        10.749       -.64206E-07   -.16919E-01
   8  Prefactor     .20572E-06    7.2721       -.38312E-06** at limit **
   9  norm          5.6019        6.4566        .17574E-06   -.99106E-02
  10  Prefactor     .20706E-05    3.8337       -.94687E-06** at limit **
  11  Prefactor     .27700E-07    7.2390       -.11592E-05** at limit **
  12  Prefactor     13.976        6.6755        .24310E-06    .34940E-02
  13  Prefactor     .94424E-07    49.845        .11369E-05** at limit **
  14  norm          .13301        1.5564        .18834E-05** at limit **
  15  norm          43.602        16.917        .14672E-05    .88818E-01
  16  Prefactor     25.944        14.575       -.19601E-05    .15693    
  17  Prefactor     7.9738        4.8776       -.10521E-05    .22928E-01
  18  Prefactor     .38303E-08    11.864       -.16777E-05** at limit **
  19  Prefactor     .88818E-09    4.6108       -.41823E-06** at limit **
  20  norm           .0000        2.5208       -.71313E-06** at limit **
  21  Prefactor      .0000        32.406        .16222E-05** at limit **
  22  norm           .0000        2.1744       -.34070E-06** at limit **
  23  Prefactor     14.752        8.6668        .13509E-05    .95034E-02
  24  norm          .61062E-09    4.6654       -.24326E-06** at limit **
  25  norm          40.550        9.9562       -.12577E-07    .36482E-02
  26  norm          .47945E-06    3.5890        .44073E-06** at limit **
  27  Normalizat    .40716        .45521       -.28189E-04    .11063E-04
  28  Prefactor     1.7143        .55538        .18647E-04    .28782E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.57294e-07
  Prefactor  = 62.0916
  Prefactor  = 1.33421e-06
  Prefactor  = 5.55112e-11
  Prefactor  = 1.88405e-07
  Prefactor  = 274.759
  norm       = 37.4293
  Prefactor  = 2.05724e-07
  norm       = 5.60195
  Prefactor  = 2.07057e-06
  Prefactor  = 2.77001e-08
  Prefactor  = 13.9758
  Prefactor  = 9.44245e-08
  norm       = 0.133009
  norm       = 43.6016
  Prefactor  = 25.9444
  Prefactor  = 7.97383
  Prefactor  = 3.83027e-09
  Prefactor  = 8.88178e-10
  norm       = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 14.7522
  norm       = 6.10623e-10
  norm       = 40.5496
  norm       = 4.7945e-07
  Normalizat = 0.40716
  Prefactor  = 1.71425
 **********
 **   18 **HESSE 
 **********

 FCN=   2075.609     FROM HESSE     STATUS=OK           573 CALLS     3269 TOTAL
                     EDM=   .35E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .25729E-06    254.42        .76997E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     62.092        201.91        .13064E-03   -1.5550    
   3  Prefactor     .13342E-05    77.142        .14562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .55511E-10    113.91        .11639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .18840E-06    9.0456        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     274.76        286.28        .60386E-04   -1.5376    
   7  norm          37.429        10.774        .16343E-03   -1.5586    
   8  Prefactor     .20572E-06    7.9308        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.6019        11.730        .41984E-03   -1.5661    
  10  Prefactor     .20706E-05    8.8054        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .27700E-07    7.3148        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.976        11.973        .26604E-03   -1.5633    
  13  Prefactor     .94424E-07    49.904        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .13301        .67877        .19039E-02   -1.5715    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          43.602        21.519        .15152E-03   -1.5576    
  16  Prefactor     25.944        33.526        .19641E-03   -1.5606    
  17  Prefactor     7.9738        67.421        .35758E-03   -1.5651    
  18  Prefactor     .38303E-08    11.871        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .88818E-09    4.6083        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm           .0000        2.5194        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor      .0000        32.095        .17101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm           .0000        2.1779        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     14.752        22.971        .26007E-03   -1.5631    
  24  norm          .61062E-09    4.6604        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          40.550        10.020        .15691E-03   -1.5581    
  26  norm          .47945E-06    8.9726        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .40716        .43529        .10890       -1.1693    
  28  Prefactor     1.7143        .49854        .67444E-01   -.71703    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48296e-06
Minuit parameter uncertainties:
  1  0.0161827
  2  201.935
  3  0.0202903
  4  0.000158964
  5  0.00261095
  6  286.295
  7  10.774
  8  0.0025545
  9  11.7298
  10  0.00853991
  11  0.000900453
  12  11.9727
  13  0.00434126
  14  0.600943
  15  21.5193
  16  33.5259
  17  46.3731
  18  0.000427524
  19  0.000126075
  20  5.05797e-06
  21  4.5771e-05
  22  9.05928e-06
  23  22.9711
  24  0.000108733
  25  10.0205
  26  0.00414831
  27  0.438983
  28  0.50001
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  2.770e-08  9.005e-04  0.000e+00  1.000e+06 ( 1.000e-13)
318        Index:  1.707e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  4.501e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  1.714e+00  5.000e-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:  4.072e-01  4.390e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 185.345 30.168
Photon Flux Upper Limit: 1.90e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.39e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/632005/likelihoodResults_698630401_698889601_4FGL_J1221.3+3010_daily_bin1772.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) = 2074.37541589
delta logL = 1.23378585179

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2074.30773407
delta logL = 1.30146766934

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10311       1.0000          .0000       .10000E+07
     2 'Index     '    3.5812       1.0000          .0000       10.000    
     3 'Normalizat'    .21621       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.8330       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=   2074.308     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      259 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10273        1.6750        .23156E-03** at limit **
   2  Index         3.5819        2.1607        .44329E-01    .58713E-04
   3  Normalizat    .21756        .13298        .14650        .16372E-04
   4  Prefactor     1.8316        .15642        .65085E-01   -.17414E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.102727
  Index      = 3.58193
  Normalizat = 0.217557
  Prefactor  = 1.83156
 **********
 **   18 **HESSE 
 **********

 FCN=   2074.308     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      292 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10273        2.7047        .10309E-05   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.5819        2.8784        .18589E-02   -.28756    
   3  Normalizat    .21756        .43241        .64484E-03   -1.2815    
   4  Prefactor     1.8316        .51792        .28773E-03   -.68631    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.47266e-11
Minuit parameter uncertainties:
  1  1.05422
  2  3.08738
  3  0.43934
  4  0.519479
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/632005': 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) = 2074.30772862
delta logL = 1.30147312296

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  1.027e-01  1.054e+00  0.000e+00  1.000e+06 ( 1.000e-13)
318        Index:  3.582e+00  3.087e+00  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:  1.832e+00  5.195e-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:  2.176e-01  4.393e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.77
Ra Dec: 185.345 30.168
Photon Index (Free Index): 3.58 +/- 3.09
Photon Flux (Free Index): 3.34e-07 +/- 2.69e-07
Energy Flux (Free Index): 5.43e-05 +/- 4.67e-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/632005/cmap_HighResolution_698630401_698889601_4FGL_J1221.3+3010_daily_bin1772.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.39e-02', comment='SUCCESS', energy_flux2='5.43e-05', dlogl='1.30e+00', photon_flux2='3.34e-07', job_status='DONE', time_completed='2023-02-24 01:43:05.533111', photon_index_error2='3.09', photon_index2='3.58', ts='-0.00', fit_tolerance='1e-08', GAL='1.71', photon_index_error='0.00', photon_flux_upper_limit='1.90e-07', energy_flux_error2='4.67e-05', EG='0.41', time_epoch_completed='1677231785.53', return_code='0', job_id='632005', GAL2='1.83', EG2='0.22', return_code2='102', photon_flux_error2='2.69e-07', ts2='2.77', photon_index='1.71' WHERE bin_id='1772' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb 24 01:43:05 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 632005: <4FGL_J1221.3+3010_daily_bin1772> in cluster <slac> Done

Job <4FGL_J1221.3+3010_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) <bullet0115>, 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:06 2023
Results reported at Fri Feb 24 01:43:06 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.3+3010_daily_bin1772 185.345 30.1677 698630401 698889601 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 :                                   453.20 sec.
    Max Memory :                                 1217 MB
    Average Memory :                             325.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   467 sec.
    Turnaround time :                            469 sec.

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

