/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 212 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 = 7474
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1521.8+4338_daily_bin54
RA = 230.464, Dec = 43.6344
tmin = 253324801, tmax = 253584001
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='496430', job_status='RUN', time_executed='2021-09-12 01:39:28.951332', time_epoch_executed='1631435968.95' WHERE source_name='4FGL J1521.8+4338' and cadence='daily' and bin_id='54'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/496430

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/496430/ft1_4FGL_J1521.8+4338_daily_bin54.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/496430/ft2_4FGL_J1521.8+4338_daily_bin54.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/496430/ft1_4FGL_J1521.8+4338_daily_bin54.fits outfile=/scratch/kocevski/496430/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin54.fits ra=230.464 dec=43.6344 rad=12.0 tmin=253324801.0 tmax=253584001.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 1.41
user 1.24
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/496430/ft1_filtered_4FGL_J1521.8+4338_daily_bin54.fits evtable="EVENTS" scfile=/scratch/kocevski/496430/ft2_4FGL_J1521.8+4338_daily_bin54.fits sctable="SC_DATA" expcube=/scratch/kocevski/496430/ltcube_253324801_253584001_4FGL_J1521.8+4338_daily_bin54.fits outfile=/scratch/kocevski/496430/expmap_253324801_253584001_4FGL_J1521.8+4338_daily_bin54.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/496430/ltcube_253324801_253584001_4FGL_J1521.8+4338_daily_bin54.fits
.....................!
real 190.05
user 184.99
sys 4.65

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/496430/ft1_filtered_4FGL_J1521.8+4338_daily_bin54.fits scfile=/scratch/kocevski/496430/ft2_4FGL_J1521.8+4338_daily_bin54.fits outfile=/scratch/kocevski/496430/cmap_253324801_253584001_4FGL_J1521.8+4338_daily_bin54.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/496430/ft1_filtered_4FGL_J1521.8+4338_daily_bin54.fits scfile=/scratch/kocevski/496430/ft2_4FGL_J1521.8+4338_daily_bin54.fits outfile=/scratch/kocevski/496430/cmap_HighResolution_253324801_253584001_4FGL_J1521.8+4338_daily_bin54.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .95427       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13514E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.051       1.0000         .10000E-03   10000.    
     4 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10704E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    12.029       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.896       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10662E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .50200       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10474E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.1131       1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10955E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    11.242       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11389E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13034E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.5663       1.0000         .10000E-03   10000.    
    25 'Prefactor '    12.861       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.3821       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .84379       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .95443       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=   4274.650     FROM MIGRAD    STATUS=CONVERGED    698 CALLS     3492 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .75497        305.88       -.63235E-04    .10892E-04
   2  Prefactor     .10000E-03    86.310       -.58544E-05** at limit **
   3  Prefactor     29.052        35.551       -.47304E-06   -.99692E-05
   4  norm          .10000E-03    3.5052       -.28384E-06** at limit **
   5  Prefactor     .10000E-03    23.625       -.38891E-05** at limit **
   6  Prefactor     .10000E-03    13.545       -.57270E-06** at limit **
   7  norm          12.037        10.462       -.11437E-06    .26908E-04
   8  Prefactor     14.889        21.288       -.11123E-05    .81422E-04
   9  Prefactor     .10000E-03    36.492        .75928E-05** at limit **
  10  norm          .50201        1.4634       -.16665E-05   -.49439E-03
  11  Prefactor     .10000E-03    4.9936        .14021E-06** at limit **
  12  Prefactor     .10000E-03    7.4823       -.22755E-06** at limit **
  13  norm          2.1126        1.7854       -.41243E-06    .21318E-03
  14  norm          .10000E-03    2.0048       -.31090E-06** at limit **
  15  Prefactor     .10000E-03    3.7506       -.31830E-06** at limit **
  16  Prefactor     .10000E-03    19.575       -.48935E-06** at limit **
  17  Prefactor     .10000E-03    19.186       -.91882E-06** at limit **
  18  Prefactor     .10000E-03    19.000       -.16418E-05** at limit **
  19  norm          11.241        2.8187       -.13260E-06    .88709E-04
  20  Prefactor     .10000E-03    6.5339       -.18938E-06** at limit **
  21  norm          .10000E-03    5.1812       -.12647E-06** at limit **
  22  Prefactor     .10000E-03    17.731        .20367E-05** at limit **
  23  Prefactor     .10000E-03    68.279       -.58702E-05** at limit **
  24  Prefactor     1.5663        5.3853       -.53081E-05    .36309E-03
  25  Prefactor     12.862        17.649        .21241E-05    .12020E-03
  26  Prefactor     2.3812        3.7879       -.96577E-06    .18859E-03
  27  Normalizat    .84442        .20160        .63510E-05    .14201E-03
  28  Prefactor     .95386        .19830       -.40347E-06    .20944E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.754968
  Prefactor  = 0.000100002
  Prefactor  = 29.0517
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 12.0372
  Prefactor  = 14.8887
  Prefactor  = 0.0001
  norm       = 0.502007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.11257
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 11.241
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 1.56632
  Prefactor  = 12.8623
  Prefactor  = 2.38116
  Normalizat = 0.844424
  Prefactor  = 0.953857
 **********
 **   18 **HESSE 
 **********

 FCN=   4274.650     FROM HESSE     STATUS=OK           513 CALLS     4005 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .75497        311.44        .65110E-02   -1.5534    
   2  Prefactor     .10000E-03    86.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     29.052        35.600        .74332E-04   -1.4629    
   4  norm          .10000E-03    3.5314        .11955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    23.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          12.037        10.461        .11550E-03   -1.5014    
   8  Prefactor     14.889        21.284        .10377E-03   -1.4936    
   9  Prefactor     .10000E-03    37.264        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .50201        1.4531        .13166E-03   -1.5566    
  11  Prefactor     .10000E-03    5.0053        .14249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.6172        .17458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.1126        1.7770        .75053E-04   -1.5417    
  14  norm          .10000E-03    2.0177        .90435E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.7603        .12368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    19.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          11.241        2.8197        .53082E-04   -1.5037    
  20  Prefactor     .10000E-03    6.5368        .16324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.1862        .14536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    17.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    68.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.5663        5.3366        .25528E-03   -1.5458    
  25  Prefactor     12.862        17.555        .11169E-03   -1.4991    
  26  Prefactor     2.3812        3.7709        .15540E-03   -1.5399    
  27  Normalizat    .84442        .23789        .23741E-03   -.98441    
  28  Prefactor     .95386        .23567        .23651E-03   -.94284    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.28972e-10
