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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin1749
RA = 185.378, Dec = 28.2382
tmin = 692668801, tmax = 692928001
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='950539', job_status='RUN', time_executed='2022-12-17 00:42:17.428479', time_epoch_executed='1671266537.43' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='1749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950539

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950539/ft1_4FGL_J1221.5+2814_daily_bin1749.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950539/ft2_4FGL_J1221.5+2814_daily_bin1749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950539/ft1_4FGL_J1221.5+2814_daily_bin1749.fits outfile=/scratch/kocevski/950539/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1749.fits ra=185.378 dec=28.2382 rad=12.0 tmin=692668801.0 tmax=692928001.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.72
user 3.51
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/950539/ft2_4FGL_J1221.5+2814_daily_bin1749.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/950539/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1749.fits evtable="EVENTS" outfile="/scratch/kocevski/950539/ft1_filtered_4FGL_J1221.5+2814_daily_bin1749.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.33
sys 0.15

Number of photons that the gtmktime cut: 882

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950539/ft1_filtered_4FGL_J1221.5+2814_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/950539/ft2_4FGL_J1221.5+2814_daily_bin1749.fits sctable="SC_DATA" expcube=/scratch/kocevski/950539/ltcube_692668801_692928001_4FGL_J1221.5+2814_daily_bin1749.fits outfile=/scratch/kocevski/950539/expmap_692668801_692928001_4FGL_J1221.5+2814_daily_bin1749.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/950539/ltcube_692668801_692928001_4FGL_J1221.5+2814_daily_bin1749.fits
.....................!
real 192.65
user 187.63
sys 4.61

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 197 point sources and 0 extended sources

