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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin336
RA = 197.363, Dec = 43.085
tmin = 326419201, tmax = 326678401
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='276769', job_status='RUN', time_executed='2021-09-07 00:54:19.141453', time_epoch_executed='1631001259.14' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='336'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/276769

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/276769/ft1_4FGL_J1309.4+4305_daily_bin336.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/276769/ft2_4FGL_J1309.4+4305_daily_bin336.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/276769/ft1_4FGL_J1309.4+4305_daily_bin336.fits outfile=/scratch/kocevski/276769/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin336.fits ra=197.363 dec=43.085 rad=12.0 tmin=326419201.0 tmax=326678401.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 2.80
user 2.59
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/276769/ft1_filtered_4FGL_J1309.4+4305_daily_bin336.fits" evtable="EVENTS" scfile=/scratch/kocevski/276769/ft2_4FGL_J1309.4+4305_daily_bin336.fits sctable="SC_DATA" outfile=/scratch/kocevski/276769/ltcube_326419201_326678401_4FGL_J1309.4+4305_daily_bin336.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/276769/ft2_4FGL_J1309.4+4305_daily_bin336.fits
.....................!
real 11.34
user 10.92
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/276769/ft1_filtered_4FGL_J1309.4+4305_daily_bin336.fits evtable="EVENTS" scfile=/scratch/kocevski/276769/ft2_4FGL_J1309.4+4305_daily_bin336.fits sctable="SC_DATA" expcube=/scratch/kocevski/276769/ltcube_326419201_326678401_4FGL_J1309.4+4305_daily_bin336.fits outfile=/scratch/kocevski/276769/expmap_326419201_326678401_4FGL_J1309.4+4305_daily_bin336.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/276769/ltcube_326419201_326678401_4FGL_J1309.4+4305_daily_bin336.fits
.....................!
real 155.72
user 151.06
sys 4.07

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/276769/ft1_filtered_4FGL_J1309.4+4305_daily_bin336.fits scfile=/scratch/kocevski/276769/ft2_4FGL_J1309.4+4305_daily_bin336.fits outfile=/scratch/kocevski/276769/cmap_326419201_326678401_4FGL_J1309.4+4305_daily_bin336.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.48
user 0.35
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/276769/ft1_filtered_4FGL_J1309.4+4305_daily_bin336.fits scfile=/scratch/kocevski/276769/ft2_4FGL_J1309.4+4305_daily_bin336.fits outfile=/scratch/kocevski/276769/cmap_HighResolution_326419201_326678401_4FGL_J1309.4+4305_daily_bin336.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.49
user 0.33
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.880       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11158E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.551       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.4201       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    73.729       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.0933       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10448E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    11.546       1.0000         .10000E-03   10000.    
    12 'norm      '    12.184       1.0000         .10000E-03   10000.    
    13 'norm      '    4.4666       1.0000         .10000E-03   10000.    
    14 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .53327       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .93596       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .38370E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.672       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.1581       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10893E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    125.14       1.0000         .10000E-03   10000.    
    24 'norm      '    1.7791       1.0000         .10000E-03   10000.    
    25 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .94657       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .87528       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=   5897.216     FROM MIGRAD    STATUS=CONVERGED    669 CALLS     3370 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.876        8.3927        .62871E-08   -.41908E-04
   2  Prefactor     .10000E-03    28.071       -.10154E-06** at limit **
   3  Prefactor     14.550        19.974       -.18912E-06   -.19208E-04
   4  Prefactor     .10000E-03    7.5035       -.14064E-07** at limit **
   5  norm          3.4201        1.9489        .17221E-08   -.34497E-04
   6  Prefactor     .10000E-03    3.0347       -.19021E-07** at limit **
   7  norm          .10000E-03    2.5272       -.22281E-07** at limit **
   8  Prefactor     73.733        53.972        .41295E-06    .37495E-04
   9  Prefactor     8.0952        19.695        .89810E-07   -.28670E-04
  10  Prefactor     .10000E-03    15.719       -.14966E-06** at limit **
  11  norm          11.549        5.9991       -.40771E-06   -.45773E-03
  12  norm          12.183        12.533        .30587E-06   -.10063E-03
  13  norm          4.4668        3.1323        .54881E-07   -.90124E-05
  14  norm          .10000E-03    5.5311       -.96034E-08** at limit **
  15  norm          .53189        3.4912        .13888E-05   -.38827E-03
  16  Prefactor     .92989        2.6970        .96777E-06    .10751E-03
  17  Prefactor     .10001E-03    10.795       -.62410E-06** at limit **
  18  Prefactor     .10000E-03    11.142       -.86018E-07** at limit **
  19  Prefactor     10.656        75.567       -.46490E-05   -.52931E-04
  20  Prefactor     8.1581        13.161        .94174E-07   -.12497E-04
  21  Prefactor     .10000E-03    55.070        .24420E-06** at limit **
  22  norm          .10000E-03    2.3957        .73749E-08** at limit **
  23  Prefactor     125.14        74.241        .88178E-06    .41986E-04
  24  norm          1.7787        1.1498        .66416E-08   -.79804E-04
  25  norm          .10000E-03    3.1281        .67596E-08** at limit **
  26  Normalizat    .94644        .16112       -.28260E-06   -.34739E-04
  27  Prefactor     .87536        .19442        .51385E-07   -.41953E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.8761
  Prefactor  = 0.0001
  Prefactor  = 14.5504
  Prefactor  = 0.0001
  norm       = 3.42012
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 73.7328
  Prefactor  = 8.09519
  Prefactor  = 0.0001
  norm       = 11.5491
  norm       = 12.1835
  norm       = 4.46676
  norm       = 0.0001
  norm       = 0.531888
  Prefactor  = 0.929887
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 10.6565
  Prefactor  = 8.15808
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 125.14
  norm       = 1.77866
  norm       = 0.0001
  Normalizat = 0.946438
  Prefactor  = 0.875356
 **********
 **   18 **HESSE 
 **********

 FCN=   5897.216     FROM HESSE     STATUS=OK           492 CALLS     3862 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.876        8.3927        .11161E-03   -1.4990    
   2  Prefactor     .10000E-03    28.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.550        19.995        .10500E-03   -1.4945    
   4  Prefactor     .10000E-03    7.5131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.4201        1.9475        .78516E-04   -1.5338    
   6  Prefactor     .10000E-03    3.0607        .13060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.5501        .11878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     73.733        54.292        .46758E-04   -1.3988    
   9  Prefactor     8.0952        19.588        .14093E-03   -1.5139    
  10  Prefactor     .10000E-03    15.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          11.549        6.1528        .11790E-03   -1.5028    
  12  norm          12.183        12.578        .57382E-03   -1.5010    
  13  norm          4.4668        3.0840        .10647E-03   -1.5285    
  14  norm          .10000E-03    5.6120        .34987E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .53189        3.7936        .28375E-03   -1.5562    
  16  Prefactor     .92989        2.5531        .18807E-03   -1.5515    
  17  Prefactor     .10001E-03    101.67        .43020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.656        78.913        .12265E-03   -1.5055    
  20  Prefactor     8.1581        13.140        .14037E-03   -1.5137    
  21  Prefactor     .10000E-03    55.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.4619        .23092E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     125.14        74.797        .35984E-04   -1.3466    
  24  norm          1.7787        1.1474        .63527E-04   -1.5441    
  25  norm          .10000E-03    3.1305        .13265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .94644        .18987        .21509E-03   -.94847    
  27  Prefactor     .87536        .22757        .28120E-03   -.97008    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.03578e-10
