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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin811
RA = 197.363, Dec = 43.085
tmin = 449539201, tmax = 449798401
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='279831', job_status='RUN', time_executed='2021-09-07 01:04:11.492786', time_epoch_executed='1631001851.49' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='811'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279831

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279831/ft1_4FGL_J1309.4+4305_daily_bin811.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279831/ft2_4FGL_J1309.4+4305_daily_bin811.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279831/ft1_4FGL_J1309.4+4305_daily_bin811.fits outfile=/scratch/kocevski/279831/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin811.fits ra=197.363 dec=43.085 rad=12.0 tmin=449539201.0 tmax=449798401.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 7.90
user 5.51
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/279831/ft1_filtered_4FGL_J1309.4+4305_daily_bin811.fits" evtable="EVENTS" scfile=/scratch/kocevski/279831/ft2_4FGL_J1309.4+4305_daily_bin811.fits sctable="SC_DATA" outfile=/scratch/kocevski/279831/ltcube_449539201_449798401_4FGL_J1309.4+4305_daily_bin811.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/279831/ft2_4FGL_J1309.4+4305_daily_bin811.fits
.....................!
real 18.14
user 15.39
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279831/ft1_filtered_4FGL_J1309.4+4305_daily_bin811.fits evtable="EVENTS" scfile=/scratch/kocevski/279831/ft2_4FGL_J1309.4+4305_daily_bin811.fits sctable="SC_DATA" expcube=/scratch/kocevski/279831/ltcube_449539201_449798401_4FGL_J1309.4+4305_daily_bin811.fits outfile=/scratch/kocevski/279831/expmap_449539201_449798401_4FGL_J1309.4+4305_daily_bin811.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/279831/ltcube_449539201_449798401_4FGL_J1309.4+4305_daily_bin811.fits
.....................!
real 212.87
user 186.53
sys 4.95

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/279831/ft1_filtered_4FGL_J1309.4+4305_daily_bin811.fits scfile=/scratch/kocevski/279831/ft2_4FGL_J1309.4+4305_daily_bin811.fits outfile=/scratch/kocevski/279831/cmap_449539201_449798401_4FGL_J1309.4+4305_daily_bin811.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.59
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/279831/ft1_filtered_4FGL_J1309.4+4305_daily_bin811.fits scfile=/scratch/kocevski/279831/ft2_4FGL_J1309.4+4305_daily_bin811.fits outfile=/scratch/kocevski/279831/cmap_HighResolution_449539201_449798401_4FGL_J1309.4+4305_daily_bin811.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.56
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17468E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    43.158       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.8772       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.1855       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.225       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.7533       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9381       1.0000         .10000E-03   10000.    
    11 'norm      '    2.4475       1.0000         .10000E-03   10000.    
    12 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .11823E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    23.959       1.0000         .10000E-03   10000.    
    15 'norm      '    4.8477       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12708E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    35.058       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    127.15       1.0000         .10000E-03   10000.    
    22 'norm      '    7.1953       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .15560E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    5.8998       1.0000         .10000E-03   10000.    
    25 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .94371       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .80497       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=   3705.551     FROM MIGRAD    STATUS=CONVERGED    670 CALLS     3361 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.3991        .41825E-06** at limit **
   2  Prefactor     .10000E-03    46.610        .16342E-05** at limit **
   3  Prefactor     43.165        28.736        .32417E-06   -.47184E-06
   4  Prefactor     .10000E-03    8.6130        .41961E-07** at limit **
   5  norm          2.8773        2.2540        .32090E-07   -.28823E-05
   6  Prefactor     .10000E-03    2.1847        .93450E-07** at limit **
   7  norm          7.1858        6.5590       -.14467E-06   -.28982E-04
   8  Prefactor     14.252        79.455       -.31609E-05    .73167E-05
   9  Prefactor     8.7551        26.287        .61880E-07   -.12411E-04
  10  Prefactor     1.9380        20.061        .74714E-05   -.20374E-04
  11  norm          2.4473        5.2942       -.36520E-06   -.19241E-04
  12  norm          .10000E-03    19.989       -.18116E-06** at limit **
  13  norm          .10006E-03    5.2787        .95833E-07** at limit **
  14  norm          23.959        12.943        .45125E-06   -.15304E-03
  15  norm          4.8470        4.9996        .64462E-07    .14747E-03
  16  Prefactor     .10000E-03    1.8818       -.13866E-06** at limit **
  17  Prefactor     .10000E-03    19.418        .48142E-06** at limit **
  18  Prefactor     .10000E-03    200.49       -.14596E-04** at limit **
  19  Prefactor     35.031        73.292        .25237E-05   -.17586E-04
  20  Prefactor     .10000E-03    6.1172       -.22259E-07** at limit **
  21  Prefactor     127.12        66.158        .27305E-05    .10248E-03
  22  norm          7.1968        5.5203        .40938E-07    .83413E-04
  23  Prefactor     .10000E-03    305.44        .19371E-04** at limit **
  24  norm          5.8993        2.8466       -.83806E-07    .42433E-04
  25  norm          .10000E-03    12.491        .14792E-07** at limit **
  26  Normalizat    .94355        .21226        .23029E-06   -.48388E-04
  27  Prefactor     .80508        .25431       -.14514E-05   -.30813E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.1655
  Prefactor  = 0.0001
  norm       = 2.87732
  Prefactor  = 0.0001
  norm       = 7.18583
  Prefactor  = 14.2521
  Prefactor  = 8.75511
  Prefactor  = 1.93803
  norm       = 2.44726
  norm       = 0.0001
  norm       = 0.000100062
  norm       = 23.9589
  norm       = 4.84697
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 35.0311
  Prefactor  = 0.0001
  Prefactor  = 127.12
  norm       = 7.1968
  Prefactor  = 0.000100001
  norm       = 5.89929
  norm       = 0.0001
  Normalizat = 0.943552
  Prefactor  = 0.805077
 **********
 **   18 **HESSE 
 **********

 FCN=   3705.551     FROM HESSE     STATUS=OK           490 CALLS     3851 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    15.296        .29644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    47.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     43.165        28.749        .61024E-04   -1.4393    
   4  Prefactor     .10000E-03    8.6174        .17450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.8773        2.2505        .78540E-04   -1.5369    
   6  Prefactor     .10000E-03    2.1870        .87876E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.1858        6.5423        .13486E-03   -1.5172    
   8  Prefactor     14.252        78.985        .10620E-03   -1.4953    
   9  Prefactor     8.7551        26.177        .13548E-03   -1.5116    
  10  Prefactor     1.9380        19.866        .14912E-02   -1.5430    
  11  norm          2.4473        5.2602        .19286E-03   -1.5395    
  12  norm          .10000E-03    20.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10006E-03    42.866        .22305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          23.959        10.982        .81835E-04   -1.4729    
  15  norm          4.8470        4.9902        .13193E-03   -1.5268    
  16  Prefactor     .10000E-03    1.8899        .81456E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    205.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     35.031        73.137        .67682E-04   -1.4524    
  20  Prefactor     .10000E-03    6.1200        .14704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     127.12        66.976        .17850E-03   -1.3448    
  22  norm          7.1968        5.5159        .11972E-03   -1.5171    
  23  Prefactor     .10000E-03    303.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          5.8993        2.8488        .65847E-04   -1.5222    
  25  norm          .10000E-03    12.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .94355        .25366        .22808E-03   -.94946    
  27  Prefactor     .80508        .30289        .29990E-03   -.99541    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49707e-09
