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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin286
RA = 197.363, Dec = 43.085
tmin = 313459201, tmax = 313718401
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='276691', job_status='RUN', time_executed='2021-09-07 00:53:39.917782', time_epoch_executed='1631001219.92' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='286'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/276691

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/276691/ft1_4FGL_J1309.4+4305_daily_bin286.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/276691/ft2_4FGL_J1309.4+4305_daily_bin286.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/276691/ft1_4FGL_J1309.4+4305_daily_bin286.fits outfile=/scratch/kocevski/276691/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin286.fits ra=197.363 dec=43.085 rad=12.0 tmin=313459201.0 tmax=313718401.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.37
user 3.10
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/276691/ft1_filtered_4FGL_J1309.4+4305_daily_bin286.fits" evtable="EVENTS" scfile=/scratch/kocevski/276691/ft2_4FGL_J1309.4+4305_daily_bin286.fits sctable="SC_DATA" outfile=/scratch/kocevski/276691/ltcube_313459201_313718401_4FGL_J1309.4+4305_daily_bin286.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/276691/ft2_4FGL_J1309.4+4305_daily_bin286.fits
.....................!
real 17.37
user 16.96
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/276691/ft1_filtered_4FGL_J1309.4+4305_daily_bin286.fits evtable="EVENTS" scfile=/scratch/kocevski/276691/ft2_4FGL_J1309.4+4305_daily_bin286.fits sctable="SC_DATA" expcube=/scratch/kocevski/276691/ltcube_313459201_313718401_4FGL_J1309.4+4305_daily_bin286.fits outfile=/scratch/kocevski/276691/expmap_313459201_313718401_4FGL_J1309.4+4305_daily_bin286.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/276691/ltcube_313459201_313718401_4FGL_J1309.4+4305_daily_bin286.fits
.....................!
real 193.28
user 187.21
sys 5.31

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/276691/ft1_filtered_4FGL_J1309.4+4305_daily_bin286.fits scfile=/scratch/kocevski/276691/ft2_4FGL_J1309.4+4305_daily_bin286.fits outfile=/scratch/kocevski/276691/cmap_313459201_313718401_4FGL_J1309.4+4305_daily_bin286.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/276691/ft1_filtered_4FGL_J1309.4+4305_daily_bin286.fits scfile=/scratch/kocevski/276691/ft2_4FGL_J1309.4+4305_daily_bin286.fits outfile=/scratch/kocevski/276691/cmap_HighResolution_313459201_313718401_4FGL_J1309.4+4305_daily_bin286.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.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    35.431       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    10.769       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.5664       1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.874       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.1960       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    12.981       1.0000         .10000E-03   10000.    
    13 'norm      '    .88705       1.0000         .10000E-03   10000.    
    14 'norm      '    5.9585       1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.4013       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.9901       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.185       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10337E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    6.0616       1.0000         .10000E-03   10000.    
    25 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0495       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .97923       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=   5694.501     FROM MIGRAD    STATUS=CONVERGED    624 CALLS     3245 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.8583        .41588E-06** at limit **
   2  Prefactor     35.428        20.517       -.13320E-07   -.90459E-04
   3  Prefactor     .10000E-03    11.305       -.14842E-05** at limit **
   4  Prefactor     .10000E-03    5.6510        .67218E-06** at limit **
   5  norm          10.769        3.3517        .55662E-07    .10879E-03
   6  Prefactor     .10000E-03    2.1730       -.97486E-07** at limit **
   7  norm          2.5653        4.2876        .14879E-06   -.38190E-04
   8  Prefactor     25.877        26.487        .58063E-06    .74195E-04
   9  Prefactor     .10000E-03    5.8094       -.10840E-05** at limit **
  10  Prefactor     7.1947        9.7930        .15470E-05   -.47408E-03
  11  norm          .10000E-03    1.0290       -.27187E-07** at limit **
  12  norm          12.981        11.848       -.20619E-08   -.54068E-05
  13  norm          .88963        9.5059        .46516E-05   -.24575E-03
  14  norm          5.9537        8.8255       -.24014E-05   -.24091E-03
  15  norm          .10000E-03    1.9329        .15430E-07** at limit **
  16  Prefactor     1.4006        1.8647       -.24371E-06   -.30634E-03
  17  Prefactor     .10000E-03    10.063        .19234E-06** at limit **
  18  Prefactor     .10000E-03    16.366        .78550E-06** at limit **
  19  Prefactor     3.9842        95.325       -.31204E-05   -.41415E-04
  20  Prefactor     11.180        17.114       -.27760E-07   -.58457E-04
  21  Prefactor     .10000E-03    31.533        .27050E-05** at limit **
  22  norm          .10000E-03    1.7900       -.35517E-07** at limit **
  23  Prefactor     .10000E-03    35.020       -.30931E-05** at limit **
  24  norm          6.0615        2.2101        .64303E-07   -.10899E-03
  25  norm          .10000E-03    10.098        .40004E-06** at limit **
  26  Normalizat    1.0495        .16903       -.59677E-06   -.10618E-03
  27  Prefactor     .97924        .20961       -.10816E-06   -.86503E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 35.4278
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 10.7691
  Prefactor  = 0.0001
  norm       = 2.56528
  Prefactor  = 25.8772
  Prefactor  = 0.0001
  Prefactor  = 7.19471
  norm       = 0.0001
  norm       = 12.981
  norm       = 0.889632
  norm       = 5.95371
  norm       = 0.0001
  Prefactor  = 1.40059
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.98425
  Prefactor  = 11.1803
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.000100003
  norm       = 6.06155
  norm       = 0.0001
  Normalizat = 1.04949
  Prefactor  = 0.97924
 **********
 **   18 **HESSE 
 **********

 FCN=   5694.501     FROM HESSE     STATUS=OK           484 CALLS     3729 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.1064        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     35.428        20.499        .67326E-04   -1.4517    
   3  Prefactor     .10000E-03    11.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.6933        .17582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          10.769        3.3532        .74619E-04   -1.5052    
   6  Prefactor     .10000E-03    2.1833        .10861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.5653        4.2417        .19194E-03   -1.5388    
   8  Prefactor     25.877        26.539        .78754E-04   -1.4690    
   9  Prefactor     .10000E-03    5.9302        .17941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.1947        9.8052        .74765E-03   -1.5171    
  11  norm          .10000E-03    1.0297        .74759E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          12.981        11.850        .11118E-03   -1.4987    
  13  norm          .88963        9.4944        .25892E-03   -1.5519    
  14  norm          5.9537        8.7039        .15499E-03   -1.5220    
  15  norm          .10000E-03    1.9525        .10243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.4006        1.8380        .11362E-03   -1.5471    
  17  Prefactor     .10000E-03    10.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.9842        96.348        .20191E-03   -1.5309    
  20  Prefactor     11.180        17.133        .11979E-03   -1.5039    
  21  Prefactor     .10000E-03    32.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.7974        .98417E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    35.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          6.0615        2.2128        .63959E-04   -1.5216    
  25  norm          .10000E-03    10.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0495        .19884        .22269E-03   -.91390    
  27  Prefactor     .97924        .24643        .29085E-03   -.93425    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.38068e-10