Minuit parameter uncertainties:
  1  8.39343
  2  5.93934e-06
  3  20.0044
  4  3.30155e-07
  5  1.94754
  6  3.79536e-06
  7  7.847e-07
  8  54.3286
  9  19.6033
  10  5.58532e-05
  11  6.15313
  12  12.581
  13  3.08406
  14  6.09877e-06
  15  2.84096
  16  2.55337
  17  0.00154467
  18  1.14458e-05
  19  58.1051
  20  13.1443
  21  1.64137e-05
  22  2.29052e-06
  23  74.8535
  24  1.14737
  25  7.96225e-07
  26  0.190003
  27  0.227813
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.218e+01  1.258e+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.754e-01  2.278e-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.464e-01  1.900e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.74
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.28e-08 +/- 1.32e-08
Energy Flux (Fixed Index): 1.40e-05 +/- 1.45e-05

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

Saving results to:
/scratch/kocevski/276769/likelihoodResults_326419201_326678401_4FGL_J1309.4+4305_daily_bin336.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) = 5896.86602226
delta logL = 0.35045350131

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5896.85507135
delta logL = 0.361404407966

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.5538       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4165       1.0000          .0000       5.0000    
     3 'Normalizat'    .93255       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88123       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=   5896.855     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      263 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.5479        246.89        .32413E-02    .61216E-04
   2  alpha         2.4156        3.4161        .26155        .52649E-04
   3  Normalizat    .93249        .77196E-01    .45316E-01    .13030E-04
   4  Prefactor     .88147        .74722E-01    .44765E-01    .15715E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.54791
  alpha      = 2.41555
  Normalizat = 0.932493
  Prefactor  = 0.881473
 **********
 **   18 **HESSE 
 **********

 FCN=   5896.855     FROM HESSE     STATUS=OK            33 CALLS      296 TOTAL
                     EDM=   .81E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.5479        11.861        .12965E-03   -1.5090    
   2  alpha         2.4156        .81384        .13841E-01   -.33786E-01
   3  Normalizat    .93249        .17953        .21645E-03   -.95328    
   4  Prefactor     .88147        .22604        .28017E-03   -.96792    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.118e-12
Minuit parameter uncertainties:
  1  11.8635
  2  0.828966
  3  0.179647
  4  0.226276
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/276769': 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) = 5896.85506799
delta logL = 0.361407765071

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  9.548e+00  1.186e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  2.416e+00  8.290e-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.815e-01  2.263e-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.325e-01  1.796e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.46
Ra Dec: 197.363 43.085
Photon Index (Free Index): 2.42 +/- 0.83
Photon Flux (Free Index): 2.77e-08 +/- 2.91e-08
Energy Flux (Free Index): 9.83e-06 +/- 9.14e-06

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/276769/cmap_HighResolution_326419201_326678401_4FGL_J1309.4+4305_daily_bin336.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.23e-05', comment='SUCCESS', photon_flux='1.28e-08', energy_flux2='9.83e-06', photon_flux_error='1.32e-08', dlogl='3.61e-01', energy_flux='1.40e-05', photon_flux2='2.77e-08', job_status='DONE', time_completed='2021-09-07 01:05:41.031052', photon_index_error2='0.83', photon_index2='2.42', ts='1.74', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='4.76e-08', energy_flux_error2='9.14e-06', EG='0.95', time_epoch_completed='1631001941.03', return_code='0', job_id='276769', GAL2='0.88', EG2='0.93', return_code2='0', energy_flux_error='1.45e-05', photon_flux_error2='2.91e-08', ts2='2.46', photon_index='1.77' WHERE bin_id='336' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:05:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 276769: <4FGL_J1309.4+4305_daily_bin336> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin336> 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) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:50:56 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:56 2021
Terminated at Tue Sep  7 01:05:41 2021
Results reported at Tue Sep  7 01:05:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin336 197.363 43.085 326419201 326678401 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 :                                   675.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             264.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            907 sec.

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

