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 183 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_J1521.8+4338_daily_bin1765
RA = 230.464, Dec = 43.6344
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='638327', job_status='RUN', time_executed='2023-02-03 01:14:24.751816', time_epoch_executed='1675415664.75' WHERE source_name='4FGL J1521.8+4338' and cadence='daily' and bin_id='1765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/638327

Creating custom pfile directory:
/scratch/kocevski/638327/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/638327/ft1_4FGL_J1521.8+4338_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/638327/ft2_4FGL_J1521.8+4338_daily_bin1765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/638327/ft1_4FGL_J1521.8+4338_daily_bin1765.fits outfile=/scratch/kocevski/638327/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin1765.fits ra=230.464 dec=43.6344 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.67
user 3.42
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/638327/ft2_4FGL_J1521.8+4338_daily_bin1765.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/638327/ft2_4FGL_J1521.8+4338_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/638327/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin1765.fits evtable="EVENTS" outfile="/scratch/kocevski/638327/ft1_filtered_4FGL_J1521.8+4338_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.50
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 599

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/638327/ft1_filtered_4FGL_J1521.8+4338_daily_bin1765.fits" evtable="EVENTS" scfile=/scratch/kocevski/638327/ft2_4FGL_J1521.8+4338_daily_bin1765.fits sctable="SC_DATA" outfile=/scratch/kocevski/638327/ltcube_696816001_697075201_4FGL_J1521.8+4338_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/638327/ft2_4FGL_J1521.8+4338_daily_bin1765.fits
.....................!
real 15.55
user 15.05
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/638327/ft1_filtered_4FGL_J1521.8+4338_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/638327/ft2_4FGL_J1521.8+4338_daily_bin1765.fits sctable="SC_DATA" expcube=/scratch/kocevski/638327/ltcube_696816001_697075201_4FGL_J1521.8+4338_daily_bin1765.fits outfile=/scratch/kocevski/638327/expmap_696816001_697075201_4FGL_J1521.8+4338_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/638327/ltcube_696816001_697075201_4FGL_J1521.8+4338_daily_bin1765.fits
.....................!
real 193.57
user 186.41
sys 5.60

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 196 point sources and 0 extended sources

