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


Performing analysis on: 4FGL_J1521.8+4338_daily_bin1048
RA = 230.464, Dec = 43.6344
tmin = 510969601, tmax = 511228801
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='502816', job_status='RUN', time_executed='2021-09-12 01:58:52.257795', time_epoch_executed='1631437132.26' WHERE source_name='4FGL J1521.8+4338' and cadence='daily' and bin_id='1048'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/502816

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/502816/ft1_4FGL_J1521.8+4338_daily_bin1048.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/502816/ft2_4FGL_J1521.8+4338_daily_bin1048.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/502816/ft1_4FGL_J1521.8+4338_daily_bin1048.fits outfile=/scratch/kocevski/502816/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin1048.fits ra=230.464 dec=43.6344 rad=12.0 tmin=510969601.0 tmax=511228801.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.47
user 3.24
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/502816/ft1_filtered_4FGL_J1521.8+4338_daily_bin1048.fits" evtable="EVENTS" scfile=/scratch/kocevski/502816/ft2_4FGL_J1521.8+4338_daily_bin1048.fits sctable="SC_DATA" outfile=/scratch/kocevski/502816/ltcube_510969601_511228801_4FGL_J1521.8+4338_daily_bin1048.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/502816/ft2_4FGL_J1521.8+4338_daily_bin1048.fits
.....................!
real 12.54
user 12.06
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/502816/ft1_filtered_4FGL_J1521.8+4338_daily_bin1048.fits evtable="EVENTS" scfile=/scratch/kocevski/502816/ft2_4FGL_J1521.8+4338_daily_bin1048.fits sctable="SC_DATA" expcube=/scratch/kocevski/502816/ltcube_510969601_511228801_4FGL_J1521.8+4338_daily_bin1048.fits outfile=/scratch/kocevski/502816/expmap_510969601_511228801_4FGL_J1521.8+4338_daily_bin1048.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/502816/ltcube_510969601_511228801_4FGL_J1521.8+4338_daily_bin1048.fits
.....................!
real 192.52
user 187.43
sys 4.72

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/502816/ft1_filtered_4FGL_J1521.8+4338_daily_bin1048.fits scfile=/scratch/kocevski/502816/ft2_4FGL_J1521.8+4338_daily_bin1048.fits outfile=/scratch/kocevski/502816/cmap_510969601_511228801_4FGL_J1521.8+4338_daily_bin1048.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.58
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/502816/ft1_filtered_4FGL_J1521.8+4338_daily_bin1048.fits scfile=/scratch/kocevski/502816/ft2_4FGL_J1521.8+4338_daily_bin1048.fits outfile=/scratch/kocevski/502816/cmap_HighResolution_510969601_511228801_4FGL_J1521.8+4338_daily_bin1048.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.57
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9535       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10417E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.7957       1.0000         .10000E-03   10000.    
     4 'norm      '    5.7753       1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.579       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3908       1.0000         .10000E-03   10000.    
     7 'norm      '    3.4147       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.6675       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.439       1.0000         .10000E-03   10000.    
    10 'norm      '    1.1961       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.8677       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.3980       1.0000         .10000E-03   10000.    
    14 'norm      '    .81962       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    57.737       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.253       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.0618       1.0000         .10000E-03   10000.    
    20 'Prefactor '    30.484       1.0000         .10000E-03   10000.    
    21 'norm      '    .55678E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    23.550       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.4533       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .95287       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .78102       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=   5451.948     FROM MIGRAD    STATUS=CONVERGED    682 CALLS     3510 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9543        27.276        .98211E-05   -.50605E-04
   2  Prefactor     .10000E-03    20.727       -.24675E-07** at limit **
   3  Prefactor     9.7943        22.435        .74014E-06    .20888E-04
   4  norm          5.7758        5.1407        .39452E-07    .28712E-04
   5  Prefactor     30.597        43.573       -.13755E-05    .65520E-05
   6  Prefactor     4.3920        13.703        .23255E-05   -.14482E-04
   7  norm          3.4149        4.7666       -.16089E-06    .10903E-04
   8  Prefactor     1.6676        29.437        .14542E-04   -.53462E-04
   9  Prefactor     16.439        15.230        .25803E-06    .56510E-04
  10  norm          1.1961        1.6882        .23194E-08   -.10597E-03
  11  Prefactor     3.8649        7.4918       -.18169E-05   -.14006E-03
  12  Prefactor     .10000E-03    4.6304       -.21519E-06** at limit **
  13  norm          1.3981        1.6880        .60901E-06    .16985E-02
  14  norm          .81906        3.6920        .46051E-06   -.84845E-04
  15  Prefactor     .10000E-03    7.9945        .25671E-06** at limit **
  16  Prefactor     57.772        76.214       -.38404E-05   -.18515E-04
  17  Prefactor     12.252        15.951        .51974E-06    .73458E-04
  18  Prefactor     .10000E-03    7.3773       -.22627E-06** at limit **
  19  norm          5.0618        1.9247        .20983E-07   -.38023E-04
  20  Prefactor     30.470        25.795        .10022E-06   -.12352E-03
  21  norm          .10000E-03    17.131        .80077E-06** at limit **
  22  Prefactor     .10000E-03    7.4636        .12751E-06** at limit **
  23  Prefactor     .10000E-03    42.333       -.34163E-06** at limit **
  24  Prefactor     .10000E-03    1.9739       -.67649E-07** at limit **
  25  Prefactor     23.553        18.037        .30175E-06    .24614E-04
  26  Prefactor     4.4528        4.5879        .14393E-06   -.51138E-05
  27  Normalizat    .95283        .17559       -.25642E-05    .66075E-04
  28  Prefactor     .78105        .17402        .15410E-05    .61832E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.95427
  Prefactor  = 0.0001
  Prefactor  = 9.79434
  norm       = 5.77583
  Prefactor  = 30.5972
  Prefactor  = 4.39201
  norm       = 3.41491
  Prefactor  = 1.66761
  Prefactor  = 16.4394
  norm       = 1.19605
  Prefactor  = 3.86489
  Prefactor  = 0.0001
  norm       = 1.39815
  norm       = 0.819064
  Prefactor  = 0.0001
  Prefactor  = 57.7723
  Prefactor  = 12.2521
  Prefactor  = 0.0001
  norm       = 5.06179
  Prefactor  = 30.4701
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.5531
  Prefactor  = 4.45282
  Normalizat = 0.952833
  Prefactor  = 0.781051
 **********
 **   18 **HESSE 
 **********

 FCN=   5451.948     FROM HESSE     STATUS=OK           529 CALLS     4039 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9543        27.313        .14844E-02   -1.5428    
   2  Prefactor     .10000E-03    20.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.7943        22.454        .12803E-03   -1.5082    
   4  norm          5.7758        5.1365        .15198E-03   -1.5227    
   5  Prefactor     30.597        43.474        .72455E-04   -1.4601    
   6  Prefactor     4.3920        13.659        .96102E-03   -1.5289    
   7  norm          3.4149        4.7579        .18552E-03   -1.5338    
   8  Prefactor     1.6676        29.519        .16327E-02   -1.5450    
   9  Prefactor     16.439        15.176        .49391E-03   -1.4897    
  10  norm          1.1961        1.6442        .10531E-03   -1.5489    
  11  Prefactor     3.8649        7.4333        .20519E-03   -1.5315    
  12  Prefactor     .10000E-03    4.6678        .15500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.3981        1.6702        .91315E-04   -1.5471    
  14  norm          .81906        3.5464        .26213E-03   -1.5527    
  15  Prefactor     .10000E-03    8.0300        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     57.772        76.220        .52797E-04   -1.4186    
  17  Prefactor     12.252        15.914        .11444E-03   -1.5008    
  18  Prefactor     .10000E-03    7.4102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.0618        1.9249        .60858E-04   -1.5258    
  20  Prefactor     30.470        21.470        .72569E-04   -1.4603    
  21  norm          .10000E-03    91.185        .48527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.4721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    42.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    1.9782        .10119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     23.553        18.020        .82542E-04   -1.4737    
  26  Prefactor     4.4528        4.5877        .15364E-03   -1.5286    
  27  Normalizat    .95283        .20524        .21930E-03   -.94628    
  28  Prefactor     .78105        .20378        .25306E-03   -1.0043    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.58937e-10
