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


Performing analysis on: 4FGL_J1520.5+4209_daily_bin373
RA = 230.135, Dec = 42.16
tmin = 336009601, tmax = 336268801
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='490193', job_status='RUN', time_executed='2021-09-12 01:15:36.699297', time_epoch_executed='1631434536.7' WHERE source_name='4FGL J1520.5+4209' and cadence='daily' and bin_id='373'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/490193

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/490193/ft1_4FGL_J1520.5+4209_daily_bin373.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/490193/ft2_4FGL_J1520.5+4209_daily_bin373.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/490193/ft1_4FGL_J1520.5+4209_daily_bin373.fits outfile=/scratch/kocevski/490193/ft1_filteredMKT_4FGL_J1520.5+4209_daily_bin373.fits ra=230.135 dec=42.16 rad=12.0 tmin=336009601.0 tmax=336268801.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 2.63
user 2.42
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/490193/ft2_4FGL_J1520.5+4209_daily_bin373.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/490193/ft1_filteredMKT_4FGL_J1520.5+4209_daily_bin373.fits evtable="EVENTS" outfile="/scratch/kocevski/490193/ft1_filtered_4FGL_J1520.5+4209_daily_bin373.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.42
user 0.26
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/490193/ft1_filtered_4FGL_J1520.5+4209_daily_bin373.fits" evtable="EVENTS" scfile=/scratch/kocevski/490193/ft2_4FGL_J1520.5+4209_daily_bin373.fits sctable="SC_DATA" outfile=/scratch/kocevski/490193/ltcube_336009601_336268801_4FGL_J1520.5+4209_daily_bin373.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/490193/ft2_4FGL_J1520.5+4209_daily_bin373.fits
.....................!
real 9.62
user 9.32
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/490193/ft1_filtered_4FGL_J1520.5+4209_daily_bin373.fits evtable="EVENTS" scfile=/scratch/kocevski/490193/ft2_4FGL_J1520.5+4209_daily_bin373.fits sctable="SC_DATA" expcube=/scratch/kocevski/490193/ltcube_336009601_336268801_4FGL_J1520.5+4209_daily_bin373.fits outfile=/scratch/kocevski/490193/expmap_336009601_336268801_4FGL_J1520.5+4209_daily_bin373.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/490193/ltcube_336009601_336268801_4FGL_J1520.5+4209_daily_bin373.fits
.....................!
real 150.42
user 146.31
sys 3.87

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/490193/ft1_filtered_4FGL_J1520.5+4209_daily_bin373.fits scfile=/scratch/kocevski/490193/ft2_4FGL_J1520.5+4209_daily_bin373.fits outfile=/scratch/kocevski/490193/cmap_336009601_336268801_4FGL_J1520.5+4209_daily_bin373.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.45
user 0.31
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/490193/ft1_filtered_4FGL_J1520.5+4209_daily_bin373.fits scfile=/scratch/kocevski/490193/ft2_4FGL_J1520.5+4209_daily_bin373.fits outfile=/scratch/kocevski/490193/cmap_HighResolution_336009601_336268801_4FGL_J1520.5+4209_daily_bin373.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.46
user 0.31
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/490193/ft1_filtered_4FGL_J1520.5+4209_daily_bin373.fits', '/scratch/kocevski/490193/ft2_4FGL_J1520.5+4209_daily_bin373.fits', expMap='/scratch/kocevski/490193/expmap_336009601_336268801_4FGL_J1520.5+4209_daily_bin373.fits', expCube='/scratch/kocevski/490193/ltcube_336009601_336268801_4FGL_J1520.5+4209_daily_bin373.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/490193/Model_4FGL_J1520.5+4209_daily_bin373.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/490193/ft1_filtered_4FGL_J1520.5+4209_daily_bin373.fits
Spacecraft file(s): /scratch/kocevski/490193/ft2_4FGL_J1520.5+4209_daily_bin373.fits
Exposure map: /scratch/kocevski/490193/expmap_336009601_336268801_4FGL_J1520.5+4209_daily_bin373.fits
Exposure cube: /scratch/kocevski/490193/ltcube_336009601_336268801_4FGL_J1520.5+4209_daily_bin373.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/490193/Model_4FGL_J1520.5+4209_daily_bin373.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) = 5389.44927076

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .70721E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.880       1.0000         .10000E-03   10000.    
     6 'norm      '    7.0749       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    11.513       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7784       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.4996       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.361       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3246       1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.4383       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.0755       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.4783       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .43500E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    43.911       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11750E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.3130       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .85340       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .78796       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.

 FCN=   5389.424     FROM MIGRAD    STATUS=CONVERGED    770 CALLS     3959 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    89.939        .58124E-05** at limit **
   2  Prefactor     .10000E-03    6.0565        .30607E-06** at limit **
   3  norm          .10000E-03    6.9428       -.43084E-06** at limit **
   4  Prefactor     .10000E-03    21.108        .28964E-06** at limit **
   5  Prefactor     10.872        23.546        .12379E-06   -.27789E-06
   6  norm          7.0741        5.5053       -.40440E-07    .25187E-03
   7  Prefactor     .10000E-03    20.883        .49344E-06** at limit **
   8  Prefactor     .10000E-03    4.1463        .15017E-06** at limit **
   9  norm          11.511        9.0020        .96792E-07   -.12896E-04
  10  Prefactor     1.7756        15.777       -.11843E-05    .33856E-03
  11  Prefactor     .10000E-03    14.705        .89567E-06** at limit **
  12  norm          4.4995        1.7366        .51449E-07    .28923E-04
  13  Prefactor     15.361        8.1220       -.16939E-06   -.30128E-03
  14  Prefactor     5.3239        5.4983        .11523E-06    .20340E-04
  15  norm          .10000E-03    .58514        .39322E-06** at limit **
  16  norm          .10000E-03    2.2091       -.28054E-07** at limit **
  17  Prefactor     6.4362        6.7298       -.46061E-06   -.14608E-03
  18  Prefactor     8.0728        72.191       -.45149E-06   -.14276E-04
  19  Prefactor     .10000E-03    7.2699        .46746E-06** at limit **
  20  Prefactor     .10000E-03    17.325       -.55545E-06** at limit **
  21  norm          7.4791        1.7443       -.44440E-07    .95742E-04
  22  Prefactor     .10088E-03    8.1350       -.91485E-06** at limit **
  23  Prefactor     .10000E-03    4.0993       -.81461E-09** at limit **
  24  norm          .10000E-03    2.7818        .48767E-07** at limit **
  25  Prefactor     .10000E-03    15.752       -.12787E-06** at limit **
  26  Prefactor     43.905        72.199        .24305E-06    .28349E-04
  27  Prefactor     .10000E-03    4.6691       -.31863E-05** at limit **
  28  Prefactor     6.2832        22.164        .93967E-06    .71665E-04
  29  Normalizat    .85346        .16884        .76419E-06   -.20578E-03
  30  Prefactor     .78792        .16912       -.15277E-05   -.12283E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100034
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.8724
  norm       = 7.07408
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.5115
  Prefactor  = 1.77558
  Prefactor  = 0.0001
  norm       = 4.49948
  Prefactor  = 15.3606
  Prefactor  = 5.32395
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.43615
  Prefactor  = 8.07283
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.47906
  Prefactor  = 0.000100881
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.9046
  Prefactor  = 0.000100001
  Prefactor  = 6.28315
  Normalizat = 0.853455
  Prefactor  = 0.787923
 **********
 **   18 **HESSE 
 **********

 FCN=   5389.424     FROM HESSE     STATUS=OK           596 CALLS     4555 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    102.20        .59046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.0732        .17651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.9742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    21.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.872        23.634        .12146E-03   -1.5048    
   6  norm          7.0741        5.5098        .73094E-03   -1.5176    
   7  Prefactor     .10000E-03    20.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.1528        .14601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          11.511        9.0743        .11807E-03   -1.5029    
  10  Prefactor     1.7756        28.431        .15694E-02   -1.5441    
  11  Prefactor     .10000E-03    14.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.4995        1.7369        .58220E-04   -1.5284    
  13  Prefactor     15.361        8.1426        .10219E-03   -1.4924    
  14  Prefactor     5.3239        5.5051        .16732E-03   -1.5246    
  15  norm          .10000E-03    .92671        .10540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.2417        .10617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.4362        6.6876        .15818E-03   -1.5201    
  18  Prefactor     8.0728        71.612        .14109E-03   -1.5140    
  19  Prefactor     .10000E-03    7.3109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.624        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.4791        1.7528        .42652E-04   -1.5161    
  22  Prefactor     .10088E-03    9.0375        .57776E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.1006        .14517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.7827        .11959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    15.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     43.905        72.296        .60500E-04   -1.4382    
  27  Prefactor     .10000E-03    4.8453        .15648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     6.2832        22.457        .15976E-03   -1.5207    
  29  Normalizat    .85346        .19767        .22145E-03   -.98115    
  30  Prefactor     .78792        .19638        .24269E-03   -1.0018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62363e-09
