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


Performing analysis on: 4FGL_J1521.8+4338_daily_bin720
RA = 230.464, Dec = 43.6344
tmin = 425952001, tmax = 426211201
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='500811', job_status='RUN', time_executed='2021-09-12 01:50:53.230240', time_epoch_executed='1631436653.23' WHERE source_name='4FGL J1521.8+4338' and cadence='daily' and bin_id='720'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/500811

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/500811/ft1_4FGL_J1521.8+4338_daily_bin720.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/500811/ft2_4FGL_J1521.8+4338_daily_bin720.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/500811/ft1_4FGL_J1521.8+4338_daily_bin720.fits outfile=/scratch/kocevski/500811/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin720.fits ra=230.464 dec=43.6344 rad=12.0 tmin=425952001.0 tmax=426211201.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.61
user 3.41
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/500811/ft1_filtered_4FGL_J1521.8+4338_daily_bin720.fits" evtable="EVENTS" scfile=/scratch/kocevski/500811/ft2_4FGL_J1521.8+4338_daily_bin720.fits sctable="SC_DATA" outfile=/scratch/kocevski/500811/ltcube_425952001_426211201_4FGL_J1521.8+4338_daily_bin720.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/500811/ft2_4FGL_J1521.8+4338_daily_bin720.fits
.....................!
real 11.86
user 11.54
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/500811/ft1_filtered_4FGL_J1521.8+4338_daily_bin720.fits evtable="EVENTS" scfile=/scratch/kocevski/500811/ft2_4FGL_J1521.8+4338_daily_bin720.fits sctable="SC_DATA" expcube=/scratch/kocevski/500811/ltcube_425952001_426211201_4FGL_J1521.8+4338_daily_bin720.fits outfile=/scratch/kocevski/500811/expmap_425952001_426211201_4FGL_J1521.8+4338_daily_bin720.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/500811/ltcube_425952001_426211201_4FGL_J1521.8+4338_daily_bin720.fits
.....................!
real 190.81
user 185.12
sys 5.32

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/500811/ft1_filtered_4FGL_J1521.8+4338_daily_bin720.fits scfile=/scratch/kocevski/500811/ft2_4FGL_J1521.8+4338_daily_bin720.fits outfile=/scratch/kocevski/500811/cmap_HighResolution_425952001_426211201_4FGL_J1521.8+4338_daily_bin720.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    18.777       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.305       1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.4617       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.0948       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.6786       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.1792       1.0000         .10000E-03   10000.    
    13 'norm      '    .20338E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.6326       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10340E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    89.309       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11097E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10394E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.2278       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    25.370       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .67940E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.5472       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .15913E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.2852       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1276       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .90426       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=   6345.365     FROM MIGRAD    STATUS=CONVERGED    761 CALLS     3571 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.8614       -.78176E-08** at limit **
   2  Prefactor     .10000E-03    62.748        .87853E-06** at limit **
   3  Prefactor     .10000E-03    24.381       -.11724E-05** at limit **
   4  norm          18.779        8.6403       -.41216E-07    .55525E-04
   5  Prefactor     .10000E-03    27.313       -.35096E-05** at limit **
   6  Prefactor     10.306        14.003       -.91922E-07   -.66489E-05
   7  norm          .10000E-03    3.8881        .58387E-07** at limit **
   8  Prefactor     3.4631        8.9926        .25063E-05    .14373E-03
   9  Prefactor     .10000E-03    10.230        .63162E-07** at limit **
  10  norm          5.0949        1.9420       -.10769E-07    .27055E-05
  11  Prefactor     5.6772        7.0969       -.29615E-07    .20041E-04
  12  Prefactor     4.1797        4.9908        .12671E-05    .28532E-03
  13  norm          .10000E-03    .93660       -.34612E-07** at limit **
  14  norm          1.6312        3.2296        .22537E-06    .10212E-03
  15  Prefactor     .10000E-03    16.122        .23459E-06** at limit **
  16  Prefactor     89.309        80.042        .22861E-06   -.36964E-05
  17  Prefactor     .10000E-03    55.213       -.83387E-06** at limit **
  18  Prefactor     .10000E-03    20.805       -.91788E-06** at limit **
  19  norm          4.2280        2.0043        .14465E-07   -.15563E-04
  20  Prefactor     .10000E-03    28.082        .40164E-05** at limit **
  21  norm          25.377        19.941       -.13854E-05   -.15231E-03
  22  Prefactor     .10000E-03    23.162        .29317E-05** at limit **
  23  Prefactor     .10839E-03    104.74       -.51023E-05** at limit **
  24  Prefactor     8.5309        9.9718       -.30115E-08   -.49274E-03
  25  Prefactor     .10143E-03    56.325        .44029E-05** at limit **
  26  Prefactor     4.2852        4.6138        .48246E-06   -.10426E-04
  27  Normalizat    1.1274        .18530       -.17516E-06   -.93188E-04
  28  Prefactor     .90438        .18747       -.74016E-07   -.71681E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.7789
  Prefactor  = 0.0001
  Prefactor  = 10.3061
  norm       = 0.0001
  Prefactor  = 3.46309
  Prefactor  = 0.0001
  norm       = 5.09486
  Prefactor  = 5.67722
  Prefactor  = 4.17966
  norm       = 0.0001
  norm       = 1.63121
  Prefactor  = 0.0001
  Prefactor  = 89.3087
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.22804
  Prefactor  = 0.000100001
  norm       = 25.3767
  Prefactor  = 0.0001
  Prefactor  = 0.000108394
  Prefactor  = 8.53092
  Prefactor  = 0.000101432
  Prefactor  = 4.28519
  Normalizat = 1.12737
  Prefactor  = 0.904383
 **********
 **   18 **HESSE 
 **********

 FCN=   6345.365     FROM HESSE     STATUS=OK           537 CALLS     4108 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.8670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    62.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    24.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          18.779        8.6419        .92430E-04   -1.4841    
   5  Prefactor     .10000E-03    27.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.306        13.991        .12482E-03   -1.5066    
   7  norm          .10000E-03    3.8980        .15339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.4631        9.0102        .10868E-02   -1.5336    
   9  Prefactor     .10000E-03    10.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.0949        1.9418        .65852E-04   -1.5256    
  11  Prefactor     5.6772        6.8107        .16857E-03   -1.5231    
  12  Prefactor     4.1797        4.9972        .93895E-03   -1.5299    
  13  norm          .10000E-03    5.6431        .13816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.6312        3.1798        .19167E-03   -1.5453    
  15  Prefactor     .10000E-03    16.551        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     89.309        78.355        .42517E-04   -1.3815    
  17  Prefactor     .10000E-03    56.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    21.209        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.2280        2.0038        .74876E-04   -1.5297    
  20  Prefactor     .10000E-03    28.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          25.377        20.172        .79531E-04   -1.4700    
  22  Prefactor     .10000E-03    23.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10839E-03    74.864        .19298       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.5309        10.068        .13711E-03   -1.5124    
  25  Prefactor     .10143E-03    59.265        .11310       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     4.2852        4.6107        .85476E-03   -1.5294    
  27  Normalizat    1.1274        .22177        .24137E-03   -.88878    
  28  Prefactor     .90438        .22384        .27501E-03   -.95988    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.4345e-10
