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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin830
RA = 197.363, Dec = 43.085
tmin = 454464001, tmax = 454723201
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='279857', job_status='RUN', time_executed='2021-09-07 01:02:52.636465', time_epoch_executed='1631001772.64' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='830'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279857

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279857/ft1_4FGL_J1309.4+4305_daily_bin830.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279857/ft2_4FGL_J1309.4+4305_daily_bin830.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279857/ft1_4FGL_J1309.4+4305_daily_bin830.fits outfile=/scratch/kocevski/279857/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin830.fits ra=197.363 dec=43.085 rad=12.0 tmin=454464001.0 tmax=454723201.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.77
user 3.40
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/279857/ft1_filtered_4FGL_J1309.4+4305_daily_bin830.fits" evtable="EVENTS" scfile=/scratch/kocevski/279857/ft2_4FGL_J1309.4+4305_daily_bin830.fits sctable="SC_DATA" outfile=/scratch/kocevski/279857/ltcube_454464001_454723201_4FGL_J1309.4+4305_daily_bin830.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/279857/ft2_4FGL_J1309.4+4305_daily_bin830.fits
.....................!
real 18.06
user 17.45
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279857/ft1_filtered_4FGL_J1309.4+4305_daily_bin830.fits evtable="EVENTS" scfile=/scratch/kocevski/279857/ft2_4FGL_J1309.4+4305_daily_bin830.fits sctable="SC_DATA" expcube=/scratch/kocevski/279857/ltcube_454464001_454723201_4FGL_J1309.4+4305_daily_bin830.fits outfile=/scratch/kocevski/279857/expmap_454464001_454723201_4FGL_J1309.4+4305_daily_bin830.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/279857/ltcube_454464001_454723201_4FGL_J1309.4+4305_daily_bin830.fits
.....................!
real 198.78
user 187.91
sys 5.15

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/279857/ft1_filtered_4FGL_J1309.4+4305_daily_bin830.fits scfile=/scratch/kocevski/279857/ft2_4FGL_J1309.4+4305_daily_bin830.fits outfile=/scratch/kocevski/279857/cmap_454464001_454723201_4FGL_J1309.4+4305_daily_bin830.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.86
user 0.41
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/279857/ft1_filtered_4FGL_J1309.4+4305_daily_bin830.fits scfile=/scratch/kocevski/279857/ft2_4FGL_J1309.4+4305_daily_bin830.fits outfile=/scratch/kocevski/279857/cmap_HighResolution_454464001_454723201_4FGL_J1309.4+4305_daily_bin830.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.84
user 0.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15436E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    38.464       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10699E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.8415       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.9427       1.0000         .10000E-03   10000.    
    13 'norm      '    4.1700       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.9768       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .76589       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    14.031       1.0000         .10000E-03   10000.    
    23 'Prefactor '    65.677       1.0000         .10000E-03   10000.    
    24 'norm      '    5.4397       1.0000         .10000E-03   10000.    
    25 'norm      '    2.0424       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .96351       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2338       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=   6116.677     FROM MIGRAD    STATUS=CONVERGED    654 CALLS     3267 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    5.1034       -.25287E-06** at limit **
   2  Prefactor     38.447        29.367        .69915E-07   -.27307E-03
   3  Prefactor     .10001E-03    47.022        .73246E-05** at limit **
   4  Prefactor     .10000E-03    75.239       -.47967E-05** at limit **
   5  norm          1.8415        1.4823        .26491E-07   -.50143E-05
   6  Prefactor     .10000E-03    3.8619       -.98802E-07** at limit **
   7  norm          .10000E-03    2.4745       -.33134E-07** at limit **
   8  Prefactor     .10000E-03    13.764       -.17119E-05** at limit **
   9  Prefactor     .10000E-03    8.3471       -.41398E-06** at limit **
  10  Prefactor     .10000E-03    22.320       -.13485E-06** at limit **
  11  norm          .10000E-03    2.6824       -.17499E-06** at limit **
  12  norm          7.9436        11.414        .63483E-06   -.15936E-03
  13  norm          4.1705        3.5449       -.15509E-06    .18799E-03
  14  norm          .10000E-03    3.2645       -.79469E-07** at limit **
  15  norm          .10000E-03    2.5149        .80618E-08** at limit **
  16  Prefactor     5.9802        4.3190        .17334E-05   -.11458E-02
  17  Prefactor     .72118        10.246       -.20156E-05   -.70998E-04
  18  Prefactor     .10000E-03    15.305        .19314E-05** at limit **
  19  Prefactor     .10000E-03    32.775       -.38082E-05** at limit **
  20  Prefactor     .10000E-03    5.2172       -.29006E-07** at limit **
  21  Prefactor     .10000E-03    9.0262        .46657E-06** at limit **
  22  norm          14.032        5.1626        .14381E-06    .15519E-03
  23  Prefactor     65.687        75.226        .19261E-05    .99884E-04
  24  norm          5.4398        1.9851       -.59278E-08   -.14700E-03
  25  norm          2.0441        29.032        .78353E-06   -.34555E-04
  26  Normalizat    .96371        .18310       -.16794E-07    .28966E-04
  27  Prefactor     1.2335        .22083       -.40534E-06    .43734E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100016
  Prefactor  = 38.447
  Prefactor  = 0.000100014
  Prefactor  = 0.000100004
  norm       = 1.84151
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.94364
  norm       = 4.1705
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.98018
  Prefactor  = 0.721179
  Prefactor  = 0.000100001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.0316
  Prefactor  = 65.6873
  norm       = 5.43979
  norm       = 2.04412
  Normalizat = 0.963709
  Prefactor  = 1.23353
 **********
 **   18 **HESSE 
 **********

 FCN=   6116.677     FROM HESSE     STATUS=OK           484 CALLS     3751 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    38.155        .30975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     38.447        27.356        .64626E-04   -1.4467    
   3  Prefactor     .10001E-03    50.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    78.476        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.8415        1.4863        .83165E-04   -1.5437    
   6  Prefactor     .10000E-03    3.8913        .15007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.4994        .12012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.3640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    22.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.7012        .12514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.9436        11.430        .71135E-03   -1.5144    
  13  norm          4.1705        3.5239        .12799E-03   -1.5300    
  14  norm          .10000E-03    3.2703        .13768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.5516        .12106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.9802        4.7874        .64588E-03   -1.5219    
  17  Prefactor     .72118        77.137        .43301E-02   -1.5538    
  18  Prefactor     .10000E-03    15.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    33.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.2208        .17444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.0391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          14.032        5.1657        .10355E-03   -1.4959    
  23  Prefactor     65.687        76.055        .49522E-04   -1.4085    
  24  norm          5.4398        1.9873        .63239E-04   -1.5241    
  25  norm          2.0441        29.105        .28935E-03   -1.5422    
  26  Normalizat    .96371        .22220        .24929E-03   -.94256    
  27  Prefactor     1.2335        .26763        .28093E-03   -.85306    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83165e-09
