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


Performing analysis on: 4FGL_J1521.8+4338_daily_bin1586
RA = 230.464, Dec = 43.6344
tmin = 650419201, tmax = 650678401
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='504946', job_status='RUN', time_executed='2021-09-12 02:03:02.386401', time_epoch_executed='1631437382.39' WHERE source_name='4FGL J1521.8+4338' and cadence='daily' and bin_id='1586'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/504946

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/504946/ft1_4FGL_J1521.8+4338_daily_bin1586.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/504946/ft2_4FGL_J1521.8+4338_daily_bin1586.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/504946/ft1_4FGL_J1521.8+4338_daily_bin1586.fits outfile=/scratch/kocevski/504946/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin1586.fits ra=230.464 dec=43.6344 rad=12.0 tmin=650419201.0 tmax=650678401.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.39
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/504946/ft1_filtered_4FGL_J1521.8+4338_daily_bin1586.fits evtable="EVENTS" scfile=/scratch/kocevski/504946/ft2_4FGL_J1521.8+4338_daily_bin1586.fits sctable="SC_DATA" expcube=/scratch/kocevski/504946/ltcube_650419201_650678401_4FGL_J1521.8+4338_daily_bin1586.fits outfile=/scratch/kocevski/504946/expmap_650419201_650678401_4FGL_J1521.8+4338_daily_bin1586.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/504946/ltcube_650419201_650678401_4FGL_J1521.8+4338_daily_bin1586.fits
.....................!
real 191.17
user 185.81
sys 4.99

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/504946/ft1_filtered_4FGL_J1521.8+4338_daily_bin1586.fits scfile=/scratch/kocevski/504946/ft2_4FGL_J1521.8+4338_daily_bin1586.fits outfile=/scratch/kocevski/504946/cmap_650419201_650678401_4FGL_J1521.8+4338_daily_bin1586.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/504946/ft1_filtered_4FGL_J1521.8+4338_daily_bin1586.fits scfile=/scratch/kocevski/504946/ft2_4FGL_J1521.8+4338_daily_bin1586.fits outfile=/scratch/kocevski/504946/cmap_HighResolution_650419201_650678401_4FGL_J1521.8+4338_daily_bin1586.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=230.464 yref=43.6344 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8908       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.145       1.0000         .10000E-03   10000.    
     4 'norm      '    2.0714       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15556E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9346       1.0000         .10000E-03   10000.    
     7 'norm      '    13.604       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7863       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.9447       1.0000         .10000E-03   10000.    
    13 'norm      '    .17349E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.0634       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .70536       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .38095E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.217       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10397E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.483       1.0000         .10000E-03   10000.    
    23 'Prefactor '    85.861       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10356E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .68273       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.3036       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=   5890.366     FROM MIGRAD    STATUS=CONVERGED    680 CALLS     3466 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9108        102.29       -.65676E-05    .21907E-05
   2  Prefactor     .10000E-03    21.450        .93820E-06** at limit **
   3  Prefactor     12.152        29.482       -.22766E-06    .94961E-04
   4  norm          2.0773        6.1942        .93904E-05    .65824E-04
   5  Prefactor     .10000E-03    35.654       -.12613E-05** at limit **
   6  Prefactor     1.9390        24.360       -.73164E-06    .20699E-04
   7  norm          13.606        9.2924       -.58479E-06    .56698E-04
   8  Prefactor     .10000E-03    5.2516       -.68632E-07** at limit **
   9  Prefactor     1.7885        12.732        .12483E-04    .11337E-04
  10  norm          .10000E-03    .43717       -.45180E-07** at limit **
  11  Prefactor     .10000E-03    2.1099       -.62832E-07** at limit **
  12  Prefactor     3.9462        5.0071       -.41642E-06    .61953E-04
  13  norm          .10000E-03    .80600       -.62921E-06** at limit **
  14  norm          2.0644        3.6118        .22192E-06    .22069E-03
  15  Prefactor     .70918        6.3952        .37139E-06   -.79372E-04
  16  Prefactor     .10001E-03    267.63        .19872E-04** at limit **
  17  Prefactor     13.223        15.260        .25816E-06    .13577E-03
  18  Prefactor     .10000E-03    22.880       -.94868E-06** at limit **
  19  norm          .10000E-03    .37715       -.69197E-07** at limit **
  20  Prefactor     .10000E-03    7.4475       -.79062E-07** at limit **
  21  norm          .10000E-03    5.6528       -.28049E-06** at limit **
  22  Prefactor     14.480        16.696        .23616E-06    .33849E-04
  23  Prefactor     85.926        62.273       -.72355E-05    .37888E-04
  24  Prefactor     .10000E-03    2.8498        .29892E-06** at limit **
  25  Prefactor     .10000E-03    12.538       -.46199E-07** at limit **
  26  Prefactor     .10000E-03    2.7747       -.20850E-06** at limit **
  27  Normalizat    .68270        .17549       -.28724E-05    .33544E-03
  28  Prefactor     1.3033        .17965        .20921E-05    .54430E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.91079
  Prefactor  = 0.0001
  Prefactor  = 12.152
  norm       = 2.07728
  Prefactor  = 0.0001
  Prefactor  = 1.93899
  norm       = 13.6061
  Prefactor  = 0.0001
  Prefactor  = 1.78846
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.9462
  norm       = 0.000100003
  norm       = 2.06436
  Prefactor  = 0.709178
  Prefactor  = 0.000100012
  Prefactor  = 13.2229
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.4803
  Prefactor  = 85.9261
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.682697
  Prefactor  = 1.30334
 **********
 **   18 **HESSE 
 **********

 FCN=   5890.366     FROM HESSE     STATUS=OK           519 CALLS     3985 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9108        102.54        .30260E-03   -1.5431    
   2  Prefactor     .10000E-03    21.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.152        29.467        .11495E-03   -1.5011    
   4  norm          2.0773        6.1873        .14351E-02   -1.5420    
   5  Prefactor     .10000E-03    35.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.9390        24.193        .29856E-03   -1.5429    
   7  norm          13.606        9.2914        .10860E-03   -1.4970    
   8  Prefactor     .10000E-03    5.2630        .17176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.7885        12.687        .15652E-02   -1.5440    
  10  norm          .10000E-03    .44241        .49521E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.1123        .10886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.9462        4.9910        .18500E-03   -1.5311    
  13  norm          .10000E-03    5.2395        .13043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.0644        3.7597        .16187E-03   -1.5421    
  15  Prefactor     .70918        27.843        .31112E-02   -1.5540    
  16  Prefactor     .10001E-03    267.92        .21286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.223        15.273        .11018E-03   -1.4981    
  18  Prefactor     .10000E-03    23.252        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .38050        .46026E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.4539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.6632        .17823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     14.480        16.690        .10525E-03   -1.4947    
  23  Prefactor     85.926        62.336        .21678E-03   -1.3851    
  24  Prefactor     .10000E-03    2.9328        .25302E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    12.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    2.8259        .12483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .68270        .20843        .26908E-03   -1.0458    
  28  Prefactor     1.3033        .21905        .21823E-03   -.83208    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24196e-08