Setting source of interest to:
4FGL J1521.8+4338 @ 230.464 43.6344

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/638327/ft1_filtered_4FGL_J1521.8+4338_daily_bin1765.fits scfile=/scratch/kocevski/638327/ft2_4FGL_J1521.8+4338_daily_bin1765.fits outfile=/scratch/kocevski/638327/cmap_696816001_697075201_4FGL_J1521.8+4338_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=230.464 yref=43.6344 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.37
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/638327/ft1_filtered_4FGL_J1521.8+4338_daily_bin1765.fits scfile=/scratch/kocevski/638327/ft2_4FGL_J1521.8+4338_daily_bin1765.fits outfile=/scratch/kocevski/638327/cmap_HighResolution_696816001_697075201_4FGL_J1521.8+4338_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=230.464 yref=43.6344 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.38
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/638327/ft1_filtered_4FGL_J1521.8+4338_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/638327/ft2_4FGL_J1521.8+4338_daily_bin1765.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/638327/Model_4FGL_J1521.8+4338_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/638327/ft1_filtered_4FGL_J1521.8+4338_daily_bin1765.fits.....................!
real 50.90
user 49.17
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/638327/ft1_filtered_4FGL_J1521.8+4338_daily_bin1765.fits', '/scratch/kocevski/638327/ft2_4FGL_J1521.8+4338_daily_bin1765.fits', expMap='/scratch/kocevski/638327/expmap_696816001_697075201_4FGL_J1521.8+4338_daily_bin1765.fits', expCube='/scratch/kocevski/638327/ltcube_696816001_697075201_4FGL_J1521.8+4338_daily_bin1765.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/638327/Model_4FGL_J1521.8+4338_daily_bin1765.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1521.8+4338'

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  3.344e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
311        Index:  2.936e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
312        Scale:  4.193e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/638327/ft1_filtered_4FGL_J1521.8+4338_daily_bin1765.fits
Spacecraft file(s): /scratch/kocevski/638327/ft2_4FGL_J1521.8+4338_daily_bin1765.fits
Exposure map: /scratch/kocevski/638327/expmap_696816001_697075201_4FGL_J1521.8+4338_daily_bin1765.fits
Exposure cube: /scratch/kocevski/638327/ltcube_696816001_697075201_4FGL_J1521.8+4338_daily_bin1765.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/638327/Model_4FGL_J1521.8+4338_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) = 6528.31658326

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3679       1.0000          .0000       .10000E+07
     2 'Prefactor '    .24454E-02   1.0000          .0000       .10000E+07
     3 'norm      '    5.7281       1.0000          .0000       .10000E+07
     4 'Prefactor '    .14133E-04   1.0000          .0000       .10000E+07
     5 'norm      '    .14739E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    44.605       1.0000          .0000       .10000E+07
     7 'norm      '    2.7193       1.0000          .0000       .10000E+07
     8 'Prefactor '    .29973E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .13611E-06   1.0000          .0000       .10000E+07
    10 'norm      '    .39579E-07   1.0000          .0000       .10000E+07
    11 'norm      '    3.6604       1.0000          .0000       .10000E+07
    12 'Prefactor '    .26902E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    8.3620       1.0000          .0000       .10000E+07
    14 'Prefactor '    28.236       1.0000          .0000       .10000E+07
    15 'Prefactor '    .12648E-02   1.0000          .0000       .10000E+07
    16 'norm      '    .38858E-09   1.0000          .0000       .10000E+07
    17 'norm      '    .40806E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .17698E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    24.811       1.0000          .0000       .10000E+07
    20 'Prefactor '    2.5924       1.0000          .0000       .10000E+07
    21 'Prefactor '    .30954E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    1.0725       1.0000          .0000       .10000E+07
    23 'Normalizat'    .73682       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1738       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6528.272     FROM MIGRAD    STATUS=CONVERGED    174 CALLS     2011 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3522        4.6561       -.33296E-06    .13989E-02
   2  Prefactor     .94369E-09    21.443        .15767E-05** at limit **
   3  norm          5.7047        5.9201        .69029E-08    .60260E-03
   4  Prefactor     .12768E-08    7.5285       -.33179E-06** at limit **
   5  norm           .0000        5.3115       -.49560E-06** at limit **
   6  Prefactor     44.515        16.979       -.51850E-06   -.52322E-01
   7  norm          2.7199        1.4914        .47582E-07   -.37985E-03
   8  Prefactor     .10173E-04    69.628       -.11102E-06** at limit **
   9  Prefactor      .0000        1.5248       -.15843E-06** at limit **
  10  norm           .0000        .78055        .26935E-06** at limit **
  11  norm          3.6592        2.9101       -.23678E-06   -.80411E-03
  12  Prefactor      .0000        7.4766       -.67928E-07** at limit **
  13  Prefactor     10.403        25.702       -.80461E-06    .20522E-01
  14  Prefactor     28.341        6.5881       -.27032E-06    .45710E-01
  15  Prefactor     .26090E-08    16.256        .14516E-05** at limit **
  16  norm           .0000        .36063       -.18308E-06** at limit **
  17  norm           .0000        4.1699       -.85086E-07** at limit **
  18  Prefactor     .72164E-09    9.0707       -.70053E-07** at limit **
  19  Prefactor     23.787        25.488        .28637E-06    .95989E-01
  20  Prefactor     2.5980        3.5432       -.15842E-06   -.13746E-02
  21  Prefactor     .75978E-05    63.374        .15132E-05** at limit **
  22  Prefactor     1.1038        3.8291       -.79408E-07    .27858E-03
  23  Normalizat    .73634        .19206        .14436E-04   -.82415E-04
  24  Prefactor     1.1739        .20507       -.15084E-04   -.87213E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.35224
  Prefactor  = 9.4369e-10
  norm       = 5.70474
  Prefactor  = 1.27676e-09
  norm       = 0
  Prefactor  = 44.5154
  norm       = 2.71986
  Prefactor  = 1.01734e-05
  Prefactor  = 0
  norm       = 0
  norm       = 3.65922
  Prefactor  = 0
  Prefactor  = 10.4034
  Prefactor  = 28.3409
  Prefactor  = 2.60902e-09
  norm       = 0
  norm       = 0
  Prefactor  = 7.21645e-10
  Prefactor  = 23.7869
  Prefactor  = 2.59803
  Prefactor  = 7.59776e-06
  Prefactor  = 1.1038
  Normalizat = 0.736335
  Prefactor  = 1.17389
 **********
 **   18 **HESSE 
 **********

 FCN=   6528.272     FROM HESSE     STATUS=OK           451 CALLS     2462 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3522        22.686        .55115E-03   -1.5671    
   2  Prefactor     .94369E-09    22.996        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.7047        5.9339        .41944E-03   -1.5660    
   4  Prefactor     .12768E-08    7.5288        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        5.3193        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     44.515        17.828        .14974E-03   -1.5575    
   7  norm          2.7199        1.4954        .61733E-03   -1.5675    
   8  Prefactor     .10173E-04    7.1106        .58310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        1.5278        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        .77579        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.6592        2.9414        .52772E-03   -1.5670    
  12  Prefactor      .0000        7.4730        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.403        58.748        .34644E-03   -1.5643    
  14  Prefactor     28.341        21.553        .18822E-03   -1.5601    
  15  Prefactor     .26090E-08    16.436        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        .36033        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        4.1712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .72164E-09    9.0861        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     23.787        54.975        .20080E-03   -1.5610    
  20  Prefactor     2.5980        3.5420        .63347E-03   -1.5676    
  21  Prefactor     .75978E-05    96.169        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.1038        3.8401        .11704E-02   -1.5687    
  23  Normalizat    .73634        .16389        .42780E-01   -1.0248    
  24  Prefactor     1.1739        .17037        .50749E-01   -.87139    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46546e-06
