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


Performing analysis on: 4FGL_J1520.5+4209_daily_bin237
RA = 230.135, Dec = 42.16
tmin = 300758401, tmax = 301017601
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='488902', job_status='RUN', time_executed='2021-09-12 01:12:16.178128', time_epoch_executed='1631434336.18' WHERE source_name='4FGL J1520.5+4209' and cadence='daily' and bin_id='237'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/488902

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/488902/ft1_4FGL_J1520.5+4209_daily_bin237.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/488902/ft2_4FGL_J1520.5+4209_daily_bin237.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/488902/ft1_4FGL_J1520.5+4209_daily_bin237.fits outfile=/scratch/kocevski/488902/ft1_filteredMKT_4FGL_J1520.5+4209_daily_bin237.fits ra=230.135 dec=42.16 rad=12.0 tmin=300758401.0 tmax=301017601.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.74
user 2.53
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/488902/ft2_4FGL_J1520.5+4209_daily_bin237.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/488902/ft1_filteredMKT_4FGL_J1520.5+4209_daily_bin237.fits evtable="EVENTS" outfile="/scratch/kocevski/488902/ft1_filtered_4FGL_J1520.5+4209_daily_bin237.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.41
user 0.27
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/488902/ft1_filtered_4FGL_J1520.5+4209_daily_bin237.fits" evtable="EVENTS" scfile=/scratch/kocevski/488902/ft2_4FGL_J1520.5+4209_daily_bin237.fits sctable="SC_DATA" outfile=/scratch/kocevski/488902/ltcube_300758401_301017601_4FGL_J1520.5+4209_daily_bin237.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/488902/ft2_4FGL_J1520.5+4209_daily_bin237.fits
.....................!
real 9.13
user 8.84
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/488902/ft1_filtered_4FGL_J1520.5+4209_daily_bin237.fits evtable="EVENTS" scfile=/scratch/kocevski/488902/ft2_4FGL_J1520.5+4209_daily_bin237.fits sctable="SC_DATA" expcube=/scratch/kocevski/488902/ltcube_300758401_301017601_4FGL_J1520.5+4209_daily_bin237.fits outfile=/scratch/kocevski/488902/expmap_300758401_301017601_4FGL_J1520.5+4209_daily_bin237.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/488902/ltcube_300758401_301017601_4FGL_J1520.5+4209_daily_bin237.fits
.....................!
real 145.78
user 141.36
sys 4.15

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/488902/ft1_filtered_4FGL_J1520.5+4209_daily_bin237.fits scfile=/scratch/kocevski/488902/ft2_4FGL_J1520.5+4209_daily_bin237.fits outfile=/scratch/kocevski/488902/cmap_300758401_301017601_4FGL_J1520.5+4209_daily_bin237.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.46
user 0.29
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/488902/ft1_filtered_4FGL_J1520.5+4209_daily_bin237.fits scfile=/scratch/kocevski/488902/ft2_4FGL_J1520.5+4209_daily_bin237.fits outfile=/scratch/kocevski/488902/cmap_HighResolution_300758401_301017601_4FGL_J1520.5+4209_daily_bin237.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.45
user 0.30
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26777E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.111       1.0000         .10000E-03   10000.    
     3 'norm      '    .25664E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .19060E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .69162E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    9.0670       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15082E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10658E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.4105       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2214       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8594       1.0000         .10000E-03   10000.    
    12 'norm      '    .39937       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .27482E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10833E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .54536       1.0000         .10000E-03   10000.    
    16 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10438E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12475E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.8601       1.0000         .10000E-03   10000.    
    21 'norm      '    11.300       1.0000         .10000E-03   10000.    
    22 'Prefactor '    25.191       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    7.0750       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11096E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.2763       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .18075E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    10.731       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .97559       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1651       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=   7196.466     FROM MIGRAD    STATUS=CONVERGED    821 CALLS     4859 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.726        .87801E-07** at limit **
   2  Prefactor     12.112        16.291       -.22636E-06   -.27017E-04
   3  norm          .10000E-03    9.7571       -.67248E-07** at limit **
   4  Prefactor     .10000E-03    56.983        .21077E-05** at limit **
   5  Prefactor     .10001E-03    49.368       -.70138E-05** at limit **
   6  norm          9.0627        6.5809       -.44016E-07   -.62916E-04
   7  Prefactor     .10000E-03    24.047       -.15951E-06** at limit **
   8  Prefactor     .10000E-03    10.603        .16059E-05** at limit **
   9  norm          6.4067        6.2783       -.12089E-06   -.35174E-04
  10  Prefactor     3.2849        18.472        .75500E-06    .19574E-06
  11  Prefactor     1.8469        26.695       -.29262E-05   -.76230E-04
  12  norm          .39790        1.5021        .10462E-05   -.32551E-03
  13  Prefactor     .10012E-03    7.5847        .65863E-06** at limit **
  14  Prefactor     .10000E-03    2.5985        .19291E-06** at limit **
  15  norm          .54841        1.8282        .24553E-07   -.20479E-03
  16  norm          .10000E-03    1.2870        .23396E-07** at limit **
  17  Prefactor     .10000E-03    3.0823        .14124E-07** at limit **
  18  Prefactor     .10000E-03    45.410       -.25695E-05** at limit **
  19  Prefactor     .10000E-03    10.765       -.90618E-06** at limit **
  20  Prefactor     1.8684        2.1065        .36475E-06   -.67997E-03
  21  norm          11.295        2.5161        .55042E-08    .26233E-05
  22  Prefactor     25.232        16.327       -.41307E-08    .86390E-06
  23  Prefactor     .10000E-03    13.594       -.17978E-06** at limit **
  24  norm          7.0622        10.293       -.65421E-06   -.53926E-04
  25  Prefactor     .10000E-03    10.320       -.55576E-06** at limit **
  26  Prefactor     .83498        68.365       -.55248E-05    .64130E-04
  27  Prefactor     .10000E-03    4.4279       -.38209E-06** at limit **
  28  Prefactor     10.742        23.832        .17190E-05    .66118E-04
  29  Normalizat    .97552        .17512       -.33306E-06   -.44779E-04
  30  Prefactor     1.1651        .17842        .16150E-06   -.12548E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 12.1123
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  norm       = 9.06271
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.40669
  Prefactor  = 3.28486
  Prefactor  = 1.8469
  norm       = 0.397897
  Prefactor  = 0.000100116
  Prefactor  = 0.0001
  norm       = 0.54841
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.86845
  norm       = 11.295
  Prefactor  = 25.2325
  Prefactor  = 0.0001
  norm       = 7.06225
  Prefactor  = 0.0001
  Prefactor  = 0.834977
  Prefactor  = 0.0001
  Prefactor  = 10.7416
  Normalizat = 0.975518
  Prefactor  = 1.16514
 **********
 **   18 **HESSE 
 **********

 FCN=   7196.466     FROM HESSE     STATUS=OK           608 CALLS     5467 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.804        .21437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.112        16.292        .11511E-03   -1.5012    
   3  norm          .10000E-03    9.7668        .21454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    57.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    51.678        .54056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.0627        6.5776        .13310E-03   -1.5106    
   7  Prefactor     .10000E-03    24.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.4067        6.2774        .15852E-03   -1.5202    
  10  Prefactor     3.2849        18.276        .22571E-03   -1.5345    
  11  Prefactor     1.8469        26.746        .30561E-03   -1.5436    
  12  norm          .39790        1.4953        .17586E-03   -1.5582    
  13  Prefactor     .10012E-03    14.144        .56475E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.6224        .13350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .54841        1.7713        .16256E-03   -1.5560    
  16  norm          .10000E-03    1.3010        .93961E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.1141        .14543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    45.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.8684        5.8156        .15277E-02   -1.5435    
  21  norm          11.295        2.5315        .52777E-04   -1.5036    
  22  Prefactor     25.232        16.423        .79812E-04   -1.4703    
  23  Prefactor     .10000E-03    13.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          7.0622        10.291        .15082E-03   -1.5176    
  25  Prefactor     .10000E-03    10.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .83498        45.285        .18095       -1.5525    
  27  Prefactor     .10000E-03    17.199        .31272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     10.742        22.070        .12231E-03   -1.5052    
  29  Normalizat    .97552        .20950        .25901E-03   -.93855    
  30  Prefactor     1.1651        .21427        .25505E-03   -.87411    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69711e-09
