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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin700
RA = 197.363, Dec = 43.085
tmin = 420768001, tmax = 421027201
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='279670', job_status='RUN', time_executed='2021-09-07 01:03:00.590423', time_epoch_executed='1631001780.59' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='700'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279670

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279670/ft1_4FGL_J1309.4+4305_daily_bin700.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279670/ft2_4FGL_J1309.4+4305_daily_bin700.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279670/ft1_4FGL_J1309.4+4305_daily_bin700.fits outfile=/scratch/kocevski/279670/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin700.fits ra=197.363 dec=43.085 rad=12.0 tmin=420768001.0 tmax=421027201.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.72
user 3.29
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/279670/ft1_filtered_4FGL_J1309.4+4305_daily_bin700.fits" evtable="EVENTS" scfile=/scratch/kocevski/279670/ft2_4FGL_J1309.4+4305_daily_bin700.fits sctable="SC_DATA" outfile=/scratch/kocevski/279670/ltcube_420768001_421027201_4FGL_J1309.4+4305_daily_bin700.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/279670/ft2_4FGL_J1309.4+4305_daily_bin700.fits
.....................!
real 16.02
user 14.89
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279670/ft1_filtered_4FGL_J1309.4+4305_daily_bin700.fits evtable="EVENTS" scfile=/scratch/kocevski/279670/ft2_4FGL_J1309.4+4305_daily_bin700.fits sctable="SC_DATA" expcube=/scratch/kocevski/279670/ltcube_420768001_421027201_4FGL_J1309.4+4305_daily_bin700.fits outfile=/scratch/kocevski/279670/expmap_420768001_421027201_4FGL_J1309.4+4305_daily_bin700.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/279670/ltcube_420768001_421027201_4FGL_J1309.4+4305_daily_bin700.fits
.....................!
real 196.19
user 186.53
sys 5.45

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/279670/ft1_filtered_4FGL_J1309.4+4305_daily_bin700.fits scfile=/scratch/kocevski/279670/ft2_4FGL_J1309.4+4305_daily_bin700.fits outfile=/scratch/kocevski/279670/cmap_420768001_421027201_4FGL_J1309.4+4305_daily_bin700.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.80
user 0.39
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4477       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.8884       1.0000         .10000E-03   10000.    
     5 'norm      '    3.0398       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.3140       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    46.550       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    25.646       1.0000         .10000E-03   10000.    
    13 'norm      '    7.0252       1.0000         .10000E-03   10000.    
    14 'norm      '    41.009       1.0000         .10000E-03   10000.    
    15 'norm      '    4.4440       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.4578       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.1554       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    32.233       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11709E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    37.631       1.0000         .10000E-03   10000.    
    24 'norm      '    2.3472       1.0000         .10000E-03   10000.    
    25 'norm      '    .21693E-01   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0770       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .71074       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=   5954.266     FROM MIGRAD    STATUS=CONVERGED    675 CALLS     3388 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4481        6.2001        .14337E-05    .28516E-03
   2  Prefactor     .10000E-03    23.126       -.39865E-06** at limit **
   3  Prefactor     .10000E-03    12.748        .23042E-06** at limit **
   4  Prefactor     6.8857        10.241        .97055E-07   -.12306E-04
   5  norm          3.0398        1.9656        .26676E-07   -.35696E-04
   6  Prefactor     .10000E-03    4.6823        .96344E-08** at limit **
   7  norm          3.3141        6.3290        .75593E-06    .50695E-05
   8  Prefactor     .10000E-03    13.806        .16783E-06** at limit **
   9  Prefactor     46.548        38.748       -.29642E-06   -.17865E-04
  10  Prefactor     .10000E-03    20.365        .10732E-05** at limit **
  11  norm          .10000E-03    2.2925       -.18886E-07** at limit **
  12  norm          25.651        14.419        .23262E-06    .73232E-04
  13  norm          7.0253        9.7958        .14267E-06   -.15129E-03
  14  norm          41.013        17.987       -.11112E-06   -.46822E-04
  15  norm          4.4442        3.9084        .21497E-05   -.12117E-02
  16  Prefactor     1.4577        2.3201        .20594E-06   -.12623E-03
  17  Prefactor     .10000E-03    8.5107       -.87307E-07** at limit **
  18  Prefactor     1.1658        26.871       -.17260E-05   -.88345E-04
  19  Prefactor     .10000E-03    14.423       -.70700E-06** at limit **
  20  Prefactor     32.297        20.968        .41667E-06    .57136E-04
  21  Prefactor     .10000E-03    131.35        .56110E-06** at limit **
  22  norm          .10000E-03    4.4598        .23887E-07** at limit **
  23  Prefactor     37.676        46.996        .63796E-05    .33144E-03
  24  norm          2.3471        1.1802        .35698E-07   -.34602E-04
  25  norm          .10002E-03    10.964        .36723E-06** at limit **
  26  Normalizat    1.0770        .16351       -.14357E-05    .10217E-03
  27  Prefactor     .71066        .19509        .37971E-06   -.61212E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.44813
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 6.88571
  norm       = 3.03981
  Prefactor  = 0.0001
  norm       = 3.31414
  Prefactor  = 0.0001
  Prefactor  = 46.5477
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 25.6513
  norm       = 7.02529
  norm       = 41.0132
  norm       = 4.44421
  Prefactor  = 1.45773
  Prefactor  = 0.0001
  Prefactor  = 1.16584
  Prefactor  = 0.0001
  Prefactor  = 32.2965
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 37.6763
  norm       = 2.34706
  norm       = 0.000100023
  Normalizat = 1.07701
  Prefactor  = 0.710659
 **********
 **   18 **HESSE 
 **********

 FCN=   5954.266     FROM HESSE     STATUS=OK           490 CALLS     3878 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4481        6.2200        .21782E-03   -1.5337    
   2  Prefactor     .10000E-03    23.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.8857        10.234        .15286E-03   -1.5183    
   5  norm          3.0398        1.9654        .84315E-04   -1.5359    
   6  Prefactor     .10000E-03    4.7767        .16295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.3141        6.2611        .22072E-03   -1.5344    
   8  Prefactor     .10000E-03    13.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     46.548        38.420        .58768E-04   -1.4342    
  10  Prefactor     .10000E-03    20.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.3039        .11405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          25.651        14.424        .79103E-04   -1.4695    
  13  norm          7.0253        9.7531        .15135E-03   -1.5178    
  14  norm          41.013        17.979        .62596E-04   -1.4426    
  15  norm          4.4442        4.1951        .70080E-03   -1.5286    
  16  Prefactor     1.4577        2.2828        .14187E-03   -1.5466    
  17  Prefactor     .10000E-03    8.6141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.1658        188.40        .71586E-02   -1.5492    
  19  Prefactor     .10000E-03    14.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     32.297        20.831        .70577E-04   -1.4571    
  21  Prefactor     .10000E-03    134.74        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.5499        .31535E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     37.676        49.843        .65335E-04   -1.4480    
  24  norm          2.3471        1.1781        .57387E-04   -1.5402    
  25  norm          .10002E-03    91.863        .49064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0770        .18963        .20806E-03   -.90493    
  27  Prefactor     .71066        .22729        .31249E-03   -1.0311    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85259e-09
