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


Performing analysis on: 4FGL_J1521.8+4338_daily_bin845
RA = 230.464, Dec = 43.6344
tmin = 458352001, tmax = 458611201
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='501009', job_status='RUN', time_executed='2021-09-12 01:51:09.009213', time_epoch_executed='1631436669.01' WHERE source_name='4FGL J1521.8+4338' and cadence='daily' and bin_id='845'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/501009

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/501009/ft1_4FGL_J1521.8+4338_daily_bin845.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/501009/ft2_4FGL_J1521.8+4338_daily_bin845.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/501009/ft1_4FGL_J1521.8+4338_daily_bin845.fits outfile=/scratch/kocevski/501009/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin845.fits ra=230.464 dec=43.6344 rad=12.0 tmin=458352001.0 tmax=458611201.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.46
user 4.25
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/501009/ft1_filtered_4FGL_J1521.8+4338_daily_bin845.fits" evtable="EVENTS" scfile=/scratch/kocevski/501009/ft2_4FGL_J1521.8+4338_daily_bin845.fits sctable="SC_DATA" outfile=/scratch/kocevski/501009/ltcube_458352001_458611201_4FGL_J1521.8+4338_daily_bin845.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/501009/ft2_4FGL_J1521.8+4338_daily_bin845.fits
.....................!
real 11.84
user 11.50
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/501009/ft1_filtered_4FGL_J1521.8+4338_daily_bin845.fits evtable="EVENTS" scfile=/scratch/kocevski/501009/ft2_4FGL_J1521.8+4338_daily_bin845.fits sctable="SC_DATA" expcube=/scratch/kocevski/501009/ltcube_458352001_458611201_4FGL_J1521.8+4338_daily_bin845.fits outfile=/scratch/kocevski/501009/expmap_458352001_458611201_4FGL_J1521.8+4338_daily_bin845.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/501009/ltcube_458352001_458611201_4FGL_J1521.8+4338_daily_bin845.fits
.....................!
real 189.39
user 184.81
sys 4.12

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/501009/ft1_filtered_4FGL_J1521.8+4338_daily_bin845.fits scfile=/scratch/kocevski/501009/ft2_4FGL_J1521.8+4338_daily_bin845.fits outfile=/scratch/kocevski/501009/cmap_458352001_458611201_4FGL_J1521.8+4338_daily_bin845.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.38
sys 0.14

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .16622E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.4386       1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.920       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.2198       1.0000         .10000E-03   10000.    
     7 'norm      '    8.5856       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.0340       1.0000         .10000E-03   10000.    
    10 'norm      '    2.3336       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.3169       1.0000         .10000E-03   10000.    
    14 'norm      '    4.1839       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .21746E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.473       1.0000         .10000E-03   10000.    
    19 'norm      '    9.3022       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.1788       1.0000         .10000E-03   10000.    
    25 'Prefactor '    13.650       1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.4998       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1778       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .70736       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=   5357.910     FROM MIGRAD    STATUS=CONVERGED    717 CALLS     4027 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.009        .38427E-06** at limit **
   2  Prefactor     .10000E-03    14.876       -.54591E-07** at limit **
   3  Prefactor     .10000E-03    103.14        .35794E-05** at limit **
   4  norm          1.4395        4.4247       -.56106E-06   -.60025E-03
   5  Prefactor     22.911        53.392       -.55397E-05    .47958E-04
   6  Prefactor     7.2201        9.9729       -.84763E-06   -.59984E-03
   7  norm          8.5866        9.4396       -.18325E-06   -.12653E-04
   8  Prefactor     .10000E-03    11.257        .32565E-07** at limit **
   9  Prefactor     8.0374        15.108       -.10668E-06   -.34279E-04
  10  norm          2.3337        1.5758       -.71262E-08   -.51314E-04
  11  Prefactor     .10000E-03    3.1108        .85846E-08** at limit **
  12  Prefactor     .10000E-03    6.8782       -.14588E-07** at limit **
  13  norm          1.3170        1.2748       -.28492E-07   -.18005E-03
  14  norm          4.1839        2.8369        .35601E-06    .18102E-02
  15  Prefactor     .10000E-03    4.7811       -.16162E-07** at limit **
  16  Prefactor     .10000E-03    34.153       -.60156E-05** at limit **
  17  Prefactor     .10006E-03    39.058       -.50155E-06** at limit **
  18  Prefactor     11.468        18.411       -.28762E-06    .16925E-04
  19  norm          9.3021        2.7804       -.17051E-07    .86361E-06
  20  Prefactor     .10000E-03    9.5717       -.17728E-07** at limit **
  21  norm          .10000E-03    6.8929       -.13385E-07** at limit **
  22  Prefactor     .10001E-03    41.402        .14032E-04** at limit **
  23  Prefactor     .10000E-03    46.999       -.98849E-05** at limit **
  24  Prefactor     7.1813        10.946        .28037E-07   -.72445E-04
  25  Prefactor     13.644        40.041       -.11970E-05    .12024E-04
  26  Prefactor     6.5003        5.2894       -.46778E-07   -.58810E-04
  27  Normalizat    1.1777        .19183        .45157E-06   -.27200E-04
  28  Prefactor     .70736        .18757        .30681E-08   -.30933E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.4395
  Prefactor  = 22.9108
  Prefactor  = 7.22007
  norm       = 8.58657
  Prefactor  = 0.0001
  Prefactor  = 8.03741
  norm       = 2.3337
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.31695
  norm       = 4.18388
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100057
  Prefactor  = 11.4676
  norm       = 9.30213
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.000100003
  Prefactor  = 7.18131
  Prefactor  = 13.6444
  Prefactor  = 6.50028
  Normalizat = 1.17773
  Prefactor  = 0.707361
 **********
 **   18 **HESSE 
 **********

 FCN=   5357.910     FROM HESSE     STATUS=OK           529 CALLS     4556 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    104.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.4395        4.4652        .26410E-03   -1.5468    
   5  Prefactor     22.911        52.770        .83666E-04   -1.4750    
   6  Prefactor     7.2201        10.251        .74641E-03   -1.5170    
   7  norm          8.5866        9.4292        .13681E-03   -1.5122    
   8  Prefactor     .10000E-03    11.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.0374        15.080        .14145E-03   -1.5141    
  10  norm          2.3337        1.5728        .72230E-04   -1.5402    
  11  Prefactor     .10000E-03    3.1202        .12605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.1435        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.3170        1.2564        .78499E-04   -1.5478    
  14  norm          4.1839        2.9428        .50525E-03   -1.5299    
  15  Prefactor     .10000E-03    4.7883        .15597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    33.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10006E-03    50.477        .92535E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.468        18.694        .11827E-03   -1.5031    
  19  norm          9.3021        2.7824        .64141E-04   -1.5098    
  20  Prefactor     .10000E-03    9.5826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    6.9113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    39.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    45.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     7.1813        10.819        .14971E-03   -1.5172    
  25  Prefactor     13.644        39.624        .10841E-03   -1.4969    
  26  Prefactor     6.5003        5.2893        .14634E-03   -1.5198    
  27  Normalizat    1.1777        .22482        .22251E-03   -.87294    
  28  Prefactor     .70736        .21833        .28473E-03   -1.0324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11637e-09
