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


Performing analysis on: 4FGL_J1221.3+3010_daily_bin1765
RA = 185.345, Dec = 30.1677
tmin = 696816001, tmax = 697075201
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='634029', job_status='RUN', time_executed='2023-02-03 00:57:41.743783', time_epoch_executed='1675414661.74' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='1765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/634029

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/634029/ft1_4FGL_J1221.3+3010_daily_bin1765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/634029/ft2_4FGL_J1221.3+3010_daily_bin1765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/634029/ft1_4FGL_J1221.3+3010_daily_bin1765.fits outfile=/scratch/kocevski/634029/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin1765.fits ra=185.345 dec=30.1677 rad=12.0 tmin=696816001.0 tmax=697075201.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.65
user 3.40
sys 0.23

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

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

Number of photons that the gtmktime cut: 842

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/634029/ft1_filtered_4FGL_J1221.3+3010_daily_bin1765.fits" evtable="EVENTS" scfile=/scratch/kocevski/634029/ft2_4FGL_J1221.3+3010_daily_bin1765.fits sctable="SC_DATA" outfile=/scratch/kocevski/634029/ltcube_696816001_697075201_4FGL_J1221.3+3010_daily_bin1765.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/634029/ft2_4FGL_J1221.3+3010_daily_bin1765.fits
.....................!
real 15.49
user 15.15
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/634029/ft1_filtered_4FGL_J1221.3+3010_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/634029/ft2_4FGL_J1221.3+3010_daily_bin1765.fits sctable="SC_DATA" expcube=/scratch/kocevski/634029/ltcube_696816001_697075201_4FGL_J1221.3+3010_daily_bin1765.fits outfile=/scratch/kocevski/634029/expmap_696816001_697075201_4FGL_J1221.3+3010_daily_bin1765.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/634029/ltcube_696816001_697075201_4FGL_J1221.3+3010_daily_bin1765.fits
.....................!
real 192.19
user 186.57
sys 5.18

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/634029/ft1_filtered_4FGL_J1221.3+3010_daily_bin1765.fits scfile=/scratch/kocevski/634029/ft2_4FGL_J1221.3+3010_daily_bin1765.fits outfile=/scratch/kocevski/634029/cmap_696816001_697075201_4FGL_J1221.3+3010_daily_bin1765.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/634029/ft1_filtered_4FGL_J1221.3+3010_daily_bin1765.fits scfile=/scratch/kocevski/634029/ft2_4FGL_J1221.3+3010_daily_bin1765.fits outfile=/scratch/kocevski/634029/cmap_HighResolution_696816001_697075201_4FGL_J1221.3+3010_daily_bin1765.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10054E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    10.995       1.0000          .0000       .10000E+07
     3 'Prefactor '    4.7483       1.0000          .0000       .10000E+07
     4 'Prefactor '    .84334E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .46343E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .77815E-02   1.0000          .0000       .10000E+07
     7 'norm      '    53.649       1.0000          .0000       .10000E+07
     8 'Prefactor '    4.8053       1.0000          .0000       .10000E+07
     9 'norm      '    1.8883       1.0000          .0000       .10000E+07
    10 'Prefactor '    .98930E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    3.5027       1.0000          .0000       .10000E+07
    12 'Prefactor '    .11891E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    7.2843       1.0000          .0000       .10000E+07
    14 'norm      '    .10547E-08   1.0000          .0000       .10000E+07
    15 'norm      '    6.7386       1.0000          .0000       .10000E+07
    16 'Prefactor '    .71274E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    4.3031       1.0000          .0000       .10000E+07
    18 'Prefactor '    2.8961       1.0000          .0000       .10000E+07
    19 'Prefactor '    6.4097       1.0000          .0000       .10000E+07
    20 'norm      '    4.8454       1.0000          .0000       .10000E+07
    21 'Prefactor '    .84304E-02   1.0000          .0000       .10000E+07
    22 'norm      '    .59369E-04   1.0000          .0000       .10000E+07
    23 'Prefactor '    5.0337       1.0000          .0000       .10000E+07
    24 'norm      '    5.8514       1.0000          .0000       .10000E+07
    25 'norm      '    53.163       1.0000          .0000       .10000E+07
    26 'norm      '    .46913E-03   1.0000          .0000       .10000E+07
    27 'Normalizat'    .61804       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.5387       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=   8949.471     FROM MIGRAD    STATUS=CONVERGED    184 CALLS     2034 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        5.6888       -.83507E-07** at limit **
   2  Prefactor     11.087        1.3889        .13336E-07   -.35386E-01
   3  Prefactor     4.7664        6.5166       -.19652E-06   -.21982E-01
   4  Prefactor     .13767E-07    33.121        .25542E-06** at limit **
   5  Prefactor      .0000        .85484        .28254E-06** at limit **
   6  Prefactor     .45958E-06    14.752        .31166E-06** at limit **
   7  norm          53.652        3.9458        .25475E-07    .47003E-02
   8  Prefactor     4.8679        4.2795       -.25796E-06   -.51837E-03
   9  norm          1.8896        2.1407       -.60966E-08    .42219E-03
  10  Prefactor     .72164E-09    13.716       -.63738E-06** at limit **
  11  Prefactor     3.5027        2.2494       -.88822E-07    .83351E-05
  12  Prefactor      .0000        1.7184       -.10920E-06** at limit **
  13  Prefactor     7.3344        6.0686       -.84004E-07   -.35327E-01
  14  norm           .0000        .90953E-01    .50098E-07** at limit **
  15  norm          6.7545        4.7723       -.11991E-06    .10804E-01
  16  Prefactor      .0000        3.0730        .23944E-06** at limit **
  17  Prefactor     4.3297        1.2255       -.39166E-08   -.84060E-02
  18  Prefactor     2.8530        5.0027       -.16790E-06    .29942E-01
  19  Prefactor     6.4168        5.6972       -.23892E-07   -.10462E-02
  20  norm          4.8939        5.1178        .74833E-07   -.17119E-02
  21  Prefactor     .34911E-06    27.325        .29359E-06** at limit **
  22  norm           .0000        1.5680       -.66058E-07** at limit **
  23  Prefactor     4.9208        1.4609       -.96046E-08   -.11363E-01
  24  norm          5.8537        4.8857        .95369E-08    .98266E-03
  25  norm          53.251        8.2678       -.10474E-07    .15388E-01
  26  norm          .11102E-09    10.249        .48103E-06** at limit **
  27  Normalizat    .61745        .22521        .64999E-05   -.15251E-04
  28  Prefactor     1.5384        .25885       -.64872E-05   -.25503E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 11.0869
  Prefactor  = 4.76637
  Prefactor  = 1.37668e-08
  Prefactor  = 0
  Prefactor  = 4.59577e-07
  norm       = 53.6519
  Prefactor  = 4.86786
  norm       = 1.88958
  Prefactor  = 7.21645e-10
  Prefactor  = 3.50267
  Prefactor  = 0
  Prefactor  = 7.33442
  norm       = 0
  norm       = 6.75451
  Prefactor  = 0
  Prefactor  = 4.32969
  Prefactor  = 2.85304
  Prefactor  = 6.4168
  norm       = 4.8939
  Prefactor  = 3.4911e-07
  norm       = 0
  Prefactor  = 4.92081
  norm       = 5.85373
  norm       = 53.2509
  norm       = 1.11022e-10
  Normalizat = 0.617451
  Prefactor  = 1.53836
 **********
 **   18 **HESSE 
 **********

 FCN=   8949.471     FROM HESSE     STATUS=OK           585 CALLS     2619 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        5.7016        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.087        11.291        .30190E-03   -1.5641    
   3  Prefactor     4.7664        6.9014        .46151E-03   -1.5664    
   4  Prefactor     .13767E-07    35.138        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        .85142        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .45958E-06    38.320        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          53.652        3.9565        .13654E-03   -1.5561    
   8  Prefactor     4.8679        4.2878        .45870E-03   -1.5664    
   9  norm          1.8896        2.1477        .75701E-03   -1.5680    
  10  Prefactor     .72164E-09    13.614        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.5027        2.2411        .53997E-03   -1.5671    
  12  Prefactor      .0000        1.6831        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.3344        6.8901        .37140E-03   -1.5654    
  14  norm           .0000        .59808E-01    .11981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.7545        4.9092        .38630E-03   -1.5656    
  16  Prefactor      .0000        3.0790        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.3297        14.986        .48540E-03   -1.5666    
  18  Prefactor     2.8530        8.0442        .59686E-03   -1.5674    
  19  Prefactor     6.4168        5.9718        .39620E-03   -1.5657    
  20  norm          4.8939        5.1332        .45676E-03   -1.5664    
  21  Prefactor     .34911E-06    40.749        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm           .0000        1.5671        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.9208        15.756        .44795E-03   -1.5664    
  24  norm          5.8537        4.9944        .41493E-03   -1.5660    
  25  norm          53.251        8.3463        .13716E-03   -1.5562    
  26  norm          .11102E-09    10.244        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .61745        .19632        .92322E-01   -1.0725    
  28  Prefactor     1.5384        .22201        .71485E-01   -.76471    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20031e-07
