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


Performing analysis on: 4FGL_J1520.5+4209_daily_bin748
RA = 230.135, Dec = 42.16
tmin = 433209601, tmax = 433468801
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='491918', job_status='RUN', time_executed='2021-09-12 01:21:59.834848', time_epoch_executed='1631434919.83' WHERE source_name='4FGL J1520.5+4209' and cadence='daily' and bin_id='748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/491918

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/491918/ft1_4FGL_J1520.5+4209_daily_bin748.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/491918/ft2_4FGL_J1520.5+4209_daily_bin748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/491918/ft1_4FGL_J1520.5+4209_daily_bin748.fits outfile=/scratch/kocevski/491918/ft1_filteredMKT_4FGL_J1520.5+4209_daily_bin748.fits ra=230.135 dec=42.16 rad=12.0 tmin=433209601.0 tmax=433468801.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 5.99
user 5.74
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/491918/ft2_4FGL_J1520.5+4209_daily_bin748.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/491918/ft2_4FGL_J1520.5+4209_daily_bin748.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/491918/ft1_filteredMKT_4FGL_J1520.5+4209_daily_bin748.fits evtable="EVENTS" outfile="/scratch/kocevski/491918/ft1_filtered_4FGL_J1520.5+4209_daily_bin748.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.52
user 0.33
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/491918/ft1_filtered_4FGL_J1520.5+4209_daily_bin748.fits" evtable="EVENTS" scfile=/scratch/kocevski/491918/ft2_4FGL_J1520.5+4209_daily_bin748.fits sctable="SC_DATA" outfile=/scratch/kocevski/491918/ltcube_433209601_433468801_4FGL_J1520.5+4209_daily_bin748.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/491918/ft2_4FGL_J1520.5+4209_daily_bin748.fits
.....................!
real 11.76
user 11.37
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/491918/ft1_filtered_4FGL_J1520.5+4209_daily_bin748.fits evtable="EVENTS" scfile=/scratch/kocevski/491918/ft2_4FGL_J1520.5+4209_daily_bin748.fits sctable="SC_DATA" expcube=/scratch/kocevski/491918/ltcube_433209601_433468801_4FGL_J1520.5+4209_daily_bin748.fits outfile=/scratch/kocevski/491918/expmap_433209601_433468801_4FGL_J1520.5+4209_daily_bin748.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/491918/ltcube_433209601_433468801_4FGL_J1520.5+4209_daily_bin748.fits
.....................!
real 191.12
user 185.38
sys 5.43

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 195 point sources and 0 extended sources

