/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 2 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7415
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1521.8+4338_daily_bin310
RA = 230.464, Dec = 43.6344
tmin = 319680001, tmax = 319939201
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='497865', job_status='RUN', time_executed='2021-09-12 01:40:50.367576', time_epoch_executed='1631436050.37' WHERE source_name='4FGL J1521.8+4338' and cadence='daily' and bin_id='310'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/497865

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/497865/ft1_4FGL_J1521.8+4338_daily_bin310.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/497865/ft2_4FGL_J1521.8+4338_daily_bin310.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/497865/ft1_4FGL_J1521.8+4338_daily_bin310.fits outfile=/scratch/kocevski/497865/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin310.fits ra=230.464 dec=43.6344 rad=12.0 tmin=319680001.0 tmax=319939201.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.59
user 3.21
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/497865/ft1_filtered_4FGL_J1521.8+4338_daily_bin310.fits evtable="EVENTS" scfile=/scratch/kocevski/497865/ft2_4FGL_J1521.8+4338_daily_bin310.fits sctable="SC_DATA" expcube=/scratch/kocevski/497865/ltcube_319680001_319939201_4FGL_J1521.8+4338_daily_bin310.fits outfile=/scratch/kocevski/497865/expmap_319680001_319939201_4FGL_J1521.8+4338_daily_bin310.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/497865/ltcube_319680001_319939201_4FGL_J1521.8+4338_daily_bin310.fits
.....................!
real 190.03
user 185.13
sys 4.55

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/497865/ft1_filtered_4FGL_J1521.8+4338_daily_bin310.fits scfile=/scratch/kocevski/497865/ft2_4FGL_J1521.8+4338_daily_bin310.fits outfile=/scratch/kocevski/497865/cmap_319680001_319939201_4FGL_J1521.8+4338_daily_bin310.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/497865/ft1_filtered_4FGL_J1521.8+4338_daily_bin310.fits scfile=/scratch/kocevski/497865/ft2_4FGL_J1521.8+4338_daily_bin310.fits outfile=/scratch/kocevski/497865/cmap_HighResolution_319680001_319939201_4FGL_J1521.8+4338_daily_bin310.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/497865/ft1_filtered_4FGL_J1521.8+4338_daily_bin310.fits evtable="EVENTS" scfile=/scratch/kocevski/497865/ft2_4FGL_J1521.8+4338_daily_bin310.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/497865/Model_4FGL_J1521.8+4338_daily_bin310.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/497865/ft1_filtered_4FGL_J1521.8+4338_daily_bin310.fits.....................!
real 51.61
user 50.33
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.4386       1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.340       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.6528       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.9595       1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.236       1.0000         .10000E-03   10000.    
    10 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.2387       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10096E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.1277       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    32.748       1.0000         .10000E-03   10000.    
    19 'norm      '    6.0702       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    32.922       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.0056       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .64119       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0674       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0535       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=   6578.498     FROM MIGRAD    STATUS=CONVERGED    691 CALLS     3605 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.3435        .47283E-08** at limit **
   2  Prefactor     .10000E-03    113.15       -.63531E-08** at limit **
   3  Prefactor     .10000E-03    13.659       -.37347E-06** at limit **
   4  norm          2.4386        5.6152        .52365E-05   -.24775E-03
   5  Prefactor     33.332        29.962        .15469E-06    .23393E-04
   6  Prefactor     9.6492        15.457        .17015E-06   -.19705E-04
   7  norm          .10000E-03    4.2716        .11446E-06** at limit **
   8  Prefactor     9.9611        16.488       -.68753E-06   -.99441E-04
   9  Prefactor     20.231        18.923        .34061E-06   -.77573E-04
  10  norm          .10000E-03    .60527        .11371E-06** at limit **
  11  Prefactor     8.2627        9.8768       -.66951E-06   -.40824E-03
  12  Prefactor     .10000E-03    4.9466        .11850E-06** at limit **
  13  norm          .10000E-03    1.0296        .53816E-06** at limit **
  14  norm          1.1272        3.0907       -.67197E-07   -.29285E-03
  15  Prefactor     .10000E-03    8.3334        .52588E-06** at limit **
  16  Prefactor     .10000E-03    38.526       -.18405E-07** at limit **
  17  Prefactor     .10000E-03    14.812        .23942E-06** at limit **
  18  Prefactor     32.753        17.039        .10099E-06   -.20951E-03
  19  norm          6.0706        2.3264        .24362E-07   -.19466E-03
  20  Prefactor     .10000E-03    7.6015       -.75739E-06** at limit **
  21  norm          .10000E-03    7.0430        .88902E-07** at limit **
  22  Prefactor     .10000E-03    6.9743        .46788E-06** at limit **
  23  Prefactor     32.869        67.395        .10887E-04    .14537E-03
  24  Prefactor     5.0076        8.0513        .35242E-06    .15999E-03
  25  Prefactor     .65252        37.493        .43305E-05   -.25155E-03
  26  Prefactor     .10000E-03    7.8204        .26981E-06** at limit **
  27  Normalizat    1.0673        .18297       -.13718E-05   -.14604E-03
  28  Prefactor     1.0536        .18286        .23812E-06   -.75006E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.43856
  Prefactor  = 33.3316
  Prefactor  = 9.64922
  norm       = 0.0001
  Prefactor  = 9.96114
  Prefactor  = 20.2308
  norm       = 0.0001
  Prefactor  = 8.26271
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.12717
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.7526
  norm       = 6.07058
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.8694
  Prefactor  = 5.00759
  Prefactor  = 0.652517
  Prefactor  = 0.0001
  Normalizat = 1.0673
  Prefactor  = 1.05364
 **********
 **   18 **HESSE 
 **********

 FCN=   6578.498     FROM HESSE     STATUS=OK           521 CALLS     4126 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.3455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    113.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.4386        5.6621        .13100E-02   -1.5396    
   5  Prefactor     33.332        29.967        .69398E-04   -1.4553    
   6  Prefactor     9.6492        15.411        .12898E-03   -1.5087    
   7  norm          .10000E-03    4.2769        .16360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.9611        16.453        .12697E-03   -1.5077    
   9  Prefactor     20.231        18.771        .44519E-03   -1.4808    
  10  norm          .10000E-03    .92964        .12087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.2627        9.4040        .13967E-03   -1.5133    
  12  Prefactor     .10000E-03    5.0095        .17590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.5706        .15015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.1272        3.0136        .22133E-03   -1.5496    
  15  Prefactor     .10000E-03    8.3704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    38.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     32.753        17.019        .70021E-04   -1.4563    
  19  norm          6.0706        2.3268        .73693E-04   -1.5215    
  20  Prefactor     .10000E-03    7.6109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    7.0989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.9768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     32.869        67.536        .69837E-04   -1.4561    
  24  Prefactor     5.0076        10.258        .17974E-03   -1.5260    
  25  Prefactor     .65252        513.48        .69319E-02   -1.5546    
  26  Prefactor     .10000E-03    8.1189        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0673        .22373        .24980E-03   -.90809    
  28  Prefactor     1.0536        .22317        .26278E-03   -.90962    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20842e-08
