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


Performing analysis on: 4FGL_J1520.5+4209_daily_bin599
RA = 230.135, Dec = 42.16
tmin = 394588801, tmax = 394848001
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='491687', job_status='RUN', time_executed='2021-09-12 01:20:34.440544', time_epoch_executed='1631434834.44' WHERE source_name='4FGL J1520.5+4209' and cadence='daily' and bin_id='599'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/491687

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/491687/ft1_4FGL_J1520.5+4209_daily_bin599.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/491687/ft2_4FGL_J1520.5+4209_daily_bin599.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/491687/ft1_4FGL_J1520.5+4209_daily_bin599.fits outfile=/scratch/kocevski/491687/ft1_filteredMKT_4FGL_J1520.5+4209_daily_bin599.fits ra=230.135 dec=42.16 rad=12.0 tmin=394588801.0 tmax=394848001.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 4.49
user 4.27
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/491687/ft1_filtered_4FGL_J1520.5+4209_daily_bin599.fits" evtable="EVENTS" scfile=/scratch/kocevski/491687/ft2_4FGL_J1520.5+4209_daily_bin599.fits sctable="SC_DATA" outfile=/scratch/kocevski/491687/ltcube_394588801_394848001_4FGL_J1520.5+4209_daily_bin599.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/491687/ft2_4FGL_J1520.5+4209_daily_bin599.fits
.....................!
real 11.66
user 11.32
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/491687/ft1_filtered_4FGL_J1520.5+4209_daily_bin599.fits evtable="EVENTS" scfile=/scratch/kocevski/491687/ft2_4FGL_J1520.5+4209_daily_bin599.fits sctable="SC_DATA" expcube=/scratch/kocevski/491687/ltcube_394588801_394848001_4FGL_J1520.5+4209_daily_bin599.fits outfile=/scratch/kocevski/491687/expmap_394588801_394848001_4FGL_J1520.5+4209_daily_bin599.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/491687/ltcube_394588801_394848001_4FGL_J1520.5+4209_daily_bin599.fits
.....................!
real 191.72
user 186.73
sys 4.68

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/491687/ft1_filtered_4FGL_J1520.5+4209_daily_bin599.fits scfile=/scratch/kocevski/491687/ft2_4FGL_J1520.5+4209_daily_bin599.fits outfile=/scratch/kocevski/491687/cmap_394588801_394848001_4FGL_J1520.5+4209_daily_bin599.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/491687/ft1_filtered_4FGL_J1520.5+4209_daily_bin599.fits scfile=/scratch/kocevski/491687/ft2_4FGL_J1520.5+4209_daily_bin599.fits outfile=/scratch/kocevski/491687/cmap_HighResolution_394588801_394848001_4FGL_J1520.5+4209_daily_bin599.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.6405       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    59.483       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.5210       1.0000         .10000E-03   10000.    
     9 'norm      '    16.887       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .20913       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.918       1.0000         .10000E-03   10000.    
    12 'norm      '    1.6800       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .83314E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.2690       1.0000         .10000E-03   10000.    
    16 'norm      '    .10217E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.4176       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.424       1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.953       1.0000         .10000E-03   10000.    
    21 'norm      '    8.2164       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    8.2160       1.0000         .10000E-03   10000.    
    25 'Prefactor '    30.597       1.0000         .10000E-03   10000.    
    26 'Prefactor '    89.048       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.1278       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0693       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .73872       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.

 FCN=   6036.527     FROM MIGRAD    STATUS=CONVERGED    759 CALLS     3892 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    41.379        .90712E-02** at limit **
   2  Prefactor     5.6381        12.964        .42286E-02    .80336E-04
   3  norm          .10000E-03    7.2225        .90712E-02** at limit **
   4  Prefactor     .10000E-03    29.741        .90712E-02** at limit **
   5  Prefactor     .10003E-03    10.490        .90712E-02** at limit **
   6  norm          .10000E-03    2.8139        .90712E-02** at limit **
   7  Prefactor     59.483        44.331        .13005E-02    .15038E-03
   8  Prefactor     9.5211        9.4237        .32469E-02   -.72437E-04
   9  norm          16.887        10.960        .24366E-02   -.42105E-04
  10  Prefactor     .21359        5.8715        .10019        .38774E-03
  11  Prefactor     10.937        14.547        .30312E-02    .10904E-03
  12  norm          1.6800        1.2785        .81253E-02    .44869E-03
  13  Prefactor     .10000E-03    2.2295        .90712E-02** at limit **
  14  Prefactor     .10008E-03    3.9381        .46522E-01** at limit **
  15  norm          1.2685        1.2751        .98777E-02    .56178E-03
  16  norm          .10000E-03    2.4464        .61327E-01** at limit **
  17  Prefactor     8.3988        11.676        .34543E-02    .11156E-02
  18  Prefactor     .10000E-03    113.39        .90712E-02** at limit **
  19  Prefactor     16.425        36.592        .24707E-02    .26870E-03
  20  Prefactor     12.950        27.819        .27824E-02    .10515E-02
  21  norm          8.2157        1.8601        .34966E-02    .45716E-03
  22  Prefactor     .10000E-03    7.9751        .90712E-02** at limit **
  23  Prefactor     .10000E-03    17.807        .90712E-02** at limit **
  24  norm          8.2151        18.380        .34967E-02    .65623E-04
  25  Prefactor     30.596        26.313        .18109E-02    .13127E-03
  26  Prefactor     89.048        67.447        .10645E-02    .28649E-03
  27  Prefactor     1.1283        3.3654        .49856E-01    .74137E-03
  28  Prefactor     .10003E-03    10.824        .90712E-02** at limit **
  29  Normalizat    1.0693        .18164        .39417E-01    .50214E-04
  30  Prefactor     .73870        .18033        .62575E-01    .48671E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100018
  Prefactor  = 5.63806
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.000100027
  norm       = 0.0001
  Prefactor  = 59.4827
  Prefactor  = 9.52107
  norm       = 16.8873
  Prefactor  = 0.213593
  Prefactor  = 10.9369
  norm       = 1.68003
  Prefactor  = 0.0001
  Prefactor  = 0.000100084
  norm       = 1.26851
  norm       = 0.0001
  Prefactor  = 8.39876
  Prefactor  = 0.0001
  Prefactor  = 16.4248
  Prefactor  = 12.9496
  norm       = 8.21574
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 8.21509
  Prefactor  = 30.5962
  Prefactor  = 89.0479
  Prefactor  = 1.12832
  Prefactor  = 0.000100032
  Normalizat = 1.0693
  Prefactor  = 0.738697
 **********
 **   18 **HESSE 
 **********

 FCN=   6036.527     FROM HESSE     STATUS=OK           588 CALLS     4480 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    41.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.6381        12.959        .16914E-03   -1.5233    
   3  norm          .10000E-03    7.2237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    29.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10003E-03    10.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.8294        .12724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     59.483        44.326        .52020E-04   -1.4164    
   8  Prefactor     9.5211        9.4224        .12988E-03   -1.5091    
   9  norm          16.887        10.982        .97463E-04   -1.4886    
  10  Prefactor     .21359        63.510        .36221E-02   -1.5616    
  11  Prefactor     10.937        14.327        .12125E-03   -1.5046    
  12  norm          1.6800        1.2708        .73147E-04   -1.5449    
  13  Prefactor     .10000E-03    2.2324        .11327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10008E-03    11.124        .29364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.2685        1.2654        .84426E-04   -1.5483    
  16  norm          .10000E-03    9.5310        .21496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.3988        11.217        .13817E-03   -1.5128    
  18  Prefactor     .10000E-03    113.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.425        35.659        .98829E-04   -1.4897    
  20  Prefactor     12.950        26.815        .11130E-03   -1.4988    
  21  norm          8.2157        1.8578        .48521E-04   -1.5135    
  22  Prefactor     .10000E-03    8.0081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    17.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          8.2151        18.348        .13987E-03   -1.5135    
  25  Prefactor     30.596        26.314        .72435E-04   -1.4601    
  26  Prefactor     89.048        67.346        .42579E-04   -1.3818    
  27  Prefactor     1.1283        3.0331        .23733E-02   -1.5496    
  28  Prefactor     .10003E-03    10.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0693        .21851        .22812E-03   -.90744    
  30  Prefactor     .73870        .21590        .27680E-03   -1.0203    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73041e-08