Setting source of interest to:
4FGL J1221.5+2814 @ 185.378 28.2382

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/950539/ft1_filtered_4FGL_J1221.5+2814_daily_bin1749.fits scfile=/scratch/kocevski/950539/ft2_4FGL_J1221.5+2814_daily_bin1749.fits outfile=/scratch/kocevski/950539/cmap_692668801_692928001_4FGL_J1221.5+2814_daily_bin1749.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=185.378 yref=28.2382 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950539/ft1_filtered_4FGL_J1221.5+2814_daily_bin1749.fits scfile=/scratch/kocevski/950539/ft2_4FGL_J1221.5+2814_daily_bin1749.fits outfile=/scratch/kocevski/950539/cmap_HighResolution_692668801_692928001_4FGL_J1221.5+2814_daily_bin1749.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=185.378 yref=28.2382 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/950539/ft1_filtered_4FGL_J1221.5+2814_daily_bin1749.fits', '/scratch/kocevski/950539/ft2_4FGL_J1221.5+2814_daily_bin1749.fits', expMap='/scratch/kocevski/950539/expmap_692668801_692928001_4FGL_J1221.5+2814_daily_bin1749.fits', expCube='/scratch/kocevski/950539/ltcube_692668801_692928001_4FGL_J1221.5+2814_daily_bin1749.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/950539/Model_4FGL_J1221.5+2814_daily_bin1749.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1221.5+2814'

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  3.206e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
325        Index:  2.153e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
326        Scale:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/950539/ft1_filtered_4FGL_J1221.5+2814_daily_bin1749.fits
Spacecraft file(s): /scratch/kocevski/950539/ft2_4FGL_J1221.5+2814_daily_bin1749.fits
Exposure map: /scratch/kocevski/950539/expmap_692668801_692928001_4FGL_J1221.5+2814_daily_bin1749.fits
Exposure cube: /scratch/kocevski/950539/ltcube_692668801_692928001_4FGL_J1221.5+2814_daily_bin1749.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/950539/Model_4FGL_J1221.5+2814_daily_bin1749.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) = 9079.02238289

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12930E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .17955E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .22016E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .26429E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .84646       1.0000          .0000       .10000E+07
     6 'norm      '    38.653       1.0000          .0000       .10000E+07
     7 'Prefactor '    3.6441       1.0000          .0000       .10000E+07
     8 'Prefactor '    .47019E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .14074E-03   1.0000          .0000       .10000E+07
    10 'norm      '    7.4045       1.0000          .0000       .10000E+07
    11 'Prefactor '    .29531E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    2.5513       1.0000          .0000       .10000E+07
    13 'Prefactor '    3.4925       1.0000          .0000       .10000E+07
    14 'Prefactor '    .62503E-04   1.0000          .0000       .10000E+07
    15 'norm      '    .79629E-01   1.0000          .0000       .10000E+07
    16 'norm      '    22.014       1.0000          .0000       .10000E+07
    17 'Prefactor '    .40518E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    7.3277       1.0000          .0000       .10000E+07
    19 'Prefactor '    .81008       1.0000          .0000       .10000E+07
    20 'Prefactor '    .31217E-04   1.0000          .0000       .10000E+07
    21 'norm      '    1.4096       1.0000          .0000       .10000E+07
    22 'Prefactor '    4.6487       1.0000          .0000       .10000E+07
    23 'norm      '    .28954E-03   1.0000          .0000       .10000E+07
    24 'norm      '    29.751       1.0000          .0000       .10000E+07
    25 'norm      '    25.329       1.0000          .0000       .10000E+07
    26 'Normalizat'    1.1243       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0192       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9078.888     FROM MIGRAD    STATUS=CONVERGED    138 CALLS     1934 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .24214E-06    2.9673       -.47984E-06** at limit **
   2  Prefactor     .15155E-06    1.9283        .18406E-05** at limit **
   3  Prefactor     .50515E-08    1.4259       -.42747E-06** at limit **
   4  Prefactor     .30009E-06    5.3706        .14767E-05** at limit **
   5  Prefactor     .84683        1.2399        .90267E-08   -.11290E-02
   6  norm          38.652        3.2120       -.57255E-07   -.67561E-02
   7  Prefactor     3.6391        4.0880       -.13955E-06    .87268E-03
   8  Prefactor     .86253E-06    7.2125       -.19102E-05** at limit **
   9  Prefactor     .55511E-10    3.0026        .56897E-06** at limit **
  10  norm          7.4031        3.3733       -.95644E-07   -.35674E-02
  11  Prefactor     .12973E-06    2.1318       -.13074E-05** at limit **
  12  Prefactor     2.5506        1.8353        .29705E-06   -.41619E-02
  13  Prefactor     3.4911        1.7615       -.97690E-07    .47779E-02
  14  Prefactor     .43188E-07    2.3292       -.12248E-05** at limit **
  15  norm          .79800E-01    .18655       -.38773E-07** at limit **
  16  norm          21.943        6.0181       -.10621E-06   -.45627E-02
  17  Prefactor     .12396E-06    1.4893        .14859E-05** at limit **
  18  Prefactor     7.5159        13.518        .36574E-05   -.19936E-01
  19  Prefactor     .82861        .55482       -.95794E-07   -.23295E-02
  20  Prefactor     .27756E-09    1.9409       -.23504E-06** at limit **
  21  norm          1.4110        3.4513        .21538E-06   -.96910E-03
  22  Prefactor     4.5744        14.973       -.53958E-05    .28487E-01
  23  norm          .42738E-06    1.6070       -.55768E-07** at limit **
  24  norm          29.776        5.9681       -.10868E-06   -.50556E-01
  25  norm          25.333        3.2504       -.24840E-06    .18224E-01
  26  Normalizat    1.1244        .20768        .94496E-05   -.32628E-03
  27  Prefactor     1.0192        .22965       -.95955E-05   -.21164E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.4214e-07
  Prefactor  = 1.51545e-07
  Prefactor  = 5.05151e-09
  Prefactor  = 3.00093e-07
  Prefactor  = 0.846833
  norm       = 38.652
  Prefactor  = 3.63908
  Prefactor  = 8.62532e-07
  Prefactor  = 5.55112e-11
  norm       = 7.40312
  Prefactor  = 1.2973e-07
  Prefactor  = 2.55056
  Prefactor  = 3.49108
  Prefactor  = 4.31877e-08
  norm       = 0.0798001
  norm       = 21.9434
  Prefactor  = 1.23956e-07
  Prefactor  = 7.51587
  Prefactor  = 0.82861
  Prefactor  = 2.77556e-10
  norm       = 1.41101
  Prefactor  = 4.57442
  norm       = 4.2738e-07
  norm       = 29.776
  norm       = 25.3331
  Normalizat = 1.12436
  Prefactor  = 1.01923
 **********
 **   18 **HESSE 
 **********

 FCN=   9078.888     FROM HESSE     STATUS=OK           554 CALLS     2488 TOTAL
                     EDM=   .59E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .24214E-06    5.2320        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .15155E-06    4.2507        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .50515E-08    4.0013        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .30009E-06    7.3967        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .84683        1.2492        .49534E-03   -1.5690    
   6  norm          38.652        3.2127        .16086E-03   -1.5584    
   7  Prefactor     3.6391        4.1763        .52895E-03   -1.5670    
   8  Prefactor     .86253E-06    1.6900        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-10    3.0607        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.4031        3.3713        .36834E-03   -1.5654    
  11  Prefactor     .12973E-06    3.7462        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.5506        1.8286        .63898E-03   -1.5676    
  13  Prefactor     3.4911        1.7620        .54079E-03   -1.5671    
  14  Prefactor     .43188E-07    6.1585        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .79800E-01    .16574        .13552E-02   -1.5714    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          21.943        6.0154        .21319E-03   -1.5614    
  17  Prefactor     .12396E-06    4.1601        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.5159        22.711        .37029E-03   -1.5653    
  19  Prefactor     .82861        8.2158        .52187E-03   -1.5690    
  20  Prefactor     .27756E-09    1.9601        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.4110        3.6379        .91228E-03   -1.5684    
  22  Prefactor     4.5744        32.207        .46654E-03   -1.5665    
  23  norm          .42738E-06    1.8217        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          29.776        9.6718        .18337E-03   -1.5599    
  25  norm          25.333        15.515        .19874E-03   -1.5607    
  26  Normalizat    1.1244        .17417        .65856E-01   -.88973    
  27  Prefactor     1.0192        .19289        .77542E-01   -.92091    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.94662e-07
