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


Performing analysis on: 4FGL_J1521.8+4338_daily_bin1559
RA = 230.464, Dec = 43.6344
tmin = 643420801, tmax = 643680001
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='504919', job_status='RUN', time_executed='2021-09-12 02:03:52.648703', time_epoch_executed='1631437432.65' WHERE source_name='4FGL J1521.8+4338' and cadence='daily' and bin_id='1559'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/504919

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/504919/ft1_4FGL_J1521.8+4338_daily_bin1559.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/504919/ft2_4FGL_J1521.8+4338_daily_bin1559.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/504919/ft1_4FGL_J1521.8+4338_daily_bin1559.fits outfile=/scratch/kocevski/504919/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin1559.fits ra=230.464 dec=43.6344 rad=12.0 tmin=643420801.0 tmax=643680001.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.53
user 3.31
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/504919/ft1_filtered_4FGL_J1521.8+4338_daily_bin1559.fits" evtable="EVENTS" scfile=/scratch/kocevski/504919/ft2_4FGL_J1521.8+4338_daily_bin1559.fits sctable="SC_DATA" outfile=/scratch/kocevski/504919/ltcube_643420801_643680001_4FGL_J1521.8+4338_daily_bin1559.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/504919/ft2_4FGL_J1521.8+4338_daily_bin1559.fits
.....................!
real 11.94
user 11.56
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/504919/ft1_filtered_4FGL_J1521.8+4338_daily_bin1559.fits evtable="EVENTS" scfile=/scratch/kocevski/504919/ft2_4FGL_J1521.8+4338_daily_bin1559.fits sctable="SC_DATA" expcube=/scratch/kocevski/504919/ltcube_643420801_643680001_4FGL_J1521.8+4338_daily_bin1559.fits outfile=/scratch/kocevski/504919/expmap_643420801_643680001_4FGL_J1521.8+4338_daily_bin1559.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/504919/ltcube_643420801_643680001_4FGL_J1521.8+4338_daily_bin1559.fits
.....................!
real 190.25
user 184.70
sys 5.24

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/504919/ft1_filtered_4FGL_J1521.8+4338_daily_bin1559.fits scfile=/scratch/kocevski/504919/ft2_4FGL_J1521.8+4338_daily_bin1559.fits outfile=/scratch/kocevski/504919/cmap_643420801_643680001_4FGL_J1521.8+4338_daily_bin1559.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/504919/ft1_filtered_4FGL_J1521.8+4338_daily_bin1559.fits scfile=/scratch/kocevski/504919/ft2_4FGL_J1521.8+4338_daily_bin1559.fits outfile=/scratch/kocevski/504919/cmap_HighResolution_643420801_643680001_4FGL_J1521.8+4338_daily_bin1559.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.983       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11068E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.5598       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10263E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10716E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.2577       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10599E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.507       1.0000         .10000E-03   10000.    
    10 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10234E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .74733E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    2.1252       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.2552       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.4610       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.0889       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11569E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .64005       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2302       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=   5141.416     FROM MIGRAD    STATUS=CONVERGED    738 CALLS     3591 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.5968        .11970E-06** at limit **
   2  Prefactor     20.082        57.949       -.31516E-05   -.20937E-04
   3  Prefactor     .10000E-03    80.239       -.89133E-06** at limit **
   4  norm          3.5584        6.0206       -.51316E-06   -.13372E-03
   5  Prefactor     .10000E-03    118.07        .55437E-05** at limit **
   6  Prefactor     .10000E-03    9.4385        .33885E-06** at limit **
   7  norm          2.2561        8.1410        .47535E-05   -.62854E-04
   8  Prefactor     .10045E-03    12.051        .47598E-06** at limit **
   9  Prefactor     13.509        16.126        .81669E-06    .40841E-05
  10  norm          .10000E-03    1.1966        .82526E-07** at limit **
  11  Prefactor     .10000E-03    7.3903        .10899E-06** at limit **
  12  Prefactor     .10000E-03    3.5705       -.55559E-07** at limit **
  13  norm          .74976E-01    1.0067       -.16061E-06   -.23144E-03
  14  norm          2.1252        2.9378        .15208E-07   -.96010E-05
  15  Prefactor     5.2531        8.4796        .13328E-06   -.14784E-04
  16  Prefactor     1.1894        741.32        .38880E-04   -.52283E-05
  17  Prefactor     .10000E-03    40.741        .22356E-07** at limit **
  18  Prefactor     .10000E-03    6.9618       -.13226E-07** at limit **
  19  norm          5.0891        2.2522       -.86484E-07   -.35033E-03
  20  Prefactor     .10000E-03    12.946       -.41773E-06** at limit **
  21  norm          .10000E-03    13.115        .12630E-06** at limit **
  22  Prefactor     .10000E-03    10.781        .52873E-07** at limit **
  23  Prefactor     .10000E-03    354.29       -.24931E-04** at limit **
  24  Prefactor     .10000E-03    3.1967        .86684E-07** at limit **
  25  Prefactor     .10000E-03    19.029        .15812E-06** at limit **
  26  Prefactor     .10000E-03    1.4724        .25383E-07** at limit **
  27  Normalizat    .64002        .17151        .21212E-06   -.17556E-03
  28  Prefactor     1.2304        .18633       -.11163E-05   -.17226E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 20.0819
  Prefactor  = 0.0001
  norm       = 3.55836
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 2.25609
  Prefactor  = 0.000100454
  Prefactor  = 13.509
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0749757
  norm       = 2.12518
  Prefactor  = 5.25309
  Prefactor  = 1.1894
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.08914
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.640021
  Prefactor  = 1.23042
 **********
 **   18 **HESSE 
 **********

 FCN=   5141.416     FROM HESSE     STATUS=OK           521 CALLS     4112 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.6077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.082        57.890        .89598E-04   -1.4811    
   3  Prefactor     .10000E-03    82.591        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.5584        5.9903        .21421E-03   -1.5331    
   5  Prefactor     .10000E-03    119.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.4534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.2561        8.1590        .13671E-02   -1.5408    
   8  Prefactor     .10045E-03    130.89        .46459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.509        15.839        .10899E-03   -1.4973    
  10  norm          .10000E-03    2.1401        .14889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.6507        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.6007        .13219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .74976E-01    2.6239        .13421E-02   -1.5653    
  14  norm          2.1252        2.9151        .12667E-03   -1.5416    
  15  Prefactor     5.2531        8.4196        .17534E-03   -1.5250    
  16  Prefactor     1.1894        757.99        .35595E-02   -1.5490    
  17  Prefactor     .10000E-03    41.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.0031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.0891        2.2512        .68196E-04   -1.5257    
  20  Prefactor     .10000E-03    12.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    13.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    357.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.2294        .12518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    19.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    1.4964        .84965E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .64002        .19517        .25454E-03   -1.0631    
  28  Prefactor     1.2304        .21366        .21062E-03   -.85400    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.78849e-08
