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


Performing analysis on: 4FGL_J1521.8+4338_daily_bin326
RA = 230.464, Dec = 43.6344
tmin = 323827201, tmax = 324086401
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='497888', job_status='RUN', time_executed='2021-09-12 01:40:59.494733', time_epoch_executed='1631436059.49' WHERE source_name='4FGL J1521.8+4338' and cadence='daily' and bin_id='326'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/497888

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/497888/ft1_4FGL_J1521.8+4338_daily_bin326.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/497888/ft2_4FGL_J1521.8+4338_daily_bin326.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/497888/ft1_4FGL_J1521.8+4338_daily_bin326.fits outfile=/scratch/kocevski/497888/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin326.fits ra=230.464 dec=43.6344 rad=12.0 tmin=323827201.0 tmax=324086401.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.33
user 3.10
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/497888/ft1_filtered_4FGL_J1521.8+4338_daily_bin326.fits evtable="EVENTS" scfile=/scratch/kocevski/497888/ft2_4FGL_J1521.8+4338_daily_bin326.fits sctable="SC_DATA" expcube=/scratch/kocevski/497888/ltcube_323827201_324086401_4FGL_J1521.8+4338_daily_bin326.fits outfile=/scratch/kocevski/497888/expmap_323827201_324086401_4FGL_J1521.8+4338_daily_bin326.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/497888/ltcube_323827201_324086401_4FGL_J1521.8+4338_daily_bin326.fits
.....................!
real 190.09
user 184.98
sys 4.73

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/497888/ft1_filtered_4FGL_J1521.8+4338_daily_bin326.fits scfile=/scratch/kocevski/497888/ft2_4FGL_J1521.8+4338_daily_bin326.fits outfile=/scratch/kocevski/497888/cmap_323827201_324086401_4FGL_J1521.8+4338_daily_bin326.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/497888/ft1_filtered_4FGL_J1521.8+4338_daily_bin326.fits scfile=/scratch/kocevski/497888/ft2_4FGL_J1521.8+4338_daily_bin326.fits outfile=/scratch/kocevski/497888/cmap_HighResolution_323827201_324086401_4FGL_J1521.8+4338_daily_bin326.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/497888/ft1_filtered_4FGL_J1521.8+4338_daily_bin326.fits evtable="EVENTS" scfile=/scratch/kocevski/497888/ft2_4FGL_J1521.8+4338_daily_bin326.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/497888/Model_4FGL_J1521.8+4338_daily_bin326.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/497888/ft1_filtered_4FGL_J1521.8+4338_daily_bin326.fits.....................!
real 54.48
user 53.23
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.0905       1.0000         .10000E-03   10000.    
     4 'norm      '    .10455E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.0417       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .17383E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .91905       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.4523       1.0000         .10000E-03   10000.    
    14 'norm      '    4.2027       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.5675       1.0000         .10000E-03   10000.    
    16 'Prefactor '    27.316       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .69404       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15120E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    15.597       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    48.239       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.2928       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .38484E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.0308       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3346       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .74233       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7009.632     FROM MIGRAD    STATUS=CONVERGED   1233 CALLS     4066 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.023        .18142E-02** at limit **
   2  Prefactor     .10000E-03    23.355        .18142E-02** at limit **
   3  Prefactor     2.0933        22.195        .14276E-02   -.68239E-04
   4  norm          .10000E-03    5.1328        .18142E-02** at limit **
   5  Prefactor     7.0776        56.733        .15117E-03    .51890E-05
   6  Prefactor     .10000E-03    9.1266        .18142E-02** at limit **
   7  norm          .10000E-03    3.1284        .14456E-02** at limit **
   8  Prefactor     .10064E-03    148.01        .52580E-02** at limit **
   9  Prefactor     .10000E-03    9.2251        .18142E-02** at limit **
  10  norm          .91980        1.3522        .12290E-02    .44013E-02
  11  Prefactor     .10000E-03    3.6890        .15653E-02** at limit **
  12  Prefactor     .10000E-03    2.2222        .12155E-02** at limit **
  13  norm          2.4518        1.5730        .79970E-04   -.15695E-03
  14  norm          4.2040        3.7642        .13071E-03   -.29156E-03
  15  Prefactor     2.5594        8.9834        .25475E-03   -.20368E-03
  16  Prefactor     27.319        47.567        .76651E-04   -.12162E-04
  17  Prefactor     .64358        61.143        .48589E-02   -.35816E-03
  18  Prefactor     .10003E-03    59.030        .39201E-02** at limit **
  19  norm          15.597        3.1170        .63397E-04   -.55770E-04
  20  Prefactor     .10000E-03    7.2455        .18142E-02** at limit **
  21  norm          .10000E-03    5.4312        .18142E-02** at limit **
  22  Prefactor     .10000E-03    21.261        .18142E-02** at limit **
  23  Prefactor     48.275        51.595        .57734E-04    .10673E-04
  24  Prefactor     3.2989        4.9758        .22102E-03    .12437E-03
  25  Prefactor     .10000E-03    35.088        .21281E-02** at limit **
  26  Prefactor     4.0335        6.4848        .10043E-02   -.10788E-03
  27  Normalizat    1.3345        .20621        .22195E-03   -.27304E-03
  28  Prefactor     .74225        .20955        .29871E-03   -.15730E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.09329
  norm       = 0.0001
  Prefactor  = 7.0776
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100641
  Prefactor  = 0.0001
  norm       = 0.919799
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.45183
  norm       = 4.20397
  Prefactor  = 2.55939
  Prefactor  = 27.3188
  Prefactor  = 0.643578
  Prefactor  = 0.000100031
  norm       = 15.5968
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.2754
  Prefactor  = 3.29892
  Prefactor  = 0.0001
  Prefactor  = 4.03351
  Normalizat = 1.3345
  Prefactor  = 0.742253
 **********
 **   18 **HESSE 
 **********

 FCN=   7009.632     FROM HESSE     STATUS=OK           501 CALLS     4567 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.025        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    23.355        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.0933        22.176        .57104E-04   -1.5419    
   4  norm          .10000E-03    5.1364        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.0776        56.745        .60470E-05   -1.5176    
   6  Prefactor     .10000E-03    9.1285        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.1285        .28913E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10064E-03    154.11        .21032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.2273        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .91980        1.3512        .24580E-03   -1.5516    
  11  Prefactor     .10000E-03    3.6896        .31307E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.2224        .24310E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.4518        1.5725        .31988E-05   -1.5395    
  14  norm          4.2040        3.7614        .52282E-05   -1.5298    
  15  Prefactor     2.5594        8.9127        .10190E-04   -1.5388    
  16  Prefactor     27.319        47.561        .30660E-05   -1.4662    
  17  Prefactor     .64358        61.038        .19436E-03   -1.5548    
  18  Prefactor     .10003E-03    60.213        .15680E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          15.597        3.1168        .25359E-05   -1.4918    
  20  Prefactor     .10000E-03    7.2458        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.4319        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    21.266        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     48.275        51.590        .11547E-04   -1.4317    
  24  Prefactor     3.2989        4.9740        .88409E-05   -1.5345    
  25  Prefactor     .10000E-03    35.105        .42562E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     4.0335        6.4803        .40171E-04   -1.5306    
  27  Normalizat    1.3345        .20625        .44389E-04   -.82542    
  28  Prefactor     .74225        .20964        .11948E-04   -1.0189    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.58282e-09