Minuit parameter uncertainties:
  1  0.0017392
  2  12.9656
  3  1.38828e-05
  4  0.000743389
  5  0.0010665
  6  1.76294e-05
  7  44.3502
  8  9.42388
  9  10.9834
  10  7.37241
  11  14.3318
  12  1.27084
  13  3.62728e-05
  14  0.00192931
  15  1.26542
  16  1.77356e-05
  17  11.2198
  18  0.000460727
  19  35.7052
  20  26.8395
  21  1.85786
  22  0.000124954
  23  0.000399756
  24  18.3607
  25  26.3237
  26  67.4034
  27  3.03355
  28  0.00118539
  29  0.218694
  30  0.216142
Done.

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

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.642e+01  3.571e+01  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.387e-01  2.161e-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.069e+00  2.187e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.51
Ra Dec: 230.135 42.160
Photon Flux Upper Limit: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/491687/likelihoodResults_394588801_394848001_4FGL_J1520.5+4209_daily_bin599.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6033.67827943
delta logL = 2.84871326318

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6033.510509
delta logL = 3.01648369047

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .35076       1.0000         .10000E-03   10000.    
     2 'Index     '    5.4019       1.0000          .0000       10.000    
     3 'Normalizat'    .92703       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84142       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.

 FCN=   6033.511     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      273 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .34900        2.1974        .45422E-02   -.43144E-02
   2  Index         5.4047        2.1997        .75560E-01   -.14284E-03
   3  Normalizat    .92765        .55751E-01    .45246E-01    .52740E-04
   4  Prefactor     .84092        .57359E-01    .44254E-01    .46081E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.348999
  Index      = 5.40474
  Normalizat = 0.927647
  Prefactor  = 0.840925
 **********
 **   18 **HESSE 
 **********

 FCN=   6033.511     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      306 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .34900        3.6711        .20334E-04   -1.5590    
   2  Index         5.4047        2.9777        .31337E-02    .81036E-01
   3  Normalizat    .92765        .18863        .24170E-03   -.95495    
   4  Prefactor     .84092        .19155        .26049E-03   -.98237    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.29351e-10
