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


Performing analysis on: 4FGL_J1521.8+4338_daily_bin791
RA = 230.464, Dec = 43.6344
tmin = 444355201, tmax = 444614401
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='500925', job_status='RUN', time_executed='2021-09-12 01:51:03.188724', time_epoch_executed='1631436663.19' WHERE source_name='4FGL J1521.8+4338' and cadence='daily' and bin_id='791'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/500925

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/500925/ft1_4FGL_J1521.8+4338_daily_bin791.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/500925/ft2_4FGL_J1521.8+4338_daily_bin791.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/500925/ft1_4FGL_J1521.8+4338_daily_bin791.fits outfile=/scratch/kocevski/500925/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin791.fits ra=230.464 dec=43.6344 rad=12.0 tmin=444355201.0 tmax=444614401.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 6.53
user 6.28
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/500925/ft1_filtered_4FGL_J1521.8+4338_daily_bin791.fits" evtable="EVENTS" scfile=/scratch/kocevski/500925/ft2_4FGL_J1521.8+4338_daily_bin791.fits sctable="SC_DATA" outfile=/scratch/kocevski/500925/ltcube_444355201_444614401_4FGL_J1521.8+4338_daily_bin791.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/500925/ft2_4FGL_J1521.8+4338_daily_bin791.fits
.....................!
real 11.33
user 10.98
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/500925/ft1_filtered_4FGL_J1521.8+4338_daily_bin791.fits evtable="EVENTS" scfile=/scratch/kocevski/500925/ft2_4FGL_J1521.8+4338_daily_bin791.fits sctable="SC_DATA" expcube=/scratch/kocevski/500925/ltcube_444355201_444614401_4FGL_J1521.8+4338_daily_bin791.fits outfile=/scratch/kocevski/500925/expmap_444355201_444614401_4FGL_J1521.8+4338_daily_bin791.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/500925/ltcube_444355201_444614401_4FGL_J1521.8+4338_daily_bin791.fits
.....................!
real 191.32
user 186.49
sys 4.51

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/500925/ft1_filtered_4FGL_J1521.8+4338_daily_bin791.fits scfile=/scratch/kocevski/500925/ft2_4FGL_J1521.8+4338_daily_bin791.fits outfile=/scratch/kocevski/500925/cmap_444355201_444614401_4FGL_J1521.8+4338_daily_bin791.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.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.620       1.0000         .10000E-03   10000.    
     2 'Prefactor '    40.399       1.0000         .10000E-03   10000.    
     3 'Prefactor '    52.896       1.0000         .10000E-03   10000.    
     4 'norm      '    6.4999       1.0000         .10000E-03   10000.    
     5 'Prefactor '    52.633       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .52142E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.6196       1.0000         .10000E-03   10000.    
    10 'norm      '    1.2093       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.741       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12861E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.7276       1.0000         .10000E-03   10000.    
    14 'norm      '    1.7371       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10263E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.9210       1.0000         .10000E-03   10000.    
    19 'norm      '    14.341       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    14.199       1.0000         .10000E-03   10000.    
    22 'Prefactor '    18.780       1.0000         .10000E-03   10000.    
    23 'Prefactor '    80.657       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.4710       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.6227       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0599       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .67106       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=   4645.078     FROM MIGRAD    STATUS=CONVERGED   1213 CALLS     4062 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.625        30.776        .90423E-04    .10058E-04
   2  Prefactor     40.502        75.007        .31532E-03   -.93380E-05
   3  Prefactor     52.904        39.280        .55147E-04   -.11953E-03
   4  norm          6.5000        8.1519        .15742E-03    .22894E-04
   5  Prefactor     52.604        54.082        .27642E-03    .39591E-03
   6  Prefactor     .10009E-03    71.164        .51042E-02** at limit **
   7  norm          .10000E-03    3.2677        .12032E-02** at limit **
   8  Prefactor     .10000E-03    6.8324        .17381E-02** at limit **
   9  Prefactor     5.6866        19.171        .16946E-03   -.25010E-03
  10  norm          1.2088        1.3502        .81050E-04    .83725E-03
  11  Prefactor     17.747        17.194        .95089E-04   -.63605E-04
  12  Prefactor     .10000E-03    33.545        .33572E-02** at limit **
  13  norm          8.7273        3.5685        .65667E-04   -.13608E-03
  14  norm          1.7360        4.0767        .19943E-03   -.26399E-03
  15  Prefactor     .10000E-03    6.2622        .16594E-02** at limit **
  16  Prefactor     .10000E-03    62.517        .18142E-02** at limit **
  17  Prefactor     .10000E-03    7.8831        .18142E-02** at limit **
  18  Prefactor     8.9244        10.223        .13419E-03   -.18291E-03
  19  norm          14.341        3.3240        .57650E-04   -.91305E-04
  20  Prefactor     .10000E-03    9.6674        .18142E-02** at limit **
  21  norm          14.193        13.382        .10630E-03   -.39252E-04
  22  Prefactor     18.783        16.872        .92421E-04   -.30211E-04
  23  Prefactor     80.653        75.431        .44720E-04    .58826E-04
  24  Prefactor     2.4700        17.824        .13006E-02    .35433E-03
  25  Prefactor     3.6197        119.01        .21227E-03    .59074E-04
  26  Prefactor     .10000E-03    1.9739        .93273E-03** at limit **
  27  Normalizat    1.0596        .25753        .23553E-03    .19500E-04
  28  Prefactor     .67139        .24442        .29401E-03    .41375E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.6253
  Prefactor  = 40.5025
  Prefactor  = 52.9037
  norm       = 6.50001
  Prefactor  = 52.6036
  Prefactor  = 0.000100094
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.68662
  norm       = 1.20877
  Prefactor  = 17.7469
  Prefactor  = 0.0001
  norm       = 8.72728
  norm       = 1.73603
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 8.92439
  norm       = 14.3407
  Prefactor  = 0.0001
  norm       = 14.1925
  Prefactor  = 18.7826
  Prefactor  = 80.6528
  Prefactor  = 2.47
  Prefactor  = 3.61973
  Prefactor  = 0.0001
  Normalizat = 1.05957
  Prefactor  = 0.671386
 **********
 **   18 **HESSE 
 **********

 FCN=   4645.078     FROM HESSE     STATUS=OK           491 CALLS     4553 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.625        30.779        .36169E-05   -1.4822    
   2  Prefactor     40.502        74.810        .12613E-04   -1.4434    
   3  Prefactor     52.904        39.280        .11029E-04   -1.4252    
   4  norm          6.5000        8.1516        .62966E-05   -1.5198    
   5  Prefactor     52.604        54.080        .55283E-04   -1.4256    
   6  Prefactor     .10009E-03    71.768        .10208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.2677        .24064E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.8329        .34762E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.6866        19.130        .67785E-05   -1.5231    
  10  norm          1.2088        1.3501        .32420E-05   -1.5488    
  11  Prefactor     17.747        17.194        .38035E-05   -1.4865    
  12  Prefactor     .10000E-03    34.006        .67144E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.7273        3.5686        .26267E-05   -1.5117    
  14  norm          1.7360        4.0757        .79774E-05   -1.5444    
  15  Prefactor     .10000E-03    6.2628        .33187E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    62.519        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.8838        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.9244        10.222        .53678E-05   -1.5110    
  19  norm          14.341        3.3240        .23060E-05   -1.4950    
  20  Prefactor     .10000E-03    9.6674        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          14.193        13.382        .42518E-05   -1.4954    
  22  Prefactor     18.783        16.872        .18484E-04   -1.4841    
  23  Prefactor     80.653        75.378        .89441E-05   -1.3909    
  24  Prefactor     2.4700        16.930        .52024E-04   -1.5394    
  25  Prefactor     3.6197        113.20        .84908E-05   -1.5327    
  26  Prefactor     .10000E-03    1.9740        .18655E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0596        .25781        .94213E-05   -.91061    
  28  Prefactor     .67139        .24468        .11760E-04   -1.0466    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35268e-09
