/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 208 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 = 7398
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1309.4+4305_daily_bin340
RA = 197.363, Dec = 43.085
tmin = 327456001, tmax = 327715201
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='276779', job_status='RUN', time_executed='2021-09-07 00:54:34.503410', time_epoch_executed='1631001274.5' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='340'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/276779

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/276779/ft1_4FGL_J1309.4+4305_daily_bin340.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/276779/ft2_4FGL_J1309.4+4305_daily_bin340.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/276779/ft1_4FGL_J1309.4+4305_daily_bin340.fits outfile=/scratch/kocevski/276779/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin340.fits ra=197.363 dec=43.085 rad=12.0 tmin=327456001.0 tmax=327715201.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.33
user 3.06
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/276779/ft1_filtered_4FGL_J1309.4+4305_daily_bin340.fits evtable="EVENTS" scfile=/scratch/kocevski/276779/ft2_4FGL_J1309.4+4305_daily_bin340.fits sctable="SC_DATA" expcube=/scratch/kocevski/276779/ltcube_327456001_327715201_4FGL_J1309.4+4305_daily_bin340.fits outfile=/scratch/kocevski/276779/expmap_327456001_327715201_4FGL_J1309.4+4305_daily_bin340.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/276779/ltcube_327456001_327715201_4FGL_J1309.4+4305_daily_bin340.fits
.....................!
real 191.67
user 185.65
sys 5.58

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/276779/ft1_filtered_4FGL_J1309.4+4305_daily_bin340.fits scfile=/scratch/kocevski/276779/ft2_4FGL_J1309.4+4305_daily_bin340.fits outfile=/scratch/kocevski/276779/cmap_327456001_327715201_4FGL_J1309.4+4305_daily_bin340.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/276779/ft1_filtered_4FGL_J1309.4+4305_daily_bin340.fits scfile=/scratch/kocevski/276779/ft2_4FGL_J1309.4+4305_daily_bin340.fits outfile=/scratch/kocevski/276779/cmap_HighResolution_327456001_327715201_4FGL_J1309.4+4305_daily_bin340.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.6798       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.1271       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .79369       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.142       1.0000         .10000E-03   10000.    
    11 'norm      '    1.6936       1.0000         .10000E-03   10000.    
    12 'norm      '    11.749       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.492       1.0000         .10000E-03   10000.    
    21 'Prefactor '    26.232       1.0000         .10000E-03   10000.    
    22 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.154       1.0000         .10000E-03   10000.    
    24 'norm      '    .70933       1.0000         .10000E-03   10000.    
    25 'norm      '    29.365       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2878       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .66636       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=   5255.214     FROM MIGRAD    STATUS=CONVERGED    624 CALLS     2801 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.6763        7.1977        .23816E-05   -.38638E-03
   2  Prefactor     .10000E-03    25.134       -.81801E-06** at limit **
   3  Prefactor     .10000E-03    23.794        .37392E-06** at limit **
   4  Prefactor     .10000E-03    10.268        .51820E-06** at limit **
   5  norm          1.1271        1.8442        .15901E-06   -.70806E-04
   6  Prefactor     .10000E-03    2.4167       -.32955E-07** at limit **
   7  norm          .79305        3.5724        .13426E-05   -.10206E-03
   8  Prefactor     .10000E-03    18.279        .10156E-06** at limit **
   9  Prefactor     .10000E-03    13.832       -.44584E-06** at limit **
  10  Prefactor     20.135        17.461       -.89308E-06   -.12457E-03
  11  norm          1.6937        6.0569        .13138E-05   -.69343E-04
  12  norm          11.749        12.277        .48448E-07   -.94026E-06
  13  norm          .10000E-03    1.3712       -.21571E-07** at limit **
  14  norm          .10000E-03    1.5441       -.96172E-08** at limit **
  15  norm          .10000E-03    .89897        .16313E-07** at limit **
  16  Prefactor     .10000E-03    .81053       -.19601E-07** at limit **
  17  Prefactor     .10000E-03    12.585        .13349E-06** at limit **
  18  Prefactor     .10000E-03    9.8749       -.31319E-06** at limit **
  19  Prefactor     .10000E-03    24.222        .17533E-06** at limit **
  20  Prefactor     17.491        18.277       -.15370E-07   -.51398E-05
  21  Prefactor     26.234        22.242        .25137E-06    .31349E-04
  22  norm          .10000E-03    1.1624        .13044E-07** at limit **
  23  Prefactor     12.123        45.875       -.83192E-05   -.12039E-03
  24  norm          .70932        .71470        .19350E-08    .71413E-04
  25  norm          29.365        18.267        .13545E-06   -.48553E-05
  26  Normalizat    1.2879        .17215        .41683E-06   -.86778E-04
  27  Prefactor     .66626        .20853       -.14111E-05   -.15157E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.67628
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.12707
  Prefactor  = 0.0001
  norm       = 0.793055
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.1347
  norm       = 1.69373
  norm       = 11.7486
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.491
  Prefactor  = 26.2339
  norm       = 0.0001
  Prefactor  = 12.1229
  norm       = 0.709322
  norm       = 29.3654
  Normalizat = 1.28787
  Prefactor  = 0.666262
 **********
 **   18 **HESSE 
 **********

 FCN=   5255.214     FROM HESSE     STATUS=OK           484 CALLS     3285 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.6763        7.3755        .77629E-03   -1.5191    
   2  Prefactor     .10000E-03    25.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    24.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.1271        1.8010        .12212E-03   -1.5496    
   6  Prefactor     .10000E-03    2.4230        .11000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .79305        3.5338        .26506E-03   -1.5530    
   8  Prefactor     .10000E-03    18.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     20.135        17.127        .89245E-04   -1.4810    
  11  norm          1.6937        5.9193        .28599E-03   -1.5448    
  12  norm          11.749        12.276        .11687E-03   -1.5022    
  13  norm          .10000E-03    1.3840        .82859E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.5448        .87971E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .90038        .67122E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .81665        .63713E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.079        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.8963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    24.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     17.491        18.314        .95764E-04   -1.4871    
  21  Prefactor     26.234        22.240        .78216E-04   -1.4683    
  22  norm          .10000E-03    1.1634        .76281E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     12.123        48.913        .11490E-03   -1.5011    
  24  norm          .70932        .73211        .59753E-03   -1.5540    
  25  norm          29.365        18.276        .73934E-04   -1.4624    
  26  Normalizat    1.2879        .19532        .19613E-03   -.83929    
  27  Prefactor     .66626        .23458        .32484E-03   -1.0486    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.80277e-10