Minuit parameter uncertainties:
  1  6.22114
  2  0.000285181
  3  3.74208e-05
  4  10.2368
  5  1.96541
  6  7.14699e-06
  7  6.26236
  8  2.64556e-05
  9  38.4408
  10  0.000200273
  11  1.29282e-07
  12  14.4263
  13  9.75528
  14  17.9811
  15  4.19535
  16  2.2829
  17  2.93241e-06
  18  29.735
  19  0.000103811
  20  20.8361
  21  0.00033675
  22  1.2286e-05
  23  49.8978
  24  1.17815
  25  0.00294122
  26  0.189747
  27  0.227587
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  2.565e+01  1.443e+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:  7.107e-01  2.276e-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.077e+00  1.897e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.18
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 2.69e-08 +/- 1.51e-08
Energy Flux (Fixed Index): 2.95e-05 +/- 1.66e-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) = 5954.25430641
delta logL = 0.0118372876759

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5954.25323071
delta logL = 0.0129129890784

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.021       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8415       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0752       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71152       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=   5954.253     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      265 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.024        14.855        .40041E-03    .14736E-04
   2  alpha         1.8414        .45626        .11484E-01    .95814E-04
   3  Normalizat    1.0751        .18094        .20822E-03   -.60606E-05
   4  Prefactor     .71156        .22545        .31230E-03    .89916E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 25.0239
  alpha      = 1.84143
  Normalizat = 1.07511
  Prefactor  = 0.711556
 **********
 **   18 **HESSE 
 **********

 FCN=   5954.253     FROM HESSE     STATUS=OK            25 CALLS      290 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.024        14.729        .16017E-04   -1.4707    
   2  alpha         1.8414        .45237        .22968E-02   -.26657    
   3  Normalizat    1.0751        .18112        .83288E-05   -.90555    
   4  Prefactor     .71156        .22570        .12492E-04   -1.0308    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46923e-12
Minuit parameter uncertainties:
  1  14.7306
  2  0.455067
  3  0.181222
  4  0.225988
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279670': 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) = 5954.25323063
delta logL = 0.0129130711966

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  2.502e+01  1.473e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.841e+00  4.551e-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:  7.116e-01  2.260e-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.075e+00  1.812e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.18
Ra Dec: 197.363 43.085
Photon Index (Free Index): 1.84 +/- 0.46
Photon Flux (Free Index): 2.88e-08 +/- 2.01e-08
Energy Flux (Free Index): 2.68e-05 +/- 2.18e-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/279670/cmap_HighResolution_420768001_421027201_4FGL_J1309.4+4305_daily_bin700.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.69e-08', energy_flux2='2.68e-05', photon_flux_error='1.51e-08', dlogl='1.29e-02', energy_flux='2.95e-05', photon_flux2='2.88e-08', job_status='DONE', time_completed='2021-09-07 01:15:36.644024', photon_index_error2='0.46', photon_index2='1.84', ts='9.18', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', energy_flux_error2='2.18e-05', EG='1.08', time_epoch_completed='1631002536.64', return_code='0', job_id='279670', GAL2='0.71', EG2='1.08', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='2.01e-08', ts2='9.18', photon_index='1.77' WHERE bin_id='700' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:15:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 279670: <4FGL_J1309.4+4305_daily_bin700> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin700> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep  7 01:00:22 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:00:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 01:00:25 2021
Terminated at Tue Sep  7 01:15:37 2021
Results reported at Tue Sep  7 01:15:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin700 197.363 43.085 420768001 421027201 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 :                                   740.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             246.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            915 sec.

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

