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


Performing analysis on: 4FGL_J1521.8+4338_daily_bin3
RA = 230.464, Dec = 43.6344
tmin = 240105601, tmax = 240364801
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='496355', job_status='RUN', time_executed='2021-09-12 01:38:06.390161', time_epoch_executed='1631435886.39' WHERE source_name='4FGL J1521.8+4338' and cadence='daily' and bin_id='3'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/496355

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/496355/ft1_4FGL_J1521.8+4338_daily_bin3.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/496355/ft2_4FGL_J1521.8+4338_daily_bin3.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/496355/ft1_4FGL_J1521.8+4338_daily_bin3.fits outfile=/scratch/kocevski/496355/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin3.fits ra=230.464 dec=43.6344 rad=12.0 tmin=240105601.0 tmax=240364801.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.25
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/496355/ft1_filtered_4FGL_J1521.8+4338_daily_bin3.fits" evtable="EVENTS" scfile=/scratch/kocevski/496355/ft2_4FGL_J1521.8+4338_daily_bin3.fits sctable="SC_DATA" outfile=/scratch/kocevski/496355/ltcube_240105601_240364801_4FGL_J1521.8+4338_daily_bin3.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/496355/ft2_4FGL_J1521.8+4338_daily_bin3.fits
.....................!
real 12.49
user 12.11
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/496355/ft1_filtered_4FGL_J1521.8+4338_daily_bin3.fits evtable="EVENTS" scfile=/scratch/kocevski/496355/ft2_4FGL_J1521.8+4338_daily_bin3.fits sctable="SC_DATA" expcube=/scratch/kocevski/496355/ltcube_240105601_240364801_4FGL_J1521.8+4338_daily_bin3.fits outfile=/scratch/kocevski/496355/expmap_240105601_240364801_4FGL_J1521.8+4338_daily_bin3.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/496355/ltcube_240105601_240364801_4FGL_J1521.8+4338_daily_bin3.fits
.....................!
real 190.85
user 185.31
sys 5.19

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/496355/ft1_filtered_4FGL_J1521.8+4338_daily_bin3.fits scfile=/scratch/kocevski/496355/ft2_4FGL_J1521.8+4338_daily_bin3.fits outfile=/scratch/kocevski/496355/cmap_240105601_240364801_4FGL_J1521.8+4338_daily_bin3.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=230.464 yref=43.6344 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4057       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.969       1.0000         .10000E-03   10000.    
     4 'norm      '    1.0791       1.0000         .10000E-03   10000.    
     5 'Prefactor '    95.159       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.907       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.4068       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.3369       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    121.35       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .76833       1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.922       1.0000         .10000E-03   10000.    
    19 'norm      '    7.7683       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.8888       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2570       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .60759       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=   5597.887     FROM MIGRAD    STATUS=CONVERGED    669 CALLS     3466 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4065        31.284        .16507E-05    .69068E-05
   2  Prefactor     .10000E-03    66.139       -.43285E-04** at limit **
   3  Prefactor     10.968        28.431       -.15956E-05   -.66061E-05
   4  norm          1.0787        1.4267        .49066E-06   -.29243E-02
   5  Prefactor     95.162        55.118        .15991E-05    .22358E-05
   6  Prefactor     .10000E-03    12.608        .34009E-05** at limit **
   7  norm          10.907        8.2398        .27263E-08    .70736E-06
   8  Prefactor     4.4060        9.4210       -.10251E-06   -.34653E-03
   9  Prefactor     .10000E-03    11.725       -.27002E-05** at limit **
  10  norm          .10000E-03    1.0443        .71195E-07** at limit **
  11  Prefactor     .10000E-03    3.2508       -.19407E-07** at limit **
  12  Prefactor     .10000E-03    1.3077       -.33672E-08** at limit **
  13  norm          .10000E-03    .77432       -.45774E-08** at limit **
  14  norm          1.3391        2.9665        .58212E-06   -.16856E-04
  15  Prefactor     .10000E-03    11.988       -.10458E-05** at limit **
  16  Prefactor     121.35        70.204        .25084E-05   -.14492E-04
  17  Prefactor     .76129        12.152        .16306E-05   -.65089E-05
  18  Prefactor     18.931        13.365       -.28345E-05   -.22713E-03
  19  norm          7.7683        2.1130       -.15275E-07   -.58700E-04
  20  Prefactor     .10000E-03    8.3063        .43259E-05** at limit **
  21  norm          .10000E-03    6.4166        .16343E-05** at limit **
  22  Prefactor     .10000E-03    6.9732       -.39343E-05** at limit **
  23  Prefactor     .10000E-03    59.780        .37498E-04** at limit **
  24  Prefactor     4.8884        4.8585        .98959E-06   -.31305E-04
  25  Prefactor     .10000E-03    10.280       -.15345E-05** at limit **
  26  Prefactor     .10000E-03    1.0618       -.12837E-07** at limit **
  27  Normalizat    1.2570        .18198        .19728E-06   -.17516E-03
  28  Prefactor     .60761        .17902       -.45224E-06   -.84106E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.40653
  Prefactor  = 0.0001
  Prefactor  = 10.9683
  norm       = 1.07874
  Prefactor  = 95.162
  Prefactor  = 0.0001
  norm       = 10.9072
  Prefactor  = 4.40601
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.33909
  Prefactor  = 0.0001
  Prefactor  = 121.354
  Prefactor  = 0.761285
  Prefactor  = 18.9312
  norm       = 7.76827
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.88842
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.25698
  Prefactor  = 0.607607
 **********
 **   18 **HESSE 
 **********

 FCN=   5597.887     FROM HESSE     STATUS=OK           521 CALLS     3987 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4065        31.559        .17284E-03   -1.5243    
   2  Prefactor     .10000E-03    66.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.968        28.467        .12097E-03   -1.5045    
   4  norm          1.0787        5.5939        .16951E-02   -1.5500    
   5  Prefactor     95.162        55.765        .20601E-03   -1.3754    
   6  Prefactor     .10000E-03    12.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.907        8.2508        .12131E-03   -1.5047    
   8  Prefactor     4.4060        9.4310        .95922E-03   -1.5288    
   9  Prefactor     .10000E-03    11.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.8350        .14770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.2676        .13172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.3089        .83553E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .81018        .12832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.3391        2.9057        .17947E-03   -1.5477    
  15  Prefactor     .10000E-03    12.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     121.35        70.213        .36534E-04   -1.3500    
  17  Prefactor     .76129        85.467        .46882E-02   -1.5533    
  18  Prefactor     18.931        13.295        .92076E-04   -1.4837    
  19  norm          7.7683        2.1135        .55001E-04   -1.5150    
  20  Prefactor     .10000E-03    8.3126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    6.4282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.9748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    59.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.8884        4.8517        .15907E-03   -1.5266    
  25  Prefactor     .10000E-03    10.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    1.0640        .75289E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.2570        .21225        .20679E-03   -.84860    
  28  Prefactor     .60761        .20805        .29334E-03   -1.0727    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09086e-08