Minuit parameter uncertainties:
  1  14.6197
  2  1.20416e-05
  3  22.4738
  4  5.13685
  5  43.5191
  6  13.6686
  7  4.75846
  8  14.0399
  9  15.1798
  10  1.64425
  11  7.43506
  12  3.12475e-05
  13  1.67029
  14  3.40877
  15  5.12458e-05
  16  76.3491
  17  15.9195
  18  2.97812e-07
  19  1.92492
  20  21.4754
  21  0.000481459
  22  2.05585e-05
  23  0.000121986
  24  6.41307e-06
  25  18.0242
  26  4.58808
  27  0.205411
  28  0.203978
Done.

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

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  1.000e-04  2.978e-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:  7.811e-01  2.040e-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:  9.528e-01  2.054e-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.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/502816/likelihoodResults_510969601_511228801_4FGL_J1521.8+4338_daily_bin1048.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) = 5451.94907365
delta logL = -0.000643225092972

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5451.94843047
delta logL = -4.42578311777e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9266       1.0000          .0000       10.000    
     3 'Normalizat'    .95280       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78111       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=   5451.948     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      236 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10096E-03    237.39        .18142E-02** at limit **
   2  Index         2.8485        5.3760        .50000        .82370E-05
   3  Normalizat    .95283        .22984E-01    .21930E-03    .19492E-04
   4  Prefactor     .78105        .24367E-01    .25306E-03    .13523E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100959
  Index      = 2.84853
  Normalizat = 0.952833
  Prefactor  = 0.78105
 **********
 **   18 **HESSE 
 **********

 FCN=   5451.948     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      265 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10096E-03    876.59        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8485        7.5010        .50000       -.44482    
   3  Normalizat    .95283        .51340E-01    .87719E-05   -.94628    
   4  Prefactor     .78105        .54430E-01    .10122E-04   -1.0043    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.88864e-08
