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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin960
RA = 197.363, Dec = 43.085
tmin = 488160001, tmax = 488419201
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='282899', job_status='RUN', time_executed='2021-09-07 01:11:23.715717', time_epoch_executed='1631002283.72' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='960'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/282899

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/282899/ft1_4FGL_J1309.4+4305_daily_bin960.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/282899/ft2_4FGL_J1309.4+4305_daily_bin960.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/282899/ft1_4FGL_J1309.4+4305_daily_bin960.fits outfile=/scratch/kocevski/282899/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin960.fits ra=197.363 dec=43.085 rad=12.0 tmin=488160001.0 tmax=488419201.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 4.53
user 4.20
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/282899/ft2_4FGL_J1309.4+4305_daily_bin960.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/282899/ft2_4FGL_J1309.4+4305_daily_bin960.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/282899/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin960.fits evtable="EVENTS" outfile="/scratch/kocevski/282899/ft1_filtered_4FGL_J1309.4+4305_daily_bin960.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.59
user 0.30
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/282899/ft1_filtered_4FGL_J1309.4+4305_daily_bin960.fits" evtable="EVENTS" scfile=/scratch/kocevski/282899/ft2_4FGL_J1309.4+4305_daily_bin960.fits sctable="SC_DATA" outfile=/scratch/kocevski/282899/ltcube_488160001_488419201_4FGL_J1309.4+4305_daily_bin960.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/282899/ft2_4FGL_J1309.4+4305_daily_bin960.fits
.....................!
real 14.63
user 14.23
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/282899/ft1_filtered_4FGL_J1309.4+4305_daily_bin960.fits evtable="EVENTS" scfile=/scratch/kocevski/282899/ft2_4FGL_J1309.4+4305_daily_bin960.fits sctable="SC_DATA" expcube=/scratch/kocevski/282899/ltcube_488160001_488419201_4FGL_J1309.4+4305_daily_bin960.fits outfile=/scratch/kocevski/282899/expmap_488160001_488419201_4FGL_J1309.4+4305_daily_bin960.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/282899/ltcube_488160001_488419201_4FGL_J1309.4+4305_daily_bin960.fits
.....................!
real 157.13
user 152.37
sys 4.08

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 208 point sources and 0 extended sources