Minuit parameter uncertainties:
  1  0.000105073
  2  6.70208e-05
  3  28.7579
  4  1.29068e-06
  5  2.2506
  6  4.06271e-07
  7  6.54294
  8  67.2393
  9  26.2112
  10  12.415
  11  5.26119
  12  9.17948e-05
  13  0.00325478
  14  10.9826
  15  4.99064
  16  8.01617e-06
  17  7.14688e-05
  18  0.000906541
  19  73.3247
  20  2.7222e-06
  21  67.0164
  22  5.51633
  23  0.00105597
  24  2.84884
  25  1.39163e-06
  26  0.25398
  27  0.303522
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  9.179e-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.051e-01  3.035e-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.436e-01  2.540e-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: 5.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.87e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/279831/likelihoodResults_449539201_449798401_4FGL_J1309.4+4305_daily_bin811.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) = 3705.55104288
delta logL = -0.000237648056554

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3705.55080573
delta logL = -4.9552636483e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10237E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4024       1.0000          .0000       5.0000    
     3 'Normalizat'    .94356       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80508       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=   3705.551     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      278 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10440E-03    3.3561        .73898E-01** at limit **
   2  alpha         2.2637        2.9607        .50000        .53447E-05
   3  Normalizat    .94355        .27909E-02    .22808E-03   -.31477E-04
   4  Prefactor     .80508        .34301E-02    .29990E-03   -.13704E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000104396
  alpha      = 2.26368
  Normalizat = 0.943552
  Prefactor  = 0.805077
 **********
 **   18 **HESSE 
 **********

 FCN=   3705.551     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      309 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10440E-03    206.87        .38891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2637        2.9474        .50000       -.94671E-01
   3  Normalizat    .94355        .16348E-01    .91233E-05   -.94946    
   4  Prefactor     .80508        .20092E-01    .11996E-04   -.99541    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.17157e-08
Minuit parameter uncertainties:
  1  0.0605246
  2  671.519
  3  0.0163485
  4  0.0200926
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279831': 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) = 3705.55080537
delta logL = -1.41335931403e-07

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.044e-04  6.052e-02  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  2.264e+00  6.715e+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:  8.051e-01  2.009e-02  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.436e-01  1.635e-02  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/279831/cmap_HighResolution_449539201_449798401_4FGL_J1309.4+4305_daily_bin811.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.87e-05', job_status='DONE', photon_flux_upper_limit='5.34e-08', time_completed='2021-09-07 01:15:32.480786', job_id='279831', GAL2='0.81', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1631002532.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='-1.41e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='811' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:15:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 279831: <4FGL_J1309.4+4305_daily_bin811> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin811> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep  7 01:00:32 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:01:24 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:24 2021
Terminated at Tue Sep  7 01:15:33 2021
Results reported at Tue Sep  7 01:15:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin811 197.363 43.085 449539201 449798401 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 :                                   645.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             272.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            901 sec.

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

