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


Performing analysis on: 4FGL_J1221.3+3010_daily_bin1747
RA = 185.345, Dec = 30.1677
tmin = 692150401, tmax = 692409601
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='800840', job_status='RUN', time_executed='2022-12-11 00:51:54.549297', time_epoch_executed='1670748714.55' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='1747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/800840

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/800840/ft1_4FGL_J1221.3+3010_daily_bin1747.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/800840/ft2_4FGL_J1221.3+3010_daily_bin1747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/800840/ft1_4FGL_J1221.3+3010_daily_bin1747.fits outfile=/scratch/kocevski/800840/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin1747.fits ra=185.345 dec=30.1677 rad=12.0 tmin=692150401.0 tmax=692409601.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.99
user 3.76
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/800840/ft2_4FGL_J1221.3+3010_daily_bin1747.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/800840/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin1747.fits evtable="EVENTS" outfile="/scratch/kocevski/800840/ft1_filtered_4FGL_J1221.3+3010_daily_bin1747.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.52
user 0.35
sys 0.14

Number of photons that the gtmktime cut: 854

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/800840/ft1_filtered_4FGL_J1221.3+3010_daily_bin1747.fits" evtable="EVENTS" scfile=/scratch/kocevski/800840/ft2_4FGL_J1221.3+3010_daily_bin1747.fits sctable="SC_DATA" outfile=/scratch/kocevski/800840/ltcube_692150401_692409601_4FGL_J1221.3+3010_daily_bin1747.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/800840/ft2_4FGL_J1221.3+3010_daily_bin1747.fits
.....................!
real 12.34
user 11.93
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/800840/ft1_filtered_4FGL_J1221.3+3010_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/800840/ft2_4FGL_J1221.3+3010_daily_bin1747.fits sctable="SC_DATA" expcube=/scratch/kocevski/800840/ltcube_692150401_692409601_4FGL_J1221.3+3010_daily_bin1747.fits outfile=/scratch/kocevski/800840/expmap_692150401_692409601_4FGL_J1221.3+3010_daily_bin1747.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/800840/ltcube_692150401_692409601_4FGL_J1221.3+3010_daily_bin1747.fits
.....................!
real 191.43
user 185.70
sys 4.70

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/800840/ft1_filtered_4FGL_J1221.3+3010_daily_bin1747.fits scfile=/scratch/kocevski/800840/ft2_4FGL_J1221.3+3010_daily_bin1747.fits outfile=/scratch/kocevski/800840/cmap_692150401_692409601_4FGL_J1221.3+3010_daily_bin1747.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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/800840/ft1_filtered_4FGL_J1221.3+3010_daily_bin1747.fits scfile=/scratch/kocevski/800840/ft2_4FGL_J1221.3+3010_daily_bin1747.fits outfile=/scratch/kocevski/800840/cmap_HighResolution_692150401_692409601_4FGL_J1221.3+3010_daily_bin1747.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.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24546E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .28185E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    5.8401       1.0000          .0000       .10000E+07
     4 'Prefactor '    8.3487       1.0000          .0000       .10000E+07
     5 'Prefactor '    .20387E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .58845E-03   1.0000          .0000       .10000E+07
     7 'norm      '    41.028       1.0000          .0000       .10000E+07
     8 'Prefactor '    .88661       1.0000          .0000       .10000E+07
     9 'norm      '    5.2563       1.0000          .0000       .10000E+07
    10 'Prefactor '    .36484E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .30318E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    .79676       1.0000          .0000       .10000E+07
    13 'Prefactor '    .11554E-04   1.0000          .0000       .10000E+07
    14 'norm      '    .79978E-01   1.0000          .0000       .10000E+07
    15 'norm      '    10.781       1.0000          .0000       .10000E+07
    16 'Prefactor '    4.3233       1.0000          .0000       .10000E+07
    17 'Prefactor '    4.3399       1.0000          .0000       .10000E+07
    18 'Prefactor '    .27524E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    2.8488       1.0000          .0000       .10000E+07
    20 'norm      '    8.0113       1.0000          .0000       .10000E+07
    21 'Prefactor '    .16704E-02   1.0000          .0000       .10000E+07
    22 'norm      '    .15138E-06   1.0000          .0000       .10000E+07
    23 'Prefactor '    .44476E-06   1.0000          .0000       .10000E+07
    24 'norm      '    .15468E-01   1.0000          .0000       .10000E+07
    25 'norm      '    42.087       1.0000          .0000       .10000E+07
    26 'norm      '    .74995       1.0000          .0000       .10000E+07
    27 'Normalizat'    1.0822       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .96944       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=   8905.174     FROM MIGRAD    STATUS=CONVERGED    218 CALLS     2115 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20525E-05    13.772       -.11346E-06** at limit **
   2  Prefactor     .27756E-08    13.174        .79531E-07** at limit **
   3  Prefactor     5.8603        5.3556       -.16180E-07    .25873E-03
   4  Prefactor     8.1437        1.2573       -.14293E-07   -.17405E-04
   5  Prefactor     .44409E-09    6.1976        .42617E-07** at limit **
   6  Prefactor     .61229E-07    36.866        .52149E-06** at limit **
   7  norm          41.034        3.3594       -.25440E-09    .12208E-02
   8  Prefactor     .88874        3.3399        .16389E-06    .24443E-02
   9  norm          5.2595        2.7021        .22218E-07   -.12889E-03
  10  Prefactor      .0000        1.9218       -.83607E-08** at limit **
  11  Prefactor      .0000        2.0153       -.96348E-08** at limit **
  12  Prefactor     .78862        2.2823       -.41099E-07   -.19178E-02
  13  Prefactor      .0000        1.4631       -.16041E-07** at limit **
  14  norm          .79796E-01    .18762        .83075E-09** at limit **
  15  norm          10.792        4.6802        .31268E-08    .21395E-03
  16  Prefactor     4.3174        8.9150        .53190E-07    .16620E-01
  17  Prefactor     4.1778        12.179        .32767E-06    .13183E-01
  18  Prefactor      .0000        3.9623       -.40567E-07** at limit **
  19  Prefactor     2.8513        2.9549       -.63590E-08    .34854E-04
  20  norm          7.9768        5.4258        .21865E-07    .10446E-03
  21  Prefactor     .23689E-05    13.233       -.35145E-06** at limit **
  22  norm           .0000        1.7572        .10860E-07** at limit **
  23  Prefactor     .49960E-09    9.4272       -.19230E-07** at limit **
  24  norm          .39579E-06    9.9503        .24758E-06** at limit **
  25  norm          42.266        11.270       -.15247E-06   -.43441E-02
  26  norm          .40257        185.65        .73307E-06    .28132E-02
  27  Normalizat    1.0820        .21387        .17210E-06   -.10885E-04
  28  Prefactor     .97003        .23794       -.82400E-06   -.58463E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.05252e-06
  Prefactor  = 2.77556e-09
  Prefactor  = 5.86031
  Prefactor  = 8.14367
  Prefactor  = 4.44089e-10
  Prefactor  = 6.12288e-08
  norm       = 41.0339
  Prefactor  = 0.888737
  norm       = 5.2595
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0.788616
  Prefactor  = 0
  norm       = 0.0797958
  norm       = 10.7921
  Prefactor  = 4.31738
  Prefactor  = 4.17781
  Prefactor  = 0
  Prefactor  = 2.85129
  norm       = 7.9768
  Prefactor  = 2.36888e-06
  norm       = 0
  Prefactor  = 4.996e-10
  norm       = 3.95795e-07
  norm       = 42.2658
  norm       = 0.40257
  Normalizat = 1.082
  Prefactor  = 0.97003
 **********
 **   18 **HESSE 
 **********

 FCN=   8905.174     FROM HESSE     STATUS=OK           593 CALLS     2708 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20525E-05    23.709        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .27756E-08    13.156        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.8603        5.3528        .41534E-03   -1.5660    
   4  Prefactor     8.1437        25.158        .34672E-03   -1.5651    
   5  Prefactor     .44409E-09    1.0119        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .61229E-07    37.243        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          41.034        3.4334        .15614E-03   -1.5580    
   8  Prefactor     .88874        3.3545        .46690E-03   -1.5689    
   9  norm          5.2595        2.7179        .43818E-03   -1.5662    
  10  Prefactor      .0000        1.9236        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        1.9606        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .78862        2.3176        .53177E-03   -1.5690    
  13  Prefactor      .0000        1.4640        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .79796E-01    .16071        .13443E-02   -1.5714    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.792        4.6792        .30489E-03   -1.5642    
  16  Prefactor     4.3174        9.1655        .48424E-03   -1.5666    
  17  Prefactor     4.1778        12.951        .48328E-03   -1.5667    
  18  Prefactor      .0000        3.9542        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.8513        2.9522        .60214E-03   -1.5674    
  20  norm          7.9768        5.4517        .35400E-03   -1.5651    
  21  Prefactor     .23689E-05    24.623        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm           .0000        1.7538        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .49960E-09    9.4238        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .39579E-06    2.3851        .86005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          42.266        17.646        .15416E-03   -1.5578    
  26  norm          .40257        446.09        .56742E-03   -1.5695    
  27  Normalizat    1.0820        .17922        .66323E-01   -.90332    
  28  Prefactor     .97003        .19754        .78608E-01   -.93735    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58339e-06