Minuit parameter uncertainties:
  1  1.50549e-05
  2  11.2908
  3  6.90138
  4  0.00139239
  5  1.94337e-06
  6  0.00839292
  7  3.95651
  8  4.2878
  9  2.14772
  10  0.000200348
  11  2.24106
  12  8.68771e-06
  13  6.89009
  14  9.66631e-08
  15  4.90924
  16  9.45272e-06
  17  14.9859
  18  8.04428
  19  5.97182
  20  5.13325
  21  0.00754342
  22  6.84394e-07
  23  15.7562
  24  4.99439
  25  8.34631
  26  6.28263e-05
  27  0.196545
  28  0.222148
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  1.538e+00  2.221e-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:  6.175e-01  1.965e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.77
Ra Dec: 185.345 30.168
Photon Index (Fixed Index): 1.71 +/- 0.00
Photon Flux (Fixed Index): 3.27e-08 +/- 2.09e-08
Energy Flux (Fixed Index): 5.21e-05 +/- 3.34e-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) = 8948.6254801
delta logL = 0.845887053156

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8948.60574918
delta logL = 0.865617972622

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9783       1.0000          .0000       .10000E+07
     2 'Index     '    .97655       1.0000          .0000       10.000    
     3 'Normalizat'    .63021       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5409       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=   8948.606     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      213 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9777        2.3941        .58805E-03   -.11164E-02
   2  Index         .97648        .49186        .31115       -.64666E-04
   3  Normalizat    .63018        .18929        .91526E-01    .45239E-04
   4  Prefactor     1.5409        .21993        .71524E-01    .35390E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.97771
  Index      = 0.97648
  Normalizat = 0.630176
  Prefactor  = 1.54094
 **********
 **   18 **HESSE 
 **********

 FCN=   8948.606     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9777        2.6159        .11112E-04   -1.5673    
   2  Index         .97648        .55162        .13168E-01   -.93518    
   3  Normalizat    .63018        .21954        .40562E-03   -1.0672    
   4  Prefactor     1.5409        .25731        .31635E-03   -.76400    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69451e-11
