/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 6 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7387
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1309.4+4305_daily_bin356
RA = 197.363, Dec = 43.085
tmin = 331603201, tmax = 331862401
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='276803', job_status='RUN', time_executed='2021-09-07 00:51:23.922946', time_epoch_executed='1631001083.92' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='356'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/276803

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/276803/ft1_4FGL_J1309.4+4305_daily_bin356.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/276803/ft2_4FGL_J1309.4+4305_daily_bin356.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/276803/ft1_4FGL_J1309.4+4305_daily_bin356.fits outfile=/scratch/kocevski/276803/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin356.fits ra=197.363 dec=43.085 rad=12.0 tmin=331603201.0 tmax=331862401.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.32
user 3.06
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/276803/ft2_4FGL_J1309.4+4305_daily_bin356.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/276803/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin356.fits evtable="EVENTS" outfile="/scratch/kocevski/276803/ft1_filtered_4FGL_J1309.4+4305_daily_bin356.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/276803/ft1_filtered_4FGL_J1309.4+4305_daily_bin356.fits evtable="EVENTS" scfile=/scratch/kocevski/276803/ft2_4FGL_J1309.4+4305_daily_bin356.fits sctable="SC_DATA" expcube=/scratch/kocevski/276803/ltcube_331603201_331862401_4FGL_J1309.4+4305_daily_bin356.fits outfile=/scratch/kocevski/276803/expmap_331603201_331862401_4FGL_J1309.4+4305_daily_bin356.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/276803/ltcube_331603201_331862401_4FGL_J1309.4+4305_daily_bin356.fits
.....................!
real 189.55
user 185.32
sys 3.89

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/276803/ft1_filtered_4FGL_J1309.4+4305_daily_bin356.fits scfile=/scratch/kocevski/276803/ft2_4FGL_J1309.4+4305_daily_bin356.fits outfile=/scratch/kocevski/276803/cmap_331603201_331862401_4FGL_J1309.4+4305_daily_bin356.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/276803/ft1_filtered_4FGL_J1309.4+4305_daily_bin356.fits scfile=/scratch/kocevski/276803/ft2_4FGL_J1309.4+4305_daily_bin356.fits outfile=/scratch/kocevski/276803/cmap_HighResolution_331603201_331862401_4FGL_J1309.4+4305_daily_bin356.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.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.369       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.9129       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.2181       1.0000         .10000E-03   10000.    
     7 'norm      '    2.4045       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.330       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    13.498       1.0000         .10000E-03   10000.    
    13 'norm      '    3.7738       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    11.081       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.6286       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .99071       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.827       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.7300       1.0000         .10000E-03   10000.    
    23 'Prefactor '    29.425       1.0000         .10000E-03   10000.    
    24 'norm      '    8.7453       1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .95562       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .86252       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=   6137.988     FROM MIGRAD    STATUS=CONVERGED    621 CALLS     3195 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.6498        .16494E-06** at limit **
   2  Prefactor     20.378        17.201        .48422E-06    .14043E-03
   3  Prefactor     .10000E-03    4.4849       -.22021E-06** at limit **
   4  Prefactor     .10000E-03    6.0190       -.66004E-07** at limit **
   5  norm          6.9130        2.4141        .31981E-09   -.12414E-05
   6  Prefactor     8.2182        5.1819       -.24462E-07    .72954E-05
   7  norm          2.4041        3.7968        .12454E-06   -.26924E-04
   8  Prefactor     16.320        37.783       -.19506E-05   -.11208E-03
   9  Prefactor     .10000E-03    35.937       -.20043E-05** at limit **
  10  Prefactor     .10000E-03    4.8857        .20569E-06** at limit **
  11  norm          .10000E-03    4.0285       -.21778E-06** at limit **
  12  norm          13.498        11.271        .91550E-07    .71835E-05
  13  norm          3.7725        3.4098       -.16547E-06   -.94394E-04
  14  norm          .10000E-03    2.9745       -.88562E-07** at limit **
  15  norm          11.081        4.5709        .49742E-07   -.45219E-04
  16  Prefactor     3.6284        2.9847       -.28086E-06   -.12709E-03
  17  Prefactor     .98963        10.198        .42811E-05   -.12025E-03
  18  Prefactor     .10000E-03    33.175        .18149E-05** at limit **
  19  Prefactor     22.827        30.472       -.21141E-06   -.17507E-04
  20  Prefactor     .10000E-03    4.8020        .99201E-07** at limit **
  21  Prefactor     .10000E-03    19.894       -.99027E-07** at limit **
  22  norm          5.7300        3.5451        .44014E-07    .27723E-05
  23  Prefactor     29.425        51.901        .17830E-06    .34751E-06
  24  norm          8.7455        2.2182        .18899E-07   -.72246E-04
  25  norm          .10000E-03    3.7462        .23919E-06** at limit **
  26  Normalizat    .95554        .15509       -.29821E-06   -.19855E-04
  27  Prefactor     .86262        .19057        .13454E-06   -.31435E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 20.3777
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.91296
  Prefactor  = 8.21817
  norm       = 2.4041
  Prefactor  = 16.3199
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 13.4983
  norm       = 3.77248
  norm       = 0.0001
  norm       = 11.0814
  Prefactor  = 3.62842
  Prefactor  = 0.989632
  Prefactor  = 0.000100002
  Prefactor  = 22.8265
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.72998
  Prefactor  = 29.4251
  norm       = 8.74555
  norm       = 0.0001
  Normalizat = 0.955536
  Prefactor  = 0.862621
 **********
 **   18 **HESSE 
 **********

 FCN=   6137.988     FROM HESSE     STATUS=OK           490 CALLS     3685 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.6599        .12426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.378        17.290        .88747E-04   -1.4805    
   3  Prefactor     .10000E-03    4.5037        .16230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.0236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.9130        2.4146        .69926E-04   -1.5182    
   6  Prefactor     8.2182        5.1817        .13727E-03   -1.5135    
   7  norm          2.4041        3.7741        .18376E-03   -1.5398    
   8  Prefactor     16.320        38.781        .99112E-04   -1.4900    
   9  Prefactor     .10000E-03    37.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.9046        .16934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.0880        .15340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          13.498        11.277        .10902E-03   -1.4973    
  13  norm          3.7725        3.3858        .12935E-03   -1.5319    
  14  norm          .10000E-03    2.9785        .13161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          11.081        4.5705        .10370E-03   -1.5042    
  16  Prefactor     3.6284        2.9780        .11333E-03   -1.5327    
  17  Prefactor     .98963        10.627        .48314E-03   -1.5509    
  18  Prefactor     .10000E-03    34.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     22.827        30.466        .83837E-04   -1.4752    
  20  Prefactor     .10000E-03    4.8086        .16768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    19.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.7300        3.5442        .11222E-03   -1.5229    
  23  Prefactor     29.425        52.106        .73860E-04   -1.4623    
  24  norm          8.7455        2.2228        .55600E-04   -1.5116    
  25  norm          .10000E-03    3.7624        .14837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .95554        .18266        .22231E-03   -.94535    
  27  Prefactor     .86262        .22308        .29391E-03   -.97460    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.2469e-10