Minuit parameter uncertainties:
  1  5.22675e-06
  2  58.0529
  3  0.000109139
  4  5.99132
  5  0.000538992
  6  3.7506e-05
  7  8.16305
  8  0.0154578
  9  15.8443
  10  1.37295e-06
  11  3.32982e-06
  12  3.06595e-06
  13  0.886539
  14  2.91533
  15  8.42148
  16  60.8389
  17  4.2195e-06
  18  6.64769e-07
  19  2.25126
  20  1.99292e-05
  21  2.1727e-06
  22  6.40391e-06
  23  0.00214006
  24  6.53745e-06
  25  3.13328e-05
  26  1.51843e-06
  27  0.195378
  28  0.21381
Done.

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

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  1.000e-04  6.648e-07  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.230e+00  2.138e-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:  6.400e-01  1.954e-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: 7.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/504919/likelihoodResults_643420801_643680001_4FGL_J1521.8+4338_daily_bin1559.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) = 5141.41670275
delta logL = -0.000680315977661

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5141.41602278
delta logL = -3.45738953911e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10332E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9247       1.0000          .0000       10.000    
     3 'Normalizat'    .63994       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2305       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=   5141.416     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      248 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.836        .18142E-01** at limit **
   2  Index         2.4705        8.6345        .50000        .21537E-06
   3  Normalizat    .64002        .10160E-01    .25454E-03   -.53640E-04
   4  Prefactor     1.2304        .11379E-01    .21062E-03   -.62289E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.47054
  Normalizat = 0.640022
  Prefactor  = 1.23042
 **********
 **   18 **HESSE 
 **********

 FCN=   5141.416     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    883.39        .19514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4705        7.8155        .50000       -.53041    
   3  Normalizat    .64002        .49902E-01    .10182E-04   -1.0631    
   4  Prefactor     1.2304        .55892E-01    .42124E-04   -.85400    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.10712e-10
Minuit parameter uncertainties:
  1  0.00167806
  2  1783.38
  3  0.0499058
  4  0.0558945
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/504919': 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) = 5141.41602161
delta logL = 8.25931238069e-07

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  1.000e-04  1.678e-03  1.000e-04  1.000e+04 ( 1.000e-12)
311        Index:  2.471e+00  1.783e+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:  1.230e+00  5.589e-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:  6.400e-01  4.991e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/504919/cmap_HighResolution_643420801_643680001_4FGL_J1521.8+4338_daily_bin1559.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.82e-03', job_status='DONE', photon_flux_upper_limit='7.30e-08', time_completed='2021-09-12 02:16:07.802929', job_id='504919', GAL2='1.23', fit_tolerance='1e-08', EG2='0.64', EG='0.64', time_epoch_completed='1631438167.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='8.26e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.94' WHERE bin_id='1559' AND source_name='4FGL J1521.8+4338' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:16:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 504919: <4FGL_J1521.8+4338_daily_bin1559> in cluster <slac> Done

Job <4FGL_J1521.8+4338_daily_bin1559> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep 12 02:00:58 2021
Job was executed on host(s) <bullet0297>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 02:00:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 02:00:59 2021
Terminated at Sun Sep 12 02:16:08 2021
Results reported at Sun Sep 12 02:16:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1521.8+4338_daily_bin1559 230.464 43.6344 643420801 643680001 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 :                                   731.13 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             268.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            910 sec.

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

