/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 2 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1521.8+4338_daily_bin1105
RA = 230.464, Dec = 43.6344
tmin = 525744001, tmax = 526003201
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='502902', job_status='RUN', time_executed='2021-09-12 01:55:51.247568', time_epoch_executed='1631436951.25' WHERE source_name='4FGL J1521.8+4338' and cadence='daily' and bin_id='1105'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/502902

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/502902/ft1_4FGL_J1521.8+4338_daily_bin1105.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/502902/ft2_4FGL_J1521.8+4338_daily_bin1105.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/502902/ft1_4FGL_J1521.8+4338_daily_bin1105.fits outfile=/scratch/kocevski/502902/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin1105.fits ra=230.464 dec=43.6344 rad=12.0 tmin=525744001.0 tmax=526003201.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.40
user 4.13
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/502902/ft1_filtered_4FGL_J1521.8+4338_daily_bin1105.fits evtable="EVENTS" scfile=/scratch/kocevski/502902/ft2_4FGL_J1521.8+4338_daily_bin1105.fits sctable="SC_DATA" expcube=/scratch/kocevski/502902/ltcube_525744001_526003201_4FGL_J1521.8+4338_daily_bin1105.fits outfile=/scratch/kocevski/502902/expmap_525744001_526003201_4FGL_J1521.8+4338_daily_bin1105.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/502902/ltcube_525744001_526003201_4FGL_J1521.8+4338_daily_bin1105.fits
.....................!
real 190.71
user 185.95
sys 4.28

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/502902/ft1_filtered_4FGL_J1521.8+4338_daily_bin1105.fits scfile=/scratch/kocevski/502902/ft2_4FGL_J1521.8+4338_daily_bin1105.fits outfile=/scratch/kocevski/502902/cmap_525744001_526003201_4FGL_J1521.8+4338_daily_bin1105.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/502902/ft1_filtered_4FGL_J1521.8+4338_daily_bin1105.fits scfile=/scratch/kocevski/502902/ft2_4FGL_J1521.8+4338_daily_bin1105.fits outfile=/scratch/kocevski/502902/cmap_HighResolution_525744001_526003201_4FGL_J1521.8+4338_daily_bin1105.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.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/502902/ft1_filtered_4FGL_J1521.8+4338_daily_bin1105.fits', '/scratch/kocevski/502902/ft2_4FGL_J1521.8+4338_daily_bin1105.fits', expMap='/scratch/kocevski/502902/expmap_525744001_526003201_4FGL_J1521.8+4338_daily_bin1105.fits', expCube='/scratch/kocevski/502902/ltcube_525744001_526003201_4FGL_J1521.8+4338_daily_bin1105.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/502902/Model_4FGL_J1521.8+4338_daily_bin1105.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  1.000e-04  1.000e+04 ( 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/502902/ft1_filtered_4FGL_J1521.8+4338_daily_bin1105.fits
Spacecraft file(s): /scratch/kocevski/502902/ft2_4FGL_J1521.8+4338_daily_bin1105.fits
Exposure map: /scratch/kocevski/502902/expmap_525744001_526003201_4FGL_J1521.8+4338_daily_bin1105.fits
Exposure cube: /scratch/kocevski/502902/ltcube_525744001_526003201_4FGL_J1521.8+4338_daily_bin1105.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/502902/Model_4FGL_J1521.8+4338_daily_bin1105.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) = 6616.83769425

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3036       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.083       1.0000         .10000E-03   10000.    
     4 'norm      '    4.4485       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.990       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.6038       1.0000         .10000E-03   10000.    
     7 'norm      '    6.3289       1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.627       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.944       1.0000         .10000E-03   10000.    
    10 'norm      '    2.5500       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2871       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.4177       1.0000         .10000E-03   10000.    
    13 'norm      '    2.7325       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.5281       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .35222E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .75481E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    5.5282       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10982E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.5965       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.677       1.0000         .10000E-03   10000.    
    23 'Prefactor '    19.121       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .51184       1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.0602       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.3544       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0089       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0284       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6616.830     FROM MIGRAD    STATUS=CONVERGED    726 CALLS     3573 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3144        19.796       -.30357E-06    .36034E-04
   2  Prefactor     .10000E-03    28.482       -.18718E-05** at limit **
   3  Prefactor     17.074        23.335        .15340E-06    .12962E-04
   4  norm          4.4520        6.3391       -.23408E-07   -.54920E-04
   5  Prefactor     10.999        33.866        .11946E-05   -.14849E-04
   6  Prefactor     6.5996        8.8480       -.40968E-06    .13579E-03
   7  norm          6.3276        6.3369        .69425E-07   -.50830E-04
   8  Prefactor     20.630        13.470       -.50973E-06   -.46217E-04
   9  Prefactor     15.945        16.201        .12432E-06    .48695E-04
  10  norm          2.5501        1.4243        .42510E-07    .15766E-03
  11  Prefactor     1.2863        3.6336        .94649E-05   -.81566E-03
  12  Prefactor     1.4251        5.4864        .98439E-06    .52421E-04
  13  norm          2.7325        1.5368       -.53226E-06   -.14289E-02
  14  norm          .10000E-03    1.1928        .15380E-07** at limit **
  15  Prefactor     .10000E-03    3.8439        .24141E-07** at limit **
  16  Prefactor     2.3499        263.82        .15590E-04   -.58151E-04
  17  Prefactor     .10088E-03    27.810        .19724E-04** at limit **
  18  Prefactor     .96051E-01    13.354       -.69304E-05   -.15987E-03
  19  norm          5.5284        1.9335       -.16155E-07   -.40489E-03
  20  Prefactor     .10000E-03    26.653        .19548E-05** at limit **
  21  norm          4.6050        12.399       -.16169E-05   -.37660E-03
  22  Prefactor     11.676        29.490        .19863E-05   -.57992E-04
  23  Prefactor     19.142        34.327        .14131E-05   -.12349E-03
  24  Prefactor     .50082        9.7700       -.18256E-04   -.82015E-03
  25  Prefactor     5.0852        15.245        .46792E-05   -.45892E-03
  26  Prefactor     1.3557        4.9403        .63389E-06   -.49813E-04
  27  Normalizat    1.0086        .18245       -.26968E-05   -.81491E-03
  28  Prefactor     1.0286        .18408        .19743E-05   -.56095E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.31439
  Prefactor  = 0.000100001
  Prefactor  = 17.0741
  norm       = 4.45197
  Prefactor  = 10.9992
  Prefactor  = 6.59956
  norm       = 6.32755
  Prefactor  = 20.6301
  Prefactor  = 15.9455
  norm       = 2.55005
  Prefactor  = 1.28631
  Prefactor  = 1.42505
  norm       = 2.73253
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.34991
  Prefactor  = 0.00010088
  Prefactor  = 0.0960514
  norm       = 5.52841
  Prefactor  = 0.0001
  norm       = 4.60501
  Prefactor  = 11.676
  Prefactor  = 19.142
  Prefactor  = 0.50082
  Prefactor  = 5.08523
  Prefactor  = 1.35566
  Normalizat = 1.00864
  Prefactor  = 1.02864
 **********
 **   18 **HESSE 
 **********

 FCN=   6616.830     FROM HESSE     STATUS=OK           543 CALLS     4116 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3144        19.807        .17452E-03   -1.5247    
   2  Prefactor     .10000E-03    28.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.074        23.381        .96903E-04   -1.4881    
   4  norm          4.4520        6.3265        .19092E-03   -1.5286    
   5  Prefactor     10.999        33.845        .12085E-03   -1.5045    
   6  Prefactor     6.5996        8.8344        .15616E-03   -1.5194    
   7  norm          6.3276        6.3384        .15955E-03   -1.5205    
   8  Prefactor     20.630        13.484        .88190E-04   -1.4799    
   9  Prefactor     15.945        16.109        .10030E-03   -1.4909    
  10  norm          2.5501        1.4206        .68700E-04   -1.5389    
  11  Prefactor     1.2863        4.7631        .16327E-02   -1.5481    
  12  Prefactor     1.4251        5.4252        .34609E-03   -1.5469    
  13  norm          2.7325        1.5451        .70950E-04   -1.5377    
  14  norm          .10000E-03    1.1978        .86694E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.8541        .15550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.3499        265.24        .25690E-03   -1.5401    
  17  Prefactor     .10088E-03    122.44        .60085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .96051E-01    18.110        .64667E-01   -1.5646    
  19  norm          5.5284        1.9339        .64845E-04   -1.5238    
  20  Prefactor     .10000E-03    26.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.6050        12.379        .18774E-03   -1.5279    
  22  Prefactor     11.676        29.520        .11723E-03   -1.5024    
  23  Prefactor     19.142        34.292        .91595E-04   -1.4833    
  24  Prefactor     .50082        16.439        .28798E-02   -1.5566    
  25  Prefactor     5.0852        17.256        .17875E-03   -1.5257    
  26  Prefactor     1.3557        4.9591        .32877E-03   -1.5475    
  27  Normalizat    1.0086        .21962        .24169E-03   -.92742    
  28  Prefactor     1.0286        .21943        .25547E-03   -.91781    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10407e-08