Minuit parameter uncertainties:
  1  2.61588
  2  0.554843
  3  0.219849
  4  0.257525
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/634029': 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) = 8948.60574914
delta logL = 0.865618014102

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  2.978e+00  2.616e+00  0.000e+00  1.000e+06 ( 1.000e-13)
318        Index:  9.765e-01  5.548e-01  0.000e+00  1.000e+01 (-1.000e+00)
319        Scale:  4.501e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  1.541e+00  2.575e-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:  6.302e-01  2.198e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.48
Ra Dec: 185.345 30.168
Photon Index (Free Index): 0.98 +/- 0.55
Photon Flux (Free Index): 9.19e-09 +/- 8.94e-09
Energy Flux (Free Index): 1.41e-04 +/- 1.34e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/634029/cmap_HighResolution_696816001_697075201_4FGL_J1221.3+3010_daily_bin1765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.27e-08', energy_flux2='1.41e-04', photon_flux_error='2.09e-08', dlogl='8.66e-01', energy_flux='5.21e-05', photon_flux2='9.19e-09', job_status='DONE', time_completed='2023-02-03 01:10:33.302782', photon_index_error2='0.55', photon_index2='0.98', ts='19.77', fit_tolerance='1e-08', GAL='1.54', photon_index_error='0.00', energy_flux_error2='1.34e-04', EG='0.62', time_epoch_completed='1675415433.3', return_code='0', job_id='634029', GAL2='1.54', EG2='0.63', return_code2='0', energy_flux_error='3.34e-05', photon_flux_error2='8.94e-09', ts2='21.48', photon_index='1.71' WHERE bin_id='1765' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb  3 01:10:33 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 634029: <4FGL_J1221.3+3010_daily_bin1765> in cluster <slac> Done

Job <4FGL_J1221.3+3010_daily_bin1765> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Feb  3 00:55:15 2023
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb  3 00:55:59 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb  3 00:55:59 2023
Terminated at Fri Feb  3 01:10:34 2023
Results reported at Fri Feb  3 01:10:34 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.3+3010_daily_bin1765 185.345 30.1677 696816001 697075201 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 :                                   773.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             317.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            919 sec.

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