Minuit parameter uncertainties:
  1  0.00373614
  2  2.74189e-05
  3  6.87356e-05
  4  6.67176e-05
  5  23.6546
  6  5.51018
  7  8.26092e-05
  8  1.13522e-05
  9  9.07533
  10  14.2177
  11  9.48973e-05
  12  1.73695
  13  8.14324
  14  5.50563
  15  6.33453e-06
  16  7.20635e-06
  17  6.68833
  18  48.1649
  19  6.68153e-05
  20  5.24832e-05
  21  1.75279
  22  0.00564397
  23  3.58076e-06
  24  2.04025e-06
  25  3.98424e-05
  26  72.4411
  27  0.000113982
  28  22.487
  29  0.197841
  30  0.196557
Done.

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

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  6.682e-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:  7.879e-01  1.966e-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:  8.535e-01  1.978e-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: 5.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/490193/likelihoodResults_336009601_336268801_4FGL_J1520.5+4209_daily_bin373.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) = 5389.42436261
delta logL = -0.000651485504932

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5389.42371128
delta logL = -1.62430296768e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10366E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4808       1.0000          .0000       10.000    
     3 'Normalizat'    .85353       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78785       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=   5389.424     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      251 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.696        .18142E-01** at limit **
   2  Index         1.8564        8.0427        .50000       -.25261E-07
   3  Normalizat    .85346        .65220E-02    .22145E-03   -.62622E-03
   4  Prefactor     .78792        .69333E-02    .24269E-03   -.56942E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.85639
  Normalizat = 0.853456
  Prefactor  = 0.787922
 **********
 **   18 **HESSE 
 **********

 FCN=   5389.424     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      280 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    271.04        .23410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8564        5.9143        .50000       -.67991    
   3  Normalizat    .85346        .19863E-01    .44289E-04   -.98115    
   4  Prefactor     .78792        .21115E-01    .48537E-04   -1.0018    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.15784e-10
Minuit parameter uncertainties:
  1  7.27641e-05
  2  834.492
  3  0.0198629
  4  0.0211154
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/490193': 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) = 5389.42370894
delta logL = 2.18249078898e-06

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  7.276e-05  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  1.856e+00  8.345e+02  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:  7.879e-01  2.112e-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:  8.535e-01  1.986e-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/490193/cmap_HighResolution_336009601_336268801_4FGL_J1520.5+4209_daily_bin373.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.27e-03', job_status='DONE', photon_flux_upper_limit='5.49e-08', time_completed='2021-09-12 01:26:15.509224', job_id='490193', GAL2='0.79', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1631435175.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='2.18e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='373' AND source_name='4FGL J1520.5+4209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:26:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 490193: <4FGL_J1520.5+4209_daily_bin373> in cluster <slac> Done

Job <4FGL_J1520.5+4209_daily_bin373> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep 12 01:15:24 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 01:15:25 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:15:25 2021
Terminated at Sun Sep 12 01:26:18 2021
Results reported at Sun Sep 12 01:26:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1520.5+4209_daily_bin373 230.135 42.16 336009601 336268801 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 :                                   634.48 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             342.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   650 sec.
    Turnaround time :                            654 sec.

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