Minuit parameter uncertainties:
  1  30.8041
  2  74.9841
  3  39.2993
  4  8.15301
  5  54.1307
  6  0.00520433
  7  9.1248e-07
  8  2.09584e-05
  9  19.1502
  10  1.35012
  11  17.1988
  12  6.15002e-05
  13  3.56873
  14  4.07631
  15  5.32725e-05
  16  0.000792397
  17  5.0351e-05
  18  10.2242
  19  3.32408
  20  1.04438e-05
  21  13.3846
  22  16.8766
  23  75.4671
  24  12.9383
  25  40.5691
  26  7.83071e-06
  27  0.258116
  28  0.245068
Done.

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

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  8.924e+00  1.022e+01  1.000e-04  1.000e+04 ( 1.000e-12)
311        Index:  2.936e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
312        Scale:  4.193e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
626    Prefactor:  6.714e-01  2.451e-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.060e+00  2.581e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.44
Ra Dec: 230.464 43.634
Photon Index (Fixed Index): 2.94 +/- 0.00
Photon Flux (Fixed Index): 3.10e-08 +/- 3.55e-08
Energy Flux (Fixed Index): 6.40e-06 +/- 7.33e-06

TS (Fixed Index): 1.44
Ra Dec: 230.464 43.634
Photon Flux Upper Limit: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/500925/likelihoodResults_444355201_444614401_4FGL_J1521.8+4338_daily_bin791.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) = 4644.94743328
delta logL = 0.130489737841

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4644.93928287
delta logL = 0.13864015027

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.200       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3320       1.0000          .0000       10.000    
     3 'Normalizat'    1.0740       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66025       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=   4644.939     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      213 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.207        13.607        .31365E-02    .13107E-04
   2  Index         2.3323        .97750        .24174       -.24421E-04
   3  Normalizat    1.0744        .20080        .39174E-01    .59549E-05
   4  Prefactor     .65990        .20395        .66951E-01    .18003E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.207
  Index      = 2.33234
  Normalizat = 1.07437
  Prefactor  = 0.659905
 **********
 **   18 **HESSE 
 **********

 FCN=   4644.939     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .86E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.207        11.461        .12546E-03   -1.5069    
   2  Index         2.3323        .99494        .12898E-01   -.56277    
   3  Normalizat    1.0744        .23453        .23406E-03   -.90579    
   4  Prefactor     .65990        .23756        .29626E-03   -1.0512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.63187e-13