Setting source of interest to:
4FGL J1520.5+4209 @ 230.135 42.16

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/491918/ft1_filtered_4FGL_J1520.5+4209_daily_bin748.fits scfile=/scratch/kocevski/491918/ft2_4FGL_J1520.5+4209_daily_bin748.fits outfile=/scratch/kocevski/491918/cmap_433209601_433468801_4FGL_J1520.5+4209_daily_bin748.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.135 yref=42.16 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.52
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/491918/ft1_filtered_4FGL_J1520.5+4209_daily_bin748.fits scfile=/scratch/kocevski/491918/ft2_4FGL_J1520.5+4209_daily_bin748.fits outfile=/scratch/kocevski/491918/cmap_HighResolution_433209601_433468801_4FGL_J1520.5+4209_daily_bin748.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.135 yref=42.16 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/491918/ft1_filtered_4FGL_J1520.5+4209_daily_bin748.fits evtable="EVENTS" scfile=/scratch/kocevski/491918/ft2_4FGL_J1520.5+4209_daily_bin748.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/491918/Model_4FGL_J1520.5+4209_daily_bin748.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/491918/ft1_filtered_4FGL_J1520.5+4209_daily_bin748.fits.....................!
real 44.79
user 43.52
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/491918/ft1_filtered_4FGL_J1520.5+4209_daily_bin748.fits', '/scratch/kocevski/491918/ft2_4FGL_J1520.5+4209_daily_bin748.fits', expMap='/scratch/kocevski/491918/expmap_433209601_433468801_4FGL_J1520.5+4209_daily_bin748.fits', expCube='/scratch/kocevski/491918/ltcube_433209601_433468801_4FGL_J1520.5+4209_daily_bin748.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/491918/Model_4FGL_J1520.5+4209_daily_bin748.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1520.5+4209'

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  3.393e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.505e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  9.357e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/491918/ft1_filtered_4FGL_J1520.5+4209_daily_bin748.fits
Spacecraft file(s): /scratch/kocevski/491918/ft2_4FGL_J1520.5+4209_daily_bin748.fits
Exposure map: /scratch/kocevski/491918/expmap_433209601_433468801_4FGL_J1520.5+4209_daily_bin748.fits
Exposure cube: /scratch/kocevski/491918/ltcube_433209601_433468801_4FGL_J1520.5+4209_daily_bin748.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/491918/Model_4FGL_J1520.5+4209_daily_bin748.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) = 5191.14279052

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.670       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    15.112       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .46536       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2088       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.185       1.0000         .10000E-03   10000.    
     9 'norm      '    6.0276       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.6383       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .76724       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.1864       1.0000         .10000E-03   10000.    
    15 'norm      '    .67539       1.0000         .10000E-03   10000.    
    16 'norm      '    .17046E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    89.130       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.0858       1.0000         .10000E-03   10000.    
    21 'norm      '    7.2313       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.6967       1.0000         .10000E-03   10000.    
    23 'Prefactor '    72.896       1.0000         .10000E-03   10000.    
    24 'norm      '    6.8460       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.6168       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0224       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .94464       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+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=   5191.129     FROM MIGRAD    STATUS=CONVERGED   1360 CALLS     4598 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.638        43.869        .10457E-03    .46531E-04
   2  Prefactor     .10000E-03    39.370        .18142E-02** at limit **
   3  norm          15.111        24.231        .10303E-03    .30565E-04
   4  Prefactor     .10000E-03    182.29        .50000    ** at limit **
   5  Prefactor     .10000E-03    18.871        .18142E-02** at limit **
   6  norm          .10000E-03    2.2157        .10462E-02** at limit **
   7  Prefactor     2.2100        176.38        .27678E-03   -.45182E-06
   8  Prefactor     17.225        34.788        .96614E-04   -.36007E-04
   9  norm          6.0279        6.4790        .16354E-03    .13486E-04
  10  Prefactor     3.6420        25.534        .21180E-03    .10360E-04
  11  Prefactor     .10000E-03    20.083        .18142E-02** at limit **
  12  norm          .76710        2.0940        .18659E-02    .35574E-02
  13  Prefactor     .10000E-03    2.5875        .11308E-02** at limit **
  14  Prefactor     4.1846        13.158        .98486E-03    .36431E-04
  15  norm          .67533        1.1119        .11160E-02    .31752E-03
  16  norm          .10000E-03    10.074        .28345E-02** at limit **
  17  Prefactor     .10000E-03    12.396        .18142E-02** at limit **
  18  Prefactor     89.151        79.768        .21280E-03   -.24041E-04
  19  Prefactor     .10000E-03    9.1419        .18142E-02** at limit **
  20  Prefactor     7.0752        17.866        .15070E-03   -.42321E-04
  21  norm          7.2314        2.3537        .44569E-04    .91829E-04
  22  Prefactor     9.6971        17.487        .12869E-03    .15195E-04
  23  Prefactor     72.898        43.057        .47023E-04   -.22388E-04
  24  norm          6.8306        23.363        .15334E-03    .24244E-04
  25  Prefactor     .10000E-03    7.2062        .18142E-02** at limit **
  26  Prefactor     .10000E-03    43.650        .18142E-02** at limit **
  27  Prefactor     .10000E-03    6.7088        .18137E-02** at limit **
  28  Prefactor     4.6243        25.987        .18732E-03    .16386E-05
  29  Normalizat    1.0221        .27563        .26672E-03   -.95648E-04
  30  Prefactor     .94491        .24773        .26764E-03    .54542E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.6381
  Prefactor  = 0.0001
  norm       = 15.1114
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.20995
  Prefactor  = 17.2247
  norm       = 6.02789
  Prefactor  = 3.64199
  Prefactor  = 0.0001
  norm       = 0.767095
  Prefactor  = 0.0001
  Prefactor  = 4.18459
  norm       = 0.675333
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 89.151
  Prefactor  = 0.0001
  Prefactor  = 7.07518
  norm       = 7.23141
  Prefactor  = 9.69712
  Prefactor  = 72.8976
  norm       = 6.8306
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.62435
  Normalizat = 1.0221
  Prefactor  = 0.944907
 **********
 **   18 **HESSE 
 **********

 FCN=   5191.129     FROM HESSE     STATUS=OK           570 CALLS     5168 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.638        43.875        .41829E-05   -1.4943    
   2  Prefactor     .10000E-03    39.379        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          15.111        24.233        .41213E-05   -1.4930    
   4  Prefactor     .10000E-03    182.26        .50000       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.872        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.2158        .20924E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.2100        176.42        .11071E-04   -1.5411    
   8  Prefactor     17.225        34.781        .38645E-05   -1.4878    
   9  norm          6.0279        6.4788        .65417E-05   -1.5217    
  10  Prefactor     3.6420        25.511        .84718E-05   -1.5326    
  11  Prefactor     .10000E-03    20.084        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .76710        2.0909        .37318E-03   -1.5533    
  13  Prefactor     .10000E-03    2.5876        .22616E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.1846        13.148        .39394E-04   -1.5299    
  15  norm          .67533        1.1106        .44641E-04   -1.5544    
  16  norm          .10000E-03    10.129        .56691E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.397        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     89.151        79.746        .85119E-05   -1.3817    
  19  Prefactor     .10000E-03    9.1421        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.0752        17.853        .60280E-05   -1.5176    
  21  norm          7.2314        2.3532        .17828E-05   -1.5170    
  22  Prefactor     9.6971        17.482        .51476E-05   -1.5085    
  23  Prefactor     72.898        43.032        .94045E-05   -1.3998    
  24  norm          6.8306        23.347        .61337E-05   -1.5185    
  25  Prefactor     .10000E-03    7.2064        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    43.650        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    6.7092        .36275E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     4.6243        25.977        .74929E-05   -1.5278    
  29  Normalizat    1.0221        .27584        .10669E-04   -.92294    
  30  Prefactor     .94491        .24802        .10706E-04   -.94589    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.40713e-10
