/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 3 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_J1309.4+4305_daily_bin779
RA = 197.363, Dec = 43.085
tmin = 441244801, tmax = 441504001
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='279785', job_status='RUN', time_executed='2021-09-07 01:01:37.310002', time_epoch_executed='1631001697.31' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='779'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279785

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279785/ft1_4FGL_J1309.4+4305_daily_bin779.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279785/ft2_4FGL_J1309.4+4305_daily_bin779.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279785/ft1_4FGL_J1309.4+4305_daily_bin779.fits outfile=/scratch/kocevski/279785/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin779.fits ra=197.363 dec=43.085 rad=12.0 tmin=441244801.0 tmax=441504001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.97
user 3.28
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/279785/ft1_filtered_4FGL_J1309.4+4305_daily_bin779.fits" evtable="EVENTS" scfile=/scratch/kocevski/279785/ft2_4FGL_J1309.4+4305_daily_bin779.fits sctable="SC_DATA" outfile=/scratch/kocevski/279785/ltcube_441244801_441504001_4FGL_J1309.4+4305_daily_bin779.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/279785/ft2_4FGL_J1309.4+4305_daily_bin779.fits
.....................!
real 16.55
user 15.74
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279785/ft1_filtered_4FGL_J1309.4+4305_daily_bin779.fits evtable="EVENTS" scfile=/scratch/kocevski/279785/ft2_4FGL_J1309.4+4305_daily_bin779.fits sctable="SC_DATA" expcube=/scratch/kocevski/279785/ltcube_441244801_441504001_4FGL_J1309.4+4305_daily_bin779.fits outfile=/scratch/kocevski/279785/expmap_441244801_441504001_4FGL_J1309.4+4305_daily_bin779.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/279785/ltcube_441244801_441504001_4FGL_J1309.4+4305_daily_bin779.fits
.....................!
real 194.21
user 186.43
sys 4.87

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/279785/ft1_filtered_4FGL_J1309.4+4305_daily_bin779.fits scfile=/scratch/kocevski/279785/ft2_4FGL_J1309.4+4305_daily_bin779.fits outfile=/scratch/kocevski/279785/cmap_441244801_441504001_4FGL_J1309.4+4305_daily_bin779.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 1.59
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/279785/ft1_filtered_4FGL_J1309.4+4305_daily_bin779.fits scfile=/scratch/kocevski/279785/ft2_4FGL_J1309.4+4305_daily_bin779.fits outfile=/scratch/kocevski/279785/cmap_HighResolution_441244801_441504001_4FGL_J1309.4+4305_daily_bin779.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.98
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5180       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.2165       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.2934       1.0000         .10000E-03   10000.    
     5 'norm      '    .73375       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    9.2965       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.6171       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    8.9523       1.0000         .10000E-03   10000.    
    12 'norm      '    .10276E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10209E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.1037       1.0000         .10000E-03   10000.    
    15 'norm      '    3.5954       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10774E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    54.058       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    18.274       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.6644       1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .96385       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0245       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=   6850.508     FROM MIGRAD    STATUS=CONVERGED    629 CALLS     2802 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5177        4.9439        .18231E-05    .11846E-04
   2  Prefactor     .10000E-03    6.9731        .36719E-08** at limit **
   3  Prefactor     9.2185        14.905       -.72796E-07   -.12598E-04
   4  Prefactor     8.2937        13.454        .21131E-05    .26681E-04
   5  norm          .73367        1.7183        .63522E-06    .72871E-04
   6  Prefactor     .10000E-03    5.1019       -.21962E-06** at limit **
   7  norm          9.2982        5.4088       -.74447E-08    .15050E-03
   8  Prefactor     .10000E-03    26.148        .34236E-06** at limit **
   9  Prefactor     8.5903        26.939        .34952E-06    .14515E-05
  10  Prefactor     .10000E-03    12.656       -.16801E-06** at limit **
  11  norm          8.9409        6.7392        .62414E-06    .51408E-03
  12  norm          .10000E-03    36.214        .17818E-06** at limit **
  13  norm          .10000E-03    2.5550       -.59452E-06** at limit **
  14  norm          5.1021        4.5602        .16305E-06    .21960E-03
  15  norm          3.5956        3.3397        .56824E-07   -.13695E-04
  16  Prefactor     .10000E-03    2.0383       -.90111E-06** at limit **
  17  Prefactor     .10000E-03    5.9560       -.34988E-06** at limit **
  18  Prefactor     .10000E-03    21.212       -.68416E-07** at limit **
  19  Prefactor     54.037        36.033        .96317E-07   -.35319E-04
  20  Prefactor     .10000E-03    12.689        .88722E-07** at limit **
  21  Prefactor     .10000E-03    13.102       -.14657E-07** at limit **
  22  norm          18.274        5.4257       -.12835E-07   -.11327E-04
  23  Prefactor     .10000E-03    22.259       -.87187E-08** at limit **
  24  norm          2.6644        1.2076        .48640E-08   -.68682E-05
  25  norm          .10000E-03    4.6531        .46757E-08** at limit **
  26  Normalizat    .96360        .15633        .11742E-05    .66041E-04
  27  Prefactor     1.0248        .19761       -.18787E-05    .16821E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.51771
  Prefactor  = 0.0001
  Prefactor  = 9.21852
  Prefactor  = 8.29365
  norm       = 0.733667
  Prefactor  = 0.0001
  norm       = 9.29823
  Prefactor  = 0.0001
  Prefactor  = 8.5903
  Prefactor  = 0.0001
  norm       = 8.94093
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.10214
  norm       = 3.59564
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.0375
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.2742
  Prefactor  = 0.0001
  norm       = 2.66444
  norm       = 0.0001
  Normalizat = 0.963596
  Prefactor  = 1.02477
 **********
 **   18 **HESSE 
 **********

 FCN=   6850.508     FROM HESSE     STATUS=OK           490 CALLS     3292 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5177        4.9072        .31788E-03   -1.5462    
   2  Prefactor     .10000E-03    6.9924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.2185        14.911        .13201E-03   -1.5101    
   4  Prefactor     8.2937        13.398        .69605E-03   -1.5132    
   5  norm          .73367        1.6896        .16018E-03   -1.5537    
   6  Prefactor     .10000E-03    5.2186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          9.2982        5.3905        .13144E-03   -1.5098    
   8  Prefactor     .10000E-03    26.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.5903        26.805        .13655E-03   -1.5122    
  10  Prefactor     .10000E-03    12.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.9409        6.7082        .13396E-03   -1.5110    
  12  norm          .10000E-03    36.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.6113        .25722E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.1021        4.5440        .16153E-03   -1.5256    
  15  norm          3.5956        3.3325        .14034E-03   -1.5329    
  16  Prefactor     .10000E-03    3.6010        .21409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.9816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    21.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     54.037        35.837        .27277E-03   -1.4236    
  20  Prefactor     .10000E-03    12.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          18.274        5.4251        .93691E-04   -1.4853    
  23  Prefactor     .10000E-03    22.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.6644        1.2063        .59009E-04   -1.5381    
  25  norm          .10000E-03    4.6791        .17436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .96360        .18421        .22665E-03   -.94260    
  27  Prefactor     1.0248        .23038        .28039E-03   -.91908    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.77678e-10