Minuit parameter uncertainties:
  1  4.66341e-06
  2  16.298
  3  8.40181e-06
  4  0.000144635
  5  0.00118916
  6  6.57814
  7  1.77807e-06
  8  2.25536e-05
  9  6.27807
  10  15.5035
  11  14.0637
  12  1.4954
  13  0.00256261
  14  4.08369e-06
  15  1.77143
  16  8.7099e-07
  17  3.08549e-06
  18  0.000195293
  19  2.26139e-05
  20  5.81731
  21  2.53156
  22  16.4259
  23  5.57097e-05
  24  10.294
  25  1.70807e-05
  26  12.3073
  27  7.8459e-05
  28  22.0869
  29  0.209678
  30  0.214425
Done.

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

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  2.261e-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:  1.165e+00  2.144e-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:  9.755e-01  2.097e-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.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/488902/likelihoodResults_300758401_301017601_4FGL_J1520.5+4209_daily_bin237.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) = 7196.4659722
delta logL = -0.000440856298155

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7196.46553405
delta logL = -2.71108001471e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13670E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4855       1.0000          .0000       10.000    
     3 'Normalizat'    .97524       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1655       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=   7196.466     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      242 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10183E-03    141.94        .18142E-02** at limit **
   2  Index         2.4107        6.1921        .50000        .11721E-04
   3  Normalizat    .97552        .14676E-01    .25901E-03    .15889E-04
   4  Prefactor     1.1651        .15705E-01    .25505E-03    .15200E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101833
  Index      = 2.41074
  Normalizat = 0.975517
  Prefactor  = 1.16514
 **********
 **   18 **HESSE 
 **********

 FCN=   7196.466     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10183E-03    583.61        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4107        6.1857        .50000       -.54434    
   3  Normalizat    .97552        .31421E-01    .10360E-04   -.93855    
   4  Prefactor     1.1651        .33622E-01    .10202E-04   -.87411    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.89101e-08
Minuit parameter uncertainties:
  1  0.0660612
  2  1053.07
  3  0.0314212
  4  0.0336227
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/488902': 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) = 7196.46553113
delta logL = 2.08765413845e-07

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.018e-04  6.606e-02  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.411e+00  1.053e+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:  1.165e+00  3.362e-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:  9.755e-01  3.142e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/488902/cmap_HighResolution_300758401_301017601_4FGL_J1520.5+4209_daily_bin237.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.61e-03', job_status='DONE', photon_flux_upper_limit='5.93e-08', time_completed='2021-09-12 01:25:45.544736', job_id='488902', GAL2='1.17', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1631435145.54', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='2.09e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='237' AND source_name='4FGL J1520.5+4209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:25:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 488902: <4FGL_J1520.5+4209_daily_bin237> in cluster <slac> Done

Job <4FGL_J1520.5+4209_daily_bin237> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Sep 12 01:10:46 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 01:10:47 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:10:47 2021
Terminated at Sun Sep 12 01:25:46 2021
Results reported at Sun Sep 12 01:25:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1520.5+4209_daily_bin237 230.135 42.16 300758401 301017601 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 :                                   803.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            900 sec.

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