Minuit parameter uncertainties:
  1  0.0139518
  2  0.000380543
  3  5.35278
  4  25.1582
  5  4.26626e-05
  6  0.00302035
  7  3.43339
  8  3.35447
  9  2.71786
  10  2.85023e-06
  11  5.41063e-06
  12  2.3176
  13  1.57044e-06
  14  0.160711
  15  4.6792
  16  9.16558
  17  12.9506
  18  1.43706e-05
  19  2.95222
  20  5.45172
  21  0.0152747
  22  3.15444e-06
  23  0.000139945
  24  0.00194322
  25  17.6465
  26  26.8038
  27  0.179316
  28  0.197686
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  0.000e+00  5.411e-06  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:  9.700e-01  1.977e-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:  1.082e+00  1.793e-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: 3.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/800840/likelihoodResults_692150401_692409601_4FGL_J1221.3+3010_daily_bin1747.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): 102
logL (Free Index) = 8905.08606057
delta logL = 0.0880868448676

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8905.05173519
delta logL = 0.1224122234

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11919E-01   1.0000          .0000       .10000E+07
     2 'Index     '    3.4821       1.0000          .0000       10.000    
     3 'Normalizat'    1.0552       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98675       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=   8905.052     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      337 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11911E-01    .26425        .42118E-03** at limit **
   2  Index         3.4825        2.3026        .67391E-01    .36114E-03
   3  Normalizat    1.0551        .24211E-01    .66992E-01    .95021E-04
   4  Prefactor     .98676        .27498E-01    .77975E-01    .58852E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0119113
  Index      = 3.48246
  Normalizat = 1.05514
  Prefactor  = 0.986763
 **********
 **   18 **HESSE 
 **********

 FCN=   8905.052     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      372 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11911E-01    2.2735        .17745E-04   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.4825        6.5360        .87071E-02   -.30837    
   3  Normalizat    1.0551        .11070        .29636E-03   -.91205    
   4  Prefactor     .98676        .12467        .34507E-03   -.93172    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.0542e-06
