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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin481
RA = 197.363, Dec = 43.085
tmin = 364003201, tmax = 364262401
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='278169', job_status='RUN', time_executed='2021-09-07 00:55:38.056792', time_epoch_executed='1631001338.06' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='481'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278169

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278169/ft1_4FGL_J1309.4+4305_daily_bin481.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278169/ft2_4FGL_J1309.4+4305_daily_bin481.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278169/ft1_4FGL_J1309.4+4305_daily_bin481.fits outfile=/scratch/kocevski/278169/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin481.fits ra=197.363 dec=43.085 rad=12.0 tmin=364003201.0 tmax=364262401.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.24
user 3.04
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/278169/ft2_4FGL_J1309.4+4305_daily_bin481.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/278169/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin481.fits evtable="EVENTS" outfile="/scratch/kocevski/278169/ft1_filtered_4FGL_J1309.4+4305_daily_bin481.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/278169/ft1_filtered_4FGL_J1309.4+4305_daily_bin481.fits" evtable="EVENTS" scfile=/scratch/kocevski/278169/ft2_4FGL_J1309.4+4305_daily_bin481.fits sctable="SC_DATA" outfile=/scratch/kocevski/278169/ltcube_364003201_364262401_4FGL_J1309.4+4305_daily_bin481.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/278169/ft2_4FGL_J1309.4+4305_daily_bin481.fits
.....................!
real 15.13
user 14.72
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278169/ft1_filtered_4FGL_J1309.4+4305_daily_bin481.fits evtable="EVENTS" scfile=/scratch/kocevski/278169/ft2_4FGL_J1309.4+4305_daily_bin481.fits sctable="SC_DATA" expcube=/scratch/kocevski/278169/ltcube_364003201_364262401_4FGL_J1309.4+4305_daily_bin481.fits outfile=/scratch/kocevski/278169/expmap_364003201_364262401_4FGL_J1309.4+4305_daily_bin481.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/278169/ltcube_364003201_364262401_4FGL_J1309.4+4305_daily_bin481.fits
.....................!
real 191.79
user 185.72
sys 5.06

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/278169/ft1_filtered_4FGL_J1309.4+4305_daily_bin481.fits scfile=/scratch/kocevski/278169/ft2_4FGL_J1309.4+4305_daily_bin481.fits outfile=/scratch/kocevski/278169/cmap_364003201_364262401_4FGL_J1309.4+4305_daily_bin481.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/278169/ft1_filtered_4FGL_J1309.4+4305_daily_bin481.fits scfile=/scratch/kocevski/278169/ft2_4FGL_J1309.4+4305_daily_bin481.fits outfile=/scratch/kocevski/278169/cmap_HighResolution_364003201_364262401_4FGL_J1309.4+4305_daily_bin481.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.55
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10121E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.209       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.708       1.0000         .10000E-03   10000.    
     5 'norm      '    1.5592       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.803       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    10.584       1.0000         .10000E-03   10000.    
    12 'norm      '    14.398       1.0000         .10000E-03   10000.    
    13 'norm      '    6.3633       1.0000         .10000E-03   10000.    
    14 'norm      '    2.6621       1.0000         .10000E-03   10000.    
    15 'norm      '    .12719E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.8248       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.3187       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.0154       1.0000         .10000E-03   10000.    
    19 'Prefactor '    53.598       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.883       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.0922       1.0000         .10000E-03   10000.    
    23 'Prefactor '    57.066       1.0000         .10000E-03   10000.    
    24 'norm      '    13.950       1.0000         .10000E-03   10000.    
    25 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .58757       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.3262       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=   5890.021     FROM MIGRAD    STATUS=CONVERGED    626 CALLS     3256 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.8013       -.94748E-06** at limit **
   2  Prefactor     13.209        14.967       -.44998E-06    .33980E-04
   3  Prefactor     .10000E-03    27.696       -.16322E-05** at limit **
   4  Prefactor     15.707        12.881       -.18485E-06    .66766E-05
   5  norm          1.5593        1.5904       -.14854E-06   -.19656E-03
   6  Prefactor     .10000E-03    3.5940        .13600E-06** at limit **
   7  norm          .10000E-03    1.7671        .27101E-06** at limit **
   8  Prefactor     .10000E-03    11.744        .11115E-05** at limit **
   9  Prefactor     23.796        25.589       -.88410E-05   -.28417E-04
  10  Prefactor     .10000E-03    6.3446        .61845E-06** at limit **
  11  norm          10.583        6.7971        .25969E-06   -.14350E-03
  12  norm          14.398        12.117       -.22009E-06    .10387E-05
  13  norm          6.3648        6.0695        .14592E-05   -.29834E-03
  14  norm          2.6612        6.9739       -.20020E-05   -.38825E-03
  15  norm          .10000E-03    3.6510        .24145E-06** at limit **
  16  Prefactor     1.8249        4.2077        .21307E-05   -.28785E-03
  17  Prefactor     6.3108        17.563       -.89778E-05   -.12396E-03
  18  Prefactor     5.0185        15.727        .19297E-05   -.51588E-04
  19  Prefactor     53.596        57.563       -.23714E-05   -.93330E-06
  20  Prefactor     13.883        14.764       -.68418E-06   -.21965E-04
  21  Prefactor     .10000E-03    11.397       -.15639E-05** at limit **
  22  norm          3.0924        3.5776        .13613E-05   -.33530E-03
  23  Prefactor     57.030        73.388       -.45313E-04    .82913E-05
  24  norm          13.950        2.5308        .42116E-07    .74069E-04
  25  norm          .10000E-03    8.0797        .10091E-06** at limit **
  26  Normalizat    .58777        .16525        .72455E-05   -.16154E-03
  27  Prefactor     1.3259        .20735       -.12837E-05    .21739E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 13.2087
  Prefactor  = 0.000100001
  Prefactor  = 15.7071
  norm       = 1.55927
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.7956
  Prefactor  = 0.0001
  norm       = 10.5826
  norm       = 14.3982
  norm       = 6.36481
  norm       = 2.66125
  norm       = 0.0001
  Prefactor  = 1.82495
  Prefactor  = 6.31083
  Prefactor  = 5.01846
  Prefactor  = 53.5962
  Prefactor  = 13.8828
  Prefactor  = 0.0001
  norm       = 3.09244
  Prefactor  = 57.0298
  norm       = 13.9497
  norm       = 0.0001
  Normalizat = 0.587767
  Prefactor  = 1.32591
 **********
 **   18 **HESSE 
 **********

 FCN=   5890.021     FROM HESSE     STATUS=OK           488 CALLS     3744 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.8430        .14590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.209        14.949        .11021E-03   -1.4981    
   3  Prefactor     .10000E-03    28.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.707        12.881        .10106E-03   -1.4915    
   5  norm          1.5593        1.5842        .94884E-04   -1.5458    
   6  Prefactor     .10000E-03    3.6568        .14201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.7739        .99567E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     23.796        25.572        .82103E-04   -1.4732    
  10  Prefactor     .10000E-03    6.3571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.583        6.7601        .12315E-03   -1.5057    
  12  norm          14.398        12.123        .10556E-03   -1.4949    
  13  norm          6.3648        6.1645        .12645E-03   -1.5203    
  14  norm          2.6612        7.0817        .24588E-03   -1.5382    
  15  norm          .10000E-03    3.7854        .28595E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.8249        3.9884        .17404E-03   -1.5438    
  17  Prefactor     6.3108        16.963        .15968E-03   -1.5205    
  18  Prefactor     5.0185        15.699        .17956E-03   -1.5260    
  19  Prefactor     53.596        57.269        .54786E-04   -1.4242    
  20  Prefactor     13.883        14.755        .10750E-03   -1.4963    
  21  Prefactor     .10000E-03    11.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.0924        3.5598        .14319E-03   -1.5356    
  23  Prefactor     57.030        73.397        .53104E-04   -1.4196    
  24  norm          13.950        2.5331        .49520E-04   -1.4961    
  25  norm          .10000E-03    8.1182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .58777        .19461        .27696E-03   -1.0851    
  27  Prefactor     1.3259        .24689        .25142E-03   -.82540    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27415e-09
