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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin621
RA = 197.363, Dec = 43.085
tmin = 400291201, tmax = 400550401
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='278372', job_status='RUN', time_executed='2021-09-07 00:56:08.507884', time_epoch_executed='1631001368.51' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='621'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278372

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278372/ft1_4FGL_J1309.4+4305_daily_bin621.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278372/ft2_4FGL_J1309.4+4305_daily_bin621.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278372/ft1_4FGL_J1309.4+4305_daily_bin621.fits outfile=/scratch/kocevski/278372/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin621.fits ra=197.363 dec=43.085 rad=12.0 tmin=400291201.0 tmax=400550401.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.35
user 3.12
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278372/ft1_filtered_4FGL_J1309.4+4305_daily_bin621.fits evtable="EVENTS" scfile=/scratch/kocevski/278372/ft2_4FGL_J1309.4+4305_daily_bin621.fits sctable="SC_DATA" expcube=/scratch/kocevski/278372/ltcube_400291201_400550401_4FGL_J1309.4+4305_daily_bin621.fits outfile=/scratch/kocevski/278372/expmap_400291201_400550401_4FGL_J1309.4+4305_daily_bin621.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/278372/ltcube_400291201_400550401_4FGL_J1309.4+4305_daily_bin621.fits
.....................!
real 194.08
user 187.67
sys 5.52

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/278372/ft1_filtered_4FGL_J1309.4+4305_daily_bin621.fits scfile=/scratch/kocevski/278372/ft2_4FGL_J1309.4+4305_daily_bin621.fits outfile=/scratch/kocevski/278372/cmap_400291201_400550401_4FGL_J1309.4+4305_daily_bin621.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.58
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/278372/ft1_filtered_4FGL_J1309.4+4305_daily_bin621.fits scfile=/scratch/kocevski/278372/ft2_4FGL_J1309.4+4305_daily_bin621.fits outfile=/scratch/kocevski/278372/cmap_HighResolution_400291201_400550401_4FGL_J1309.4+4305_daily_bin621.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/278372/ft1_filtered_4FGL_J1309.4+4305_daily_bin621.fits evtable="EVENTS" scfile=/scratch/kocevski/278372/ft2_4FGL_J1309.4+4305_daily_bin621.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/278372/Model_4FGL_J1309.4+4305_daily_bin621.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/278372/ft1_filtered_4FGL_J1309.4+4305_daily_bin621.fits....................!
real 48.68
user 47.25
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9363       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .33356E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12265E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7508       1.0000         .10000E-03   10000.    
     5 'norm      '    6.2869       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.1964       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10274E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.580       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .41567E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.5769       1.0000         .10000E-03   10000.    
    12 'norm      '    31.638       1.0000         .10000E-03   10000.    
    13 'norm      '    1.6780       1.0000         .10000E-03   10000.    
    14 'norm      '    21.454       1.0000         .10000E-03   10000.    
    15 'norm      '    .79214       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.1653       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .43573E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .53025       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .17982E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .14222E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    14.835       1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.977       1.0000         .10000E-03   10000.    
    24 'norm      '    5.1986       1.0000         .10000E-03   10000.    
    25 'norm      '    .21072E-02   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .80282       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0918       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=   5837.563     FROM MIGRAD    STATUS=CONVERGED    743 CALLS     2941 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8916        7.4342       -.43324E-06   -.12112E-03
   2  Prefactor     .38072        14.679        .40999E-06   -.11177E-03
   3  Prefactor     .10000E-03    5.1892        .15420E-07** at limit **
   4  Prefactor     1.7652        18.731       -.19558E-04   -.13518E-03
   5  norm          6.2860        2.5237       -.37965E-07    .14450E-05
   6  Prefactor     .10000E-03    3.8020        .19402E-06** at limit **
   7  norm          2.2028        3.0300        .75505E-07    .26176E-05
   8  Prefactor     .10000E-03    50.463       -.10959E-04** at limit **
   9  Prefactor     38.374        20.987       -.15690E-05   -.48105E-04
  10  Prefactor     .10000E-03    6.5725        .79642E-07** at limit **
  11  norm          2.5795        2.5788        .42264E-07    .52772E-04
  12  norm          31.804        17.595       -.63613E-06    .21047E-04
  13  norm          1.7358        7.6695        .40858E-06   -.12617E-03
  14  norm          21.393        13.915       -.48005E-07   -.88473E-05
  15  norm          .78090        2.6470       -.54615E-06   -.27148E-03
  16  Prefactor     2.1673        2.0348       -.40493E-08    .18824E-04
  17  Prefactor     .10000E-03    9.6229       -.14837E-07** at limit **
  18  Prefactor     1.4748        19.367        .62994E-05   -.54747E-03
  19  Prefactor     .10000E-03    15.421        .20006E-07** at limit **
  20  Prefactor     .10000E-03    13.960       -.15640E-06** at limit **
  21  Prefactor     .10000E-03    44.096        .55853E-05** at limit **
  22  norm          14.855        5.5762       -.19385E-06   -.70037E-04
  23  Prefactor     19.873        54.839       -.35325E-05   -.75762E-05
  24  norm          5.1971        1.6742       -.54341E-07   -.79706E-04
  25  norm          .10000E-03    22.540        .34194E-06** at limit **
  26  Normalizat    .80141        .16056        .13461E-06    .54888E-04
  27  Prefactor     1.0918        .20211        .10715E-05    .57666E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.89165
  Prefactor  = 0.380721
  Prefactor  = 0.0001
  Prefactor  = 1.76515
  norm       = 6.28601
  Prefactor  = 0.0001
  norm       = 2.20283
  Prefactor  = 0.0001
  Prefactor  = 38.3744
  Prefactor  = 0.0001
  norm       = 2.57948
  norm       = 31.8043
  norm       = 1.73584
  norm       = 21.3932
  norm       = 0.780899
  Prefactor  = 2.16731
  Prefactor  = 0.0001
  Prefactor  = 1.47477
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.8549
  Prefactor  = 19.8726
  norm       = 5.19714
  norm       = 0.0001
  Normalizat = 0.801413
  Prefactor  = 1.0918
 **********
 **   18 **HESSE 
 **********

 FCN=   5837.563     FROM HESSE     STATUS=OK           494 CALLS     3435 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8916        7.5369        .23704E-03   -1.5368    
   2  Prefactor     .38072        129.45        .50534E-02   -1.5585    
   3  Prefactor     .10000E-03    5.1933        .16998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.7652        19.078        .31686E-03   -1.5442    
   5  norm          6.2860        2.5237        .74598E-04   -1.5206    
   6  Prefactor     .10000E-03    3.8714        .14550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.2028        3.0086        .15005E-03   -1.5411    
   8  Prefactor     .10000E-03    50.704        .20745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     38.374        20.852        .64529E-04   -1.4468    
  10  Prefactor     .10000E-03    6.6219        .19126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.5795        2.5835        .11937E-03   -1.5387    
  12  norm          31.804        17.594        .71236E-04   -1.4579    
  13  norm          1.7358        6.6509        .24990E-03   -1.5444    
  14  norm          21.393        12.741        .86475E-04   -1.4783    
  15  norm          .78090        2.6058        .21806E-03   -1.5531    
  16  Prefactor     2.1673        2.0307        .10110E-03   -1.5414    
  17  Prefactor     .10000E-03    9.7778        .21224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.4748        86.212        .22787E-02   -1.5465    
  19  Prefactor     .10000E-03    15.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    44.597        .20512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          14.855        5.5911        .10399E-03   -1.4937    
  23  Prefactor     19.873        55.094        .91942E-04   -1.4816    
  24  norm          5.1971        1.6745        .53897E-04   -1.5252    
  25  norm          .10000E-03    22.937        .20181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .80141        .19146        .23753E-03   -1.0002    
  27  Prefactor     1.0918        .24137        .26659E-03   -.89729    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06689e-08
