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


Performing analysis on: 4FGL_J1521.8+4338_daily_bin821
RA = 230.464, Dec = 43.6344
tmin = 452131201, tmax = 452390401
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='500972', job_status='RUN', time_executed='2021-09-12 01:51:08.174801', time_epoch_executed='1631436668.17' WHERE source_name='4FGL J1521.8+4338' and cadence='daily' and bin_id='821'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/500972

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/500972/ft1_4FGL_J1521.8+4338_daily_bin821.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/500972/ft2_4FGL_J1521.8+4338_daily_bin821.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/500972/ft1_4FGL_J1521.8+4338_daily_bin821.fits outfile=/scratch/kocevski/500972/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin821.fits ra=230.464 dec=43.6344 rad=12.0 tmin=452131201.0 tmax=452390401.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.36
user 3.13
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/500972/ft1_filtered_4FGL_J1521.8+4338_daily_bin821.fits evtable="EVENTS" scfile=/scratch/kocevski/500972/ft2_4FGL_J1521.8+4338_daily_bin821.fits sctable="SC_DATA" expcube=/scratch/kocevski/500972/ltcube_452131201_452390401_4FGL_J1521.8+4338_daily_bin821.fits outfile=/scratch/kocevski/500972/expmap_452131201_452390401_4FGL_J1521.8+4338_daily_bin821.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/500972/ltcube_452131201_452390401_4FGL_J1521.8+4338_daily_bin821.fits
.....................!
real 190.78
user 184.88
sys 5.50

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/500972/ft1_filtered_4FGL_J1521.8+4338_daily_bin821.fits scfile=/scratch/kocevski/500972/ft2_4FGL_J1521.8+4338_daily_bin821.fits outfile=/scratch/kocevski/500972/cmap_452131201_452390401_4FGL_J1521.8+4338_daily_bin821.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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/500972/ft1_filtered_4FGL_J1521.8+4338_daily_bin821.fits scfile=/scratch/kocevski/500972/ft2_4FGL_J1521.8+4338_daily_bin821.fits outfile=/scratch/kocevski/500972/cmap_HighResolution_452131201_452390401_4FGL_J1521.8+4338_daily_bin821.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2839       1.0000         .10000E-03   10000.    
     2 'Prefactor '    52.094       1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.264       1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.523       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.1962       1.0000         .10000E-03   10000.    
     7 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.7663       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.3014       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .53068       1.0000         .10000E-03   10000.    
    13 'norm      '    1.5336       1.0000         .10000E-03   10000.    
    14 'norm      '    6.6123       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10300E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10654E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.949       1.0000         .10000E-03   10000.    
    19 'norm      '    6.0941       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11463E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    26.074       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.0436       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.0270       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1164       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .81037       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=   6490.644     FROM MIGRAD    STATUS=CONVERGED    668 CALLS     3459 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2891        41.961        .17851E-04   -.48471E-04
   2  Prefactor     52.091        46.140        .21937E-06    .19308E-04
   3  Prefactor     27.262        22.431       -.10770E-07    .92957E-05
   4  norm          .10000E-03    2.9144        .12682E-06** at limit **
   5  Prefactor     30.526        26.526       -.11643E-06    .23292E-04
   6  Prefactor     2.2007        20.682        .30113E-07   -.20582E-06
   7  norm          .10000E-03    10.248        .54744E-06** at limit **
   8  Prefactor     1.7703        51.906        .75043E-06    .40774E-04
   9  Prefactor     .10000E-03    6.0155       -.34932E-06** at limit **
  10  norm          1.3015        1.2016        .62411E-07    .30748E-03
  11  Prefactor     .10000E-03    18.280        .10620E-05** at limit **
  12  Prefactor     .56382        3.0013       -.62662E-06   -.12120E-03
  13  norm          1.5342        1.7713        .36814E-06    .11652E-02
  14  norm          6.6111        3.6836        .24703E-07   -.18351E-03
  15  Prefactor     .10000E-03    4.2837        .48497E-07** at limit **
  16  Prefactor     .10000E-03    28.068       -.12283E-05** at limit **
  17  Prefactor     .10000E-03    15.948        .29626E-06** at limit **
  18  Prefactor     12.945        12.095       -.42097E-06   -.36131E-03
  19  norm          6.0942        2.1281        .36495E-07    .28259E-03
  20  Prefactor     .10000E-03    17.969       -.47347E-06** at limit **
  21  norm          26.063        15.430        .31310E-07   -.77275E-04
  22  Prefactor     .10000E-03    6.1738        .33484E-06** at limit **
  23  Prefactor     .10000E-03    36.800        .12758E-05** at limit **
  24  Prefactor     7.0481        5.2212        .14641E-06    .25967E-03
  25  Prefactor     .10000E-03    32.033        .51956E-06** at limit **
  26  Prefactor     8.0282        5.5679        .64779E-07    .70844E-04
  27  Normalizat    1.1164        .18286       -.71879E-06    .15041E-03
  28  Prefactor     .81034        .18065        .25966E-06    .14671E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.28914
  Prefactor  = 52.0906
  Prefactor  = 27.2622
  norm       = 0.0001
  Prefactor  = 30.5263
  Prefactor  = 2.20066
  norm       = 0.000100001
  Prefactor  = 1.77034
  Prefactor  = 0.0001
  norm       = 1.30151
  Prefactor  = 0.000100001
  Prefactor  = 0.563818
  norm       = 1.53416
  norm       = 6.61108
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.945
  norm       = 6.0942
  Prefactor  = 0.0001
  norm       = 26.0635
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.04807
  Prefactor  = 0.000100001
  Prefactor  = 8.02817
  Normalizat = 1.1164
  Prefactor  = 0.810337
 **********
 **   18 **HESSE 
 **********

 FCN=   6490.644     FROM HESSE     STATUS=OK           523 CALLS     3982 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2891        42.485        .19571E-02   -1.5481    
   2  Prefactor     52.091        46.006        .55567E-04   -1.4263    
   3  Prefactor     27.262        22.480        .76724E-04   -1.4663    
   4  norm          .10000E-03    2.9473        .13430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     30.526        26.525        .72522E-04   -1.4602    
   6  Prefactor     2.2007        20.487        .27767E-03   -1.5411    
   7  norm          .10000E-03    10.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.7703        50.143        .31517E-03   -1.5442    
   9  Prefactor     .10000E-03    6.0305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.3015        1.1991        .81777E-04   -1.5480    
  11  Prefactor     .10000E-03    18.750        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .56382        9.5079        .26302E-02   -1.5558    
  13  norm          1.5342        1.7404        .10452E-03   -1.5460    
  14  norm          6.6111        3.6754        .10744E-03   -1.5194    
  15  Prefactor     .10000E-03    4.2949        .16247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    28.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.945        12.177        .11131E-03   -1.4988    
  19  norm          6.0942        2.1283        .66907E-04   -1.5214    
  20  Prefactor     .10000E-03    18.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          26.063        15.409        .78451E-04   -1.4686    
  22  Prefactor     .10000E-03    6.1763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    36.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     7.0481        5.2168        .15115E-03   -1.5177    
  25  Prefactor     .10000E-03    32.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     8.0282        5.5724        .14152E-03   -1.5141    
  27  Normalizat    1.1164        .21347        .22614E-03   -.89227    
  28  Prefactor     .81034        .21104        .27414E-03   -.99348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82266e-08
