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


Performing analysis on: 4FGL_J1521.8+4338_daily_bin1748
RA = 230.464, Dec = 43.6344
tmin = 692409601, tmax = 692668801
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='889503', job_status='RUN', time_executed='2022-12-14 00:51:15.854154', time_epoch_executed='1671007875.85' WHERE source_name='4FGL J1521.8+4338' and cadence='daily' and bin_id='1748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/889503

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/889503/ft1_4FGL_J1521.8+4338_daily_bin1748.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/889503/ft2_4FGL_J1521.8+4338_daily_bin1748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/889503/ft1_4FGL_J1521.8+4338_daily_bin1748.fits outfile=/scratch/kocevski/889503/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin1748.fits ra=230.464 dec=43.6344 rad=12.0 tmin=692409601.0 tmax=692668801.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.59
user 3.32
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/889503/ft2_4FGL_J1521.8+4338_daily_bin1748.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/889503/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin1748.fits evtable="EVENTS" outfile="/scratch/kocevski/889503/ft1_filtered_4FGL_J1521.8+4338_daily_bin1748.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.34
sys 0.15

Number of photons that the gtmktime cut: 596

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/889503/ft1_filtered_4FGL_J1521.8+4338_daily_bin1748.fits" evtable="EVENTS" scfile=/scratch/kocevski/889503/ft2_4FGL_J1521.8+4338_daily_bin1748.fits sctable="SC_DATA" outfile=/scratch/kocevski/889503/ltcube_692409601_692668801_4FGL_J1521.8+4338_daily_bin1748.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/889503/ft2_4FGL_J1521.8+4338_daily_bin1748.fits
.....................!
real 12.57
user 12.18
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/889503/ft1_filtered_4FGL_J1521.8+4338_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/889503/ft2_4FGL_J1521.8+4338_daily_bin1748.fits sctable="SC_DATA" expcube=/scratch/kocevski/889503/ltcube_692409601_692668801_4FGL_J1521.8+4338_daily_bin1748.fits outfile=/scratch/kocevski/889503/expmap_692409601_692668801_4FGL_J1521.8+4338_daily_bin1748.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/889503/ltcube_692409601_692668801_4FGL_J1521.8+4338_daily_bin1748.fits
.....................!
real 193.57
user 187.27
sys 5.81

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/889503/ft1_filtered_4FGL_J1521.8+4338_daily_bin1748.fits scfile=/scratch/kocevski/889503/ft2_4FGL_J1521.8+4338_daily_bin1748.fits outfile=/scratch/kocevski/889503/cmap_692409601_692668801_4FGL_J1521.8+4338_daily_bin1748.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/889503/ft1_filtered_4FGL_J1521.8+4338_daily_bin1748.fits scfile=/scratch/kocevski/889503/ft2_4FGL_J1521.8+4338_daily_bin1748.fits outfile=/scratch/kocevski/889503/cmap_HighResolution_692409601_692668801_4FGL_J1521.8+4338_daily_bin1748.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.55
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/889503/ft1_filtered_4FGL_J1521.8+4338_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/889503/ft2_4FGL_J1521.8+4338_daily_bin1748.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/889503/Model_4FGL_J1521.8+4338_daily_bin1748.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/889503/ft1_filtered_4FGL_J1521.8+4338_daily_bin1748.fits.....................!
real 50.54
user 49.16
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/889503/ft1_filtered_4FGL_J1521.8+4338_daily_bin1748.fits', '/scratch/kocevski/889503/ft2_4FGL_J1521.8+4338_daily_bin1748.fits', expMap='/scratch/kocevski/889503/expmap_692409601_692668801_4FGL_J1521.8+4338_daily_bin1748.fits', expCube='/scratch/kocevski/889503/ltcube_692409601_692668801_4FGL_J1521.8+4338_daily_bin1748.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/889503/Model_4FGL_J1521.8+4338_daily_bin1748.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/889503/ft1_filtered_4FGL_J1521.8+4338_daily_bin1748.fits
Spacecraft file(s): /scratch/kocevski/889503/ft2_4FGL_J1521.8+4338_daily_bin1748.fits
Exposure map: /scratch/kocevski/889503/expmap_692409601_692668801_4FGL_J1521.8+4338_daily_bin1748.fits
Exposure cube: /scratch/kocevski/889503/ltcube_692409601_692668801_4FGL_J1521.8+4338_daily_bin1748.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/889503/Model_4FGL_J1521.8+4338_daily_bin1748.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) = 6551.630336

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.282       1.0000          .0000       .10000E+07
     2 'Prefactor '    68.154       1.0000          .0000       .10000E+07
     3 'norm      '    .17452E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    8.3263       1.0000          .0000       .10000E+07
     5 'norm      '    .11888E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    3.6773       1.0000          .0000       .10000E+07
     7 'norm      '    1.6957       1.0000          .0000       .10000E+07
     8 'Prefactor '    3.4811       1.0000          .0000       .10000E+07
     9 'Prefactor '    .17596E-02   1.0000          .0000       .10000E+07
    10 'norm      '    5.7083       1.0000          .0000       .10000E+07
    11 'norm      '    5.3551       1.0000          .0000       .10000E+07
    12 'Prefactor '    .84899E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .28583E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .25852E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .78969E-04   1.0000          .0000       .10000E+07
    16 'norm      '    1.8163       1.0000          .0000       .10000E+07
    17 'norm      '    .28307E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .79258E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .21949E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    .65877E-05   1.0000          .0000       .10000E+07
    21 'Prefactor '    .46002E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    1.8489       1.0000          .0000       .10000E+07
    23 'Normalizat'    .90465       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .84419       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=   6551.617     FROM MIGRAD    STATUS=CONVERGED    144 CALLS     1989 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.315        3.2131       -.11869E-06   -.76595E-02
   2  Prefactor     68.127        4.7367       -.28542E-06    .86198E-01
   3  norm          .55511E-10    3.6996       -.11657E-06** at limit **
   4  Prefactor     8.2693        4.6741        .11283E-05   -.30104E-01
   5  norm          .27756E-09    2.4763       -.20621E-06** at limit **
   6  Prefactor     3.6940        2.3528        .61664E-06    .98170E-02
   7  norm          1.6962        1.1041       -.59303E-07   -.10714E-01
   8  Prefactor     3.6296        5.5334       -.20073E-06   -.49926E-02
   9  Prefactor     .17208E-08    7.0369        .64240E-06** at limit **
  10  norm          5.6928        1.9093       -.51966E-07   -.99179E-02
  11  norm          5.3574        3.3368        .13502E-07    .33459E-02
  12  Prefactor     .33307E-09    3.8645       -.18385E-06** at limit **
  13  Prefactor     .23909E-06    20.172        .16897E-05** at limit **
  14  Prefactor     .84377E-08    5.3987        .24166E-05** at limit **
  15  Prefactor     .48722E-06    8.6050        .83193E-06** at limit **
  16  norm          1.8180        1.5332        .80608E-08   -.51604E-02
  17  norm          .27756E-09    2.7092       -.26253E-06** at limit **
  18  Prefactor     .72164E-09    33.701       -.29279E-05** at limit **
  19  Prefactor     .49960E-09    18.623       -.63386E-06** at limit **
  20  Prefactor     .33307E-09    1.9722        .22147E-06** at limit **
  21  Prefactor     .93259E-08    5.3295       -.24129E-05** at limit **
  22  Prefactor     1.8516        2.6969        .95018E-07    .42873E-02
  23  Normalizat    .90444        .17824        .46576E-05    .26875E-03
  24  Prefactor     .84425        .18762       -.60673E-05    .24979E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.3151
  Prefactor  = 68.1273
  norm       = 5.55112e-11
  Prefactor  = 8.26926
  norm       = 2.77556e-10
  Prefactor  = 3.69402
  norm       = 1.69616
  Prefactor  = 3.62961
  Prefactor  = 1.72085e-09
  norm       = 5.69285
  norm       = 5.35744
  Prefactor  = 3.33067e-10
  Prefactor  = 2.39087e-07
  Prefactor  = 8.43769e-09
  Prefactor  = 4.87221e-07
  norm       = 1.81803
  norm       = 2.77556e-10
  Prefactor  = 7.21645e-10
  Prefactor  = 4.996e-10
  Prefactor  = 3.33067e-10
  Prefactor  = 9.32587e-09
  Prefactor  = 1.85159
  Normalizat = 0.904437
  Prefactor  = 0.844253
 **********
 **   18 **HESSE 
 **********

 FCN=   6551.617     FROM HESSE     STATUS=OK           441 CALLS     2430 TOTAL
                     EDM=   .76E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.315        25.511        .22781E-03   -1.5620    
   2  Prefactor     68.127        68.064        .12114E-03   -1.5543    
   3  norm          .55511E-10    3.7047        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.2693        16.644        .34719E-03   -1.5650    
   5  norm          .27756E-09    2.4772        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.6940        9.3722        .52646E-03   -1.5670    
   7  norm          1.6962        1.1036        .80776E-03   -1.5682    
   8  Prefactor     3.6296        5.5692        .54171E-03   -1.5670    
   9  Prefactor     .17208E-08    7.0187        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.6928        1.9132        .42018E-03   -1.5660    
  11  norm          5.3574        3.3461        .43405E-03   -1.5662    
  12  Prefactor     .33307E-09    3.9394        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .23909E-06    26.451        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .84377E-08    5.6322        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .48722E-06    31.315        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.8180        1.5472        .77469E-03   -1.5681    
  17  norm          .27756E-09    2.7116        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .72164E-09    35.265        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .49960E-09    18.698        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .33307E-09    1.9729        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .93259E-08    5.7097        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.8516        2.7192        .76652E-03   -1.5681    
  23  Normalizat    .90444        .15293        .44961E-01   -.96304    
  24  Prefactor     .84425        .15823        .44290E-01   -.98117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.55968e-07
