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


Performing analysis on: 4FGL_J1807.2+6429_daily_bin1171
RA = 271.809, Dec = 64.4988
tmin = 542851201, tmax = 543110401
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='566119', job_status='RUN', time_executed='2021-09-19 14:55:50.417197', time_epoch_executed='1632088550.42' WHERE source_name='4FGL J1807.2+6429' and cadence='daily' and bin_id='1171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/566119

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

Retrieving the FT1 file...

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

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

Retrieving 4 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/566119/ft1_4FGL_J1807.2+6429_daily_bin1171.fits


Retrieving the FT1 file...

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

Retrieving 4 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/566119/ft2_4FGL_J1807.2+6429_daily_bin1171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/566119/ft1_4FGL_J1807.2+6429_daily_bin1171.fits outfile=/scratch/kocevski/566119/ft1_filteredMKT_4FGL_J1807.2+6429_daily_bin1171.fits ra=271.809 dec=64.4988 rad=12.0 tmin=542851201.0 tmax=543110401.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 0.76
user 0.60
sys 0.15

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/566119/ft2_4FGL_J1807.2+6429_daily_bin1171.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/566119/ft2_4FGL_J1807.2+6429_daily_bin1171.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/566119/ft1_filteredMKT_4FGL_J1807.2+6429_daily_bin1171.fits evtable="EVENTS" outfile="/scratch/kocevski/566119/ft1_filtered_4FGL_J1807.2+6429_daily_bin1171.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.45
user 0.29
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/566119/ft1_filtered_4FGL_J1807.2+6429_daily_bin1171.fits" evtable="EVENTS" scfile=/scratch/kocevski/566119/ft2_4FGL_J1807.2+6429_daily_bin1171.fits sctable="SC_DATA" outfile=/scratch/kocevski/566119/ltcube_542851201_543110401_4FGL_J1807.2+6429_daily_bin1171.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/566119/ft2_4FGL_J1807.2+6429_daily_bin1171.fits
.....................!
real 1.86
user 1.52
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/566119/ft1_filtered_4FGL_J1807.2+6429_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/566119/ft2_4FGL_J1807.2+6429_daily_bin1171.fits sctable="SC_DATA" expcube=/scratch/kocevski/566119/ltcube_542851201_543110401_4FGL_J1807.2+6429_daily_bin1171.fits outfile=/scratch/kocevski/566119/expmap_542851201_543110401_4FGL_J1807.2+6429_daily_bin1171.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/566119/ltcube_542851201_543110401_4FGL_J1807.2+6429_daily_bin1171.fits
.....................!
real 190.00
user 184.94
sys 4.68

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 196 point sources and 0 extended sources

Setting source of interest to:
4FGL J1807.2+6429 @ 271.809 64.4988

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/566119/ft1_filtered_4FGL_J1807.2+6429_daily_bin1171.fits scfile=/scratch/kocevski/566119/ft2_4FGL_J1807.2+6429_daily_bin1171.fits outfile=/scratch/kocevski/566119/cmap_542851201_543110401_4FGL_J1807.2+6429_daily_bin1171.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=271.809 yref=64.4988 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.56
user 0.35
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/566119/ft1_filtered_4FGL_J1807.2+6429_daily_bin1171.fits scfile=/scratch/kocevski/566119/ft2_4FGL_J1807.2+6429_daily_bin1171.fits outfile=/scratch/kocevski/566119/cmap_HighResolution_542851201_543110401_4FGL_J1807.2+6429_daily_bin1171.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=271.809 yref=64.4988 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.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/566119/ft1_filtered_4FGL_J1807.2+6429_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/566119/ft2_4FGL_J1807.2+6429_daily_bin1171.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/566119/Model_4FGL_J1807.2+6429_daily_bin1171.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/566119/ft1_filtered_4FGL_J1807.2+6429_daily_bin1171.fits..........................!
real 19.76
user 18.52
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/566119/ft1_filtered_4FGL_J1807.2+6429_daily_bin1171.fits', '/scratch/kocevski/566119/ft2_4FGL_J1807.2+6429_daily_bin1171.fits', expMap='/scratch/kocevski/566119/expmap_542851201_543110401_4FGL_J1807.2+6429_daily_bin1171.fits', expCube='/scratch/kocevski/566119/ltcube_542851201_543110401_4FGL_J1807.2+6429_daily_bin1171.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/566119/Model_4FGL_J1807.2+6429_daily_bin1171.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1807.2+6429'

4FGL J1807.2+6429
   Spectrum: PowerLaw
