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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin251
RA = 197.363, Dec = 43.085
tmin = 304387201, tmax = 304646401
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='275519', job_status='RUN', time_executed='2021-09-07 00:48:25.595840', time_epoch_executed='1631000905.6' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='251'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/275519

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/275519/ft1_4FGL_J1309.4+4305_daily_bin251.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/275519/ft2_4FGL_J1309.4+4305_daily_bin251.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/275519/ft1_4FGL_J1309.4+4305_daily_bin251.fits outfile=/scratch/kocevski/275519/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin251.fits ra=197.363 dec=43.085 rad=12.0 tmin=304387201.0 tmax=304646401.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.09
user 3.85
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/275519/ft2_4FGL_J1309.4+4305_daily_bin251.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/275519/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin251.fits evtable="EVENTS" outfile="/scratch/kocevski/275519/ft1_filtered_4FGL_J1309.4+4305_daily_bin251.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.50
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/275519/ft1_filtered_4FGL_J1309.4+4305_daily_bin251.fits" evtable="EVENTS" scfile=/scratch/kocevski/275519/ft2_4FGL_J1309.4+4305_daily_bin251.fits sctable="SC_DATA" outfile=/scratch/kocevski/275519/ltcube_304387201_304646401_4FGL_J1309.4+4305_daily_bin251.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/275519/ft2_4FGL_J1309.4+4305_daily_bin251.fits
.....................!
real 14.17
user 12.96
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/275519/ft1_filtered_4FGL_J1309.4+4305_daily_bin251.fits evtable="EVENTS" scfile=/scratch/kocevski/275519/ft2_4FGL_J1309.4+4305_daily_bin251.fits sctable="SC_DATA" expcube=/scratch/kocevski/275519/ltcube_304387201_304646401_4FGL_J1309.4+4305_daily_bin251.fits outfile=/scratch/kocevski/275519/expmap_304387201_304646401_4FGL_J1309.4+4305_daily_bin251.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/275519/ltcube_304387201_304646401_4FGL_J1309.4+4305_daily_bin251.fits
.....................!
real 190.74
user 185.25
sys 4.93

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/275519/ft1_filtered_4FGL_J1309.4+4305_daily_bin251.fits scfile=/scratch/kocevski/275519/ft2_4FGL_J1309.4+4305_daily_bin251.fits outfile=/scratch/kocevski/275519/cmap_304387201_304646401_4FGL_J1309.4+4305_daily_bin251.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/275519/ft1_filtered_4FGL_J1309.4+4305_daily_bin251.fits scfile=/scratch/kocevski/275519/ft2_4FGL_J1309.4+4305_daily_bin251.fits outfile=/scratch/kocevski/275519/cmap_HighResolution_304387201_304646401_4FGL_J1309.4+4305_daily_bin251.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.54
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/275519/ft1_filtered_4FGL_J1309.4+4305_daily_bin251.fits', '/scratch/kocevski/275519/ft2_4FGL_J1309.4+4305_daily_bin251.fits', expMap='/scratch/kocevski/275519/expmap_304387201_304646401_4FGL_J1309.4+4305_daily_bin251.fits', expCube='/scratch/kocevski/275519/ltcube_304387201_304646401_4FGL_J1309.4+4305_daily_bin251.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/275519/Model_4FGL_J1309.4+4305_daily_bin251.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/275519/ft1_filtered_4FGL_J1309.4+4305_daily_bin251.fits
Spacecraft file(s): /scratch/kocevski/275519/ft2_4FGL_J1309.4+4305_daily_bin251.fits
Exposure map: /scratch/kocevski/275519/expmap_304387201_304646401_4FGL_J1309.4+4305_daily_bin251.fits
Exposure cube: /scratch/kocevski/275519/ltcube_304387201_304646401_4FGL_J1309.4+4305_daily_bin251.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/275519/Model_4FGL_J1309.4+4305_daily_bin251.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) = 4987.83056111

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .34135E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.4966       1.0000         .10000E-03   10000.    
     5 'norm      '    6.3972       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.9519       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.000       1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.1240       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.0325       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.248       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.3979       1.0000         .10000E-03   10000.    
    22 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    26.607       1.0000         .10000E-03   10000.    
    24 'norm      '    .42763       1.0000         .10000E-03   10000.    
    25 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2446       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .86319       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=   4987.791     FROM MIGRAD    STATUS=CONVERGED    644 CALLS     3281 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.5964        .17442E-06** at limit **
   2  Prefactor     .10000E-03    24.809        .26401E-06** at limit **
   3  Prefactor     .10000E-03    18.034        .34477E-06** at limit **
   4  Prefactor     7.4986        18.575        .14559E-06   -.43485E-05
   5  norm          6.3975        3.5798        .29459E-07   -.74159E-05
   6  Prefactor     .10000E-03    2.7688        .25615E-07** at limit **
   7  norm          2.9518        3.8512        .19965E-05   -.26779E-03
   8  Prefactor     .10000E-03    23.031       -.35382E-07** at limit **
   9  Prefactor     .10000E-03    18.298       -.14895E-06** at limit **
  10  Prefactor     18.001        16.320       -.32664E-06   -.37892E-05
  11  norm          .10000E-03    2.9400       -.52352E-07** at limit **
  12  norm          .10000E-03    11.520       -.10941E-06** at limit **
  13  norm          3.1241        2.8376       -.17785E-06   -.52406E-04
  14  norm          .10000E-03    4.0982        .23708E-07** at limit **
  15  norm          .10000E-03    4.5319       -.65942E-06** at limit **
  16  Prefactor     2.0327        3.9147        .63170E-06   -.65396E-04
  17  Prefactor     .10000E-03    11.052        .10405E-06** at limit **
  18  Prefactor     .10000E-03    28.065       -.36273E-05** at limit **
  19  Prefactor     .10000E-03    57.172        .27084E-06** at limit **
  20  Prefactor     24.245        20.457       -.39255E-06    .84686E-04
  21  Prefactor     2.3296        154.52        .27865E-05   -.19085E-04
  22  norm          .10000E-03    2.7119       -.40724E-06** at limit **
  23  Prefactor     26.585        38.368       -.31707E-06   -.57484E-04
  24  norm          .42928        1.0886       -.14694E-05   -.60507E-03
  25  norm          .10000E-03    11.252        .23200E-06** at limit **
  26  Normalizat    1.2446        .19237        .20711E-05    .87763E-04
  27  Prefactor     .86308        .23317       -.38470E-05    .19493E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.4986
  norm       = 6.39751
  Prefactor  = 0.0001
  norm       = 2.95183
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.0011
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.12407
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.0327
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.2448
  Prefactor  = 2.32955
  norm       = 0.0001
  Prefactor  = 26.5849
  norm       = 0.429275
  norm       = 0.0001
  Normalizat = 1.24463
  Prefactor  = 0.863078
 **********
 **   18 **HESSE 
 **********

 FCN=   4987.791     FROM HESSE     STATUS=OK           484 CALLS     3765 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    37.904        .29069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    24.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    18.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.4986        18.552        .14648E-03   -1.5160    
   5  norm          6.3975        3.5766        .95900E-04   -1.5202    
   6  Prefactor     .10000E-03    2.7768        .11469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.9518        3.7917        .75633E-03   -1.5364    
   8  Prefactor     .10000E-03    23.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    18.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.001        16.301        .94402E-04   -1.4859    
  11  norm          .10000E-03    2.9564        .11814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    11.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.1241        2.8300        .10857E-03   -1.5354    
  14  norm          .10000E-03    4.1153        .13937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.6433        .29315E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.0327        3.8749        .17877E-03   -1.5423    
  17  Prefactor     .10000E-03    11.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    28.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    57.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     24.245        20.407        .81348E-04   -1.4723    
  21  Prefactor     2.3296        155.25        .26444E-03   -1.5403    
  22  norm          .10000E-03    2.7185        .11318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     26.585        38.367        .77664E-04   -1.4676    
  24  norm          .42928        1.0592        .11706E-02   -1.5577    
  25  norm          .10000E-03    11.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2446        .21947        .20793E-03   -.85235    
  27  Prefactor     .86308        .26495        .30701E-03   -.97443    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.80412e-10