Minuit parameter uncertainties:
  1  4.73492e-05
  2  20.5028
  3  0.000181867
  4  5.99758e-05
  5  3.35327
  6  5.81507e-06
  7  4.24215
  8  26.5507
  9  0.000105762
  10  9.8074
  11  9.10808e-07
  12  11.8522
  13  5.81343
  14  8.70573
  15  4.19311e-07
  16  1.83806
  17  3.58794e-05
  18  0.000114679
  19  39.2559
  20  17.1406
  21  0.000557749
  22  1.83413e-06
  23  0.000693287
  24  2.21283
  25  4.22209e-05
  26  0.198979
  27  0.246709
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.298e+01  1.185e+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:  9.792e-01  2.467e-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.049e+00  1.990e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.85
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.36e-08 +/- 1.24e-08
Energy Flux (Fixed Index): 1.49e-05 +/- 1.36e-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) = 5693.60159125
delta logL = 0.899458236251

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5693.31698193
delta logL = 1.18406756012

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9261       1.0000         .10000E-03   10000.    
     2 'alpha     '    .62307       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0529       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98513       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=   5693.317     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      211 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9083        4.3857        .50900E-02   -.25349E-03
   2  alpha         .62129        .47127        .40235       -.18111E-04
   3  Normalizat    1.0526        .16633        .40369E-01   -.62990E-03
   4  Prefactor     .98518        .21151        .46081E-01   -.40700E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.90834
  alpha      = 0.62129
  Normalizat = 1.05264
  Prefactor  = 0.985183
 **********
 **   18 **HESSE 
 **********

 FCN=   5693.317     FROM HESSE     STATUS=OK            29 CALLS      240 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9083        7.0479        .14461E-03   -1.5313    
   2  alpha         .62129        .69833        .18885E-01   -.85031    
   3  Normalizat    1.0526        .19201        .22236E-03   -.91287    
   4  Prefactor     .98518        .24412        .28988E-03   -.93225    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43068e-09
Minuit parameter uncertainties:
  1  7.0494
  2  0.721084
  3  0.192132
  4  0.244395
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/276691': 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) = 5693.31697711
delta logL = 1.18407237797

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  3.908e+00  7.049e+00  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  6.213e-01  7.211e-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:  9.852e-01  2.444e-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.053e+00  1.921e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.22
Ra Dec: 197.363 43.085
Photon Index (Free Index): 0.62 +/- 0.72
Photon Flux (Free Index): 3.94e-09 +/- 4.22e-09
Energy Flux (Free Index): 7.11e-05 +/- 9.24e-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/276691/cmap_HighResolution_313459201_313718401_4FGL_J1309.4+4305_daily_bin286.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.36e-08', energy_flux2='7.11e-05', photon_flux_error='1.24e-08', dlogl='1.18e+00', energy_flux='1.49e-05', photon_flux2='3.94e-09', job_status='DONE', time_completed='2021-09-07 01:06:04.685365', photon_index_error2='0.72', photon_index2='0.62', ts='8.85', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='9.24e-05', EG='1.05', time_epoch_completed='1631001964.69', return_code='0', job_id='276691', GAL2='0.99', EG2='1.05', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='4.22e-09', ts2='11.22', photon_index='1.77' WHERE bin_id='286' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:06:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 276691: <4FGL_J1309.4+4305_daily_bin286> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin286> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 00:50:27 2021
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:50:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 00:50:33 2021
Terminated at Tue Sep  7 01:06:05 2021
Results reported at Tue Sep  7 01:06:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin286 197.363 43.085 313459201 313718401 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 :                                   708.44 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             278.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            938 sec.

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