365    Prefactor:  1.727e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
366        Index:  1.991e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
367        Scale:  3.180e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/566119/ft1_filtered_4FGL_J1807.2+6429_daily_bin1171.fits
Spacecraft file(s): /scratch/kocevski/566119/ft2_4FGL_J1807.2+6429_daily_bin1171.fits
Exposure map: /scratch/kocevski/566119/expmap_542851201_543110401_4FGL_J1807.2+6429_daily_bin1171.fits
Exposure cube: /scratch/kocevski/566119/ltcube_542851201_543110401_4FGL_J1807.2+6429_daily_bin1171.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/566119/Model_4FGL_J1807.2+6429_daily_bin1171.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) = 767.420476663

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    12.854       1.0000         .10000E-03   10000.    
     4 'Prefactor '    57.705       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    611.70       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    479.76       1.0000         .10000E-03   10000.    
    13 'norm      '    .10117E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    69.422       1.0000         .10000E-03   10000.    
    15 'Prefactor '    41.374       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    31.832       1.0000         .10000E-03   10000.    
    22 'Prefactor '    24.691       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    6.5094       1.0000         .10000E-03   10000.    
    29 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    5.8937       1.0000         .10000E-03   10000.    
    31 'Prefactor '    61.322       1.0000         .10000E-03   10000.    
    32 'Prefactor '    26.241       1.0000         .10000E-03   10000.    
    33 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    .14168       1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.0516       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6480E+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=   767.2809     FROM MIGRAD    STATUS=CONVERGED   1741 CALLS     7418 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    693.89        .18142E-02** at limit **
   2  Prefactor     .10000E-03    67.921        .18142E-02** at limit **
   3  norm          12.854        24.396        .11172E-03    .69703E-05
   4  Prefactor     57.716        89.047        .52811E-04    .39825E-05
   5  norm          .10000E-03    1.1749        .29313E-03** at limit **
   6  Prefactor     .10000E-03    10.532        .87824E-03** at limit **
   7  Prefactor     .10000E-03    55.294        .18142E-02** at limit **
   8  Prefactor     .10000E-03    29.612        .14712E-02** at limit **
   9  Prefactor     .10000E-03    45.654        .18142E-02** at limit **
  10  Prefactor     611.70        441.31        .16692E-04    .14984E-05
  11  Prefactor     .10000E-03    83.768        .18142E-02** at limit **
  12  Prefactor     479.76        476.69        .18717E-04    .34623E-05
  13  norm          .10000E-03    103.29        .20798E-02** at limit **
  14  Prefactor     69.437        99.672        .24088E-03    .12088E-04
  15  Prefactor     41.373        41.852        .62320E-04    .11055E-04
  16  Prefactor     .10000E-03    21.796        .12638E-02** at limit **
  17  norm          .10000E-03    16.062        .10827E-02** at limit **
  18  Prefactor     .10000E-03    50.273        .18142E-02** at limit **
  19  Prefactor     .10000E-03    279.48        .18142E-02** at limit **
  20  Prefactor     .10000E-03    10.458        .87501E-03** at limit **
  21  norm          31.835        37.597        .71019E-04    .27113E-04
  22  Prefactor     24.672        97.435        .80615E-04    .53766E-05
  23  Prefactor     .10000E-03    24.778        .13474E-02** at limit **
  24  Prefactor     .10000E-03    39.543        .17024E-02** at limit **
  25  Prefactor     .10000E-03    421.42        .18142E-02** at limit **
  26  Prefactor     .10000E-03    177.85        .18142E-02** at limit **
  27  norm          .10000E-03    5.4618        .63230E-03** at limit **
  28  norm          6.5089        7.8898        .83581E-04    .28768E-04
  29  norm          .10000E-03    15.897        .10789E-02** at limit **
  30  norm          5.9023        150.61        .16542E-03    .11667E-04
  31  Prefactor     61.329        74.938        .51239E-04    .32921E-04
  32  Prefactor     26.231        38.261        .78202E-04    .43903E-04
  33  norm          .10000E-03    8.1507        .77078E-03** at limit **
  34  Normalizat    .14115        1.3346        .80247E-02    .36054E-05
  35  Prefactor     1.0518        .49435        .19712E-03    .13698E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 12.8543
  Prefactor  = 57.7158
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 611.702
  Prefactor  = 0.0001
  Prefactor  = 479.755
  norm       = 0.0001
  Prefactor  = 69.437
  Prefactor  = 41.3733
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 31.8349
  Prefactor  = 24.6724
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.5089
  norm       = 0.0001
  norm       = 5.90233
  Prefactor  = 61.329
  Prefactor  = 26.2307
  norm       = 0.0001
  Normalizat = 0.141151
  Prefactor  = 1.05184
 **********
 **   18 **HESSE 
 **********

 FCN=   767.2809     FROM HESSE     STATUS=OK           738 CALLS     8156 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    693.89        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    67.921        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          12.854        24.359        .44690E-05   -1.4991    
   4  Prefactor     57.716        88.642        .21125E-05   -1.4187    
   5  norm          .10000E-03    1.1749        .58626E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.532        .17565E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    55.296        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    29.613        .29424E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    45.656        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     611.70        440.53        .33383E-05   -1.0710    
  11  Prefactor     .10000E-03    83.768        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     479.76        476.14        .37433E-05   -1.1291    
  13  norm          .10000E-03    103.88        .41595E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     69.437        99.484        .96353E-05   -1.4039    
  15  Prefactor     41.373        41.759        .12464E-04   -1.4421    
  16  Prefactor     .10000E-03    21.796        .25275E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    16.063        .21654E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    50.273        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    279.48        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.458        .17500E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          31.835        37.509        .28408E-05   -1.4579    
  22  Prefactor     24.672        97.422        .32246E-05   -1.4714    
  23  Prefactor     .10000E-03    24.778        .26947E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    39.543        .34049E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    421.42        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    177.85        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    5.4618        .12646E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          6.5089        7.8896        .33432E-05   -1.5198    
  29  norm          .10000E-03    15.897        .21578E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          5.9023        149.33        .66166E-05   -1.5222    
  31  Prefactor     61.329        74.849        .10248E-04   -1.4140    
  32  Prefactor     26.231        38.246        .31281E-05   -1.4683    
  33  norm          .10000E-03    8.1509        .15416E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    .14115        1.1915        .32099E-03   -1.3411    
  35  Prefactor     1.0518        .47094        .78847E-05   -.91021    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.32549e-11
