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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin809
RA = 197.363, Dec = 43.085
tmin = 449020801, tmax = 449280001
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='279828', job_status='RUN', time_executed='2021-09-07 01:04:30.383237', time_epoch_executed='1631001870.38' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='809'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279828

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279828/ft1_4FGL_J1309.4+4305_daily_bin809.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279828/ft2_4FGL_J1309.4+4305_daily_bin809.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279828/ft1_4FGL_J1309.4+4305_daily_bin809.fits outfile=/scratch/kocevski/279828/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin809.fits ra=197.363 dec=43.085 rad=12.0 tmin=449020801.0 tmax=449280001.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 6.54
user 5.27
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/279828/ft2_4FGL_J1309.4+4305_daily_bin809.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/279828/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin809.fits evtable="EVENTS" outfile="/scratch/kocevski/279828/ft1_filtered_4FGL_J1309.4+4305_daily_bin809.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.17
user 0.34
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/279828/ft1_filtered_4FGL_J1309.4+4305_daily_bin809.fits" evtable="EVENTS" scfile=/scratch/kocevski/279828/ft2_4FGL_J1309.4+4305_daily_bin809.fits sctable="SC_DATA" outfile=/scratch/kocevski/279828/ltcube_449020801_449280001_4FGL_J1309.4+4305_daily_bin809.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/279828/ft2_4FGL_J1309.4+4305_daily_bin809.fits
.....................!
real 16.70
user 14.61
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279828/ft1_filtered_4FGL_J1309.4+4305_daily_bin809.fits evtable="EVENTS" scfile=/scratch/kocevski/279828/ft2_4FGL_J1309.4+4305_daily_bin809.fits sctable="SC_DATA" expcube=/scratch/kocevski/279828/ltcube_449020801_449280001_4FGL_J1309.4+4305_daily_bin809.fits outfile=/scratch/kocevski/279828/expmap_449020801_449280001_4FGL_J1309.4+4305_daily_bin809.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/279828/ltcube_449020801_449280001_4FGL_J1309.4+4305_daily_bin809.fits
.....................!
real 199.36
user 187.06
sys 5.45

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/279828/ft1_filtered_4FGL_J1309.4+4305_daily_bin809.fits scfile=/scratch/kocevski/279828/ft2_4FGL_J1309.4+4305_daily_bin809.fits outfile=/scratch/kocevski/279828/cmap_449020801_449280001_4FGL_J1309.4+4305_daily_bin809.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.82
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/279828/ft1_filtered_4FGL_J1309.4+4305_daily_bin809.fits scfile=/scratch/kocevski/279828/ft2_4FGL_J1309.4+4305_daily_bin809.fits outfile=/scratch/kocevski/279828/cmap_HighResolution_449020801_449280001_4FGL_J1309.4+4305_daily_bin809.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.60
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.903       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    61.782       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.556       1.0000         .10000E-03   10000.    
     5 'norm      '    4.3623       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.4631       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    14.253       1.0000         .10000E-03   10000.    
    12 'norm      '    4.5743       1.0000         .10000E-03   10000.    
    13 'norm      '    15.321       1.0000         .10000E-03   10000.    
    14 'norm      '    .10113E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .11752E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .21872E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10643E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    54.293       1.0000         .10000E-03   10000.    
    19 'Prefactor '    97.894       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10259E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.3870       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10740E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    13.146       1.0000         .10000E-03   10000.    
    25 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3819       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .65692       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=   4255.281     FROM MIGRAD    STATUS=CONVERGED    637 CALLS     3227 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.905        9.7146       -.26651E-07    .84382E-05
   2  Prefactor     .10000E-03    13.967        .12068E-06** at limit **
   3  Prefactor     61.792        34.386       -.81097E-07    .60548E-04
   4  Prefactor     21.553        28.964        .37719E-06    .69440E-05
   5  norm          4.3625        3.6022        .64789E-07    .17407E-04
   6  Prefactor     .10000E-03    7.6844        .25115E-06** at limit **
   7  norm          5.4629        5.0147        .34868E-07    .11149E-03
   8  Prefactor     .10000E-03    37.352       -.28359E-06** at limit **
   9  Prefactor     .10000E-03    10.467        .30776E-07** at limit **
  10  Prefactor     .10000E-03    15.716        .71037E-07** at limit **
  11  norm          14.251        8.2605        .20936E-06    .35179E-03
  12  norm          4.5728        16.211        .73130E-05    .15477E-04
  13  norm          15.324        6.7182        .13263E-06    .40318E-03
  14  norm          .10000E-03    10.276        .12354E-06** at limit **
  15  norm          .10000E-03    4.0149        .83795E-07** at limit **
  16  Prefactor     .10000E-03    7.7956       -.64012E-05** at limit **
  17  Prefactor     .10000E-03    11.679       -.14558E-05** at limit **
  18  Prefactor     54.286        51.839       -.52566E-06   -.57041E-05
  19  Prefactor     97.763        105.91       -.53713E-06   -.42399E-04
  20  Prefactor     .10000E-03    22.799        .28725E-06** at limit **
  21  Prefactor     .10000E-03    13.356       -.71904E-07** at limit **
  22  norm          1.3885        2.9202        .23580E-06    .10152E-04
  23  Prefactor     .10000E-03    84.997       -.55551E-06** at limit **
  24  norm          13.146        3.3700       -.17608E-07    .74444E-04
  25  norm          .10000E-03    45.331        .98946E-06** at limit **
  26  Normalizat    1.3816        .23560        .21116E-05    .76858E-04
  27  Prefactor     .65724        .27612       -.38274E-05    .10982E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 18.9046
  Prefactor  = 0.0001
  Prefactor  = 61.7922
  Prefactor  = 21.5529
  norm       = 4.36254
  Prefactor  = 0.0001
  norm       = 5.46293
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.2511
  norm       = 4.57284
  norm       = 15.3243
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.2864
  Prefactor  = 97.7635
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.3885
  Prefactor  = 0.0001
  norm       = 13.1465
  norm       = 0.0001
  Normalizat = 1.38163
  Prefactor  = 0.657238
 **********
 **   18 **HESSE 
 **********

 FCN=   4255.281     FROM HESSE     STATUS=OK           476 CALLS     3703 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.905        9.7142        .92122E-04   -1.4838    
   2  Prefactor     .10000E-03    13.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     61.792        34.466        .51049E-04   -1.4134    
   4  Prefactor     21.553        28.933        .86271E-04   -1.4779    
   5  norm          4.3625        3.5973        .10806E-03   -1.5290    
   6  Prefactor     .10000E-03    7.7806        .17637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.4629        5.0149        .13572E-03   -1.5240    
   8  Prefactor     .10000E-03    37.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          14.251        8.2683        .10609E-03   -1.4953    
  12  norm          4.5728        16.265        .94105E-03   -1.5280    
  13  norm          15.324        6.6943        .10233E-03   -1.4925    
  14  norm          .10000E-03    10.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.0678        .12748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.8999        .34976E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     54.286        51.964        .54436E-04   -1.4233    
  19  Prefactor     97.763        105.62        .20314E-03   -1.3727    
  20  Prefactor     .10000E-03    23.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.3885        2.8665        .15700E-03   -1.5472    
  23  Prefactor     .10000E-03    85.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          13.146        3.3770        .57996E-04   -1.4983    
  25  norm          .10000E-03    45.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.3816        .27284        .23345E-03   -.81162    
  27  Prefactor     .65724        .31391        .38682E-03   -1.0523    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38942e-10