Minuit parameter uncertainties:
  1  0.00225112
  2  0.00160528
  3  0.00028397
  4  0.00297984
  5  1.2492
  6  3.21274
  7  4.1763
  8  0.00241468
  9  3.17243e-05
  10  3.37128
  11  0.00139415
  12  1.82859
  13  1.76203
  14  0.00103125
  15  0.165743
  16  6.01539
  17  0.00143633
  18  22.7111
  19  5.21832
  20  4.85277e-05
  21  3.63789
  22  24.2761
  23  0.00176467
  24  9.67181
  25  15.5154
  26  0.174258
  27  0.193018
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  3.491e+00  1.762e+00  0.000e+00  1.000e+06 ( 1.000e-12)
325        Index:  2.153e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
326        Scale:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  1.019e+00  1.930e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.124e+00  1.743e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.14
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 5.11e-08 +/- 2.58e-08
Energy Flux (Fixed Index): 2.51e-05 +/- 1.27e-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) = 9077.02490604
delta logL = 1.86358287824

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9077.01917673
delta logL = 1.8693121827

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7527       1.0000          .0000       .10000E+07
     2 'Index     '    1.4594       1.0000          .0000       10.000    
     3 'Normalizat'    1.1494       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0019       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9077.019     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      213 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7527        1.8896        .52095E-03   -.19903E-01
   2  Index         1.4594        .27176        .17481       -.66443E-04
   3  Normalizat    1.1494        .16828        .65285E-01   -.19525E-06
   4  Prefactor     1.0019        .19031        .78123E-01    .30086E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.75267
  Index      = 1.45937
  Normalizat = 1.14938
  Prefactor  = 1.00194
 **********
 **   18 **HESSE 
 **********

 FCN=   9077.019     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7527        2.0454        .90496E-05   -1.5669    
   2  Index         1.4594        .31810        .71446E-02   -.78684    
   3  Normalizat    1.1494        .20126        .28880E-03   -.88182    
   4  Prefactor     1.0019        .22750        .34574E-03   -.92665    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43011e-09
Minuit parameter uncertainties:
  1  2.04545
  2  0.318535
  3  0.201394
  4  0.227719
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950539': 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) = 9077.01917671
delta logL = 1.86931220248

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  3.753e+00  2.045e+00  0.000e+00  1.000e+06 ( 1.000e-12)
325        Index:  1.459e+00  3.185e-01  0.000e+00  1.000e+01 (-1.000e+00)
326        Scale:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  1.002e+00  2.277e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.149e+00  2.014e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.93
Ra Dec: 185.378 28.238
Photon Index (Free Index): 1.46 +/- 0.32
Photon Flux (Free Index): 2.53e-08 +/- 1.58e-08
Energy Flux (Free Index): 9.17e-05 +/- 7.88e-05

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/950539/cmap_HighResolution_692668801_692928001_4FGL_J1221.5+2814_daily_bin1749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.11e-08', energy_flux2='9.17e-05', photon_flux_error='2.58e-08', dlogl='1.87e+00', energy_flux='2.51e-05', photon_flux2='2.53e-08', job_status='DONE', time_completed='2022-12-17 00:55:02.863578', photon_index_error2='0.32', photon_index2='1.46', ts='16.14', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='7.88e-05', EG='1.12', time_epoch_completed='1671267302.86', return_code='0', job_id='950539', GAL2='1.00', EG2='1.15', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='1.58e-08', ts2='19.93', photon_index='2.15' WHERE bin_id='1749' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Dec 17 00:55:02 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 950539: <4FGL_J1221.5+2814_daily_bin1749> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin1749> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Dec 17 00:40:18 2022
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Dec 17 00:40:19 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Dec 17 00:40:19 2022
Terminated at Sat Dec 17 00:55:03 2022
Results reported at Sat Dec 17 00:55:03 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin1749 185.378 28.2382 692668801 692928001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1221.5+2814 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   767.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             327.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            885 sec.

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