Minuit parameter uncertainties:
  1  17.4414
  2  0.000294846
  3  5.93389
  4  0.00019497
  5  2.03591e-05
  6  17.8276
  7  1.49538
  8  0.0170105
  9  4.25575e-06
  10  8.82063e-07
  11  2.94144
  12  2.08917e-05
  13  49.4447
  14  21.5531
  15  0.000415065
  16  5.0807e-07
  17  1.67762e-05
  18  0.000160662
  19  54.9763
  20  3.54201
  21  0.0540627
  22  3.84013
  23  0.163996
  24  0.170445
Done.

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

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  2.609e-09  4.151e-04  0.000e+00  1.000e+06 ( 1.000e-12)
311        Index:  2.936e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
312        Scale:  4.193e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
626    Prefactor:  1.174e+00  1.704e-01  0.000e+00  1.000e+01 ( 1.000e+00)
627        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
628        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
625   Normalization:  7.363e-01  1.640e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 230.464 43.634
Photon Flux Upper Limit: 8.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/638327/likelihoodResults_696816001_697075201_4FGL_J1521.8+4338_daily_bin1765.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) = 6528.27105099
delta logL = 0.000822560464258

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6528.14222414
delta logL = 0.12964940859

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6528.142     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      305 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12192        2.9184        .12355E-02** at limit **
   2  Index         6.3168        7.4960        .27441        .81199E-04
   3  Normalizat    .70869        .19934E-01    .42411E-01    .26155E-04
   4  Prefactor     1.1936        .21868E-01    .50380E-01    .32810E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.121921
  Index      = 6.31681
  Normalizat = 0.708688
  Prefactor  = 1.19362
 **********
 **   18 **HESSE 
 **********

 FCN=   6528.142     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      340 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12192        23.546        .51943E-04   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.3168        6.3476        .16606E-01    .26651    
   3  Normalizat    .70869        .10228        .25821E-03   -1.0355    
   4  Prefactor     1.1936        .11020        .22273E-03   -.86528    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.69411e-10
Minuit parameter uncertainties:
  1  3.38865
  2  20.931
  3  0.102309
  4  0.110225
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/638327': 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) = 6528.14221052
delta logL = 0.129663035023

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  1.219e-01  3.389e+00  0.000e+00  1.000e+06 ( 1.000e-12)
311        Index:  6.317e+00  2.093e+01  0.000e+00  1.000e+01 (-1.000e+00)
312        Scale:  4.193e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
626    Prefactor:  1.194e+00  1.102e-01  0.000e+00  1.000e+01 ( 1.000e+00)
627        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
628        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
625   Normalization:  7.087e-01  1.023e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 230.464 43.634

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/638327/cmap_HighResolution_696816001_697075201_4FGL_J1521.8+4338_daily_bin1765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.49e-03', job_status='DONE', photon_flux_upper_limit='8.14e-08', time_completed='2023-02-03 01:25:41.050967', job_id='638327', GAL2='1.19', fit_tolerance='1e-08', EG2='0.71', EG='0.74', time_epoch_completed='1675416341.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='1.30e-01', ts2='0.28', photon_index_error='0.00', photon_index='2.94' WHERE bin_id='1765' AND source_name='4FGL J1521.8+4338' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb  3 01:25:41 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 638327: <4FGL_J1521.8+4338_daily_bin1765> in cluster <slac> Done

Job <4FGL_J1521.8+4338_daily_bin1765> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Feb  3 01:10:20 2023
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb  3 01:11:11 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb  3 01:11:11 2023
Terminated at Fri Feb  3 01:25:41 2023
Results reported at Fri Feb  3 01:25:41 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1521.8+4338_daily_bin1765 230.464 43.6344 696816001 697075201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1521.8+4338 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   675.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             253.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            921 sec.

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

