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


Performing analysis on: 4FGL_J1521.8+4338_daily_bin302
RA = 230.464, Dec = 43.6344
tmin = 317606401, tmax = 317865601
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='497853', job_status='RUN', time_executed='2021-09-12 01:40:54.661142', time_epoch_executed='1631436054.66' WHERE source_name='4FGL J1521.8+4338' and cadence='daily' and bin_id='302'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/497853

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/497853/ft1_4FGL_J1521.8+4338_daily_bin302.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/497853/ft2_4FGL_J1521.8+4338_daily_bin302.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/497853/ft1_4FGL_J1521.8+4338_daily_bin302.fits outfile=/scratch/kocevski/497853/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin302.fits ra=230.464 dec=43.6344 rad=12.0 tmin=317606401.0 tmax=317865601.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.41
user 3.17
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/497853/ft1_filtered_4FGL_J1521.8+4338_daily_bin302.fits evtable="EVENTS" scfile=/scratch/kocevski/497853/ft2_4FGL_J1521.8+4338_daily_bin302.fits sctable="SC_DATA" expcube=/scratch/kocevski/497853/ltcube_317606401_317865601_4FGL_J1521.8+4338_daily_bin302.fits outfile=/scratch/kocevski/497853/expmap_317606401_317865601_4FGL_J1521.8+4338_daily_bin302.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/497853/ltcube_317606401_317865601_4FGL_J1521.8+4338_daily_bin302.fits
.....................!
real 190.61
user 185.42
sys 4.67

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/497853/ft1_filtered_4FGL_J1521.8+4338_daily_bin302.fits scfile=/scratch/kocevski/497853/ft2_4FGL_J1521.8+4338_daily_bin302.fits outfile=/scratch/kocevski/497853/cmap_317606401_317865601_4FGL_J1521.8+4338_daily_bin302.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/497853/ft1_filtered_4FGL_J1521.8+4338_daily_bin302.fits scfile=/scratch/kocevski/497853/ft2_4FGL_J1521.8+4338_daily_bin302.fits outfile=/scratch/kocevski/497853/cmap_HighResolution_317606401_317865601_4FGL_J1521.8+4338_daily_bin302.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/497853/ft1_filtered_4FGL_J1521.8+4338_daily_bin302.fits evtable="EVENTS" scfile=/scratch/kocevski/497853/ft2_4FGL_J1521.8+4338_daily_bin302.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/497853/Model_4FGL_J1521.8+4338_daily_bin302.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/497853/ft1_filtered_4FGL_J1521.8+4338_daily_bin302.fits.....................!
real 49.27
user 47.94
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6830       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    48.383       1.0000         .10000E-03   10000.    
     4 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5688       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.3149       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.1821       1.0000         .10000E-03   10000.    
    13 'norm      '    1.9892       1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .72604       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    25.614       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .45581E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.0464       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .83993       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0153       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=   6303.478     FROM MIGRAD    STATUS=CONVERGED    671 CALLS     3512 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6888        17.288        .45568E-06    .23940E-04
   2  Prefactor     .10000E-03    15.028       -.27139E-06** at limit **
   3  Prefactor     48.375        31.447        .19355E-06   -.12694E-03
   4  norm          .10000E-03    3.2278        .74347E-06** at limit **
   5  Prefactor     .10000E-03    26.560       -.17386E-06** at limit **
   6  Prefactor     4.5673        10.242        .56565E-05   -.42170E-04
   7  norm          .10000E-03    2.7313        .13738E-07** at limit **
   8  Prefactor     .10000E-03    10.218        .18983E-06** at limit **
   9  Prefactor     .10000E-03    17.382       -.17822E-06** at limit **
  10  norm          3.3143        2.1461       -.30092E-07   -.96037E-04
  11  Prefactor     .10000E-03    3.1597       -.27870E-07** at limit **
  12  Prefactor     8.1811        6.3954        .63222E-07   -.17753E-04
  13  norm          1.9888        1.5114        .13165E-06   -.15312E-03
  14  norm          .10000E-03    1.4608        .39098E-07** at limit **
  15  Prefactor     .10000E-03    2.0107        .41853E-08** at limit **
  16  Prefactor     .10000E-03    22.010        .29859E-06** at limit **
  17  Prefactor     .77945        8.8007        .10896E-05   -.12205E-03
  18  Prefactor     .10000E-03    4.5246       -.77687E-06** at limit **
  19  norm          25.614        3.4595        .39636E-07   -.58641E-04
  20  Prefactor     .10000E-03    10.129        .19951E-06** at limit **
  21  norm          .10000E-03    4.6129        .74203E-07** at limit **
  22  Prefactor     .10000E-03    6.3441       -.10730E-06** at limit **
  23  Prefactor     .10009E-03    255.59       -.82145E-05** at limit **
  24  Prefactor     .10000E-03    1.7481       -.11382E-07** at limit **
  25  Prefactor     .10000E-03    6.8753        .64015E-07** at limit **
  26  Prefactor     1.0437        3.5179        .15345E-05    .10763E-04
  27  Normalizat    .84004        .17576       -.88450E-06   -.14563E-03
  28  Prefactor     1.0154        .18078       -.95069E-06   -.11723E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.68883
  Prefactor  = 0.0001
  Prefactor  = 48.375
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.5673
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.31434
  Prefactor  = 0.0001
  Prefactor  = 8.1811
  norm       = 1.98876
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.779451
  Prefactor  = 0.000100005
  norm       = 25.6136
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100087
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.04372
  Normalizat = 0.840038
  Prefactor  = 1.01542
 **********
 **   18 **HESSE 
 **********

 FCN=   6303.478     FROM HESSE     STATUS=OK           517 CALLS     4029 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6888        17.301        .16850E-03   -1.5231    
   2  Prefactor     .10000E-03    15.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     48.375        31.632        .57649E-04   -1.4316    
   4  norm          .10000E-03    6.8360        .27462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    26.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.5673        10.252        .94163E-03   -1.5281    
   7  norm          .10000E-03    2.7352        .12815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.539        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.3143        2.1360        .88079E-04   -1.5344    
  11  Prefactor     .10000E-03    3.1827        .13767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.1811        6.3931        .14016E-03   -1.5136    
  13  norm          1.9888        1.5006        .81082E-04   -1.5426    
  14  norm          .10000E-03    1.5232        .18734E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.0138        .10991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    22.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .77945        49.459        .43688E-02   -1.5531    
  18  Prefactor     .10000E-03    11.290        .31680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          25.614        3.4606        .52384E-04   -1.4695    
  20  Prefactor     .10000E-03    10.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    4.6222        .16654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.3512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10009E-03    258.66        .21202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    1.7526        .10251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6.8844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.0437        3.4775        .26473E-03   -1.5504    
  27  Normalizat    .84004        .20695        .25181E-03   -.98600    
  28  Prefactor     1.0154        .21372        .24874E-03   -.92217    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01936e-09
