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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin640
RA = 197.363, Dec = 43.085
tmin = 405216001, tmax = 405475201
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='278399', job_status='RUN', time_executed='2021-09-07 00:58:43.489362', time_epoch_executed='1631001523.49' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='640'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278399

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278399/ft1_4FGL_J1309.4+4305_daily_bin640.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278399/ft2_4FGL_J1309.4+4305_daily_bin640.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278399/ft1_4FGL_J1309.4+4305_daily_bin640.fits outfile=/scratch/kocevski/278399/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin640.fits ra=197.363 dec=43.085 rad=12.0 tmin=405216001.0 tmax=405475201.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 5.12
user 3.18
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/278399/ft1_filtered_4FGL_J1309.4+4305_daily_bin640.fits" evtable="EVENTS" scfile=/scratch/kocevski/278399/ft2_4FGL_J1309.4+4305_daily_bin640.fits sctable="SC_DATA" outfile=/scratch/kocevski/278399/ltcube_405216001_405475201_4FGL_J1309.4+4305_daily_bin640.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/278399/ft2_4FGL_J1309.4+4305_daily_bin640.fits
.....................!
real 13.44
user 13.09
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278399/ft1_filtered_4FGL_J1309.4+4305_daily_bin640.fits evtable="EVENTS" scfile=/scratch/kocevski/278399/ft2_4FGL_J1309.4+4305_daily_bin640.fits sctable="SC_DATA" expcube=/scratch/kocevski/278399/ltcube_405216001_405475201_4FGL_J1309.4+4305_daily_bin640.fits outfile=/scratch/kocevski/278399/expmap_405216001_405475201_4FGL_J1309.4+4305_daily_bin640.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/278399/ltcube_405216001_405475201_4FGL_J1309.4+4305_daily_bin640.fits
.....................!
real 191.24
user 185.67
sys 4.84

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/278399/ft1_filtered_4FGL_J1309.4+4305_daily_bin640.fits scfile=/scratch/kocevski/278399/ft2_4FGL_J1309.4+4305_daily_bin640.fits outfile=/scratch/kocevski/278399/cmap_405216001_405475201_4FGL_J1309.4+4305_daily_bin640.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.75
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/278399/ft1_filtered_4FGL_J1309.4+4305_daily_bin640.fits scfile=/scratch/kocevski/278399/ft2_4FGL_J1309.4+4305_daily_bin640.fits outfile=/scratch/kocevski/278399/cmap_HighResolution_405216001_405475201_4FGL_J1309.4+4305_daily_bin640.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.61
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.884       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.8055       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.0313       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.3249       1.0000         .10000E-03   10000.    
    13 'norm      '    8.8016       1.0000         .10000E-03   10000.    
    14 'norm      '    .40008E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.2634       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11289E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.8337       1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.874       1.0000         .10000E-03   10000.    
    22 'norm      '    3.0198       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    6.6719       1.0000         .10000E-03   10000.    
    25 'norm      '    11.061       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .71692       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2772       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=   5581.389     FROM MIGRAD    STATUS=CONVERGED    644 CALLS     3284 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.1284       -.97562E-07** at limit **
   2  Prefactor     16.883        20.089       -.61493E-06   -.42526E-04
   3  Prefactor     .10000E-03    18.696        .72622E-05** at limit **
   4  Prefactor     .10000E-03    6.2961       -.64454E-07** at limit **
   5  norm          3.8055        2.3615       -.56997E-07   -.13883E-03
   6  Prefactor     .10000E-03    3.2418       -.54466E-07** at limit **
   7  norm          .10000E-03    1.0378        .11694E-06** at limit **
   8  Prefactor     .10000E-03    10.646       -.15309E-05** at limit **
   9  Prefactor     .10000E-03    8.8385        .35984E-06** at limit **
  10  Prefactor     7.0317        13.629       -.62357E-06   -.81400E-04
  11  norm          .10000E-03    1.5868       -.12289E-08** at limit **
  12  norm          9.3249        9.2437        .58474E-08    .23747E-04
  13  norm          8.8035        5.1808       -.59314E-06   -.27772E-02
  14  norm          .10002E-03    8.9201        .32077E-05** at limit **
  15  norm          .10000E-03    1.3600        .45389E-07** at limit **
  16  Prefactor     .10000E-03    1.3868        .20347E-07** at limit **
  17  Prefactor     8.2634        14.013       -.47559E-06   -.29951E-03
  18  Prefactor     .10000E-03    31.239        .47234E-05** at limit **
  19  Prefactor     .10000E-03    20.534       -.10148E-04** at limit **
  20  Prefactor     1.8318        29.892       -.97512E-06   -.16231E-03
  21  Prefactor     21.862        32.933       -.10250E-04   -.38470E-04
  22  norm          3.0206        4.6307       -.10841E-06   -.33742E-03
  23  Prefactor     .10000E-03    80.903        .60442E-06** at limit **
  24  norm          6.6720        2.0266        .11796E-06   -.68134E-04
  25  norm          11.062        11.663       -.17559E-06   -.25082E-04
  26  Normalizat    .71689        .16558        .13459E-05   -.22426E-03
  27  Prefactor     1.2773        .20719        .19173E-06   -.17572E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 16.8832
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.80548
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.0317
  norm       = 0.0001
  norm       = 9.32486
  norm       = 8.80348
  norm       = 0.000100021
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.26335
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 1.83176
  Prefactor  = 21.8618
  norm       = 3.02062
  Prefactor  = 0.0001
  norm       = 6.672
  norm       = 11.0617
  Normalizat = 0.716886
  Prefactor  = 1.27726
 **********
 **   18 **HESSE 
 **********

 FCN=   5581.389     FROM HESSE     STATUS=OK           484 CALLS     3768 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.1427        .12878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.883        20.100        .97471E-04   -1.4886    
   3  Prefactor     .10000E-03    18.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.3001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.8055        2.3605        .87480E-04   -1.5318    
   6  Prefactor     .10000E-03    3.2519        .13111E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.0387        .74322E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.8538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.0317        13.614        .15129E-03   -1.5178    
  11  norm          .10000E-03    1.5903        .91880E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.3249        9.2457        .13124E-03   -1.5097    
  13  norm          8.8035        4.4481        .10387E-03   -1.5114    
  14  norm          .10002E-03    17.374        .35525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.3714        .85071E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.3995        .85605E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.2634        13.959        .13946E-03   -1.5133    
  18  Prefactor     .10000E-03    31.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    20.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.8318        28.369        .30815E-03   -1.5437    
  21  Prefactor     21.862        32.658        .85641E-04   -1.4772    
  22  norm          3.0206        4.4758        .16688E-03   -1.5360    
  23  Prefactor     .10000E-03    81.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          6.6720        2.0266        .55603E-04   -1.5191    
  25  norm          11.062        11.662        .12046E-03   -1.5043    
  26  Normalizat    .71689        .19551        .24981E-03   -1.0323    
  27  Prefactor     1.2773        .24531        .25079E-03   -.83986    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86778e-09