Minuit parameter uncertainties:
  1  7.53939
  2  14.0696
  3  1.86825e-06
  4  11.6105
  5  2.52371
  6  5.12195e-05
  7  3.00884
  8  0.000288083
  9  20.856
  10  2.14154e-05
  11  2.58362
  12  17.597
  13  6.65372
  14  12.7425
  15  2.60622
  16  2.03075
  17  5.27692e-06
  18  22.5849
  19  2.84107e-07
  20  2.49012e-06
  21  1.09077e-05
  22  5.59134
  23  55.2358
  24  1.67449
  25  1.96913e-05
  26  0.191617
  27  0.241612
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  3.180e+01  1.760e+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.092e+00  2.416e-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:  8.014e-01  1.916e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.10
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 3.33e-08 +/- 1.84e-08
Energy Flux (Fixed Index): 3.66e-05 +/- 2.03e-05

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) = 5837.4915926
delta logL = 0.0710429288019

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5837.49144499
delta logL = 0.0711905397156

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    31.923       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5983       1.0000          .0000       5.0000    
     3 'Normalizat'    .80669       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0902       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=   5837.491     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      204 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          31.996        27.632        .17730E-02   -.73363E-04
   2  alpha         1.6007        .58622        .31543       -.50452E-04
   3  Normalizat    .80662        .15693        .43698E-01   -.33734E-03
   4  Prefactor     1.0901        .20129        .60326E-01   -.29103E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 31.996
  alpha      = 1.60073
  Normalizat = 0.806615
  Prefactor  = 1.09011
 **********
 **   18 **HESSE 
 **********

 FCN=   5837.491     FROM HESSE     STATUS=OK            27 CALLS      231 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          31.996        18.164        .70918E-04   -1.4576    
   2  alpha         1.6007        .43861        .12172E-01   -.36795    
   3  Normalizat    .80662        .18426        .23681E-03   -.99824    
   4  Prefactor     1.0901        .23890        .26679E-03   -.89783    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91656e-10
Minuit parameter uncertainties:
  1  18.1675
  2  0.441238
  3  0.1844
  4  0.239133
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278372': 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) = 5837.49142394
delta logL = 0.0712115967144

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  3.200e+01  1.817e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.601e+00  4.412e-01  0.000e+00  5.000e+00 ( 1.000e+00)
351         beta:  8.354e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
352           Eb:  1.387e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  1.090e+00  2.391e-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:  8.066e-01  1.844e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.22
Ra Dec: 197.363 43.085
Photon Index (Free Index): 1.60 +/- 0.44
Photon Flux (Free Index): 2.77e-08 +/- 2.07e-08
Energy Flux (Free Index): 4.62e-05 +/- 4.00e-05

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/278372/cmap_HighResolution_400291201_400550401_4FGL_J1309.4+4305_daily_bin621.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.33e-08', energy_flux2='4.62e-05', photon_flux_error='1.84e-08', dlogl='7.12e-02', energy_flux='3.66e-05', photon_flux2='2.77e-08', job_status='DONE', time_completed='2021-09-07 01:08:10.003203', photon_index_error2='0.44', photon_index2='1.60', ts='13.10', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='4.00e-05', EG='0.80', time_epoch_completed='1631002090.0', return_code='0', job_id='278372', GAL2='1.09', EG2='0.81', return_code2='0', energy_flux_error='2.03e-05', photon_flux_error2='2.07e-08', ts2='13.22', photon_index='1.77' WHERE bin_id='621' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:08:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 278372: <4FGL_J1309.4+4305_daily_bin621> in cluster <slac> Done

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

Your job looked like:

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

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

