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


Performing analysis on: 4FGL_J1520.5+4209_daily_bin693
RA = 230.135, Dec = 42.16
tmin = 418953601, tmax = 419212801
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='491836', job_status='RUN', time_executed='2021-09-12 01:20:47.145950', time_epoch_executed='1631434847.15' WHERE source_name='4FGL J1520.5+4209' and cadence='daily' and bin_id='693'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/491836

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/491836/ft1_4FGL_J1520.5+4209_daily_bin693.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/491836/ft2_4FGL_J1520.5+4209_daily_bin693.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/491836/ft1_4FGL_J1520.5+4209_daily_bin693.fits outfile=/scratch/kocevski/491836/ft1_filteredMKT_4FGL_J1520.5+4209_daily_bin693.fits ra=230.135 dec=42.16 rad=12.0 tmin=418953601.0 tmax=419212801.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 5.51
user 5.26
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/491836/ft1_filtered_4FGL_J1520.5+4209_daily_bin693.fits evtable="EVENTS" scfile=/scratch/kocevski/491836/ft2_4FGL_J1520.5+4209_daily_bin693.fits sctable="SC_DATA" expcube=/scratch/kocevski/491836/ltcube_418953601_419212801_4FGL_J1520.5+4209_daily_bin693.fits outfile=/scratch/kocevski/491836/expmap_418953601_419212801_4FGL_J1520.5+4209_daily_bin693.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/491836/ltcube_418953601_419212801_4FGL_J1520.5+4209_daily_bin693.fits
.....................!
real 192.24
user 187.45
sys 4.37

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/491836/ft1_filtered_4FGL_J1520.5+4209_daily_bin693.fits scfile=/scratch/kocevski/491836/ft2_4FGL_J1520.5+4209_daily_bin693.fits outfile=/scratch/kocevski/491836/cmap_418953601_419212801_4FGL_J1520.5+4209_daily_bin693.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/491836/ft1_filtered_4FGL_J1520.5+4209_daily_bin693.fits scfile=/scratch/kocevski/491836/ft2_4FGL_J1520.5+4209_daily_bin693.fits outfile=/scratch/kocevski/491836/cmap_HighResolution_418953601_419212801_4FGL_J1520.5+4209_daily_bin693.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.896       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13032E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    .10499E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.130       1.0000         .10000E-03   10000.    
    18 'Prefactor '    152.78       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.242       1.0000         .10000E-03   10000.    
    21 'norm      '    5.2955       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.9324       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    13.509       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    136.17       1.0000         .10000E-03   10000.    
    27 'Prefactor '    12.383       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .93846       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .86033       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=   3464.387     FROM MIGRAD    STATUS=CONVERGED    762 CALLS     3921 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.889        30.002       -.23224E-06    .44251E-04
   2  Prefactor     .10000E-03    15.191        .45765E-06** at limit **
   3  norm          .10000E-03    8.1072       -.18638E-06** at limit **
   4  Prefactor     .10000E-03    57.787       -.23040E-06** at limit **
   5  Prefactor     .10000E-03    40.536        .92142E-06** at limit **
   6  norm          .10000E-03    2.6170       -.44638E-07** at limit **
   7  Prefactor     .10000E-03    28.377       -.29349E-06** at limit **
   8  Prefactor     .10000E-03    7.4702        .17998E-06** at limit **
   9  norm          .10000E-03    7.2467       -.12382E-06** at limit **
  10  Prefactor     .10000E-03    34.726       -.33963E-06** at limit **
  11  Prefactor     .10000E-03    70.982       -.38509E-05** at limit **
  12  norm          .10000E-03    .91845       -.10234E-06** at limit **
  13  Prefactor     .10000E-03    5.3433       -.44610E-06** at limit **
  14  Prefactor     .10003E-03    102.65       -.26767E-04** at limit **
  15  norm          .10000E-03    2.5560       -.36627E-05** at limit **
  16  norm          .10000E-03    1.8570       -.18627E-07** at limit **
  17  Prefactor     10.129        9.9747        .50638E-08    .18758E-03
  18  Prefactor     152.86        104.64        .29528E-05   -.90414E-05
  19  Prefactor     .10000E-03    12.267       -.64631E-06** at limit **
  20  Prefactor     18.239        20.525       -.56535E-06    .22039E-03
  21  norm          5.2956        2.0522        .92154E-07    .20710E-03
  22  Prefactor     4.9325        12.694       -.12857E-05    .50884E-04
  23  Prefactor     .10000E-03    28.968       -.91092E-06** at limit **
  24  norm          13.503        17.127       -.50784E-06    .10800E-03
  25  Prefactor     .10000E-03    24.300       -.48911E-06** at limit **
  26  Prefactor     136.17        137.15       -.15990E-06    .15647E-04
  27  Prefactor     12.381        15.245       -.10666E-05    .86859E-04
  28  Prefactor     .10000E-03    63.953       -.75618E-07** at limit **
  29  Normalizat    .93859        .24433        .22328E-06    .31549E-03
  30  Prefactor     .86013        .23020        .24755E-05    .65602E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.8891
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100035
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 10.1292
  Prefactor  = 152.856
  Prefactor  = 0.0001
  Prefactor  = 18.2392
  norm       = 5.29559
  Prefactor  = 4.9325
  Prefactor  = 0.0001
  norm       = 13.5035
  Prefactor  = 0.0001
  Prefactor  = 136.169
  Prefactor  = 12.3806
  Prefactor  = 0.0001
  Normalizat = 0.938594
  Prefactor  = 0.860129
 **********
 **   18 **HESSE 
 **********

 FCN=   3464.387     FROM HESSE     STATUS=OK           578 CALLS     4499 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.889        30.085        .10046E-03   -1.4911    
   2  Prefactor     .10000E-03    15.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    8.1086        .16370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    57.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    40.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.6260        .92991E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    28.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.4726        .15708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    7.2818        .15477E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    35.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    72.964        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .93602        .55093E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.3859        .13294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10003E-03    118.63        .36435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    10.072        .11791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.8600        .78308E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.129        9.9663        .12589E-03   -1.5071    
  18  Prefactor     152.86        104.46        .16306E-03   -1.3229    
  19  Prefactor     .10000E-03    12.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     18.239        20.498        .93773E-04   -1.4854    
  21  norm          5.2956        2.0557        .43545E-04   -1.5248    
  22  Prefactor     4.9325        12.710        .18110E-03   -1.5264    
  23  Prefactor     .10000E-03    28.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          13.503        17.077        .10898E-03   -1.4973    
  25  Prefactor     .10000E-03    24.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     136.17        137.15        .17257E-03   -1.3369    
  27  Prefactor     12.381        15.227        .11383E-03   -1.5004    
  28  Prefactor     .10000E-03    64.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .93859        .28056        .23870E-03   -.95117    
  30  Prefactor     .86013        .27522        .25166E-03   -.97549    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23528e-09