Minuit parameter uncertainties:
  1  19.8311
  2  0.000340167
  3  23.3934
  4  6.32748
  5  33.9039
  6  8.83611
  7  6.33906
  8  13.4857
  9  16.1139
  10  1.42065
  11  4.76454
  12  5.42708
  13  1.54515
  14  5.68438e-07
  15  4.45529e-06
  16  50.1604
  17  0.0208018
  18  2.63724
  19  1.93388
  20  0.000117081
  21  12.3858
  22  29.557
  23  34.3276
  24  5.73984
  25  17.2733
  26  4.96057
  27  0.219816
  28  0.219622
Done.

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

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  9.605e-02  2.637e+00  1.000e-04  1.000e+04 ( 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.029e+00  2.196e-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:  1.009e+00  2.198e-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: 9.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/502902/likelihoodResults_525744001_526003201_4FGL_J1521.8+4338_daily_bin1105.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) = 6616.83037619
delta logL = 2.44933726208e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6615.89647141
delta logL = 0.93392926948

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14928       1.0000         .10000E-03   10000.    
     2 'Index     '    7.0275       1.0000          .0000       10.000    
     3 'Normalizat'    .92150       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0898       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=   6615.896     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      244 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15111        1.9236        .57013E-02   -.55636E-02
   2  Index         7.0186        3.7912        .22171       -.71412E-04
   3  Normalizat    .92169        .37611E-01    .45176E-01   -.55534E-03
   4  Prefactor     1.0897        .40332E-01    .56376E-01   -.23995E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.151111
  Index      = 7.01855
  Normalizat = 0.921692
  Prefactor  = 1.0897
 **********
 **   18 **HESSE 
 **********

 FCN=   6615.896     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      275 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15111        5.2027        .26130E-03   -1.5630    
   2  Index         7.0186        8.5050        .92028E-02    .41557    
   3  Normalizat    .92169        .15031        .25163E-03   -.95702    
   4  Prefactor     1.0897        .15629        .24928E-03   -.89796    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.67468e-09
