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


Performing analysis on: 4FGL_J1520.5+4209_daily_bin258
RA = 230.135, Dec = 42.16
tmin = 306201601, tmax = 306460801
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='488933', job_status='RUN', time_executed='2021-09-12 01:11:38.013680', time_epoch_executed='1631434298.01' WHERE source_name='4FGL J1520.5+4209' and cadence='daily' and bin_id='258'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/488933

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/488933/ft1_4FGL_J1520.5+4209_daily_bin258.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/488933/ft2_4FGL_J1520.5+4209_daily_bin258.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/488933/ft1_4FGL_J1520.5+4209_daily_bin258.fits outfile=/scratch/kocevski/488933/ft1_filteredMKT_4FGL_J1520.5+4209_daily_bin258.fits ra=230.135 dec=42.16 rad=12.0 tmin=306201601.0 tmax=306460801.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.45
user 3.24
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/488933/ft1_filtered_4FGL_J1520.5+4209_daily_bin258.fits" evtable="EVENTS" scfile=/scratch/kocevski/488933/ft2_4FGL_J1520.5+4209_daily_bin258.fits sctable="SC_DATA" outfile=/scratch/kocevski/488933/ltcube_306201601_306460801_4FGL_J1520.5+4209_daily_bin258.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/488933/ft2_4FGL_J1520.5+4209_daily_bin258.fits
.....................!
real 11.93
user 11.55
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/488933/ft1_filtered_4FGL_J1520.5+4209_daily_bin258.fits evtable="EVENTS" scfile=/scratch/kocevski/488933/ft2_4FGL_J1520.5+4209_daily_bin258.fits sctable="SC_DATA" expcube=/scratch/kocevski/488933/ltcube_306201601_306460801_4FGL_J1520.5+4209_daily_bin258.fits outfile=/scratch/kocevski/488933/expmap_306201601_306460801_4FGL_J1520.5+4209_daily_bin258.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/488933/ltcube_306201601_306460801_4FGL_J1520.5+4209_daily_bin258.fits
.....................!
real 191.01
user 185.13
sys 5.56

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/488933/ft1_filtered_4FGL_J1520.5+4209_daily_bin258.fits scfile=/scratch/kocevski/488933/ft2_4FGL_J1520.5+4209_daily_bin258.fits outfile=/scratch/kocevski/488933/cmap_306201601_306460801_4FGL_J1520.5+4209_daily_bin258.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.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.646       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.5173       1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.3626       1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.156       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10670E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.7206       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.855       1.0000         .10000E-03   10000.    
    12 'norm      '    2.2189       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.4606       1.0000         .10000E-03   10000.    
    15 'norm      '    2.1838       1.0000         .10000E-03   10000.    
    16 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    97.997       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .17091E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.385       1.0000         .10000E-03   10000.    
    21 'norm      '    10.136       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10155E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    61.090       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.4090       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .50916       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=   6844.613     FROM MIGRAD    STATUS=CONVERGED    754 CALLS     3877 TOTAL
                     EDM=   .83E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.644        31.053        .69466E-06   -.96126E-05
   2  Prefactor     6.5257        21.597       -.22132E-06   -.49869E-06
   3  norm          .10000E-03    5.9153       -.14440E-06** at limit **
   4  Prefactor     .10000E-03    84.237        .61149E-06** at limit **
   5  Prefactor     .10000E-03    6.2419        .14969E-06** at limit **
   6  norm          1.3600        4.7826        .17315E-05   -.16358E-03
   7  Prefactor     22.159        22.622       -.14821E-06    .12478E-05
   8  Prefactor     .10000E-03    18.476        .81724E-06** at limit **
   9  norm          .10001E-03    5.7797        .10701E-05** at limit **
  10  Prefactor     8.7275        15.470       -.76690E-06    .37186E-04
  11  Prefactor     10.859        17.344        .16425E-05   -.42120E-04
  12  norm          2.2190        1.6840        .12538E-06   -.11838E-03
  13  Prefactor     .10000E-03    8.2283       -.44814E-06** at limit **
  14  Prefactor     6.4613        5.5720        .46760E-07   -.48154E-04
  15  norm          2.1850        1.7510       -.14676E-06    .14072E-03
  16  norm          .10000E-03    1.0089        .16461E-06** at limit **
  17  Prefactor     .10000E-03    4.1784        .61919E-06** at limit **
  18  Prefactor     97.967        87.335       -.10616E-06    .23451E-04
  19  Prefactor     .10000E-03    45.023        .27995E-05** at limit **
  20  Prefactor     13.372        13.044       -.10536E-05   -.98537E-04
  21  norm          10.137        1.9176        .11507E-07   -.26892E-04
  22  Prefactor     .10000E-03    5.4023        .11111E-06** at limit **
  23  Prefactor     .10000E-03    10.855        .43635E-06** at limit **
  24  norm          .10000E-03    16.442        .30277E-06** at limit **
  25  Prefactor     .10000E-03    9.3715        .21114E-06** at limit **
  26  Prefactor     61.110        83.798        .97337E-07   -.11621E-04
  27  Prefactor     .10000E-03    2.0680       -.33506E-06** at limit **
  28  Prefactor     .10000E-03    9.3066       -.28770E-06** at limit **
  29  Normalizat    1.4086        .18220       -.56609E-06   -.30799E-04
  30  Prefactor     .50950        .16541       -.18640E-07   -.46957E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.6441
  Prefactor  = 6.52567
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.36002
  Prefactor  = 22.1593
  Prefactor  = 0.0001
  norm       = 0.000100006
  Prefactor  = 8.72755
  Prefactor  = 10.8592
  norm       = 2.21902
  Prefactor  = 0.0001
  Prefactor  = 6.46131
  norm       = 2.185
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 97.9669
  Prefactor  = 0.0001
  Prefactor  = 13.3717
  norm       = 10.1368
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 61.1098
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.40864
  Prefactor  = 0.509499
 **********
 **   18 **HESSE 
 **********

 FCN=   6844.613     FROM HESSE     STATUS=OK           584 CALLS     4461 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.644        31.284        .84170E-04   -1.4756    
   2  Prefactor     6.5257        21.698        .15720E-03   -1.5197    
   3  norm          .10000E-03    5.9154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    84.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.2449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.3600        5.0214        .17068E-02   -1.5475    
   7  Prefactor     22.159        22.629        .85096E-04   -1.4766    
   8  Prefactor     .10000E-03    18.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10001E-03    17.009        .33096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.7275        15.288        .13574E-03   -1.5117    
  11  Prefactor     10.859        17.250        .12160E-03   -1.5049    
  12  norm          2.2190        1.6721        .88232E-04   -1.5410    
  13  Prefactor     .10000E-03    8.2627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.4613        5.5646        .15790E-03   -1.5200    
  15  norm          2.1850        1.7301        .89071E-04   -1.5412    
  16  norm          .10000E-03    1.0149        .81256E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.2422        .16588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     97.967        87.317        .20303E-03   -1.3725    
  19  Prefactor     .10000E-03    46.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.372        13.356        .10948E-03   -1.4976    
  21  norm          10.137        1.9175        .47828E-04   -1.5071    
  22  Prefactor     .10000E-03    5.4208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    16.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    9.3843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     61.110        84.039        .51336E-04   -1.4143    
  27  Prefactor     .10000E-03    2.0682        .11601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    9.3138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.4086        .21709        .21731E-03   -.80379    
  30  Prefactor     .50950        .19219        .33489E-03   -1.1154    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.30578e-10