Minuit parameter uncertainties:
  1  6.87239e-07
  2  20.1077
  3  3.28472e-05
  4  1.8354e-06
  5  2.36059
  6  1.05097e-07
  7  1.81404e-07
  8  5.8714e-07
  9  1.77461e-06
  10  13.6198
  11  4.93039e-07
  12  9.24716
  13  4.44824
  14  0.00120947
  15  3.42879e-06
  16  2.80709e-07
  17  13.9644
  18  0.000451328
  19  9.80482e-07
  20  14.4252
  21  32.6848
  22  4.47627
  23  7.16814e-05
  24  2.02659
  25  11.6645
  26  0.195703
  27  0.245533
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  9.325e+00  9.247e+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

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  1.277e+00  2.455e-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:  7.169e-01  1.957e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.29
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 9.77e-09 +/- 9.69e-09
Energy Flux (Fixed Index): 1.07e-05 +/- 1.06e-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) = 5581.38855105
delta logL = 0.000149323924234

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5581.38854715
delta logL = 0.000153223409143

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.3136       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7838       1.0000          .0000       5.0000    
     3 'Normalizat'    .71680       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2772       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=   5581.389     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      258 TOTAL
                     EDM=   .64E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.3106        9.2992        .13132E-03    .72720E-04
   2  alpha         1.7834        .81651        .18586E-01   -.21336E-05
   3  Normalizat    .71677        .18728        .24983E-03    .22343E-04
   4  Prefactor     1.2773        .24483        .25079E-03    .19130E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.31062
  alpha      = 1.78341
  Normalizat = 0.716766
  Prefactor  = 1.27726
 **********
 **   18 **HESSE 
 **********

 FCN=   5581.389     FROM HESSE     STATUS=OK            25 CALLS      283 TOTAL
                     EDM=   .80E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.3106        9.2597        .52528E-05   -1.5098    
   2  alpha         1.7834        .81343        .74343E-03   -.29071    
   3  Normalizat    .71677        .18746        .99931E-05   -1.0323    
   4  Prefactor     1.2773        .24508        .10032E-04   -.83986    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.96789e-12
Minuit parameter uncertainties:
  1  9.26116
  2  0.829938
  3  0.187624
  4  0.245304
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278399': 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) = 5581.38854693
delta logL = 0.000153441579641

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  9.311e+00  9.261e+00  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.783e+00  8.299e-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.277e+00  2.453e-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:  7.168e-01  1.876e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.29
Ra Dec: 197.363 43.085
Photon Index (Free Index): 1.78 +/- 0.83
Photon Flux (Free Index): 9.94e-09 +/- 1.36e-08
Energy Flux (Free Index): 1.05e-05 +/- 1.47e-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/278399/cmap_HighResolution_405216001_405475201_4FGL_J1309.4+4305_daily_bin640.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.77e-09', energy_flux2='1.05e-05', photon_flux_error='9.69e-09', dlogl='1.53e-04', energy_flux='1.07e-05', photon_flux2='9.94e-09', job_status='DONE', time_completed='2021-09-07 01:10:24.924259', photon_index_error2='0.83', photon_index2='1.78', ts='4.29', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', energy_flux_error2='1.47e-05', EG='0.72', time_epoch_completed='1631002224.92', return_code='0', job_id='278399', GAL2='1.28', EG2='0.72', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='1.36e-08', ts2='4.29', photon_index='1.77' WHERE bin_id='640' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:10:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 278399: <4FGL_J1309.4+4305_daily_bin640> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin640 197.363 43.085 405216001 405475201 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 :                                   698.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             287.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            888 sec.

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

