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


Performing analysis on: 4FGL_J1520.5+4209_daily_bin479
RA = 230.135, Dec = 42.16
tmin = 363484801, tmax = 363744001
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='490345', job_status='RUN', time_executed='2021-09-12 01:17:43.433573', time_epoch_executed='1631434663.43' WHERE source_name='4FGL J1520.5+4209' and cadence='daily' and bin_id='479'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/490345

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/490345/ft1_4FGL_J1520.5+4209_daily_bin479.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/490345/ft2_4FGL_J1520.5+4209_daily_bin479.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/490345/ft1_4FGL_J1520.5+4209_daily_bin479.fits outfile=/scratch/kocevski/490345/ft1_filteredMKT_4FGL_J1520.5+4209_daily_bin479.fits ra=230.135 dec=42.16 rad=12.0 tmin=363484801.0 tmax=363744001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.74
user 3.50
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/490345/ft1_filtered_4FGL_J1520.5+4209_daily_bin479.fits evtable="EVENTS" scfile=/scratch/kocevski/490345/ft2_4FGL_J1520.5+4209_daily_bin479.fits sctable="SC_DATA" expcube=/scratch/kocevski/490345/ltcube_363484801_363744001_4FGL_J1520.5+4209_daily_bin479.fits outfile=/scratch/kocevski/490345/expmap_363484801_363744001_4FGL_J1520.5+4209_daily_bin479.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/490345/ltcube_363484801_363744001_4FGL_J1520.5+4209_daily_bin479.fits
.....................!
real 192.54
user 186.94
sys 5.29

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/490345/ft1_filtered_4FGL_J1520.5+4209_daily_bin479.fits scfile=/scratch/kocevski/490345/ft2_4FGL_J1520.5+4209_daily_bin479.fits outfile=/scratch/kocevski/490345/cmap_363484801_363744001_4FGL_J1520.5+4209_daily_bin479.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/490345/ft1_filtered_4FGL_J1520.5+4209_daily_bin479.fits scfile=/scratch/kocevski/490345/ft2_4FGL_J1520.5+4209_daily_bin479.fits outfile=/scratch/kocevski/490345/cmap_HighResolution_363484801_363744001_4FGL_J1520.5+4209_daily_bin479.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    11.030       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.727       1.0000         .10000E-03   10000.    
     6 'norm      '    16.631       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14435       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.127       1.0000         .10000E-03   10000.    
     9 'norm      '    4.6267       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    27.798       1.0000         .10000E-03   10000.    
    12 'norm      '    .80062       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1266       1.0000         .10000E-03   10000.    
    15 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .88465E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.7155       1.0000         .10000E-03   10000.    
    18 'Prefactor '    28.279       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.138       1.0000         .10000E-03   10000.    
    21 'norm      '    6.1315       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    32.326       1.0000         .10000E-03   10000.    
    24 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    110.45       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    8.2531       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .62301       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2015       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6007.442     FROM MIGRAD    STATUS=CONVERGED    108 CALLS     3354 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10018E-03    7.1843        .40978E-05** at limit **
   2  Prefactor     11.029        2.5021        .42524E-05   -.23799E-02
   3  norm          .10002E-03    7.8318        .10333E-04** at limit **
   4  Prefactor     .10001E-03    25.524        .13747E-04** at limit **
   5  Prefactor     17.708        5.7099        .80407E-05   -.10998E-01
   6  norm          16.633        1.7358       -.18099E-05   -.38818E-02
   7  Prefactor     .10027E-03    673.80       -.14114E-04** at limit **
   8  Prefactor     10.126        1.0214        .36520E-06    .14516E-03
   9  norm          4.6269        1.0269        .54692E-06    .38511E-03
  10  Prefactor     .10000E-03    15.403        .11783E-05** at limit **
  11  Prefactor     27.795        1.5664        .13882E-05   -.21559E-02
  12  norm          .80029        1.5249       -.79969E-06    .58822E-03
  13  Prefactor     .10002E-03    5.7120       -.97368E-05** at limit **
  14  Prefactor     3.1266        3.9968        .14161E-05   -.15698E-03
  15  norm          .10000E-03    .69730       -.94855E-06** at limit **
  16  norm          .10021E-03    17.534       -.46778E-04** at limit **
  17  Prefactor     1.6994        2.2831        .62120E-05    .63326E-03
  18  Prefactor     28.325        3.3370        .60582E-07    .20060E-03
  19  Prefactor     .10000E-03    4.5819       -.11397E-06** at limit **
  20  Prefactor     14.145        3.1775       -.49500E-05    .18988E-02
  21  norm          6.1317        1.5246        .13639E-06    .28024E-03
  22  Prefactor     .10000E-03    4.6887        .10579E-05** at limit **
  23  Prefactor     32.320        1.6561        .13677E-05   -.29902E-02
  24  norm          .10001E-03    5.6622        .80200E-05** at limit **
  25  Prefactor     .10028E-03    5.2924       -.12708E-04** at limit **
  26  Prefactor     110.49        3.1697        .75714E-06   -.71948E-02
  27  Prefactor     .10000E-03    1.7549        .84367E-06** at limit **
  28  Prefactor     8.2546        1.7373       -.30276E-05    .87513E-03
  29  Normalizat    .62313        .20096       -.32513E-05   -.24647E-03
  30  Prefactor     1.2015        .21865       -.19378E-05   -.30928E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100177
  Prefactor  = 11.0294
  norm       = 0.000100018
  Prefactor  = 0.000100013
  Prefactor  = 17.7081
  norm       = 16.6334
  Prefactor  = 0.000100271
  Prefactor  = 10.126
  norm       = 4.62693
  Prefactor  = 0.0001
  Prefactor  = 27.7946
  norm       = 0.800292
  Prefactor  = 0.000100017
  Prefactor  = 3.12656
  norm       = 0.0001
  norm       = 0.000100211
  Prefactor  = 1.69936
  Prefactor  = 28.3247
  Prefactor  = 0.0001
  Prefactor  = 14.1455
  norm       = 6.13169
  Prefactor  = 0.000100001
  Prefactor  = 32.3198
  norm       = 0.000100013
  Prefactor  = 0.000100277
  Prefactor  = 110.492
  Prefactor  = 0.0001
  Prefactor  = 8.25461
  Normalizat = 0.623133
  Prefactor  = 1.20152
 **********
 **   18 **HESSE 
 **********

 FCN=   6007.442     FROM HESSE     STATUS=OK           670 CALLS     4024 TOTAL
                     EDM=   .90E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10018E-03    9.7711        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.029        17.261        .30158E-02   -1.5044    
   3  norm          .10002E-03    8.1540        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    26.134        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.708        26.114        .23782E-02   -1.4866    
   6  norm          16.633        7.3782        .24553E-02   -1.4892    
   7  Prefactor     .10027E-03    31.868        .13993       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.126        12.508        .31478E-02   -1.5071    
   9  norm          4.6269        5.3492        .46779E-02   -1.5278    
  10  Prefactor     .10000E-03    15.269        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     27.795        18.020        .18996E-02   -1.4653    
  12  norm          .80029        1.6560        .12442E-01   -1.5529    
  13  Prefactor     .10002E-03    5.7352        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.1266        4.0603        .57321E-02   -1.5354    
  15  norm          .10000E-03    .50875        .27848E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10021E-03    2.0597        .60357E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.6994        9.7899        .80211E-02   -1.5447    
  18  Prefactor     28.325        51.762        .18834E-02   -1.4643    
  19  Prefactor     .10000E-03    4.5824        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.145        12.329        .26631E-02   -1.4956    
  21  norm          6.1317        1.5302        .40533E-02   -1.5213    
  22  Prefactor     .10000E-03    4.6746        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     32.320        19.143        .17619E-02   -1.4570    
  24  norm          .10001E-03    5.8172        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10028E-03    9.2271        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     110.49        80.960        .95682E-03   -1.3602    
  27  Prefactor     .10000E-03    1.7543        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     8.2546        14.806        .34888E-02   -1.5133    
  29  Normalizat    .62313        .17597        .63031E-01   -1.0701    
  30  Prefactor     1.2015        .18155        .50825E-01   -.86284    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.03736e-07