Setting source of interest to:
4FGL J1309.4+4305 @ 197.363 43.085

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/282899/ft1_filtered_4FGL_J1309.4+4305_daily_bin960.fits scfile=/scratch/kocevski/282899/ft2_4FGL_J1309.4+4305_daily_bin960.fits outfile=/scratch/kocevski/282899/cmap_488160001_488419201_4FGL_J1309.4+4305_daily_bin960.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=197.363 yref=43.085 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.50
user 0.33
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/282899/ft1_filtered_4FGL_J1309.4+4305_daily_bin960.fits scfile=/scratch/kocevski/282899/ft2_4FGL_J1309.4+4305_daily_bin960.fits outfile=/scratch/kocevski/282899/cmap_HighResolution_488160001_488419201_4FGL_J1309.4+4305_daily_bin960.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=197.363 yref=43.085 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.51
user 0.36
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/282899/ft1_filtered_4FGL_J1309.4+4305_daily_bin960.fits evtable="EVENTS" scfile=/scratch/kocevski/282899/ft2_4FGL_J1309.4+4305_daily_bin960.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/282899/Model_4FGL_J1309.4+4305_daily_bin960.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/282899/ft1_filtered_4FGL_J1309.4+4305_daily_bin960.fits......................!
real 29.15
user 27.74
sys 1.06

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/282899/ft1_filtered_4FGL_J1309.4+4305_daily_bin960.fits', '/scratch/kocevski/282899/ft2_4FGL_J1309.4+4305_daily_bin960.fits', expMap='/scratch/kocevski/282899/expmap_488160001_488419201_4FGL_J1309.4+4305_daily_bin960.fits', expCube='/scratch/kocevski/282899/ltcube_488160001_488419201_4FGL_J1309.4+4305_daily_bin960.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/282899/Model_4FGL_J1309.4+4305_daily_bin960.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1309.4+4305'

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  8.179e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.769e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
351         beta:  8.354e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
352           Eb:  1.387e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/282899/ft1_filtered_4FGL_J1309.4+4305_daily_bin960.fits
Spacecraft file(s): /scratch/kocevski/282899/ft2_4FGL_J1309.4+4305_daily_bin960.fits
Exposure map: /scratch/kocevski/282899/expmap_488160001_488419201_4FGL_J1309.4+4305_daily_bin960.fits
Exposure cube: /scratch/kocevski/282899/ltcube_488160001_488419201_4FGL_J1309.4+4305_daily_bin960.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/282899/Model_4FGL_J1309.4+4305_daily_bin960.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) = 3423.93358638

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .84394E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.3119       1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.335       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.6272       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5225       1.0000         .10000E-03   10000.    
     7 'norm      '    .32452E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16545E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    60.418       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .17845E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.8061       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .27623E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3686       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .62186       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3423.912     FROM MIGRAD    STATUS=CONVERGED    688 CALLS     3358 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.8788       -.76093E-06** at limit **
   2  Prefactor     4.2707        63.805        .10372E-06   -.24312E-06
   3  Prefactor     29.346        43.580        .13765E-04    .35255E-04
   4  Prefactor     .10000E-03    10.447        .98716E-07** at limit **
   5  norm          3.6269        2.5094       -.44974E-07    .62985E-04
   6  Prefactor     4.5213        7.8700        .10449E-05   -.25075E-03
   7  norm          .10231E-03    5.3291       -.72063E-07** at limit **
   8  Prefactor     .10000E-03    94.598       -.47577E-04** at limit **
   9  Prefactor     60.660        40.500        .33029E-05   -.17077E-03
  10  Prefactor     .10000E-03    14.623        .18580E-05** at limit **
  11  norm          .10000E-03    4.0178       -.25238E-07** at limit **
  12  norm          .10000E-03    9.2652        .27331E-07** at limit **
  13  norm          .10000E-03    3.1398       -.17606E-06** at limit **
  14  norm          .10189E-03    10.110        .37295E-05** at limit **
  15  norm          .10000E-03    2.2457       -.52186E-07** at limit **
  16  Prefactor     3.8068        3.7568       -.19509E-06   -.55374E-03
  17  Prefactor     .10000E-03    14.370       -.15648E-05** at limit **
  18  Prefactor     .10000E-03    15.963       -.94751E-07** at limit **
  19  Prefactor     .10000E-03    34.572       -.22732E-05** at limit **
  20  Prefactor     .10000E-03    17.747       -.12299E-05** at limit **
  21  Prefactor     .10000E-03    21.472        .13722E-05** at limit **
  22  norm          .10000E-03    1.9462        .20984E-07** at limit **
  23  Prefactor     .10000E-03    212.87        .83655E-05** at limit **
  24  norm          .10000E-03    .82569        .74857E-07** at limit **
  25  norm          .10000E-03    6.1038        .47302E-07** at limit **
  26  Normalizat    1.3684        .22669       -.38272E-05    .83075E-04
  27  Prefactor     .62220        .25807        .13225E-05   -.15258E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 4.27065
  Prefactor  = 29.3464
  Prefactor  = 0.0001
  norm       = 3.62691
  Prefactor  = 4.52133
  norm       = 0.000102305
  Prefactor  = 0.0001
  Prefactor  = 60.6604
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000101888
  norm       = 0.0001
  Prefactor  = 3.80681
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.36842
  Prefactor  = 0.622201
 **********
 **   18 **HESSE 
 **********

 FCN=   3423.912     FROM HESSE     STATUS=OK           488 CALLS     3846 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    21.917        .27129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.2707        53.263        .19400E-03   -1.5295    
   3  Prefactor     29.346        43.548        .73973E-04   -1.4624    
   4  Prefactor     .10000E-03    10.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.6269        2.5126        .74970E-04   -1.5327    
   6  Prefactor     4.5213        7.8281        .18931E-03   -1.5283    
   7  norm          .10231E-03    10.439        .42280E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    94.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     60.660        40.958        .51619E-04   -1.4149    
  10  Prefactor     .10000E-03    14.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.0462        .11447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    9.2794        .17397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.1616        .10099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10189E-03    72.443        .34408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.2530        .85622E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.8068        3.7258        .10707E-03   -1.5318    
  17  Prefactor     .10000E-03    14.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    34.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    21.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.9488        .79720E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    214.08        .21424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .84054        .51896E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    6.1072        .14120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.3684        .25551        .19521E-03   -.81547    
  27  Prefactor     .62220        .28899        .33487E-03   -1.0666    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57143e-08