Minuit parameter uncertainties:
  1  14.8121
  2  46.0369
  3  22.4868
  4  1.50109e-05
  5  26.535
  6  13.435
  7  0.000167131
  8  18.8605
  9  4.14524e-06
  10  1.19915
  11  0.000322506
  12  4.6311
  13  1.7405
  14  3.67551
  15  7.96564e-06
  16  6.62713e-05
  17  5.38234e-05
  18  12.1793
  19  2.12831
  20  0.000179108
  21  15.4111
  22  1.6703e-05
  23  0.00013974
  24  5.21709
  25  0.000375518
  26  5.57276
  27  0.213637
  28  0.211251
Done.

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

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  1.295e+01  1.218e+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:  8.103e-01  2.113e-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.116e+00  2.136e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.61
Ra Dec: 230.464 43.634
Photon Index (Fixed Index): 2.94 +/- 0.00
Photon Flux (Fixed Index): 4.50e-08 +/- 4.23e-08
Energy Flux (Fixed Index): 9.29e-06 +/- 8.73e-06

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

Saving results to:
/scratch/kocevski/500972/likelihoodResults_452131201_452390401_4FGL_J1521.8+4338_daily_bin821.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) = 6490.23815202
delta logL = 0.405949618611

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6490.21020235
delta logL = 0.433899289207

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2477       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1861       1.0000          .0000       10.000    
     3 'Normalizat'    1.0813       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83877       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=   6490.210     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      236 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2478        76.367        .43866E-02    .96164E-03
   2  Index         4.1866        6.9687        .20424        .89106E-04
   3  Normalizat    1.0812        .53115E-01    .38819E-01    .86025E-05
   4  Prefactor     .83878        .54937E-01    .44220E-01    .18360E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.24777
  Index      = 4.18657
  Normalizat = 1.08122
  Prefactor  = 0.838779
 **********
 **   18 **HESSE 
 **********

 FCN=   6490.210     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .48E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2478        240.68        .12801E-03   -1.5250    
   2  Index         4.1866        5.9846        .79646E-02   -.16341    
   3  Normalizat    1.0812        .21544        .22926E-03   -.90357    
   4  Prefactor     .83878        .23762        .27002E-03   -.98314    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.76616e-07
Minuit parameter uncertainties:
  1  71.3854
  2  11.7808
  3  0.215617
  4  0.23791
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/500972': 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) = 6490.210202
delta logL = 0.433899633081

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  5.248e+00  7.139e+01  1.000e-04  1.000e+04 ( 1.000e-12)
311        Index:  4.187e+00  1.178e+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:  8.388e-01  2.379e-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.081e+00  2.156e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.57
Ra Dec: 230.464 43.634
Photon Index (Free Index): 4.19 +/- 11.78
Photon Flux (Free Index): 6.68e-08 +/- 5.60e-08
Energy Flux (Free Index): 9.71e-06 +/- 2.14e-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/500972/cmap_HighResolution_452131201_452390401_4FGL_J1521.8+4338_daily_bin821.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', comment='SUCCESS', photon_flux='4.50e-08', energy_flux2='9.71e-06', photon_flux_error='4.23e-08', dlogl='4.34e-01', energy_flux='9.29e-06', photon_flux2='6.68e-08', job_status='DONE', time_completed='2021-09-12 02:05:32.188279', photon_index_error2='11.78', photon_index2='4.19', ts='1.61', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='2.14e-05', EG='1.12', time_epoch_completed='1631437532.19', return_code='0', job_id='500972', GAL2='0.84', EG2='1.08', return_code2='0', energy_flux_error='8.73e-06', photon_flux_error2='5.60e-08', ts2='2.57', photon_index='2.94' WHERE bin_id='821' AND source_name='4FGL J1521.8+4338' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:05:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 500972: <4FGL_J1521.8+4338_daily_bin821> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1521.8+4338_daily_bin821 230.464 43.6344 452131201 452390401 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 :                                   858.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             323.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            884 sec.

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