Minuit parameter uncertainties:
  1  0.32912
  2  7.95837
  3  0.110728
  4  0.124705
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/800840': 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) = 8905.05173515
delta logL = 0.122412264453

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  1.191e-02  3.291e-01  0.000e+00  1.000e+06 ( 1.000e-13)
318        Index:  3.482e+00  7.958e+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:  9.868e-01  1.247e-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:  1.055e+00  1.107e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 185.345 30.168

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/800840/cmap_HighResolution_692150401_692409601_4FGL_J1221.3+3010_daily_bin1747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.85e-03', job_status='DONE', photon_flux_upper_limit='3.91e-08', time_completed='2022-12-11 01:06:58.020249', job_id='800840', GAL2='0.99', fit_tolerance='1e-08', EG2='1.06', EG='1.08', time_epoch_completed='1670749618.02', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.22e-01', ts2='0.26', photon_index_error='0.00', photon_index='1.71' WHERE bin_id='1747' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Dec 11 01:06:58 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 800840: <4FGL_J1221.3+3010_daily_bin1747> in cluster <slac> Done

Job <4FGL_J1221.3+3010_daily_bin1747> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Dec 11 00:50:22 2022
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Dec 11 00:50:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Dec 11 00:50:23 2022
Terminated at Sun Dec 11 01:06:59 2022
Results reported at Sun Dec 11 01:06:59 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.3+3010_daily_bin1747 185.345 30.1677 692150401 692409601 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 :                                   904.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   995 sec.
    Turnaround time :                            997 sec.

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

