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


Performing analysis on: 4FGL_J1521.8+4338_daily_bin1770
RA = 230.464, Dec = 43.6344
tmin = 698112001, tmax = 698371201
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='490188', job_status='RUN', time_executed='2023-02-18 01:09:16.911042', time_epoch_executed='1676711356.91' WHERE source_name='4FGL J1521.8+4338' and cadence='daily' and bin_id='1770'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/490188

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/490188/ft1_4FGL_J1521.8+4338_daily_bin1770.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/490188/ft2_4FGL_J1521.8+4338_daily_bin1770.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/490188/ft1_4FGL_J1521.8+4338_daily_bin1770.fits outfile=/scratch/kocevski/490188/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin1770.fits ra=230.464 dec=43.6344 rad=12.0 tmin=698112001.0 tmax=698371201.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 4.32
user 4.10
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/490188/ft1_filtered_4FGL_J1521.8+4338_daily_bin1770.fits" evtable="EVENTS" scfile=/scratch/kocevski/490188/ft2_4FGL_J1521.8+4338_daily_bin1770.fits sctable="SC_DATA" outfile=/scratch/kocevski/490188/ltcube_698112001_698371201_4FGL_J1521.8+4338_daily_bin1770.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/490188/ft2_4FGL_J1521.8+4338_daily_bin1770.fits
.....................!
real 11.85
user 11.52
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/490188/ft1_filtered_4FGL_J1521.8+4338_daily_bin1770.fits evtable="EVENTS" scfile=/scratch/kocevski/490188/ft2_4FGL_J1521.8+4338_daily_bin1770.fits sctable="SC_DATA" expcube=/scratch/kocevski/490188/ltcube_698112001_698371201_4FGL_J1521.8+4338_daily_bin1770.fits outfile=/scratch/kocevski/490188/expmap_698112001_698371201_4FGL_J1521.8+4338_daily_bin1770.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/490188/ltcube_698112001_698371201_4FGL_J1521.8+4338_daily_bin1770.fits
.....................!
real 191.49
user 187.19
sys 3.95

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/490188/ft1_filtered_4FGL_J1521.8+4338_daily_bin1770.fits scfile=/scratch/kocevski/490188/ft2_4FGL_J1521.8+4338_daily_bin1770.fits outfile=/scratch/kocevski/490188/cmap_698112001_698371201_4FGL_J1521.8+4338_daily_bin1770.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/490188/ft1_filtered_4FGL_J1521.8+4338_daily_bin1770.fits scfile=/scratch/kocevski/490188/ft2_4FGL_J1521.8+4338_daily_bin1770.fits outfile=/scratch/kocevski/490188/cmap_HighResolution_698112001_698371201_4FGL_J1521.8+4338_daily_bin1770.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11203E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .30199E-02   1.0000          .0000       .10000E+07
     3 'norm      '    4.6556       1.0000          .0000       .10000E+07
     4 'Prefactor '    .10884E-03   1.0000          .0000       .10000E+07
     5 'norm      '    .16621E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .70829E-04   1.0000          .0000       .10000E+07
     7 'norm      '    .75691       1.0000          .0000       .10000E+07
     8 'Prefactor '    6.9552       1.0000          .0000       .10000E+07
     9 'Prefactor '    4.1184       1.0000          .0000       .10000E+07
    10 'norm      '    1.1722       1.0000          .0000       .10000E+07
    11 'norm      '    1.8135       1.0000          .0000       .10000E+07
    12 'Prefactor '    .20447E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    87.617       1.0000          .0000       .10000E+07
    14 'Prefactor '    .14246E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    24.071       1.0000          .0000       .10000E+07
    16 'norm      '    .16223E-05   1.0000          .0000       .10000E+07
    17 'norm      '    .13587E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    10.378       1.0000          .0000       .10000E+07
    19 'Prefactor '    .15013E-01   1.0000          .0000       .10000E+07
    20 'Prefactor '    .58281E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    .11878E-05   1.0000          .0000       .10000E+07
    22 'Prefactor '    .26857E-05   1.0000          .0000       .10000E+07
    23 'Normalizat'    .79418       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0320       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=   5580.455     FROM MIGRAD    STATUS=CONVERGED    175 CALLS     2054 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33046E-06    11.291        .23287E-05** at limit **
   2  Prefactor     .25313E-07    31.919        .12901E-05** at limit **
   3  norm          4.5528        9.4190       -.18057E-06   -.13925E-02
   4  Prefactor      .0000        4.6701       -.57124E-06** at limit **
   5  norm          .26923E-07    6.0030        .10334E-05** at limit **
   6  Prefactor      .0000        11.620        .28021E-05** at limit **
   7  norm          .75681        .75571        .18699E-06    .54327E-02
   8  Prefactor     6.9385        7.0600        .21422E-06    .54094E-03
   9  Prefactor     4.1550        7.1672        .86109E-06   -.11464E-02
  10  norm          1.1696        1.2464       -.11875E-06   -.63117E-03
  11  norm          1.8093        3.7056        .24621E-07    .23285E-02
  12  Prefactor     .20373E-07    25.466       -.59052E-05** at limit **
  13  Prefactor     89.370        61.321        .18589E-05   -.15891E-02
  14  Prefactor     .98976E-07    4.2075       -.19041E-05** at limit **
  15  Prefactor     23.902        9.9574        .18910E-05   -.45551E-01
  16  norm           .0000        1.6205       -.16327E-06** at limit **
  17  norm          .69733E-06    7.9099        .20751E-05** at limit **
  18  Prefactor     10.393        1.3050        .23366E-07    .12332E-01
  19  Prefactor      .0000        25.584       -.39481E-07** at limit **
  20  Prefactor      .0000        3.0653       -.56224E-07** at limit **
  21  Prefactor     .56621E-07    5.0234        .28523E-05** at limit **
  22  Prefactor      .0000        .76684        .23521E-06** at limit **
  23  Normalizat    .79467        .19948        .32167E-05    .59438E-04
  24  Prefactor     1.0315        .20781       -.11010E-04    .70096E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.30458e-07
  Prefactor  = 2.53131e-08
  norm       = 4.55285
  Prefactor  = 0
  norm       = 2.69229e-08
  Prefactor  = 0
  norm       = 0.756807
  Prefactor  = 6.9385
  Prefactor  = 4.15496
  norm       = 1.16962
  norm       = 1.8093
  Prefactor  = 2.03726e-08
  Prefactor  = 89.3703
  Prefactor  = 9.89764e-08
  Prefactor  = 23.9018
  norm       = 0
  norm       = 6.97331e-07
  Prefactor  = 10.3929
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 5.66214e-08
  Prefactor  = 0
  Normalizat = 0.794672
  Prefactor  = 1.03148
 **********
 **   18 **HESSE 
 **********

 FCN=   5580.455     FROM HESSE     STATUS=OK           439 CALLS     2493 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33046E-06    18.294        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .25313E-07    32.228        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.5528        9.4026        .46619E-03   -1.5665    
   4  Prefactor      .0000        4.6696        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .26923E-07    6.5105        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        11.643        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .75681        .74821        .56204E-03   -1.5691    
   8  Prefactor     6.9385        7.0807        .38017E-03   -1.5655    
   9  Prefactor     4.1550        7.1854        .49649E-03   -1.5667    
  10  norm          1.1696        1.2800        .10589E-02   -1.5686    
  11  norm          1.8093        3.8689        .77541E-03   -1.5681    
  12  Prefactor     .20373E-07    25.730        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     89.370        61.441        .10684E-03   -1.5519    
  14  Prefactor     .98976E-07    6.1412        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     23.902        13.200        .20387E-03   -1.5610    
  16  norm           .0000        1.5850        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .69733E-06    19.408        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.393        17.365        .31078E-03   -1.5643    
  19  Prefactor      .0000        25.483        .17390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        3.0478        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .56621E-07    6.0664        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor      .0000        .76671        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .79467        .16864        .43534E-01   -1.0027    
  24  Prefactor     1.0315        .17510        .41104E-01   -.91687    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19363e-07
