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


Performing analysis on: 4FGL_J1221.3+3010_daily_bin1767
RA = 185.345, Dec = 30.1677
tmin = 697334401, tmax = 697593601
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='75639', job_status='RUN', time_executed='2023-02-09 01:05:59.161755', time_epoch_executed='1675933559.16' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='1767'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75639

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75639/ft1_4FGL_J1221.3+3010_daily_bin1767.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75639/ft2_4FGL_J1221.3+3010_daily_bin1767.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75639/ft1_4FGL_J1221.3+3010_daily_bin1767.fits outfile=/scratch/kocevski/75639/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin1767.fits ra=185.345 dec=30.1677 rad=12.0 tmin=697334401.0 tmax=697593601.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.39
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/75639/ft2_4FGL_J1221.3+3010_daily_bin1767.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/75639/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin1767.fits evtable="EVENTS" outfile="/scratch/kocevski/75639/ft1_filtered_4FGL_J1221.3+3010_daily_bin1767.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.36
sys 0.15

Number of photons that the gtmktime cut: 857

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75639/ft1_filtered_4FGL_J1221.3+3010_daily_bin1767.fits" evtable="EVENTS" scfile=/scratch/kocevski/75639/ft2_4FGL_J1221.3+3010_daily_bin1767.fits sctable="SC_DATA" outfile=/scratch/kocevski/75639/ltcube_697334401_697593601_4FGL_J1221.3+3010_daily_bin1767.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/75639/ft2_4FGL_J1221.3+3010_daily_bin1767.fits
.....................!
real 16.88
user 16.40
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75639/ft1_filtered_4FGL_J1221.3+3010_daily_bin1767.fits evtable="EVENTS" scfile=/scratch/kocevski/75639/ft2_4FGL_J1221.3+3010_daily_bin1767.fits sctable="SC_DATA" expcube=/scratch/kocevski/75639/ltcube_697334401_697593601_4FGL_J1221.3+3010_daily_bin1767.fits outfile=/scratch/kocevski/75639/expmap_697334401_697593601_4FGL_J1221.3+3010_daily_bin1767.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/75639/ltcube_697334401_697593601_4FGL_J1221.3+3010_daily_bin1767.fits
.....................!
real 193.50
user 187.65
sys 5.04

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/75639/ft1_filtered_4FGL_J1221.3+3010_daily_bin1767.fits scfile=/scratch/kocevski/75639/ft2_4FGL_J1221.3+3010_daily_bin1767.fits outfile=/scratch/kocevski/75639/cmap_697334401_697593601_4FGL_J1221.3+3010_daily_bin1767.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.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75639/ft1_filtered_4FGL_J1221.3+3010_daily_bin1767.fits scfile=/scratch/kocevski/75639/ft2_4FGL_J1221.3+3010_daily_bin1767.fits outfile=/scratch/kocevski/75639/cmap_HighResolution_697334401_697593601_4FGL_J1221.3+3010_daily_bin1767.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.58
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26059E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .28683E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    .82712E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    59.463       1.0000          .0000       .10000E+07
     5 'Prefactor '    3.0818       1.0000          .0000       .10000E+07
     6 'Prefactor '    .39414E-02   1.0000          .0000       .10000E+07
     7 'norm      '    54.572       1.0000          .0000       .10000E+07
     8 'Prefactor '    .16195E-04   1.0000          .0000       .10000E+07
     9 'norm      '    12.176       1.0000          .0000       .10000E+07
    10 'Prefactor '    2.5339       1.0000          .0000       .10000E+07
    11 'Prefactor '    2.1852       1.0000          .0000       .10000E+07
    12 'Prefactor '    .14910E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    9.8944       1.0000          .0000       .10000E+07
    14 'norm      '    .41280       1.0000          .0000       .10000E+07
    15 'norm      '    2.9679       1.0000          .0000       .10000E+07
    16 'Prefactor '    11.883       1.0000          .0000       .10000E+07
    17 'Prefactor '    24.126       1.0000          .0000       .10000E+07
    18 'Prefactor '    1.0179       1.0000          .0000       .10000E+07
    19 'Prefactor '    .15810E-04   1.0000          .0000       .10000E+07
    20 'norm      '    3.5380       1.0000          .0000       .10000E+07
    21 'Prefactor '    .44747E-03   1.0000          .0000       .10000E+07
    22 'norm      '    .26472E-04   1.0000          .0000       .10000E+07
    23 'Prefactor '    .71646E-02   1.0000          .0000       .10000E+07
    24 'norm      '    2.2356       1.0000          .0000       .10000E+07
    25 'norm      '    24.784       1.0000          .0000       .10000E+07
    26 'norm      '    33.190       1.0000          .0000       .10000E+07
    27 'Normalizat'    .89497       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .94882       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=   8690.363     FROM MIGRAD    STATUS=CONVERGED    167 CALLS     2495 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .25058E-06    8.4788       -.26491E-06** at limit **
   2  Prefactor     .16653E-09    4.2380        .16257E-06** at limit **
   3  Prefactor      .0000        1.3090       -.63443E-07** at limit **
   4  Prefactor     60.196        30.818        .22049E-07   -.10049E-01
   5  Prefactor     3.0684        2.1342       -.55230E-07   -.86877E-03
   6  Prefactor     .16953E-06    10.366       -.30107E-06** at limit **
   7  norm          54.582        3.9631        .22360E-08    .44274E-02
   8  Prefactor      .0000        2.6721       -.26056E-07** at limit **
   9  norm          12.141        4.2701        .74130E-09   -.14761E-02
  10  Prefactor     2.5375        7.4715        .15301E-06    .14651E-01
  11  Prefactor     2.1905        1.9784        .37789E-07    .46682E-03
  12  Prefactor      .0000        .82903        .28152E-07** at limit **
  13  Prefactor     9.8904        6.3598       -.24226E-07   -.12985E-01
  14  norm          .41340        .25989       -.71574E-08   -.75158E-03
  15  norm          2.9411        3.8840        .82179E-07    .16841E-02
  16  Prefactor     11.897        3.9257       -.47531E-07    .74018E-01
  17  Prefactor     24.313        2.1670        .45437E-08    .17170E-01
  18  Prefactor     1.0503        14.059        .35972E-06    .35534E-03
  19  Prefactor      .0000        1.7229       -.74388E-07** at limit **
  20  norm          3.5393        3.1367       -.13779E-06   -.28963E-02
  21  Prefactor      .0000        8.5440        .40912E-07** at limit **
  22  norm           .0000        1.3645       -.61107E-07** at limit **
  23  Prefactor     .27756E-09    12.453       -.18347E-06** at limit **
  24  norm          2.2179        3.4526        .64360E-08   -.41261E-03
  25  norm          24.785        1.8258        .86825E-10    .52546E-01
  26  norm          33.205        1.6172        .61244E-09    .15725E-01
  27  Normalizat    .89404        .20974       -.46752E-06    .17855E-04
  28  Prefactor     .94920        .23554        .10973E-05    .22226E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.50577e-07
  Prefactor  = 1.66533e-10
  Prefactor  = 0
  Prefactor  = 60.1959
  Prefactor  = 3.06844
  Prefactor  = 1.69531e-07
  norm       = 54.5824
  Prefactor  = 0
  norm       = 12.1415
  Prefactor  = 2.53752
  Prefactor  = 2.19052
  Prefactor  = 0
  Prefactor  = 9.89036
  norm       = 0.413396
  norm       = 2.94108
  Prefactor  = 11.8975
  Prefactor  = 24.3126
  Prefactor  = 1.05032
  Prefactor  = 0
  norm       = 3.53934
  Prefactor  = 0
  norm       = 0
  Prefactor  = 2.77556e-10
  norm       = 2.21787
  norm       = 24.7846
  norm       = 33.205
  Normalizat = 0.894042
  Prefactor  = 0.9492
 **********
 **   18 **HESSE 
 **********

 FCN=   8690.363     FROM HESSE     STATUS=OK           583 CALLS     3078 TOTAL
                     EDM=   .97E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .25058E-06    19.209        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .16653E-09    4.2366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        1.3081        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     60.196        31.043        .12969E-03   -1.5553    
   5  Prefactor     3.0684        2.1455        .57750E-03   -1.5673    
   6  Prefactor     .16953E-06    18.333        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          54.582        3.9725        .13538E-03   -1.5560    
   8  Prefactor      .0000        2.6615        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          12.141        4.2896        .28683E-03   -1.5638    
  10  Prefactor     2.5375        8.1133        .64135E-03   -1.5676    
  11  Prefactor     2.1905        1.9758        .69604E-03   -1.5678    
  12  Prefactor      .0000        .82716        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.8904        6.6107        .31832E-03   -1.5645    
  14  norm          .41340        .27097        .80195E-03   -1.5695    
  15  norm          2.9411        3.9073        .58915E-03   -1.5674    
  16  Prefactor     11.897        9.3889        .29035E-03   -1.5639    
  17  Prefactor     24.313        21.818        .20364E-03   -1.5609    
  18  Prefactor     1.0503        13.743        .12866E-02   -1.5687    
  19  Prefactor      .0000        1.7262        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.5393        3.1711        .53715E-03   -1.5670    
  21  Prefactor      .0000        8.5445        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm           .0000        1.3618        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .27756E-09    12.450        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.2179        3.4813        .68720E-03   -1.5678    
  25  norm          24.785        10.303        .20091E-03   -1.5608    
  26  norm          33.205        19.313        .17360E-03   -1.5593    
  27  Normalizat    .89404        .17824        .71490E-01   -.96670    
  28  Prefactor     .94920        .19806        .79744E-01   -.94443    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.7421e-08