Minuit parameter uncertainties:
  1  1.77292
  2  8.81972
  3  0.150381
  4  0.156351
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/502902': 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) = 6615.89646711
delta logL = 0.933933575317

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  1.511e-01  1.773e+00  1.000e-04  1.000e+04 ( 1.000e-12)
311        Index:  7.019e+00  8.820e+00  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.090e+00  1.564e-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.217e-01  1.504e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.01
Ra Dec: 230.464 43.634
Photon Index (Free Index): 7.02 +/- 8.82
Photon Flux (Free Index): 5.96e-08 +/- 5.64e-08
Energy Flux (Free Index): 7.11e-06 +/- 8.08e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/502902/cmap_HighResolution_525744001_526003201_4FGL_J1521.8+4338_daily_bin1105.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.88e-03', comment='SUCCESS', energy_flux2='7.11e-06', dlogl='9.34e-01', photon_flux2='5.96e-08', job_status='DONE', time_completed='2021-09-12 02:10:39.430491', photon_index_error2='8.82', photon_index2='7.02', ts='0.00', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='9.88e-08', energy_flux_error2='8.08e-06', EG='1.01', time_epoch_completed='1631437839.43', return_code='0', job_id='502902', GAL2='1.09', EG2='0.92', return_code2='102', photon_flux_error2='5.64e-08', ts2='2.01', photon_index='2.94' WHERE bin_id='1105' AND source_name='4FGL J1521.8+4338' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:10:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 502902: <4FGL_J1521.8+4338_daily_bin1105> in cluster <slac> Done

Job <4FGL_J1521.8+4338_daily_bin1105> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Sep 12 01:55:39 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 01:55:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 01:55:41 2021
Terminated at Sun Sep 12 02:10:40 2021
Results reported at Sun Sep 12 02:10:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1521.8+4338_daily_bin1105 230.464 43.6344 525744001 526003201 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 :                                   878.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             366.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            901 sec.

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