Minuit parameter uncertainties:
  1  1.8508e-06
  2  7.00295e-05
  3  1.37565e-05
  4  5.66336
  5  29.9802
  6  15.4169
  7  9.11127e-06
  8  16.4606
  9  18.7761
  10  3.67297e-06
  11  9.40569
  12  1.12e-05
  13  2.42672e-05
  14  3.01404
  15  2.14641e-05
  16  1.45796e-05
  17  8.57229e-06
  18  17.0218
  19  2.32679
  20  3.28624e-05
  21  1.49986e-05
  22  2.41842e-05
  23  67.694
  24  10.2613
  25  36.9282
  26  3.29695e-05
  27  0.223931
  28  0.223364
Done.

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

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  3.275e+01  1.702e+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:  1.054e+00  2.234e-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.067e+00  2.239e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.21
Ra Dec: 230.464 43.634
Photon Index (Fixed Index): 2.94 +/- 0.00
Photon Flux (Fixed Index): 1.14e-07 +/- 5.91e-08
Energy Flux (Fixed Index): 2.35e-05 +/- 1.22e-05

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) = 6578.44706084
delta logL = 0.0513252074716

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6578.42693463
delta logL = 0.0714514146066

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.830       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6548       1.0000          .0000       10.000    
     3 'Normalizat'    1.0953       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0310       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=   6578.427     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      241 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.811        380.61        .16738E-02    .81914E-05
   2  Index         2.6538        6.1913        .23026        .10775E-04
   3  Normalizat    1.0957        .14144        .55848E-01    .94465E-05
   4  Prefactor     1.0308        .12038        .59975E-01    .10073E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.8113
  Index      = 2.65383
  Normalizat = 1.09575
  Prefactor  = 1.03077
 **********
 **   18 **HESSE 
 **********

 FCN=   6578.427     FROM HESSE     STATUS=OK            33 CALLS      274 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.811        19.179        .66952E-04   -1.4510    
   2  Index         2.6538        .69767        .84323E-02   -.48842    
   3  Normalizat    1.0957        .22453        .24695E-03   -.89889    
   4  Prefactor     1.0308        .22670        .26523E-03   -.91711    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.69619e-11
Minuit parameter uncertainties:
  1  19.1819
  2  0.700605
  3  0.224725
  4  0.226913
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/497865': 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) = 6578.42693152
delta logL = 0.0714545302271

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  3.581e+01  1.918e+01  1.000e-04  1.000e+04 ( 1.000e-12)
311        Index:  2.654e+00  7.006e-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:  1.031e+00  2.269e-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.096e+00  2.247e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.26
Ra Dec: 230.464 43.634
Photon Index (Free Index): 2.65 +/- 0.70
Photon Flux (Free Index): 9.73e-08 +/- 6.72e-08
Energy Flux (Free Index): 2.43e-05 +/- 1.31e-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/497865/cmap_HighResolution_319680001_319939201_4FGL_J1521.8+4338_daily_bin310.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.14e-07', energy_flux2='2.43e-05', photon_flux_error='5.91e-08', dlogl='7.15e-02', energy_flux='2.35e-05', photon_flux2='9.73e-08', job_status='DONE', time_completed='2021-09-12 01:53:16.369026', photon_index_error2='0.70', photon_index2='2.65', ts='6.21', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='1.31e-05', EG='1.07', time_epoch_completed='1631436796.37', return_code='0', job_id='497865', GAL2='1.03', EG2='1.10', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='6.72e-08', ts2='6.26', photon_index='2.94' WHERE bin_id='310' AND source_name='4FGL J1521.8+4338' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:53:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 497865: <4FGL_J1521.8+4338_daily_bin310> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1521.8+4338_daily_bin310 230.464 43.6344 319680001 319939201 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 :                                   743.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             371.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            758 sec.

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