Minuit parameter uncertainties:
  1  17.3163
  2  9.28188e-05
  3  31.6425
  4  0.00012251
  5  2.08186e-05
  6  10.2557
  7  5.41042e-07
  8  2.40953e-05
  9  4.15476e-05
  10  2.13606
  11  1.22348e-06
  12  6.39361
  13  1.50062
  14  3.46256e-06
  15  1.09347e-06
  16  0.000135112
  17  12.4278
  18  0.000456002
  19  3.46067
  20  4.3118e-05
  21  8.57272e-06
  22  2.93846e-05
  23  0.00951766
  24  1.01168e-06
  25  2.05761e-05
  26  3.47819
  27  0.207149
  28  0.213901
Done.

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

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  1.000e-04  4.560e-04  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.015e+00  2.139e-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:  8.400e-01  2.071e-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: 5.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/497853/likelihoodResults_317606401_317865601_4FGL_J1521.8+4338_daily_bin302.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) = 6303.4779232
delta logL = -0.000420305379521

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6303.47750254
delta logL = 3.57464159606e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10939E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8709       1.0000          .0000       10.000    
     3 'Normalizat'    .84003       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0154       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=   6303.477     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      278 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15532E-03    7.7282        .66247E-01** at limit **
   2  Index         2.2823        6.3162        .50000        .38916E-05
   3  Normalizat    .84004        .44698E-02    .25181E-03    .14190E-03
   4  Prefactor     1.0154        .48377E-02    .24874E-03    .23710E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00015532
  Index      = 2.28233
  Normalizat = 0.840038
  Prefactor  = 1.01542
 **********
 **   18 **HESSE 
 **********

 FCN=   6303.477     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      317 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15532E-03    7.2505        .68470E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2823        7.2404        .50000       -.57464    
   3  Normalizat    .84004        .44010E-02    .10072E-04   -.98600    
   4  Prefactor     1.0154        .47632E-02    .49747E-04   -.92217    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.39114e-09
Minuit parameter uncertainties:
  1  0.0400595
  2  101.556
  3  0.004401
  4  0.00476325
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/497853': 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) = 6303.47749909
delta logL = 3.80704386771e-06

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  1.553e-04  4.006e-02  1.000e-04  1.000e+04 ( 1.000e-12)
311        Index:  2.282e+00  1.016e+02  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.015e+00  4.763e-03  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:  8.400e-01  4.401e-03  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/497853/cmap_HighResolution_317606401_317865601_4FGL_J1521.8+4338_daily_bin302.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.65e-03', job_status='DONE', photon_flux_upper_limit='5.83e-08', time_completed='2021-09-12 01:55:07.263454', job_id='497853', GAL2='1.02', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1631436907.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='3.81e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.94' WHERE bin_id='302' AND source_name='4FGL J1521.8+4338' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:55:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 497853: <4FGL_J1521.8+4338_daily_bin302> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1521.8+4338_daily_bin302 230.464 43.6344 317606401 317865601 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 :                                   848.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             338.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            870 sec.

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