Minuit parameter uncertainties:
  1  2.26365
  2  3.19137
  3  0.18876
  4  0.191702
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/491687': 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) = 6033.51050099
delta logL = 3.01649170407

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  3.490e-01  2.264e+00  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  5.405e+00  3.191e+00  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:  8.409e-01  1.917e-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.276e-01  1.888e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.04
Ra Dec: 230.135 42.160
Photon Index (Free Index): 5.40 +/- 3.19
Photon Flux (Free Index): 1.42e-07 +/- 6.53e-08
Energy Flux (Free Index): 1.83e-05 +/- 9.72e-06

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/491687/cmap_HighResolution_394588801_394848001_4FGL_J1520.5+4209_daily_bin599.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.56e-03', comment='SUCCESS', energy_flux2='1.83e-05', dlogl='3.02e+00', photon_flux2='1.42e-07', job_status='DONE', time_completed='2021-09-12 01:35:07.625074', photon_index_error2='3.19', photon_index2='5.40', ts='0.51', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='9.72e-06', EG='1.07', time_epoch_completed='1631435707.63', return_code='0', job_id='491687', GAL2='0.84', EG2='0.93', return_code2='102', photon_flux_error2='6.53e-08', ts2='7.04', photon_index='2.50' WHERE bin_id='599' AND source_name='4FGL J1520.5+4209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:35:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 491687: <4FGL_J1520.5+4209_daily_bin599> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1520.5+4209_daily_bin599 230.135 42.16 394588801 394848001 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 :                                   864.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             329.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            885 sec.

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