Minuit parameter uncertainties:
  1  1.47839e-05
  2  14.9536
  3  0.00027322
  4  12.8837
  5  1.58423
  6  2.1848e-06
  7  1.54895e-05
  8  1.06515e-05
  9  25.5838
  10  4.44589e-06
  11  6.76058
  12  12.1254
  13  6.16513
  14  7.08397
  15  6.27008e-05
  16  3.98896
  17  16.9758
  18  15.7123
  19  57.3281
  20  14.7584
  21  2.30248e-05
  22  3.56001
  23  73.5137
  24  2.53308
  25  6.85409e-05
  26  0.194833
  27  0.24711
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.440e+01  1.213e+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.326e+00  2.471e-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:  5.878e-01  1.948e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.42
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.51e-08 +/- 1.27e-08
Energy Flux (Fixed Index): 1.66e-05 +/- 1.40e-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) = 5890.01941529
delta logL = 0.00191933322458

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5890.01935658
delta logL = 0.0019780427001

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.497       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7294       1.0000          .0000       5.0000    
     3 'Normalizat'    .58806       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3261       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=   5890.019     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      227 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.543        468.19        .26299E-02   -.16284E-04
   2  alpha         1.7320        2.6726        .40796        .94155E-05
   3  Normalizat    .58816        .10315        .62576E-01    .42342E-04
   4  Prefactor     1.3258        .10365        .56862E-01   -.67463E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 14.543
  alpha      = 1.73198
  Normalizat = 0.588157
  Prefactor  = 1.32584
 **********
 **   18 **HESSE 
 **********

 FCN=   5890.019     FROM HESSE     STATUS=OK            33 CALLS      260 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.543        12.502        .10520E-03   -1.4945    
   2  alpha         1.7320        .57959        .14593E-01   -.31226    
   3  Normalizat    .58816        .18403        .27687E-03   -1.0849    
   4  Prefactor     1.3258        .24354        .25143E-03   -.82542    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45055e-10