Minuit parameter uncertainties:
  1  26.1452
  2  0.000264584
  3  28.5026
  4  4.91348
  5  55.7954
  6  1.93317e-05
  7  8.25162
  8  9.43421
  9  1.95047e-06
  10  3.91942e-06
  11  1.68683e-06
  12  8.52242e-07
  13  2.42421e-06
  14  2.90605
  15  0.00012398
  16  70.2615
  17  16.1552
  18  13.2971
  19  2.11347
  20  8.49407e-06
  21  1.15776e-06
  22  5.90662e-06
  23  0.000187704
  24  4.85206
  25  3.24641e-05
  26  7.27873e-08
  27  0.212396
  28  0.208314
Done.

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

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  1.893e+01  1.330e+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:  6.076e-01  2.083e-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.257e+00  2.124e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.69
Ra Dec: 230.464 43.634
Photon Index (Fixed Index): 2.94 +/- 0.00
Photon Flux (Fixed Index): 6.58e-08 +/- 4.62e-08
Energy Flux (Fixed Index): 1.36e-05 +/- 9.54e-06

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) = 5597.13676173
delta logL = 0.749955184161

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5597.11543128
delta logL = 0.771285639147

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.436       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0804       1.0000          .0000       10.000    
     3 'Normalizat'    1.3037       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57043       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=   5597.115     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      215 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.461        15.415        .21628E-02    .62552E-05
   2  Index         2.0812        .43834        .21458       -.51621E-04
   3  Normalizat    1.3036        .17597        .32740E-01   -.14337E-05
   4  Prefactor     .57041        .17975        .68206E-01    .26803E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.461
  Index      = 2.08123
  Normalizat = 1.30362
  Prefactor  = 0.570407
 **********
 **   18 **HESSE 
 **********

 FCN=   5597.115     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.461        16.381        .86512E-04   -1.4781    
   2  Index         2.0812        .57650        .76687E-02   -.62334    
   3  Normalizat    1.3036        .20280        .20363E-03   -.83458    
   4  Prefactor     .57041        .20553        .30188E-03   -1.0885    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50876e-12
Minuit parameter uncertainties:
  1  16.3846
  2  0.57846
  3  0.202927
  4  0.205797
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/496355': 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) = 5597.11542968
delta logL = 0.771287234471

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  2.146e+01  1.638e+01  1.000e-04  1.000e+04 ( 1.000e-12)
311        Index:  2.081e+00  5.785e-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:  5.704e-01  2.058e-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.304e+00  2.029e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.24
Ra Dec: 230.464 43.634
Photon Index (Free Index): 2.08 +/- 0.58
Photon Flux (Free Index): 3.92e-08 +/- 3.61e-08
Energy Flux (Free Index): 2.24e-05 +/- 2.20e-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/496355/cmap_HighResolution_240105601_240364801_4FGL_J1521.8+4338_daily_bin3.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.58e-08', energy_flux2='2.24e-05', photon_flux_error='4.62e-08', dlogl='7.71e-01', energy_flux='1.36e-05', photon_flux2='3.92e-08', job_status='DONE', time_completed='2021-09-12 01:49:18.216246', photon_index_error2='0.58', photon_index2='2.08', ts='4.69', fit_tolerance='1e-08', GAL='0.61', photon_index_error='0.00', energy_flux_error2='2.20e-05', EG='1.26', time_epoch_completed='1631436558.22', return_code='0', job_id='496355', GAL2='0.57', EG2='1.30', return_code2='0', energy_flux_error='9.54e-06', photon_flux_error2='3.61e-08', ts2='6.24', photon_index='2.94' WHERE bin_id='3' AND source_name='4FGL J1521.8+4338' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:49:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 496355: <4FGL_J1521.8+4338_daily_bin3> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1521.8+4338_daily_bin3 230.464 43.6344 240105601 240364801 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 :                                   671.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            816 sec.

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