Minuit parameter uncertainties:
  1  25.5111
  2  68.065
  3  2.44144e-05
  4  16.6438
  5  5.27771e-05
  6  9.37227
  7  1.1036
  8  5.56922
  9  0.000218844
  10  1.9132
  11  3.34611
  12  7.14308e-05
  13  0.00502975
  14  0.000436356
  15  0.00781206
  16  1.54721
  17  5.48622e-05
  18  0.00032174
  19  0.000190842
  20  4.97868e-05
  21  0.00046207
  22  2.71925
  23  0.153003
  24  0.158318
Done.

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

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  4.872e-07  7.812e-03  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:  8.443e-01  1.583e-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:  9.044e-01  1.530e-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: 7.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/889503/likelihoodResults_692409601_692668801_4FGL_J1521.8+4338_daily_bin1748.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): 0
logL (Free Index) = 6551.63718994
delta logL = -0.0199871455825

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6551.61720327
delta logL = -4.79542904941e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31029E-04   1.0000          .0000       .10000E+07
     2 'Index     '    3.3454       1.0000          .0000       10.000    
     3 'Normalizat'    .90435       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84433       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=   6551.617     FROM MIGRAD    STATUS=CONVERGED     72 CALLS      236 TOTAL
                     EDM=   .40E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16653E-09    1.9869        .42118E-03** at limit **
   2  Index         2.3020        7.7942        .50000       -.45475E-10
   3  Normalizat    .90444        .15056E-02    .44957E-01    .55032E-04
   4  Prefactor     .84425        .16103E-02    .44291E-01    .11237E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66533e-10
  Index      = 2.302
  Normalizat = 0.904437
  Prefactor  = 0.844252
 **********
 **   18 **HESSE 
 **********

 FCN=   6551.617     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      269 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16653E-09    10.598        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3020        6.0650        .50000       -.56996    
   3  Normalizat    .90444        .34712E-02    .22195E-03   -.96304    
   4  Prefactor     .84425        .37129E-02    .24354E-03   -.98117    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.1322e-11