Minuit parameter uncertainties:
  1  30.1139
  2  6.07645e-05
  3  2.25615e-05
  4  0.000129978
  5  0.000285982
  6  1.38303e-05
  7  0.000118695
  8  1.0473e-06
  9  4.32433e-05
  10  0.000486234
  11  0.000791568
  12  7.37695e-06
  13  3.14256e-05
  14  0.00407436
  15  0.000170921
  16  3.29417e-06
  17  9.96791
  18  104.582
  19  4.76272e-05
  20  20.5058
  21  2.05577
  22  12.7169
  23  1.26764e-05
  24  17.0833
  25  0.000107953
  26  137.477
  27  15.2322
  28  0.000122685
  29  0.280996
  30  0.275668
Done.

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

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  4.763e-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:  8.601e-01  2.757e-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.386e-01  2.810e-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: 9.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/491836/likelihoodResults_418953601_419212801_4FGL_J1520.5+4209_daily_bin693.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) = 3464.38738607
delta logL = -0.000387943149235

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3464.38699822
delta logL = -1.01625573734e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4952       1.0000          .0000       10.000    
     3 'Normalizat'    .93873       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86000       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=   3464.387     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      234 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10172E-03    383.05        .18142E-02** at limit **
   2  Index         2.3786        5.7641        .50000        .51602E-05
   3  Normalizat    .93860        .30555E-01    .23870E-03   -.19051E-05
   4  Prefactor     .86012        .31137E-01    .25166E-03   -.13327E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101721
  Index      = 2.37859
  Normalizat = 0.938602
  Prefactor  = 0.860119
 **********
 **   18 **HESSE 
 **********

 FCN=   3464.387     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      263 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10172E-03    1394.2        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3786        5.9980        .50000       -.55187    
   3  Normalizat    .93860        .67771E-01    .95480E-05   -.95117    
   4  Prefactor     .86012        .69041E-01    .10066E-04   -.97549    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.39493e-08
Minuit parameter uncertainties:
  1  0.1004
  2  3167.24
  3  0.0677768
  4  0.0690483
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/491836': 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) = 3464.38699801
delta logL = 1.10587734525e-07

Extracting fit parameters...

4FGL J1520.5+4209
   Spectrum: PowerLaw
308    Prefactor:  1.017e-04  1.004e-01  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.379e+00  3.167e+03  0.000e+00  1.000e+01 (-1.000e+00)
310        Scale:  9.357e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  8.601e-01  6.905e-02  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  9.386e-01  6.778e-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/491836/cmap_HighResolution_418953601_419212801_4FGL_J1520.5+4209_daily_bin693.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.58e-03', job_status='DONE', photon_flux_upper_limit='9.74e-08', time_completed='2021-09-12 01:31:33.166488', job_id='491836', GAL2='0.86', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1631435493.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.11e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='693' AND source_name='4FGL J1520.5+4209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:31:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 491836: <4FGL_J1520.5+4209_daily_bin693> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1520.5+4209_daily_bin693 230.135 42.16 418953601 419212801 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 :                                   639.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             359.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   659 sec.
    Turnaround time :                            660 sec.

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