Minuit parameter uncertainties:
  1  30.8282
  2  0.000911709
  3  35.6259
  4  1.17751e-05
  5  0.000282811
  6  5.39878e-05
  7  10.4626
  8  21.2944
  9  6.018e-05
  10  1.45325
  11  1.43359e-05
  12  8.91074e-05
  13  1.77709
  14  1.48002e-05
  15  1.86035e-05
  16  4.56809e-05
  17  0.000116745
  18  0.000226045
  19  2.81977
  20  1.48733e-05
  21  1.25074e-05
  22  9.73417e-05
  23  0.000872684
  24  5.33825
  25  17.5616
  26  3.77125
  27  0.238184
  28  0.23592
Done.

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

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  1.000e-04  2.260e-04  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.539e-01  2.359e-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.444e-01  2.382e-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: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/496430/likelihoodResults_253324801_253584001_4FGL_J1521.8+4338_daily_bin54.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) = 4274.65057782
delta logL = -0.000246531858465

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4274.65033134
delta logL = -5.50689946976e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10393E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9600       1.0000          .0000       10.000    
     3 'Normalizat'    .84445       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95384       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4274.522     FROM MIGRAD    STATUS=CONVERGED    182 CALLS      332 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13409        3.6291        .98787E-02    .23902E-02
   2  Index         6.6932        7.8115        .26415        .56940E-04
   3  Normalizat    .79759        .27510E-01    .23741E-02   -.20298E-03
   4  Prefactor     .98526        .29118E-01    .23652E-03    .20334E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.13409
  Index      = 6.69316
  Normalizat = 0.797587
  Prefactor  = 0.985256
 **********
 **   18 **HESSE 
 **********

 FCN=   4274.522     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      363 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13409        22.495        .42191E-03   -1.5635    
   2  Index         6.6932        5.7654        .13839E-01    .34546    
   3  Normalizat    .79759        .14143        .94964E-04   -1.0016    
   4  Prefactor     .98526        .14408        .47303E-04   -.93223    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.38169e-10
Minuit parameter uncertainties:
  1  3.47355
  2  19.702
  3  0.1415
  4  0.14414
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/496430': 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) = 4274.52198133
delta logL = 0.128349954606

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  1.341e-01  3.474e+00  1.000e-04  1.000e+04 ( 1.000e-12)
311        Index:  6.693e+00  1.970e+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.853e-01  1.441e-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.976e-01  1.415e-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/496430/cmap_HighResolution_253324801_253584001_4FGL_J1521.8+4338_daily_bin54.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.81e-03', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-09-12 01:50:30.688872', job_id='496430', GAL2='0.99', fit_tolerance='1e-08', EG2='0.80', EG='0.84', time_epoch_completed='1631436630.69', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='1.28e-01', ts2='0.29', photon_index_error='0.00', photon_index='2.94' WHERE bin_id='54' AND source_name='4FGL J1521.8+4338' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:50:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 496430: <4FGL_J1521.8+4338_daily_bin54> in cluster <slac> Done

Job <4FGL_J1521.8+4338_daily_bin54> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep 12 01:35:48 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 01:35:49 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:35:49 2021
Terminated at Sun Sep 12 01:50:31 2021
Results reported at Sun Sep 12 01:50:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1521.8+4338_daily_bin54 230.464 43.6344 253324801 253584001 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 :                                   660.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             256.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            883 sec.

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