Minuit parameter uncertainties:
  1  43.9722
  2  0.000219927
  3  24.2492
  4  0.000563719
  5  1.36409e-05
  6  9.83642e-08
  7  39.6111
  8  34.8217
  9  6.4796
  10  19.2895
  11  0.000198643
  12  2.09108
  13  3.92133e-06
  14  13.1567
  15  1.11062
  16  4.45653e-05
  17  2.18588e-05
  18  79.8424
  19  1.29291e-05
  20  17.8667
  21  2.35325
  22  17.491
  23  43.0503
  24  23.3779
  25  1.02667e-05
  26  5.19645e-05
  27  3.99143e-05
  28  21.9349
  29  0.276227
  30  0.248322
Done.

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

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  1.293e-05  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.505e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  9.357e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  9.449e-01  2.483e-01  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  1.022e+00  2.762e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 230.135 42.160
Photon Flux Upper Limit: 7.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/491918/likelihoodResults_433209601_433468801_4FGL_J1520.5+4209_daily_bin748.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) = 5191.12952222
delta logL = -0.000520594764566

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5191.12900165
delta logL = -2.39315340878e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4921       1.0000          .0000       10.000    
     3 'Normalizat'    1.0222       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94485       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+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=   5191.129     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      231 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10168E-03    164.98        .18142E-02** at limit **
   2  Index         2.4054        6.0762        .50000        .96594E-05
   3  Normalizat    1.0221        .21612E-01    .26672E-03    .94627E-05
   4  Prefactor     .94490        .21043E-01    .26764E-03    .70512E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010168
  Index      = 2.40539
  Normalizat = 1.0221
  Prefactor  = 0.944904
 **********
 **   18 **HESSE 
 **********

 FCN=   5191.129     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      260 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10168E-03    654.64        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4054        8.7886        .50000       -.54559    
   3  Normalizat    1.0221        .46447E-01    .10669E-04   -.92294    
   4  Prefactor     .94490        .45222E-01    .10706E-04   -.94589    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.12635e-08
Minuit parameter uncertainties:
  1  0.0670693
  2  1522.05
  3  0.0464485
  4  0.0452237
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/491918': 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) = 5191.12900146
delta logL = 1.65201527125e-07

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.017e-04  6.707e-02  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.405e+00  1.522e+03  0.000e+00  1.000e+01 (-1.000e+00)
310        Scale:  9.357e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  9.449e-01  4.522e-02  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  1.022e+00  4.645e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 230.135 42.160

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/491918/cmap_HighResolution_433209601_433468801_4FGL_J1520.5+4209_daily_bin748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.90e-03', job_status='DONE', photon_flux_upper_limit='7.58e-08', time_completed='2021-09-12 01:35:52.445880', job_id='491918', GAL2='0.94', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1631435752.45', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.65e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='748' AND source_name='4FGL J1520.5+4209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:35:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 491918: <4FGL_J1520.5+4209_daily_bin748> in cluster <slac> Done

Job <4FGL_J1520.5+4209_daily_bin748> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Sep 12 01:20:39 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 01:20: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:20:41 2021
Terminated at Sun Sep 12 01:35:53 2021
Results reported at Sun Sep 12 01:35:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1520.5+4209_daily_bin748 230.135 42.16 433209601 433468801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1520.5+4209 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   828.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             311.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            914 sec.

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