Minuit parameter uncertainties:
  1  4.86004e-06
  2  17.2939
  3  2.40433e-05
  4  7.42909e-06
  5  2.41467
  6  5.18196
  7  3.7745
  8  38.8411
  9  0.000475943
  10  2.41608e-05
  11  1.57446e-05
  12  11.2786
  13  3.38598
  14  2.74977e-06
  15  4.57069
  16  2.97807
  17  6.48711
  18  0.000500167
  19  30.4865
  20  9.35611e-06
  21  2.37476e-05
  22  3.54429
  23  52.1862
  24  2.22285
  25  2.20805e-05
  26  0.182778
  27  0.223314
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.350e+01  1.128e+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.626e-01  2.233e-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.555e-01  1.828e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.85
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.41e-08 +/- 1.18e-08
Energy Flux (Fixed Index): 1.55e-05 +/- 1.30e-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) = 6137.29684301
delta logL = 0.691200023971

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6137.2164661
delta logL = 0.771576931838

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.6396       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0055       1.0000          .0000       5.0000    
     3 'Normalizat'    .95860       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86654       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=   6137.216     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      209 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.6396        7.9562        .34094E-02   -.38311E-02
   2  alpha         1.0054        .43495        .37964       -.29803E-04
   3  Normalizat    .95865        .14907        .45646E-01    .96660E-05
   4  Prefactor     .86651        .18930        .66325E-01    .16575E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.63961
  alpha      = 1.00536
  Normalizat = 0.958647
  Prefactor  = 0.866512
 **********
 **   18 **HESSE 
 **********

 FCN=   6137.216     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.6396        10.680        .13637E-03   -1.5120    
   2  alpha         1.0054        .59919        .16240E-01   -.64082    
   3  Normalizat    .95865        .17475        .22196E-03   -.94429    
   4  Prefactor     .86651        .22183        .29339E-03   -.97321    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93234e-08
Minuit parameter uncertainties:
  1  10.6825
  2  0.608495
  3  0.174852
  4  0.222061
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/276803': 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) = 6137.21646599
delta logL = 0.771577042189

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  8.640e+00  1.068e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.005e+00  6.085e-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.665e-01  2.221e-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.586e-01  1.749e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.39
Ra Dec: 197.363 43.085
Photon Index (Free Index): 1.01 +/- 0.61
Photon Flux (Free Index): 6.00e-09 +/- 6.51e-09
Energy Flux (Free Index): 4.85e-05 +/- 6.05e-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/276803/cmap_HighResolution_331603201_331862401_4FGL_J1309.4+4305_daily_bin356.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.41e-08', energy_flux2='4.85e-05', photon_flux_error='1.18e-08', dlogl='7.72e-01', energy_flux='1.55e-05', photon_flux2='6.00e-09', job_status='DONE', time_completed='2021-09-07 01:04:02.516930', photon_index_error2='0.61', photon_index2='1.01', ts='10.85', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='6.05e-05', EG='0.96', time_epoch_completed='1631001842.52', return_code='0', job_id='276803', GAL2='0.87', EG2='0.96', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='6.51e-09', ts2='12.39', photon_index='1.77' WHERE bin_id='356' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:04:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 276803: <4FGL_J1309.4+4305_daily_bin356> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin356> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 00:50:37 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:51:03 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:51:03 2021
Terminated at Tue Sep  7 01:04:03 2021
Results reported at Tue Sep  7 01:04:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin356 197.363 43.085 331603201 331862401 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 :                                   744.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            806 sec.

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

