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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin599
RA = 197.363, Dec = 43.085
tmin = 394588801, tmax = 394848001
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='278337', job_status='RUN', time_executed='2021-09-07 00:57:44.222886', time_epoch_executed='1631001464.22' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='599'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278337

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278337/ft1_4FGL_J1309.4+4305_daily_bin599.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278337/ft2_4FGL_J1309.4+4305_daily_bin599.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278337/ft1_4FGL_J1309.4+4305_daily_bin599.fits outfile=/scratch/kocevski/278337/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin599.fits ra=197.363 dec=43.085 rad=12.0 tmin=394588801.0 tmax=394848001.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 4.58
user 4.34
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/278337/ft2_4FGL_J1309.4+4305_daily_bin599.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/278337/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin599.fits evtable="EVENTS" outfile="/scratch/kocevski/278337/ft1_filtered_4FGL_J1309.4+4305_daily_bin599.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.56
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/278337/ft1_filtered_4FGL_J1309.4+4305_daily_bin599.fits" evtable="EVENTS" scfile=/scratch/kocevski/278337/ft2_4FGL_J1309.4+4305_daily_bin599.fits sctable="SC_DATA" outfile=/scratch/kocevski/278337/ltcube_394588801_394848001_4FGL_J1309.4+4305_daily_bin599.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/278337/ft2_4FGL_J1309.4+4305_daily_bin599.fits
.....................!
real 15.88
user 15.52
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278337/ft1_filtered_4FGL_J1309.4+4305_daily_bin599.fits evtable="EVENTS" scfile=/scratch/kocevski/278337/ft2_4FGL_J1309.4+4305_daily_bin599.fits sctable="SC_DATA" expcube=/scratch/kocevski/278337/ltcube_394588801_394848001_4FGL_J1309.4+4305_daily_bin599.fits outfile=/scratch/kocevski/278337/expmap_394588801_394848001_4FGL_J1309.4+4305_daily_bin599.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/278337/ltcube_394588801_394848001_4FGL_J1309.4+4305_daily_bin599.fits
.....................!
real 191.87
user 186.81
sys 4.31

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/278337/ft1_filtered_4FGL_J1309.4+4305_daily_bin599.fits scfile=/scratch/kocevski/278337/ft2_4FGL_J1309.4+4305_daily_bin599.fits outfile=/scratch/kocevski/278337/cmap_394588801_394848001_4FGL_J1309.4+4305_daily_bin599.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.62
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/278337/ft1_filtered_4FGL_J1309.4+4305_daily_bin599.fits scfile=/scratch/kocevski/278337/ft2_4FGL_J1309.4+4305_daily_bin599.fits outfile=/scratch/kocevski/278337/cmap_HighResolution_394588801_394848001_4FGL_J1309.4+4305_daily_bin599.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.65
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11249E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.5479       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18078       1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.072       1.0000         .10000E-03   10000.    
     5 'norm      '    4.0571       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.7109       1.0000         .10000E-03   10000.    
     7 'norm      '    3.4841       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.9171       1.0000         .10000E-03   10000.    
    11 'norm      '    5.4719       1.0000         .10000E-03   10000.    
    12 'norm      '    26.554       1.0000         .10000E-03   10000.    
    13 'norm      '    2.1286       1.0000         .10000E-03   10000.    
    14 'norm      '    4.8581       1.0000         .10000E-03   10000.    
    15 'norm      '    1.2900       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.5836       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.4907       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10602E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10773E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    45.330       1.0000         .10000E-03   10000.    
    24 'norm      '    9.3112       1.0000         .10000E-03   10000.    
    25 'norm      '    8.5971       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2865       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .85972       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=   6190.106     FROM MIGRAD    STATUS=CONVERGED    691 CALLS     3341 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    6.5278       -.42431E-06** at limit **
   2  Prefactor     7.5686        27.850        .31166E-06    .55262E-04
   3  Prefactor     .10036E-03    11.017       -.68141E-06** at limit **
   4  Prefactor     27.088        23.300       -.12250E-06    .44019E-04
   5  norm          4.0568        2.7335       -.93529E-08    .10323E-03
   6  Prefactor     3.7089        7.3716        .26903E-06   -.13976E-03
   7  norm          3.4828        4.3196        .30355E-05    .30771E-03
   8  Prefactor     .10000E-03    165.20        .33511E-05** at limit **
   9  Prefactor     .10000E-03    25.096        .29812E-06** at limit **
  10  Prefactor     5.9169        14.834       -.50199E-06   -.42928E-04
  11  norm          5.4712        5.4148        .40978E-07    .87479E-04
  12  norm          26.563        18.737        .27967E-06    .11408E-03
  13  norm          2.1313        8.2074       -.57879E-05    .11205E-03
  14  norm          4.8552        9.3823        .56553E-05   -.69920E-04
  15  norm          1.2900        1.7948        .29706E-07    .70114E-05
  16  Prefactor     2.5847        4.0288        .13334E-06    .14521E-03
  17  Prefactor     5.4814        16.548        .13497E-05    .23358E-04
  18  Prefactor     .10000E-03    10.314        .11852E-06** at limit **
  19  Prefactor     .10000E-03    23.087       -.10250E-05** at limit **
  20  Prefactor     .10000E-03    7.1602        .21185E-06** at limit **
  21  Prefactor     .10000E-03    21.629        .77714E-06** at limit **
  22  norm          .10000E-03    .88178        .66069E-07** at limit **
  23  Prefactor     45.211        90.198       -.46529E-05   -.18429E-03
  24  norm          9.3109        2.1544       -.29418E-07    .76653E-04
  25  norm          8.5983        13.379        .29105E-07   -.34093E-04
  26  Normalizat    1.2865        .19296        .31666E-05   -.99373E-05
  27  Prefactor     .85986        .22702       -.42126E-05    .20994E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100008
  Prefactor  = 7.56856
  Prefactor  = 0.000100361
  Prefactor  = 27.0881
  norm       = 4.05676
  Prefactor  = 3.70892
  norm       = 3.4828
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 5.91694
  norm       = 5.47123
  norm       = 26.5632
  norm       = 2.13133
  norm       = 4.85516
  norm       = 1.29
  Prefactor  = 2.58468
  Prefactor  = 5.4814
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 45.2112
  norm       = 9.31087
  norm       = 8.59834
  Normalizat = 1.28648
  Prefactor  = 0.85986
 **********
 **   18 **HESSE 
 **********

 FCN=   6190.106     FROM HESSE     STATUS=OK           502 CALLS     3843 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    45.864        .34182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.5686        24.990        .14597E-03   -1.5158    
   3  Prefactor     .10036E-03    22.214        .85111E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     27.088        23.261        .76995E-04   -1.4667    
   5  norm          4.0568        2.7294        .10252E-03   -1.5305    
   6  Prefactor     3.7089        7.3099        .20963E-03   -1.5323    
   7  norm          3.4828        4.3745        .88178E-03   -1.5335    
   8  Prefactor     .10000E-03    166.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    25.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.9169        14.744        .16508E-03   -1.5221    
  11  norm          5.4712        5.3930        .17060E-03   -1.5240    
  12  norm          26.563        18.740        .77740E-04   -1.4677    
  13  norm          2.1313        8.1768        .23682E-03   -1.5416    
  14  norm          4.8552        9.3656        .91252E-03   -1.5267    
  15  norm          1.2900        1.7667        .12112E-03   -1.5481    
  16  Prefactor     2.5847        3.9541        .16740E-03   -1.5386    
  17  Prefactor     5.4814        16.273        .17147E-03   -1.5240    
  18  Prefactor     .10000E-03    10.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    23.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.1827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    21.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .88309        .72145E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     45.211        90.757        .59550E-04   -1.4362    
  24  norm          9.3109        2.1585        .53315E-04   -1.5098    
  25  norm          8.5983        13.374        .13671E-03   -1.5121    
  26  Normalizat    1.2865        .22765        .22950E-03   -.83971    
  27  Prefactor     .85986        .26454        .33362E-03   -.97558    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49021e-09