Minuit parameter uncertainties:
  1  0.000795683
  2  7.88155e-05
  3  3.01449e-05
  4  18.5667
  5  3.57675
  6  1.3548e-06
  7  3.79198
  8  3.47269e-05
  9  5.79975e-05
  10  16.3055
  11  7.07673e-06
  12  5.22337e-05
  13  2.83007
  14  4.72566e-07
  15  1.76777e-05
  16  3.87536
  17  1.84411e-05
  18  8.00877e-05
  19  0.000194542
  20  20.4133
  21  38.1377
  22  9.47624e-06
  23  38.4024
  24  1.05922
  25  7.2787e-06
  26  0.219632
  27  0.265343
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  5.223e-05  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:  8.631e-01  2.653e-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.245e+00  2.196e-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: 3.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.96e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/275519/likelihoodResults_304387201_304646401_4FGL_J1309.4+4305_daily_bin251.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) = 4987.79093394
delta logL = -0.000410138462939

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4987.79052382
delta logL = -1.72212821781e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10656E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8075       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2446       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86311       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=   4987.784     FROM MIGRAD    STATUS=CONVERGED    144 CALLS      293 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .39010        38.953        .42583E-01    .76514E-03
   2  alpha         2.9185        3.6263        .50000        .27710E-04
   3  Normalizat    1.2424        .15721E-01    .20792E-03    .14347E-05
   4  Prefactor     .86318        .19797E-01    .30702E-03   -.18515E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.390101
  alpha      = 2.91847
  Normalizat = 1.24241
  Prefactor  = 0.863182
 **********
 **   18 **HESSE 
 **********

 FCN=   4987.784     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      324 TOTAL
                     EDM=   .31E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .39010        1443.1        .24578E-02   -1.5583    
   2  alpha         2.9185        3.2362        .48918E-01    .16818    
   3  Normalizat    1.2424        .14740        .20792E-03   -.85302    
   4  Prefactor     .86318        .18817        .12281E-04   -.97440    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.11606e-06
Minuit parameter uncertainties:
  1  48.67
  2  41.2444
  3  0.147451
  4  0.188313
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/275519': 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) = 4987.7835031
delta logL = 0.00702070416264

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  3.901e-01  4.867e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  2.918e+00  4.124e+01  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:  8.632e-01  1.883e-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.242e+00  1.475e-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/275519/cmap_HighResolution_304387201_304646401_4FGL_J1309.4+4305_daily_bin251.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.96e-05', job_status='DONE', photon_flux_upper_limit='3.61e-08', time_completed='2021-09-07 01:00:50.273431', job_id='275519', GAL2='0.86', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1631001650.27', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='7.02e-03', ts2='0.01', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='251' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:00:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 275519: <4FGL_J1309.4+4305_daily_bin251> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin251> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 00:45:36 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:48:13 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 00:48:13 2021
Terminated at Tue Sep  7 01:00:51 2021
Results reported at Tue Sep  7 01:00:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin251 197.363 43.085 304387201 304646401 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 :                                   739.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   757 sec.
    Turnaround time :                            915 sec.

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