Minuit parameter uncertainties:
  1  2.21569e-05
  2  3.94939e-06
  3  9.99968e-05
  4  4.4662
  5  52.8773
  6  10.2537
  7  9.43078
  8  3.57952e-06
  9  15.0868
  10  1.57282
  11  1.74015e-06
  12  2.95128e-06
  13  1.25642
  14  2.94291
  15  6.93493e-07
  16  0.000388982
  17  0.00340641
  18  18.7031
  19  2.78241
  20  1.50903e-06
  21  1.73331e-06
  22  0.00117096
  23  0.000751878
  24  10.8221
  25  39.7003
  26  5.28964
  27  0.225008
  28  0.218595
Done.

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

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  1.147e+01  1.870e+01  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:  7.074e-01  2.186e-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.178e+00  2.250e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.81
Ra Dec: 230.464 43.634
Photon Flux Upper Limit: 1.43e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/501009/likelihoodResults_458352001_458611201_4FGL_J1521.8+4338_daily_bin845.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): 0
logL (Free Index) = 5357.18120454
delta logL = 0.728869153292

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5357.14522684
delta logL = 0.764846849725

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9857       1.0000         .10000E-03   10000.    
     2 'Index     '    4.8300       1.0000          .0000       10.000    
     3 'Normalizat'    1.1262       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74610       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=   5357.145     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      258 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9794        44.464        .58737E-02    .21681E-03
   2  Index         4.8315        7.1445        .19204        .65089E-04
   3  Normalizat    1.1261        .56660E-01    .37023E-01   -.20570E-04
   4  Prefactor     .74610        .57884E-01    .62810E-01    .98695E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.97941
  Index      = 4.83155
  Normalizat = 1.12613
  Prefactor  = 0.746096
 **********
 **   18 **HESSE 
 **********

 FCN=   5357.145     FROM HESSE     STATUS=OK            33 CALLS      291 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9794        58.074        .89475E-04   -1.5363    
   2  Index         4.8315        7.4056        .71502E-02   -.33697E-01
   3  Normalizat    1.1261        .22046        .22665E-03   -.88917    
   4  Prefactor     .74610        .21995        .27784E-03   -1.0175    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2969e-07
Minuit parameter uncertainties:
  1  26.337
  2  7.22955
  3  0.220639
  4  0.220204
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/501009': 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) = 5357.14522628
delta logL = 0.764847415248

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  2.979e+00  2.634e+01  1.000e-04  1.000e+04 ( 1.000e-12)
311        Index:  4.832e+00  7.230e+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:  7.461e-01  2.202e-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.126e+00  2.206e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.44
Ra Dec: 230.464 43.634
Photon Index (Free Index): 4.83 +/- 7.23
Photon Flux (Free Index): 7.96e-08 +/- 6.55e-08
Energy Flux (Free Index): 1.07e-05 +/- 1.34e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/501009/cmap_HighResolution_458352001_458611201_4FGL_J1521.8+4338_daily_bin845.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', comment='SUCCESS', energy_flux2='1.07e-05', dlogl='7.65e-01', photon_flux2='7.96e-08', job_status='DONE', time_completed='2021-09-12 02:04:30.358204', photon_index_error2='7.23', photon_index2='4.83', ts='0.81', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='1.43e-07', energy_flux_error2='1.34e-05', EG='1.18', time_epoch_completed='1631437470.36', return_code='0', job_id='501009', GAL2='0.75', EG2='1.13', return_code2='0', photon_flux_error2='6.55e-08', ts2='2.44', photon_index='2.94' WHERE bin_id='845' AND source_name='4FGL J1521.8+4338' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:04:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 501009: <4FGL_J1521.8+4338_daily_bin845> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1521.8+4338_daily_bin845 230.464 43.6344 458352001 458611201 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 :                                   796.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            820 sec.

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