Minuit parameter uncertainties:
  1  0.00122306
  2  25.0242
  3  0.00566255
  4  23.2688
  5  2.72945
  6  7.31161
  7  4.3749
  8  0.00121847
  9  0.000157306
  10  14.7533
  11  5.39349
  12  18.7437
  13  8.18104
  14  9.36845
  15  1.76678
  16  3.95447
  17  16.2865
  18  3.66675e-06
  19  0.00039642
  20  2.38093e-06
  21  0.000180633
  22  6.39333e-08
  23  91.0364
  24  2.15852
  25  13.3788
  26  0.227831
  27  0.264937
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  2.656e+01  1.874e+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:  8.599e-01  2.649e-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.286e+00  2.278e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.45
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 2.78e-08 +/- 1.96e-08
Energy Flux (Fixed Index): 3.06e-05 +/- 2.16e-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) = 6189.88599798
delta logL = 0.219972431173

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6189.87836516
delta logL = 0.227605250041

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    23.698       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1001       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2771       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86245       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6189.878     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      277 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          23.700        18.022        .82284E-04   -.79831E-03
   2  alpha         2.1000        .50556        .11184E-01   -.19107E-03
   3  Normalizat    1.2771        .21409        .23017E-03    .19987E-03
   4  Prefactor     .86246        .26095        .33303E-03    .20468E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 23.6998
  alpha      = 2.09998
  Normalizat = 1.27709
  Prefactor  = 0.86246
 **********
 **   18 **HESSE 
 **********

 FCN=   6189.878     FROM HESSE     STATUS=OK            23 CALLS      300 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          23.700        17.622        .16457E-04   -1.4734    
   2  alpha         2.1000        .49436        .44736E-03   -.16070    
   3  Normalizat    1.2771        .21419        .46034E-04   -.84253    
   4  Prefactor     .86246        .26111        .13321E-04   -.97465    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4715e-09
Minuit parameter uncertainties:
  1  17.6261
  2  0.497723
  3  0.214335
  4  0.261493
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278337': 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) = 6189.87836513
delta logL = 0.22760527525

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  2.370e+01  1.763e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  2.100e+00  4.977e-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:  8.625e-01  2.615e-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.277e+00  2.143e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.87
Ra Dec: 197.363 43.085
Photon Index (Free Index): 2.10 +/- 0.50
Photon Flux (Free Index): 4.00e-08 +/- 3.11e-08
Energy Flux (Free Index): 2.23e-05 +/- 1.73e-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/278337/cmap_HighResolution_394588801_394848001_4FGL_J1309.4+4305_daily_bin599.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.78e-08', energy_flux2='2.23e-05', photon_flux_error='1.96e-08', dlogl='2.28e-01', energy_flux='3.06e-05', photon_flux2='4.00e-08', job_status='DONE', time_completed='2021-09-07 01:10:23.260055', photon_index_error2='0.50', photon_index2='2.10', ts='5.45', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='1.73e-05', EG='1.29', time_epoch_completed='1631002223.26', return_code='0', job_id='278337', GAL2='0.86', EG2='1.28', return_code2='0', energy_flux_error='2.16e-05', photon_flux_error2='3.11e-08', ts2='5.87', photon_index='1.77' WHERE bin_id='599' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:10:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 278337: <4FGL_J1309.4+4305_daily_bin599> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin599 197.363 43.085 394588801 394848001 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 :                                   751.29 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            892 sec.

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