Minuit parameter uncertainties:
  1  0.00491766
  2  0.00180551
  3  9.40259
  4  1.15416e-05
  5  0.000837154
  6  2.78961e-05
  7  0.748214
  8  7.08069
  9  7.18545
  10  1.27997
  11  3.8689
  12  0.00144863
  13  61.441
  14  0.00155936
  15  13.2003
  16  3.23559e-06
  17  0.0073576
  18  17.3649
  19  5.07264e-05
  20  8.83376e-06
  21  0.00117213
  22  4.67158e-07
  23  0.168755
  24  0.175194
Done.

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

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  2.390e+01  1.320e+01  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.031e+00  1.752e-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.947e-01  1.688e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.48
Ra Dec: 230.464 43.634
Photon Index (Fixed Index): 2.94 +/- 0.00
Photon Flux (Fixed Index): 8.31e-08 +/- 4.58e-08
Energy Flux (Fixed Index): 1.71e-05 +/- 9.47e-06

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) = 5580.34190861
delta logL = 0.112720688678

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5580.33841182
delta logL = 0.116217479685

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.407       1.0000          .0000       .10000E+07
     2 'Index     '    2.6665       1.0000          .0000       10.000    
     3 'Normalizat'    .80718       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0211       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=   5580.338     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      227 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.395        359.15        .19105E-03    .28145E-02
   2  Index         2.6669        6.2244        .18356        .32890E-04
   3  Normalizat    .80689        .10498        .43704E-01    .15871E-04
   4  Prefactor     1.0214        .12330        .42037E-01    .71317E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.3947
  Index      = 2.66687
  Normalizat = 0.806891
  Prefactor  = 1.02137
 **********
 **   18 **HESSE 
 **********

 FCN=   5580.338     FROM HESSE     STATUS=OK            33 CALLS      260 TOTAL
                     EDM=   .93E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.395        15.567        .38210E-04   -1.5603    
   2  Index         2.6669        .53834        .71980E-02   -.48547    
   3  Normalizat    .80689        .19486        .23487E-03   -.99814    
   4  Prefactor     1.0214        .20659        .22573E-03   -.92020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.28958e-13