Minuit parameter uncertainties:
  1  0.00243428
  2  5.57378e-05
  3  24.3778
  4  88.8453
  5  5.95125e-07
  6  5.13011e-06
  7  5.77619e-05
  8  0.000165888
  9  0.000119585
  10  443.054
  11  3.38195e-05
  12  480.168
  13  0.000109364
  14  99.7231
  15  41.7883
  16  1.13348e-05
  17  4.81538e-06
  18  1.42938e-05
  19  0.000475948
  20  3.85862e-06
  21  37.5373
  22  98.0593
  23  1.19681e-05
  24  2.11491e-05
  25  0.000100092
  26  0.000170115
  27  8.87543e-07
  28  7.89089
  29  1.7533e-05
  30  59.5428
  31  74.9638
  32  38.282
  33  5.85346e-06
  34  0.81315
  35  0.472807
Done.

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

Extracting fit parameters...

4FGL J1807.2+6429
   Spectrum: PowerLaw
365    Prefactor:  1.000e-04  1.429e-05  1.000e-04  1.000e+04 ( 1.000e-14)
366        Index:  1.991e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
367        Scale:  3.180e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
645    Prefactor:  1.052e+00  4.728e-01  0.000e+00  1.000e+01 ( 1.000e+00)
646        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
647        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
644   Normalization:  1.412e-01  8.131e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 271.809 64.499
Photon Flux Upper Limit: 2.71e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.03e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/566119/likelihoodResults_542851201_543110401_4FGL_J1807.2+6429_daily_bin1171.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) = 767.281009301
delta logL = -8.81347436916e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 767.280921732
delta logL = -5.66160110793e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11255E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1361       1.0000          .0000       10.000    
     3 'Normalizat'    .14114       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0518       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6480E+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=   767.2809     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      285 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10192E-03    173.81        .17518E-02** at limit **
   2  Index         2.0643        8.8082        .50000        .94073E-05
   3  Normalizat    .14115        .31294E-01    .80256E-02   -.67276E-05
   4  Prefactor     1.0518        .20053E-01    .19712E-03   -.40373E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101924
  Index      = 2.06434
  Normalizat = 0.14115
  Prefactor  = 1.05184
 **********
 **   18 **HESSE 
 **********

 FCN=   767.2809     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      316 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10192E-03    744.80        .35035E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0643        6.8869        .50000       -.62751    
   3  Normalizat    .14115        .66333E-01    .32102E-03   -1.3411    
   4  Prefactor     1.0518        .42520E-01    .39423E-04   -.91021    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.43286e-09
Minuit parameter uncertainties:
  1  0.076675
  2  403.673
  3  0.0663704
  4  0.0425218
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/566119': 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) = 767.280921339
delta logL = -1.73124021785e-07

Extracting fit parameters...

4FGL J1807.2+6429
   Spectrum: PowerLaw
365    Prefactor:  1.019e-04  7.668e-02  1.000e-04  1.000e+04 ( 1.000e-14)
366        Index:  2.064e+00  4.037e+02  0.000e+00  1.000e+01 (-1.000e+00)
367        Scale:  3.180e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
645    Prefactor:  1.052e+00  4.252e-02  0.000e+00  1.000e+01 ( 1.000e+00)
646        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
647        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
644   Normalization:  1.411e-01  6.637e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 271.809 64.499

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/566119/cmap_HighResolution_542851201_543110401_4FGL_J1807.2+6429_daily_bin1171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.03e-02', job_status='DONE', photon_flux_upper_limit='2.71e-07', time_completed='2021-09-19 15:03:06.071381', job_id='566119', GAL2='1.05', fit_tolerance='1e-08', EG2='0.14', EG='0.14', time_epoch_completed='1632088986.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='-1.73e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1171' AND source_name='4FGL J1807.2+6429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 19 15:03:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 566119: <4FGL_J1807.2+6429_daily_bin1171> in cluster <slac> Done

Job <4FGL_J1807.2+6429_daily_bin1171> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 19 14:55:34 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 19 14:55:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 19 14:55:36 2021
Terminated at Sun Sep 19 15:03:06 2021
Results reported at Sun Sep 19 15:03:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1807.2+6429_daily_bin1171 271.809 64.4988 542851201 543110401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1807.2+6429 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   439.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   450 sec.
    Turnaround time :                            452 sec.

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

