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


Performing analysis on: 4FGL_J1520.5+4209_daily_bin815
RA = 230.135, Dec = 42.16
tmin = 450576001, tmax = 450835201
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='493118', job_status='RUN', time_executed='2021-09-12 01:25:28.959769', time_epoch_executed='1631435128.96' WHERE source_name='4FGL J1520.5+4209' and cadence='daily' and bin_id='815'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/493118

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/493118/ft1_4FGL_J1520.5+4209_daily_bin815.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/493118/ft2_4FGL_J1520.5+4209_daily_bin815.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/493118/ft1_4FGL_J1520.5+4209_daily_bin815.fits outfile=/scratch/kocevski/493118/ft1_filteredMKT_4FGL_J1520.5+4209_daily_bin815.fits ra=230.135 dec=42.16 rad=12.0 tmin=450576001.0 tmax=450835201.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.50
user 3.28
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/493118/ft1_filtered_4FGL_J1520.5+4209_daily_bin815.fits" evtable="EVENTS" scfile=/scratch/kocevski/493118/ft2_4FGL_J1520.5+4209_daily_bin815.fits sctable="SC_DATA" outfile=/scratch/kocevski/493118/ltcube_450576001_450835201_4FGL_J1520.5+4209_daily_bin815.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/493118/ft2_4FGL_J1520.5+4209_daily_bin815.fits
.....................!
real 12.68
user 12.28
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/493118/ft1_filtered_4FGL_J1520.5+4209_daily_bin815.fits evtable="EVENTS" scfile=/scratch/kocevski/493118/ft2_4FGL_J1520.5+4209_daily_bin815.fits sctable="SC_DATA" expcube=/scratch/kocevski/493118/ltcube_450576001_450835201_4FGL_J1520.5+4209_daily_bin815.fits outfile=/scratch/kocevski/493118/expmap_450576001_450835201_4FGL_J1520.5+4209_daily_bin815.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/493118/ltcube_450576001_450835201_4FGL_J1520.5+4209_daily_bin815.fits
.....................!
real 191.99
user 186.55
sys 5.01

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/493118/ft1_filtered_4FGL_J1520.5+4209_daily_bin815.fits scfile=/scratch/kocevski/493118/ft2_4FGL_J1520.5+4209_daily_bin815.fits outfile=/scratch/kocevski/493118/cmap_450576001_450835201_4FGL_J1520.5+4209_daily_bin815.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/493118/ft1_filtered_4FGL_J1520.5+4209_daily_bin815.fits scfile=/scratch/kocevski/493118/ft2_4FGL_J1520.5+4209_daily_bin815.fits outfile=/scratch/kocevski/493118/cmap_HighResolution_450576001_450835201_4FGL_J1520.5+4209_daily_bin815.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.54
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0071       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.8078       1.0000         .10000E-03   10000.    
     3 'norm      '    .19854E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14785E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    42.872       1.0000         .10000E-03   10000.    
     9 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.598       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .48101       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.1106       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.9764       1.0000         .10000E-03   10000.    
    16 'norm      '    6.5978       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    5.9431       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10139E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.2605       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10054E-01   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .66676       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0509       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=   5656.618     FROM MIGRAD    STATUS=CONVERGED    763 CALLS     3341 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0118        20.214       -.74410E-06   -.18886E-04
   2  Prefactor     1.8194        32.719       -.53096E-05   -.29069E-03
   3  norm          .10000E-03    53.998        .35995E-04** at limit **
   4  Prefactor     .10000E-03    24.240        .82756E-05** at limit **
   5  Prefactor     .10005E-03    9.6388       -.10854E-05** at limit **
   6  norm          .10000E-03    2.6673       -.53457E-06** at limit **
   7  Prefactor     .10000E-03    15.667       -.85525E-05** at limit **
   8  Prefactor     42.893        17.213       -.84032E-06    .34256E-06
   9  norm          .10000E-03    3.1053       -.14026E-06** at limit **
  10  Prefactor     10.603        14.988       -.34208E-06   -.54329E-05
  11  Prefactor     .10000E-03    3.7536        .32059E-07** at limit **
  12  norm          .48143        1.0048       -.21027E-06   -.15719E-02
  13  Prefactor     3.1105        5.5315       -.37678E-05   -.35357E-03
  14  Prefactor     .10000E-03    2.8106       -.41560E-06** at limit **
  15  norm          2.9766        1.6339        .31000E-06    .31570E-05
  16  norm          6.5968        3.4402       -.69396E-07   -.21324E-03
  17  Prefactor     .10000E-03    2.8300        .41188E-06** at limit **
  18  Prefactor     .10000E-03    38.604       -.11447E-04** at limit **
  19  Prefactor     .10000E-03    9.2543        .49116E-06** at limit **
  20  Prefactor     .10000E-03    11.729        .49512E-05** at limit **
  21  norm          5.9433        1.5470       -.24213E-07    .88459E-05
  22  Prefactor     .10000E-03    3.1435        .13169E-06** at limit **
  23  Prefactor     .10000E-03    18.988        .54037E-05** at limit **
  24  norm          .10000E-03    10.139       -.27152E-05** at limit **
  25  Prefactor     9.2609        10.927       -.59014E-07   -.18770E-05
  26  Prefactor     .10000E-03    36.209       -.14406E-04** at limit **
  27  Prefactor     .10000E-03    2.6648        .46065E-06** at limit **
  28  Prefactor     .10000E-03    100.83       -.22330E-04** at limit **
  29  Normalizat    .66658        .16526        .13090E-05    .53767E-04
  30  Prefactor     1.0511        .17174       -.19286E-06    .10005E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.01181
  Prefactor  = 1.81942
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100045
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.8927
  norm       = 0.0001
  Prefactor  = 10.6026
  Prefactor  = 0.0001
  norm       = 0.481426
  Prefactor  = 3.11048
  Prefactor  = 0.0001
  norm       = 2.97663
  norm       = 6.5968
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.94333
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.26088
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 0.666585
  Prefactor  = 1.05106
 **********
 **   18 **HESSE 
 **********

 FCN=   5656.618     FROM HESSE     STATUS=OK           582 CALLS     3923 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0118        20.276        .16383E-03   -1.5218    
   2  Prefactor     1.8194        33.728        .31079E-03   -1.5438    
   3  norm          .10000E-03    54.709        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    24.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10005E-03    41.591        .45144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.6847        .11989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     42.893        17.178        .61226E-04   -1.4397    
   9  norm          .10000E-03    3.1089        .12943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.603        14.994        .12308E-03   -1.5057    
  11  Prefactor     .10000E-03    3.7603        .14229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .48143        .90565        .10564E-02   -1.5569    
  13  Prefactor     3.1105        5.5492        .22006E-03   -1.5355    
  14  Prefactor     .10000E-03    2.8477        .12310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.9766        1.6280        .65208E-04   -1.5363    
  16  norm          6.5968        3.4380        .97148E-04   -1.5194    
  17  Prefactor     .10000E-03    2.8399        .12347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    38.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.2859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.961        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.9433        1.5463        .45922E-04   -1.5220    
  22  Prefactor     .10000E-03    3.1479        .13017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    19.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    10.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     9.2609        10.926        .13170E-03   -1.5099    
  26  Prefactor     .10000E-03    36.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    2.6802        .11988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    104.15        .36293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .66658        .19371        .24864E-03   -1.0523    
  30  Prefactor     1.0511        .20212        .21953E-03   -.91046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76887e-09