Minuit parameter uncertainties:
  1  2.04777e-05
  2  30.1969
  3  43.5953
  4  3.84873e-06
  5  2.51271
  6  7.82986
  7  0.0098132
  8  1.66509e-05
  9  40.9774
  10  3.78912e-05
  11  1.01087e-05
  12  9.80005e-06
  13  2.939e-05
  14  0.0234188
  15  8.10589e-06
  16  3.72601
  17  1.7522e-05
  18  1.42062e-06
  19  1.97121e-05
  20  2.7025e-05
  21  1.72241e-05
  22  2.37586e-06
  23  0.000730309
  24  4.47807e-06
  25  6.32207e-06
  26  0.25575
  27  0.289681
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  9.800e-06  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.769e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
351         beta:  8.354e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
352           Eb:  1.387e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  6.222e-01  2.897e-01  0.000e+00  1.000e+01 ( 1.000e+00)
664        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
665        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
662   Normalization:  1.368e+00  2.558e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 197.363 43.085
Photon Flux Upper Limit: 4.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.97e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/282899/likelihoodResults_488160001_488419201_4FGL_J1309.4+4305_daily_bin960.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) = 3423.91299123
delta logL = -0.000506423675233

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3423.91248629
delta logL = -1.47438868225e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11921E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7483       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3682       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62250       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6660E+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=   3423.912     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      235 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    253.42        .17662E-01** at limit **
   2  alpha         1.4215        2.9173        .17517        .13986E-07
   3  Normalizat    1.3684        .26176E-01    .19521E-03   -.59793E-04
   4  Prefactor     .62221        .31603E-01    .33486E-03   -.31591E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.42151
  Normalizat = 1.36841
  Prefactor  = 0.622207
 **********
 **   18 **HESSE 
 **********

 FCN=   3423.912     FROM HESSE     STATUS=OK            23 CALLS      258 TOTAL
                     EDM=   .80E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.906        .18709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4215        2.6106        .70067E-02   -.44604    
   3  Normalizat    1.3684        .23410        .39042E-04   -.81547    
   4  Prefactor     .62221        .28219        .13395E-04   -1.0666    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.96501e-12
Minuit parameter uncertainties:
  1  1.43992e-05
  2  269.479
  3  0.234282
  4  0.282833
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/282899': 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): 0
logL (Free Index) = 3423.91248405
delta logL = 7.62059244153e-07

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  1.440e-05  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.422e+00  2.695e+02  0.000e+00  5.000e+00 ( 1.000e+00)
351         beta:  8.354e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
352           Eb:  1.387e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  6.222e-01  2.828e-01  0.000e+00  1.000e+01 ( 1.000e+00)
664        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
665        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
662   Normalization:  1.368e+00  2.343e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 197.363 43.085

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/282899/cmap_HighResolution_488160001_488419201_4FGL_J1309.4+4305_daily_bin960.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.97e-05', job_status='DONE', photon_flux_upper_limit='4.53e-08', time_completed='2021-09-07 01:20:15.786013', job_id='282899', GAL2='0.62', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1631002815.79', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='7.62e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='960' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:20:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 282899: <4FGL_J1309.4+4305_daily_bin960> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin960> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Sep  7 01:07:27 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:07:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 01:07:29 2021
Terminated at Tue Sep  7 01:20:16 2021
Results reported at Tue Sep  7 01:20:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin960 197.363 43.085 488160001 488419201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1309.4+4305 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   524.28 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             204.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   767 sec.
    Turnaround time :                            769 sec.

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

