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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin203
RA = 197.363, Dec = 43.085
tmin = 291945601, tmax = 292204801
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='275448', job_status='RUN', time_executed='2021-09-07 00:50:06.868810', time_epoch_executed='1631001006.87' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='203'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/275448

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/275448/ft1_4FGL_J1309.4+4305_daily_bin203.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/275448/ft2_4FGL_J1309.4+4305_daily_bin203.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/275448/ft1_4FGL_J1309.4+4305_daily_bin203.fits outfile=/scratch/kocevski/275448/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin203.fits ra=197.363 dec=43.085 rad=12.0 tmin=291945601.0 tmax=292204801.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.80
user 3.56
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/275448/ft1_filtered_4FGL_J1309.4+4305_daily_bin203.fits" evtable="EVENTS" scfile=/scratch/kocevski/275448/ft2_4FGL_J1309.4+4305_daily_bin203.fits sctable="SC_DATA" outfile=/scratch/kocevski/275448/ltcube_291945601_292204801_4FGL_J1309.4+4305_daily_bin203.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/275448/ft2_4FGL_J1309.4+4305_daily_bin203.fits
.....................!
real 16.05
user 15.64
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/275448/ft1_filtered_4FGL_J1309.4+4305_daily_bin203.fits evtable="EVENTS" scfile=/scratch/kocevski/275448/ft2_4FGL_J1309.4+4305_daily_bin203.fits sctable="SC_DATA" expcube=/scratch/kocevski/275448/ltcube_291945601_292204801_4FGL_J1309.4+4305_daily_bin203.fits outfile=/scratch/kocevski/275448/expmap_291945601_292204801_4FGL_J1309.4+4305_daily_bin203.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/275448/ltcube_291945601_292204801_4FGL_J1309.4+4305_daily_bin203.fits
.....................!
real 192.89
user 187.05
sys 4.62

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/275448/ft1_filtered_4FGL_J1309.4+4305_daily_bin203.fits scfile=/scratch/kocevski/275448/ft2_4FGL_J1309.4+4305_daily_bin203.fits outfile=/scratch/kocevski/275448/cmap_291945601_292204801_4FGL_J1309.4+4305_daily_bin203.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/275448/ft1_filtered_4FGL_J1309.4+4305_daily_bin203.fits scfile=/scratch/kocevski/275448/ft2_4FGL_J1309.4+4305_daily_bin203.fits outfile=/scratch/kocevski/275448/cmap_HighResolution_291945601_292204801_4FGL_J1309.4+4305_daily_bin203.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=197.363 yref=43.085 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.42
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10765E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.857       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12297E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.2315       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.5525       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    44.443       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.1312       1.0000         .10000E-03   10000.    
    12 'norm      '    27.070       1.0000         .10000E-03   10000.    
    13 'norm      '    4.5177       1.0000         .10000E-03   10000.    
    14 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    18.075       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.2001       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11297E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    83.529       1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.505       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.536       1.0000         .10000E-03   10000.    
    22 'norm      '    .10080E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    7.6108       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0045       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .86543       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=   5746.866     FROM MIGRAD    STATUS=CONVERGED    653 CALLS     3289 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.9865       -.29539E-07** at limit **
   2  Prefactor     .10000E-03    31.431        .50303E-05** at limit **
   3  Prefactor     10.860        13.700       -.18248E-06   -.30545E-04
   4  Prefactor     .10000E-03    44.348       -.54656E-05** at limit **
   5  norm          3.2318        2.0639       -.14948E-07   -.59762E-04
   6  Prefactor     .10000E-03    4.3200       -.75575E-07** at limit **
   7  norm          3.5531        7.0809       -.36306E-05   -.45237E-03
   8  Prefactor     .10000E-03    22.034       -.71432E-05** at limit **
   9  Prefactor     44.449        40.860        .68041E-05   -.94790E-04
  10  Prefactor     .10000E-03    9.8493        .64888E-06** at limit **
  11  norm          1.1319        3.4784       -.12993E-05   -.85040E-03
  12  norm          27.066        15.320       -.12254E-06    .32927E-04
  13  norm          4.5199        3.4358       -.37456E-07   -.18707E-03
  14  norm          .10000E-03    3.6999       -.13859E-07** at limit **
  15  norm          18.075        5.4401        .22234E-06   -.10504E-03
  16  Prefactor     3.2002        3.5148        .37663E-06   -.51682E-03
  17  Prefactor     .10000E-03    32.685        .73660E-05** at limit **
  18  Prefactor     .10000E-03    26.849       -.44265E-05** at limit **
  19  Prefactor     83.517        65.095       -.11215E-04    .18148E-03
  20  Prefactor     24.492        20.297       -.16675E-05    .86767E-04
  21  Prefactor     11.539        26.977        .52366E-05   -.58678E-04
  22  norm          .10000E-03    2.9461        .22940E-07** at limit **
  23  Prefactor     .10000E-03    18.094        .47668E-05** at limit **
  24  norm          .10000E-03    1.0206       -.16327E-06** at limit **
  25  norm          7.6104        17.661       -.76203E-06   -.19373E-04
  26  Normalizat    1.0044        .16561       -.26521E-06    .52645E-04
  27  Prefactor     .86550        .19996        .77232E-06   -.59384E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 10.8603
  Prefactor  = 0.000100001
  norm       = 3.23176
  Prefactor  = 0.0001
  norm       = 3.55312
  Prefactor  = 0.000100001
  Prefactor  = 44.4493
  Prefactor  = 0.0001
  norm       = 1.13191
  norm       = 27.0664
  norm       = 4.51986
  norm       = 0.0001
  norm       = 18.0753
  Prefactor  = 3.20015
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 83.5172
  Prefactor  = 24.4924
  Prefactor  = 11.5395
  norm       = 0.000100004
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 7.61039
  Normalizat = 1.00444
  Prefactor  = 0.865495
 **********
 **   18 **HESSE 
 **********

 FCN=   5746.866     FROM HESSE     STATUS=OK           488 CALLS     3777 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.9925        .10434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    31.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.860        13.704        .12159E-03   -1.5049    
   4  Prefactor     .10000E-03    45.516        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.2318        2.0637        .84297E-04   -1.5348    
   6  Prefactor     .10000E-03    4.3670        .15378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.5531        7.1900        .21444E-03   -1.5331    
   8  Prefactor     .10000E-03    21.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     44.449        41.263        .60139E-04   -1.4374    
  10  Prefactor     .10000E-03    9.8796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.1319        3.4616        .24170E-03   -1.5495    
  12  norm          27.066        15.320        .76998E-04   -1.4667    
  13  norm          4.5199        3.4142        .11545E-03   -1.5283    
  14  norm          .10000E-03    3.7082        .14183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          18.075        5.4368        .93086E-04   -1.4857    
  16  Prefactor     3.2002        3.4749        .13540E-03   -1.5350    
  17  Prefactor     .10000E-03    33.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    26.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     83.517        64.100        .43951E-04   -1.3878    
  20  Prefactor     24.492        18.502        .80920E-04   -1.4718    
  21  Prefactor     11.539        26.687        .11795E-03   -1.5028    
  22  norm          .10000E-03    10.620        .22500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    18.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.1184        .14622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          7.6104        17.737        .14536E-03   -1.5156    
  26  Normalizat    1.0044        .19819        .21921E-03   -.92882    
  27  Prefactor     .86550        .23801        .29334E-03   -.97357    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88371e-09