Minuit parameter uncertainties:
  1  0.00154894
  2  27.3645
  3  0.00169948
  4  0.00107974
  5  1.48634
  6  3.4451e-06
  7  2.0791e-06
  8  0.000218379
  9  4.2297e-05
  10  3.08982e-05
  11  1.13519e-05
  12  11.433
  13  3.52412
  14  5.80245e-06
  15  2.60231e-06
  16  4.78772
  17  14.9358
  18  0.000249538
  19  0.000768433
  20  7.11086e-06
  21  4.47367e-05
  22  5.16584
  23  76.1676
  24  1.98731
  25  15.4352
  26  0.22241
  27  0.267922
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  7.944e+00  1.143e+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:  1.234e+00  2.679e-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.637e-01  2.224e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/279857/likelihoodResults_454464001_454723201_4FGL_J1309.4+4305_daily_bin830.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) = 6116.66550989
delta logL = 0.011706401574

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6116.66509419
delta logL = 0.012122103999

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.6614       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5968       1.0000          .0000       5.0000    
     3 'Normalizat'    .96544       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2329       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=   6116.665     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      222 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.6614        11.312        .36220E-02    .13704E-02
   2  alpha         1.5968        1.0247        .45201E-01   -.20836E-03
   3  Normalizat    .96536        .17421        .45732E-01    .10864E-04
   4  Prefactor     1.2330        .21998        .63523E-01    .82560E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.66141
  alpha      = 1.59679
  Normalizat = 0.965356
  Prefactor  = 1.23304
 **********
 **   18 **HESSE 
 **********

 FCN=   6116.665     FROM HESSE     STATUS=OK            29 CALLS      251 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.6614        11.471        .14488E-03   -1.5154    
   2  alpha         1.5968        1.0400        .90402E-02   -.36965    
   3  Normalizat    .96536        .21032        .24909E-03   -.94200    
   4  Prefactor     1.2330        .26556        .28097E-03   -.85321    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35873e-09
Minuit parameter uncertainties:
  1  11.4746
  2  1.07798
  3  0.210505
  4  0.265846
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279857': 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) = 6116.6650941
delta logL = 0.0121222008711

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  7.661e+00  1.147e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.597e+00  1.078e+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.233e+00  2.658e-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.654e-01  2.105e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.87
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/279857/cmap_HighResolution_454464001_454723201_4FGL_J1309.4+4305_daily_bin830.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.04e-05', job_status='DONE', photon_flux_upper_limit='4.59e-08', time_completed='2021-09-07 01:17:09.782884', job_id='279857', GAL2='1.23', fit_tolerance='1e-08', EG2='0.97', EG='0.96', time_epoch_completed='1631002629.78', return_code2='0', ts='0.87', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='1.21e-02', ts2='0.89', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='830' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:17:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 279857: <4FGL_J1309.4+4305_daily_bin830> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin830> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep  7 01:00:34 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:02:02 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:02:02 2021
Terminated at Tue Sep  7 01:17:12 2021
Results reported at Tue Sep  7 01:17:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin830 197.363 43.085 454464001 454723201 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 :                                   837.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            998 sec.

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