Minuit parameter uncertainties:
  1  28.0447
  2  1.85032e-05
  3  29.5018
  4  6.18923
  5  1.08873e-05
  6  13.7047
  7  9.29236
  8  1.27511e-05
  9  9.52955
  10  3.15455e-06
  11  4.15852e-06
  12  4.99154
  13  0.000239338
  14  3.76015
  15  8.89103
  16  0.00363226
  17  15.2773
  18  0.000161894
  19  2.25998e-06
  20  2.13635e-05
  21  1.99937e-05
  22  16.6955
  23  62.3839
  24  2.50622e-05
  25  5.20398e-05
  26  1.49877e-05
  27  0.20867
  28  0.219201
Done.

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

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  1.000e-04  1.619e-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:  1.303e+00  2.192e-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:  6.827e-01  2.087e-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.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/504946/likelihoodResults_650419201_650678401_4FGL_J1521.8+4338_daily_bin1586.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) = 5890.36629099
delta logL = -0.000205112285585

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5890.36608629
delta logL = -4.10077518609e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12524E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9719       1.0000          .0000       10.000    
     3 'Normalizat'    .68273       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3033       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=   5890.366     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      255 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    26.425        .36285E-03** at limit **
   2  Index         3.0117        6.4756        .50000       -.15386E-04
   3  Normalizat    .68270        .19565        .26909E-03   -.20909E-03
   4  Prefactor     1.3033        .21376        .21823E-03   -.14487E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Index      = 3.01171
  Normalizat = 0.682696
  Prefactor  = 1.30333
 **********
 **   18 **HESSE 
 **********

 FCN=   5890.366     FROM HESSE     STATUS=OK            29 CALLS      284 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    26.119        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0117        6.4733        .50000       -.40896    
   3  Normalizat    .68270        .19584        .10764E-04   -1.0458    
   4  Prefactor     1.3033        .21397        .43646E-04   -.83208    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.48613e-10
Minuit parameter uncertainties:
  1  0.000813857
  2  4.58886
  3  0.196039
  4  0.214114
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/504946': 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) = 5890.36608563
delta logL = 2.54867700278e-07

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  1.000e-04  8.139e-04  1.000e-04  1.000e+04 ( 1.000e-12)
311        Index:  3.012e+00  4.589e+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.303e+00  2.141e-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:  6.827e-01  1.960e-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/504946/cmap_HighResolution_650419201_650678401_4FGL_J1521.8+4338_daily_bin1586.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.00e-03', job_status='DONE', photon_flux_upper_limit='1.00e-07', time_completed='2021-09-12 02:16:04.959491', job_id='504946', GAL2='1.30', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1631438164.96', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.30', dlogl='2.55e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.94' WHERE bin_id='1586' AND source_name='4FGL J1521.8+4338' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:16:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 504946: <4FGL_J1521.8+4338_daily_bin1586> in cluster <slac> Done

Job <4FGL_J1521.8+4338_daily_bin1586> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep 12 02:01:00 2021
Job was executed on host(s) <bullet0125>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 02:01:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 02:01:01 2021
Terminated at Sun Sep 12 02:16:05 2021
Results reported at Sun Sep 12 02:16:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1521.8+4338_daily_bin1586 230.464 43.6344 650419201 650678401 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 :                                   770.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            905 sec.

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