Minuit parameter uncertainties:
  1  20.2995
  2  15.6771
  3  0.000633672
  4  9.51863e-06
  5  0.00274304
  6  3.7859e-06
  7  8.12184e-06
  8  17.1804
  9  2.55949e-06
  10  14.9992
  11  1.71785e-06
  12  0.905673
  13  5.55015
  14  1.04615e-06
  15  1.62807
  16  3.4381
  17  4.95159e-06
  18  1.24508e-05
  19  1.59871e-05
  20  6.81656e-05
  21  1.54631
  22  1.10409e-06
  23  2.98523e-05
  24  1.60727e-05
  25  10.9281
  26  6.29849e-06
  27  6.27717e-06
  28  0.000796986
  29  0.193907
  30  0.202266
Done.

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

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  1.599e-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.051e+00  2.023e-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.666e-01  1.939e-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.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/493118/likelihoodResults_450576001_450835201_4FGL_J1520.5+4209_daily_bin815.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) = 5656.618082
delta logL = -0.00051314110442

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5656.61757043
delta logL = -1.56570331455e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12235E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4832       1.0000          .0000       10.000    
     3 'Normalizat'    .66642       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0512       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=   5656.618     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      237 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10232E-03    6.7618        .18142E-01** at limit **
   2  Index         2.4001        6.0236        .50000        .14974E-04
   3  Normalizat    .66659        .30893E-02    .24864E-03    .61909E-04
   4  Prefactor     1.0511        .33806E-02    .21953E-03    .63543E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102316
  Index      = 2.40011
  Normalizat = 0.666585
  Prefactor  = 1.05106
 **********
 **   18 **HESSE 
 **********

 FCN=   5656.618     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      266 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10232E-03    96.622        .23151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4001        6.7776        .50000       -.54683    
   3  Normalizat    .66659        .11725E-01    .99457E-05   -1.0523    
   4  Prefactor     1.0511        .12831E-01    .87811E-05   -.91046    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.56814e-09
Minuit parameter uncertainties:
  1  0.0299663
  2  426.201
  3  0.0117254
  4  0.0128311
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/493118': 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) = 5656.61756856
delta logL = 3.0129285733e-07

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.023e-04  2.997e-02  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.400e+00  4.262e+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.051e+00  1.283e-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.666e-01  1.173e-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/493118/cmap_HighResolution_450576001_450835201_4FGL_J1520.5+4209_daily_bin815.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.51e-03', job_status='DONE', photon_flux_upper_limit='5.80e-08', time_completed='2021-09-12 01:38:38.687891', job_id='493118', GAL2='1.05', fit_tolerance='1e-08', EG2='0.67', EG='0.67', time_epoch_completed='1631435918.69', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='3.01e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='815' AND source_name='4FGL J1520.5+4209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:38:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 493118: <4FGL_J1520.5+4209_daily_bin815> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1520.5+4209_daily_bin815 230.135 42.16 450576001 450835201 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 :                                   787.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             331.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            804 sec.

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