Minuit parameter uncertainties:
  1  9.71497
  2  1.50844e-05
  3  34.4776
  4  28.9516
  5  3.59751
  6  1.91637e-05
  7  5.01531
  8  0.000207395
  9  8.89232e-06
  10  4.16715e-05
  11  8.26894
  12  16.2808
  13  6.69468
  14  2.58453e-06
  15  5.38739e-07
  16  5.67104e-06
  17  2.02847e-06
  18  52.0077
  19  105.821
  20  1.07219e-05
  21  2.5876e-05
  22  2.86681
  23  0.000102744
  24  3.37703
  25  0.000220474
  26  0.273131
  27  0.314757
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  4.573e+00  1.628e+01  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.572e-01  3.148e-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.382e+00  2.731e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/279828/likelihoodResults_449020801_449280001_4FGL_J1309.4+4305_daily_bin809.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) = 4255.17281288
delta logL = 0.108175429331

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4255.17235896
delta logL = 0.108629352763

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5736       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0311       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3861       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65214       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=   4255.172     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      213 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5345        9.8835        .47056E-02    .18981E-02
   2  alpha         1.0290        .89433        .50000       -.34104E-04
   3  Normalizat    1.3860        .22649        .52719E-01    .82528E-06
   4  Prefactor     .65227        .27027        .87589E-01    .20521E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.53449
  alpha      = 1.02902
  Normalizat = 1.386
  Prefactor  = 0.652268
 **********
 **   18 **HESSE 
 **********

 FCN=   4255.172     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5345        11.318        .94113E-03   -1.5282    
   2  alpha         1.0290        1.0829        .29127E-01   -.62907    
   3  Normalizat    1.3860        .26107        .23308E-03   -.81034    
   4  Prefactor     .65227        .31064        .38804E-03   -1.0543    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.74952e-09
Minuit parameter uncertainties:
  1  11.3229
  2  1.14278
  3  0.261317
  4  0.311464
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279828': 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) = 4255.17235346
delta logL = 0.108634848596

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  4.534e+00  1.132e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.029e+00  1.143e+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:  6.523e-01  3.115e-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.386e+00  2.613e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
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/279828/cmap_HighResolution_449020801_449280001_4FGL_J1309.4+4305_daily_bin809.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.59e-05', job_status='DONE', photon_flux_upper_limit='6.00e-08', time_completed='2021-09-07 01:16:09.319308', job_id='279828', GAL2='0.65', fit_tolerance='1e-08', EG2='1.39', EG='1.38', time_epoch_completed='1631002569.32', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='1.09e-01', ts2='0.31', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='809' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:16:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 279828: <4FGL_J1309.4+4305_daily_bin809> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin809> 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) <bullet0030>, 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:16:10 2021
Results reported at Tue Sep  7 01:16:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin809 197.363 43.085 449020801 449280001 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 :                                   678.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             290.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            938 sec.

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