Minuit parameter uncertainties:
  1  0.00262939
  2  17.2688
  3  0.000775096
  4  0.00116398
  5  26.1306
  6  7.37864
  7  0.00587827
  8  12.5108
  9  5.34979
  10  0.000104587
  11  18.0234
  12  1.65612
  13  0.000627955
  14  4.06071
  15  7.33035e-06
  16  0.00131904
  17  8.15937
  18  51.8438
  19  4.6102e-05
  20  12.3314
  21  1.53024
  22  9.98482e-05
  23  19.1469
  24  0.00055448
  25  0.00320073
  26  81.0415
  27  2.32963e-06
  28  14.8122
  29  0.176126
  30  0.181641
Done.

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

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  4.610e-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.202e+00  1.816e-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:  6.231e-01  1.761e-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: 4.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/490345/likelihoodResults_363484801_363744001_4FGL_J1520.5+4209_daily_bin479.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) = 6007.44289494
delta logL = -0.00102740091461

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6007.44186778
delta logL = -2.47126081376e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4859       1.0000          .0000       10.000    
     3 'Normalizat'    .62326       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2014       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=   6007.442     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      260 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.481        .16437E-01** at limit **
   2  Index         1.8626        5.4930        .50000        .34863E-06
   3  Normalizat    .62313        .70962E-02    .27887E-03   -.13176E-03
   4  Prefactor     1.2015        .77634E-02    .22469E-03   -.16010E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.8626
  Normalizat = 0.623133
  Prefactor  = 1.20153
 **********
 **   18 **HESSE 
 **********

 FCN=   6007.442     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      289 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    190.87        .18616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8626        9.0415        .50000       -.67831    
   3  Normalizat    .62313        .22978E-01    .11155E-04   -1.0701    
   4  Prefactor     1.2015        .25138E-01    .44939E-04   -.86284    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.38087e-09
Minuit parameter uncertainties:
  1  0.000215964
  2  847.971
  3  0.022978
  4  0.0251383
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/490345': 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) = 6007.4418649
delta logL = 2.63956098934e-06

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  2.160e-04  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  1.863e+00  8.480e+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:  1.202e+00  2.514e-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:  6.231e-01  2.298e-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/490345/cmap_HighResolution_363484801_363744001_4FGL_J1520.5+4209_daily_bin479.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.28e-03', job_status='DONE', photon_flux_upper_limit='4.22e-08', time_completed='2021-09-12 01:31:43.987437', job_id='490345', GAL2='1.20', fit_tolerance='1e-08', EG2='0.62', EG='0.62', time_epoch_completed='1631435503.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='2.64e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='479' AND source_name='4FGL J1520.5+4209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:31:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0008>
Subject: Job 490345: <4FGL_J1520.5+4209_daily_bin479> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1520.5+4209_daily_bin479 230.135 42.16 363484801 363744001 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 :                                   838.32 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             294.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            970 sec.

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