Minuit parameter uncertainties:
  1  1.48299e-05
  2  1.56591e-05
  3  13.6328
  4  7.06753e-05
  5  40.1327
  6  3.32001e-05
  7  3.57896e-07
  8  0.0199246
  9  4.26097e-05
  10  1.35123
  11  1.90172e-06
  12  9.2641e-06
  13  1.57256
  14  3.76164
  15  8.91733
  16  47.6274
  17  12.5474
  18  0.0027254
  19  3.11685
  20  7.37854e-06
  21  8.38532e-06
  22  3.515e-05
  23  51.6375
  24  4.97459
  25  0.000102143
  26  6.48145
  27  0.206378
  28  0.209864
Done.

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

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  1.000e-04  2.725e-03  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.423e-01  2.099e-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.335e+00  2.064e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 230.464 43.634
Photon Flux Upper Limit: 8.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/497888/likelihoodResults_323827201_324086401_4FGL_J1521.8+4338_daily_bin326.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7009.6320586
delta logL = -7.96184349383e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7009.63205858
delta logL = -7.95982487034e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96327E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9359       1.0000          .0000       10.000    
     3 'Normalizat'    1.3345       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74227       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=   7009.632     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      226 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .79154        .90716E-01** at limit **
   2  Index         2.9211        6.4588        .50000        .18860E-05
   3  Normalizat    1.3345        .15159E-02    .50203E-01    .31649E-04
   4  Prefactor     .74225        .15786E-02    .67512E-01    .45732E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.92109
  Normalizat = 1.3345
  Prefactor  = 0.742252
 **********
 **   18 **HESSE 
 **********

 FCN=   7009.632     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      263 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1040.4        .39448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9211        5.6220        .50000       -.42880    
   3  Normalizat    1.3345        .17908E-01    .22195E-03   -.82542    
   4  Prefactor     .74225        .18622E-01    .29871E-03   -1.0189    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.79944e-07
Minuit parameter uncertainties:
  1  0.0016757
  2  1055.96
  3  0.0179084
  4  0.0186223
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/497888': 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): 102
logL (Free Index) = 7009.63197898
delta logL = 7.1804606705e-09

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  1.000e-04  1.676e-03  1.000e-04  1.000e+04 ( 1.000e-12)
311        Index:  2.921e+00  1.056e+03  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.423e-01  1.862e-02  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.335e+00  1.791e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 230.464 43.634

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/497888/cmap_HighResolution_323827201_324086401_4FGL_J1521.8+4338_daily_bin326.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.60e-03', job_status='DONE', photon_flux_upper_limit='8.28e-08', time_completed='2021-09-12 01:56:49.224600', job_id='497888', GAL2='0.74', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1631437009.22', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='7.18e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.94' WHERE bin_id='326' AND source_name='4FGL J1521.8+4338' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:56:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 497888: <4FGL_J1521.8+4338_daily_bin326> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1521.8+4338_daily_bin326 230.464 43.6344 323827201 324086401 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 :                                   943.11 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             328.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   965 sec.
    Turnaround time :                            967 sec.

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