Minuit parameter uncertainties:
  1  12.5038
  2  0.585478
  3  0.184219
  4  0.243749
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278169': 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) = 5890.01933653
delta logL = 0.00199808909656

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.454e+01  1.250e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.732e+00  5.855e-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.326e+00  2.437e-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:  5.882e-01  1.842e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.42
Ra Dec: 197.363 43.085
Photon Index (Free Index): 1.73 +/- 0.59
Photon Flux (Free Index): 1.46e-08 +/- 1.46e-08
Energy Flux (Free Index): 1.75e-05 +/- 2.12e-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/278169/cmap_HighResolution_364003201_364262401_4FGL_J1309.4+4305_daily_bin481.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.51e-08', energy_flux2='1.75e-05', photon_flux_error='1.27e-08', dlogl='2.00e-03', energy_flux='1.66e-05', photon_flux2='1.46e-08', job_status='DONE', time_completed='2021-09-07 01:07:42.408133', photon_index_error2='0.59', photon_index2='1.73', ts='5.42', fit_tolerance='1e-08', GAL='1.33', photon_index_error='0.00', energy_flux_error2='2.12e-05', EG='0.59', time_epoch_completed='1631002062.41', return_code='0', job_id='278169', GAL2='1.33', EG2='0.59', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='1.46e-08', ts2='5.42', photon_index='1.77' WHERE bin_id='481' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:07:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 278169: <4FGL_J1309.4+4305_daily_bin481> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin481> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 00:55:21 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:55:23 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:23 2021
Terminated at Tue Sep  7 01:07:43 2021
Results reported at Tue Sep  7 01:07:43 2021

Your job looked like:

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

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