Minuit parameter uncertainties:
  1  4.90854
  2  6.34358e-07
  3  14.9166
  4  13.403
  5  1.68968
  6  1.46977e-06
  7  5.39082
  8  0.000136612
  9  26.8422
  10  2.33985e-05
  11  6.70876
  12  1.1458e-05
  13  4.03246e-06
  14  4.54434
  15  3.33264
  16  8.44285e-05
  17  2.09786e-05
  18  5.88539e-05
  19  35.8509
  20  7.03918e-06
  21  1.95682e-05
  22  5.42525
  23  9.07436e-06
  24  1.20634
  25  4.12952e-06
  26  0.184331
  27  0.230602
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  1.146e-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:  1.025e+00  2.306e-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:  9.636e-01  1.843e-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.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.80e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/279785/likelihoodResults_441244801_441504001_4FGL_J1309.4+4305_daily_bin779.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): 0
logL (Free Index) = 6850.507762
delta logL = -0.000128777391183

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6850.50763379
delta logL = -5.68402356294e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7269       1.0000          .0000       5.0000    
     3 'Normalizat'    .96360       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0248       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.

 FCN=   6849.888     FROM MIGRAD    STATUS=CONVERGED    132 CALLS      312 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1625        94.664        .90712E-02    .13694E-02
   2  alpha         3.0029        3.9631        .24543        .15545E-03
   3  Normalizat    .92915        .43630E-01    .45709E-01    .88436E-04
   4  Prefactor     1.0330        .54742E-01    .63161E-01    .36408E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.16252
  alpha      = 3.00285
  Normalizat = 0.929152
  Prefactor  = 1.03298
 **********
 **   18 **HESSE 
 **********

 FCN=   6849.888     FROM HESSE     STATUS=OK            33 CALLS      345 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1625        11.936        .15740E-03   -1.5300    
   2  alpha         3.0029        1.2909        .12305E-01    .20252    
   3  Normalizat    .92915        .18251        .23043E-03   -.95443    
   4  Prefactor     1.0330        .23031        .27935E-03   -.91638    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80385e-10
Minuit parameter uncertainties:
  1  11.9427
  2  1.35973
  3  0.182634
  4  0.230534
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279785': 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) = 6849.88823885
delta logL = 0.619394369768

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  4.163e+00  1.194e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  3.003e+00  1.360e+00  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:  1.033e+00  2.305e-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:  9.292e-01  1.826e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.26
Ra Dec: 197.363 43.085
Photon Index (Free Index): 3.00 +/- 1.36
Photon Flux (Free Index): 3.79e-08 +/- 3.79e-08
Energy Flux (Free Index): 8.37e-06 +/- 9.88e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/279785/cmap_HighResolution_441244801_441504001_4FGL_J1309.4+4305_daily_bin779.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.80e-05', comment='SUCCESS', energy_flux2='8.37e-06', dlogl='6.19e-01', photon_flux2='3.79e-08', job_status='DONE', time_completed='2021-09-07 01:16:17.660662', photon_index_error2='1.36', photon_index2='3.00', ts='-0.00', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='4.37e-08', energy_flux_error2='9.88e-06', EG='0.96', time_epoch_completed='1631002577.66', return_code='0', job_id='279785', GAL2='1.03', EG2='0.93', return_code2='0', photon_flux_error2='3.79e-08', ts2='1.26', photon_index='1.77' WHERE bin_id='779' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:16:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 279785: <4FGL_J1309.4+4305_daily_bin779> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin779> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep  7 01:00:29 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:01:07 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:01:07 2021
Terminated at Tue Sep  7 01:16:18 2021
Results reported at Tue Sep  7 01:16:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin779 197.363 43.085 441244801 441504001 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 :                                   854.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             331.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            949 sec.

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