Minuit parameter uncertainties:
  1  15.567
  2  0.539677
  3  0.195025
  4  0.206747
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/490188': 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) = 5580.33841017
delta logL = 0.116219122118

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  2.739e+01  1.557e+01  0.000e+00  1.000e+06 ( 1.000e-12)
311        Index:  2.667e+00  5.397e-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.021e+00  2.067e-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:  8.069e-01  1.950e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.70
Ra Dec: 230.464 43.634
Photon Index (Free Index): 2.67 +/- 0.54
Photon Flux (Free Index): 7.52e-08 +/- 4.41e-08
Energy Flux (Free Index): 1.86e-05 +/- 1.06e-05

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/490188/cmap_HighResolution_698112001_698371201_4FGL_J1521.8+4338_daily_bin1770.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.31e-08', energy_flux2='1.86e-05', photon_flux_error='4.58e-08', dlogl='1.16e-01', energy_flux='1.71e-05', photon_flux2='7.52e-08', job_status='DONE', time_completed='2023-02-18 01:18:41.098578', photon_index_error2='0.54', photon_index2='2.67', ts='6.48', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.06e-05', EG='0.79', time_epoch_completed='1676711921.1', return_code='0', job_id='490188', GAL2='1.02', EG2='0.81', return_code2='0', energy_flux_error='9.47e-06', photon_flux_error2='4.41e-08', ts2='6.70', photon_index='2.94' WHERE bin_id='1770' AND source_name='4FGL J1521.8+4338' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Feb 18 01:18:41 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0160>
Subject: Job 490188: <4FGL_J1521.8+4338_daily_bin1770> in cluster <slac> Done

Job <4FGL_J1521.8+4338_daily_bin1770> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Feb 18 01:05:17 2023
Job was executed on host(s) <bullet0160>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Feb 18 01:05:19 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Feb 18 01:05:19 2023
Terminated at Sat Feb 18 01:18:41 2023
Results reported at Sat Feb 18 01:18:41 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1521.8+4338_daily_bin1770 230.464 43.6344 698112001 698371201 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 :                                   566.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            804 sec.

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