Minuit parameter uncertainties:
  1  0.00438774
  2  5.57836e-05
  3  2.58696e-07
  4  31.043
  5  2.14546
  6  0.00352579
  7  3.97252
  8  3.01117e-06
  9  4.28957
  10  8.11332
  11  1.9758
  12  1.02386e-06
  13  6.61071
  14  0.270967
  15  3.9073
  16  9.38888
  17  21.8182
  18  7.59868
  19  1.24601e-05
  20  3.17113
  21  9.13035e-06
  22  1.54136e-06
  23  0.000116174
  24  3.48132
  25  10.3034
  26  19.3135
  27  0.178353
  28  0.198214
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  2.191e+00  1.976e+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:  9.492e-01  1.982e-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:  8.940e-01  1.784e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.46
Ra Dec: 185.345 30.168
Photon Index (Fixed Index): 1.71 +/- 0.00
Photon Flux (Fixed Index): 2.04e-08 +/- 1.84e-08
Energy Flux (Fixed Index): 3.26e-05 +/- 2.94e-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) = 8689.53100966
delta logL = 0.831870554894

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8689.48178028
delta logL = 0.881099940218

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3815       1.0000          .0000       .10000E+07
     2 'Index     '    .77869       1.0000          .0000       10.000    
     3 'Normalizat'    .89893       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95278       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=   8689.482     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      214 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3775        1.3934        .92554E-03   -.65284E-02
   2  Index         .77764        .55744        .39767       -.45912E-05
   3  Normalizat    .89896        .16976        .71373E-01    .23180E-04
   4  Prefactor     .95271        .19549        .79714E-01    .17834E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.37746
  Index      = 0.77764
  Normalizat = 0.89896
  Prefactor  = 0.952714
 **********
 **   18 **HESSE 
 **********

 FCN=   8689.482     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .48E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3775        2.1728        .10302E-04   -1.5684    
   2  Index         .77764        .81491        .18130E-01   -1.0056    
   3  Normalizat    .89896        .20285        .31581E-03   -.96497    
   4  Prefactor     .95271        .23385        .35281E-03   -.94323    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.75732e-12