Minuit parameter uncertainties:
  1  11.4634
  2  1.00435
  3  0.234758
  4  0.237922
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/500925': 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) = 4644.93928115
delta logL = 0.138641875256

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  1.021e+01  1.146e+01  1.000e-04  1.000e+04 ( 1.000e-12)
311        Index:  2.332e+00  1.004e+00  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:  6.599e-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.074e+00  2.348e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.71
Ra Dec: 230.464 43.634
Photon Index (Free Index): 2.33 +/- 1.00
Photon Flux (Free Index): 2.17e-08 +/- 2.97e-08
Energy Flux (Free Index): 7.82e-06 +/- 1.03e-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/500925/cmap_HighResolution_444355201_444614401_4FGL_J1521.8+4338_daily_bin791.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.86e-03', comment='SUCCESS', photon_flux='3.10e-08', energy_flux2='7.82e-06', photon_flux_error='3.55e-08', dlogl='1.39e-01', energy_flux='6.40e-06', photon_flux2='2.17e-08', job_status='DONE', time_completed='2021-09-12 02:03:38.852006', photon_index_error2='1.00', photon_index2='2.33', ts='1.44', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', photon_flux_upper_limit='1.24e-07', energy_flux_error2='1.03e-05', EG='1.06', time_epoch_completed='1631437418.85', return_code='0', job_id='500925', GAL2='0.66', EG2='1.07', return_code2='0', energy_flux_error='7.33e-06', photon_flux_error2='2.97e-08', ts2='1.71', photon_index='2.94' WHERE bin_id='791' AND source_name='4FGL J1521.8+4338' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 02:03:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 500925: <4FGL_J1521.8+4338_daily_bin791> in cluster <slac> Done

Job <4FGL_J1521.8+4338_daily_bin791> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep 12 01:50:44 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 01:50:46 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:46 2021
Terminated at Sun Sep 12 02:03:39 2021
Results reported at Sun Sep 12 02:03:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1521.8+4338_daily_bin791 230.464 43.6344 444355201 444614401 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 :                                   752.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             293.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   773 sec.
    Turnaround time :                            775 sec.

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