Minuit parameter uncertainties:
  1  8.24164e-05
  2  89027.9
  3  0.00347124
  4  0.0037129
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/889503': 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) = 6551.61720278
delta logL = 7.6961441664e-09

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  1.665e-10  8.242e-05  0.000e+00  1.000e+06 ( 1.000e-12)
311        Index:  2.302e+00  8.903e+04  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:  8.443e-01  3.713e-03  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:  9.044e-01  3.471e-03  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/889503/cmap_HighResolution_692409601_692668801_4FGL_J1521.8+4338_daily_bin1748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.89e-03', job_status='DONE', photon_flux_upper_limit='7.39e-08', time_completed='2022-12-14 01:02:08.008595', job_id='889503', GAL2='0.84', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1671008528.01', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='7.70e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.94' WHERE bin_id='1748' AND source_name='4FGL J1521.8+4338' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 14 01:02:08 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 889503: <4FGL_J1521.8+4338_daily_bin1748> in cluster <slac> Done

Job <4FGL_J1521.8+4338_daily_bin1748> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Dec 14 00:50:26 2022
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 14 00:50:37 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 14 00:50:37 2022
Terminated at Wed Dec 14 01:02:08 2022
Results reported at Wed Dec 14 01:02:08 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1521.8+4338_daily_bin1748 230.464 43.6344 692409601 692668801 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 :                                   653.40 sec.
    Max Memory :                                 1030 MB
    Average Memory :                             333.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   691 sec.
    Turnaround time :                            702 sec.

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