Minuit parameter uncertainties:
  1  1.02406e-06
  2  7.43667e-06
  3  7.20352e-06
  4  8.64246
  5  1.79038e-05
  6  13.9954
  7  8.81337e-07
  8  9.0137
  9  2.67947e-06
  10  1.94177
  11  6.81164
  12  4.99773
  13  8.27127e-06
  14  3.18012
  15  7.56173e-06
  16  78.4464
  17  6.85019e-05
  18  2.31964e-05
  19  2.00385
  20  0.000270166
  21  20.1771
  22  1.66757e-05
  23  0.0501996
  24  10.0697
  25  0.018442
  26  4.61107
  27  0.221953
  28  0.224063
Done.

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

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  1.000e-04  2.320e-05  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:  9.044e-01  2.241e-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.127e+00  2.220e-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.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/500811/likelihoodResults_425952001_426211201_4FGL_J1521.8+4338_daily_bin720.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) = 6345.36526909
delta logL = -0.000224905937102

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6345.35629975
delta logL = 0.0087444330693

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .46439       1.0000         .10000E-03   10000.    
     2 'Index     '    4.4085       1.0000          .0000       10.000    
     3 'Normalizat'    1.1176       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91031       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=   6345.356     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      319 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .46919        10.975        .57670E-01    .10562E-02
   2  Index         4.4148        3.4440        .50000        .63340E-04
   3  Normalizat    1.1176        .11224E-01    .54803E-01    .15098E-03
   4  Prefactor     .91038        .11648E-01    .45136E-01    .73932E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.469186
  Index      = 4.41485
  Normalizat = 1.1176
  Prefactor  = 0.910382
 **********
 **   18 **HESSE 
 **********

 FCN=   6345.356     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      354 TOTAL
                     EDM=   .70E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .46919        1124.0        .20192E-02   -1.5571    
   2  Index         4.4148        5.1827        .23352E-01   -.11730    
   3  Normalizat    1.1176        .18435        .24233E-03   -.89189    
   4  Prefactor     .91038        .13356        .27421E-03   -.95779    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.01557e-08
Minuit parameter uncertainties:
  1  46.8311
  2  62.0359
  3  0.18446
  4  0.13361
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/500811': 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) = 6345.35629643
delta logL = 0.0087477527677

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  4.692e-01  4.683e+01  1.000e-04  1.000e+04 ( 1.000e-12)
311        Index:  4.415e+00  6.204e+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:  9.104e-01  1.336e-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.118e+00  1.845e-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/500811/cmap_HighResolution_425952001_426211201_4FGL_J1521.8+4338_daily_bin720.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.82e-03', job_status='DONE', photon_flux_upper_limit='9.81e-08', time_completed='2021-09-12 02:05:05.388540', job_id='500811', GAL2='0.91', fit_tolerance='1e-08', EG2='1.12', EG='1.13', time_epoch_completed='1631437505.39', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='8.75e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.94' WHERE bin_id='720' AND source_name='4FGL J1521.8+4338' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:05:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 500811: <4FGL_J1521.8+4338_daily_bin720> in cluster <slac> Done

Job <4FGL_J1521.8+4338_daily_bin720> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep 12 01:50:35 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 01:50:37 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:50:37 2021
Terminated at Sun Sep 12 02:05:06 2021
Results reported at Sun Sep 12 02:05:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1521.8+4338_daily_bin720 230.464 43.6344 425952001 426211201 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 :                                   849.00 sec.
    Max Memory :                                 1091 MB
    Average Memory :                             314.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            871 sec.

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