Minuit parameter uncertainties:
  1  31.3063
  2  21.724
  3  5.04144e-06
  4  1.56191e-05
  5  7.87802e-06
  6  5.02292
  7  22.6373
  8  3.55144e-05
  9  0.000626935
  10  15.2951
  11  17.2579
  12  1.67217
  13  5.38023e-05
  14  5.56504
  15  1.73009
  16  2.63574e-06
  17  2.0249e-05
  18  87.4319
  19  0.00029845
  20  13.3591
  21  1.91752
  22  3.63913e-06
  23  2.72643e-06
  24  1.31253e-05
  25  1.36727e-05
  26  84.2028
  27  2.9625e-06
  28  1.41967e-05
  29  0.217229
  30  0.192437
Done.

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

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  2.984e-04  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:  5.095e-01  1.924e-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.409e+00  2.172e-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: 8.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/488933/likelihoodResults_306201601_306460801_4FGL_J1520.5+4209_daily_bin258.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) = 6844.61344876
delta logL = -0.000101619531051

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6844.61334729
delta logL = -1.43702891364e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7458       1.0000          .0000       10.000    
     3 'Normalizat'    1.4086       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .50950       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=   6844.613     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      256 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    30.269        .90712E-02** at limit **
   2  Index         2.7202        5.2572        .50000        .49137E-05
   3  Normalizat    1.4086        .35535E-02    .49156E-01    .12554E-03
   4  Prefactor     .50950        .34739E-02    .75623E-01    .10150E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Index      = 2.72025
  Normalizat = 1.40864
  Prefactor  = 0.5095
 **********
 **   18 **HESSE 
 **********

 FCN=   6844.613     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      287 TOTAL
                     EDM=   .45E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    1044.3        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7202        8.5035        .50000       -.47344    
   3  Normalizat    1.4086        .21426E-01    .21731E-03   -.80379    
   4  Prefactor     .50950        .20897E-01    .33489E-03   -1.1154    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.50807e-07
Minuit parameter uncertainties:
  1  0.0049995
  2  660.475
  3  0.021426
  4  0.0208976
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/488933': 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) = 6844.61334724
delta logL = -9.41736288951e-08

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  5.000e-03  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.720e+00  6.605e+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:  5.095e-01  2.090e-02  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  1.409e+00  2.143e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/488933/cmap_HighResolution_306201601_306460801_4FGL_J1520.5+4209_daily_bin258.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.45e-03', job_status='DONE', photon_flux_upper_limit='8.29e-08', time_completed='2021-09-12 01:27:18.973111', job_id='488933', GAL2='0.51', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1631435238.97', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.51', dlogl='-9.42e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='258' AND source_name='4FGL J1520.5+4209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:27:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 488933: <4FGL_J1520.5+4209_daily_bin258> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1520.5+4209_daily_bin258 230.135 42.16 306201601 306460801 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 :                                   937.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             322.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            991 sec.

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