Minuit parameter uncertainties:
  1  2.17275
  2  0.828036
  3  0.203018
  4  0.234098
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75639': 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) = 8689.4817786
delta logL = 0.881101616162

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  1.377e+00  2.173e+00  0.000e+00  1.000e+06 ( 1.000e-13)
318        Index:  7.776e-01  8.280e-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:  9.527e-01  2.341e-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:  8.990e-01  2.030e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.22
Ra Dec: 185.345 30.168
Photon Index (Free Index): 0.78 +/- 0.83
Photon Flux (Free Index): 4.36e-09 +/- 5.59e-09
Energy Flux (Free Index): 1.01e-04 +/- 1.20e-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/75639/cmap_HighResolution_697334401_697593601_4FGL_J1221.3+3010_daily_bin1767.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.04e-08', energy_flux2='1.01e-04', photon_flux_error='1.84e-08', dlogl='8.81e-01', energy_flux='3.26e-05', photon_flux2='4.36e-09', job_status='DONE', time_completed='2023-02-09 01:20:12.163545', photon_index_error2='0.83', photon_index2='0.78', ts='14.46', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='1.20e-04', EG='0.89', time_epoch_completed='1675934412.16', return_code='0', job_id='75639', GAL2='0.95', EG2='0.90', return_code2='0', energy_flux_error='2.94e-05', photon_flux_error2='5.59e-09', ts2='16.22', photon_index='1.71' WHERE bin_id='1767' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Feb  9 01:20:12 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 75639: <4FGL_J1221.3+3010_daily_bin1767> in cluster <slac> Done

Job <4FGL_J1221.3+3010_daily_bin1767> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Feb  9 01:05:19 2023
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Feb  9 01:05:34 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Feb  9 01:05:34 2023
Terminated at Thu Feb  9 01:20:13 2023
Results reported at Thu Feb  9 01:20:13 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.3+3010_daily_bin1767 185.345 30.1677 697334401 697593601 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 :                                   854.31 sec.
    Max Memory :                                 1041 MB
    Average Memory :                             316.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            894 sec.

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