Minuit parameter uncertainties:
  1  9.49573e-07
  2  0.000337877
  3  13.7078
  4  0.000380285
  5  2.06379
  6  1.44168e-05
  7  7.19178
  8  0.000324419
  9  41.2898
  10  3.81674e-05
  11  3.4622
  12  15.3221
  13  3.4143
  14  3.96422e-06
  15  5.43694
  16  3.47509
  17  0.000265056
  18  8.87568e-05
  19  64.1527
  20  18.5066
  21  26.715
  22  0.000406055
  23  0.000190909
  24  2.56136e-05
  25  17.7489
  26  0.198331
  27  0.238298
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  2.707e+01  1.532e+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.655e-01  2.383e-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.004e+00  1.983e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.88
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 2.84e-08 +/- 1.61e-08
Energy Flux (Fixed Index): 3.12e-05 +/- 1.76e-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) = 5746.55788446
delta logL = 0.308572102876

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5746.55082276
delta logL = 0.315633806034

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.129       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1339       1.0000          .0000       5.0000    
     3 'Normalizat'    .99351       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87122       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=   5746.551     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      295 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.131        15.406        .85147E-04   -.10393E-02
   2  alpha         2.1338        .48355        .99243E-02   -.21597E-03
   3  Normalizat    .99349        .18901        .22027E-03    .19744E-03
   4  Prefactor     .87125        .23663        .29238E-03    .19854E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 22.1307
  alpha      = 2.1338
  Normalizat = 0.993492
  Prefactor  = 0.871248
 **********
 **   18 **HESSE 
 **********

 FCN=   5746.551     FROM HESSE     STATUS=OK            23 CALLS      318 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.131        15.014        .17029E-04   -1.4767    
   2  alpha         2.1338        .47128        .39697E-03   -.14701    
   3  Normalizat    .99349        .18911        .44053E-04   -.93249    
   4  Prefactor     .87125        .23681        .11695E-04   -.97153    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33996e-09
Minuit parameter uncertainties:
  1  15.0169
  2  0.474182
  3  0.189235
  4  0.237089
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/275448': 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) = 5746.55082275
delta logL = 0.315633818873

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  2.213e+01  1.502e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  2.134e+00  4.742e-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.712e-01  2.371e-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.935e-01  1.892e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.46
Ra Dec: 197.363 43.085
Photon Index (Free Index): 2.13 +/- 0.47
Photon Flux (Free Index): 3.94e-08 +/- 2.57e-08
Energy Flux (Free Index): 2.08e-05 +/- 1.43e-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/275448/cmap_HighResolution_291945601_292204801_4FGL_J1309.4+4305_daily_bin203.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.84e-08', energy_flux2='2.08e-05', photon_flux_error='1.61e-08', dlogl='3.16e-01', energy_flux='3.12e-05', photon_flux2='3.94e-08', job_status='DONE', time_completed='2021-09-07 01:02:05.056082', photon_index_error2='0.47', photon_index2='2.13', ts='9.88', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='1.43e-05', EG='1.00', time_epoch_completed='1631001725.06', return_code='0', job_id='275448', GAL2='0.87', EG2='0.99', return_code2='0', energy_flux_error='1.76e-05', photon_flux_error2='2.57e-08', ts2='10.46', photon_index='1.77' WHERE bin_id='203' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:02:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0195>
Subject: Job 275448: <4FGL_J1309.4+4305_daily_bin203> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin203> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 00:45:31 2021
Job was executed on host(s) <bullet0195>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:47:47 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:47:47 2021
Terminated at Tue Sep  7 01:02:06 2021
Results reported at Tue Sep  7 01:02:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin203 197.363 43.085 291945601 292204801 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 :                                   715.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             263.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            995 sec.

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