Minuit parameter uncertainties:
  1  0.0588814
  2  2056.74
  3  0.0513426
  4  0.0544333
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/502816': 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) = 5451.9484303
delta logL = 1.28810825117e-07

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  1.010e-04  5.888e-02  1.000e-04  1.000e+04 ( 1.000e-12)
311        Index:  2.849e+00  2.057e+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.811e-01  5.443e-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:  9.528e-01  5.134e-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/502816/cmap_HighResolution_510969601_511228801_4FGL_J1521.8+4338_daily_bin1048.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.08e-03', job_status='DONE', photon_flux_upper_limit='7.63e-08', time_completed='2021-09-12 02:12:04.669048', job_id='502816', GAL2='0.78', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1631437924.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='1.29e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.94' WHERE bin_id='1048' AND source_name='4FGL J1521.8+4338' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:12:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 502816: <4FGL_J1521.8+4338_daily_bin1048> in cluster <slac> Done

Job <4FGL_J1521.8+4338_daily_bin1048> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Sep 12 01:55:32 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 01:55:34 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:55:34 2021
Terminated at Sun Sep 12 02:12:05 2021
Results reported at Sun Sep 12 02:12:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1521.8+4338_daily_bin1048 230.464 43.6344 510969601 511228801 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 :                                   771.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             271.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            993 sec.

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