Minuit parameter uncertainties:
  1  7.37646
  2  0.000201456
  3  2.3037e-06
  4  4.3315e-05
  5  1.80109
  6  1.99369e-06
  7  3.34827
  8  6.35512e-06
  9  5.94805e-05
  10  17.1314
  11  5.92138
  12  12.2791
  13  2.81651e-06
  14  1.06473e-06
  15  1.13625e-07
  16  4.0075e-07
  17  2.36324e-06
  18  3.12371e-05
  19  3.05466e-05
  20  18.3199
  21  22.2473
  22  1.00369e-07
  23  48.771
  24  0.732119
  25  18.2799
  26  0.195431
  27  0.234926
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.175e+01  1.228e+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.663e-01  2.349e-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.288e+00  1.954e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.76
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.23e-08 +/- 1.29e-08
Energy Flux (Fixed Index): 1.35e-05 +/- 1.41e-05

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

Saving results to:
/scratch/kocevski/276779/likelihoodResults_327456001_327715201_4FGL_J1309.4+4305_daily_bin340.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) = 5253.87839199
delta logL = 1.33546450286

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5253.56458553
delta logL = 1.64927095875

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2398       1.0000         .10000E-03   10000.    
     2 'alpha     '    .34208       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2844       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67926       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=   5253.565     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      223 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2308        2.8014        .68657E-02   -.59097E-03
   2  alpha         .34072        .50087        .43841        .31545E-04
   3  Normalizat    1.2842        .16686        .33091E-01   -.10185E-03
   4  Prefactor     .67936        .20671        .72772E-01    .38443E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.23079
  alpha      = 0.340723
  Normalizat = 1.28424
  Prefactor  = 0.679361
 **********
 **   18 **HESSE 
 **********

 FCN=   5253.565     FROM HESSE     STATUS=OK            31 CALLS      254 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2308        5.8986        .10621E-03   -1.5409    
   2  alpha         .34072        .82660        .23148E-01   -1.0426    
   3  Normalizat    1.2842        .18921        .19622E-03   -.84038    
   4  Prefactor     .67936        .23400        .32210E-03   -1.0434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.39346e-11
Minuit parameter uncertainties:
  1  5.90016
  2  0.90159
  3  0.189309
  4  0.23434
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/276779': 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) = 5253.5645845
delta logL = 1.64927199126

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  2.231e+00  5.900e+00  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  3.407e-01  9.016e-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:  6.794e-01  2.343e-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.284e+00  1.893e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.06
Ra Dec: 197.363 43.085
Photon Index (Free Index): 0.34 +/- 0.90
Photon Flux (Free Index): 3.84e-09 +/- 4.21e-09
Energy Flux (Free Index): 1.04e-04 +/- 1.25e-04

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/276779/cmap_HighResolution_327456001_327715201_4FGL_J1309.4+4305_daily_bin340.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.39e-05', comment='SUCCESS', photon_flux='1.23e-08', energy_flux2='1.04e-04', photon_flux_error='1.29e-08', dlogl='1.65e+00', energy_flux='1.35e-05', photon_flux2='3.84e-09', job_status='DONE', time_completed='2021-09-07 01:06:36.467038', photon_index_error2='0.90', photon_index2='0.34', ts='1.76', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', photon_flux_upper_limit='4.90e-08', energy_flux_error2='1.25e-04', EG='1.29', time_epoch_completed='1631001996.47', return_code='0', job_id='276779', GAL2='0.68', EG2='1.28', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='4.21e-09', ts2='5.06', photon_index='1.77' WHERE bin_id='340' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:06:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0014>
Subject: Job 276779: <4FGL_J1309.4+4305_daily_bin340> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin340> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 00:50:34 2021
Job was executed on host(s) <bullet0014>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:50:57 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:50:57 2021
Terminated at Tue Sep  7 01:06:37 2021
Results reported at Tue Sep  7 01:06:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin340 197.363 43.085 327456001 327715201 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 :                                   720.29 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             276.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            963 sec.

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

