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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin395
RA = 197.363, Dec = 43.085
tmin = 341712001, tmax = 341971201
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='276866', job_status='RUN', time_executed='2021-09-07 00:51:33.756977', time_epoch_executed='1631001093.76' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='395'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/276866

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/276866/ft1_4FGL_J1309.4+4305_daily_bin395.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/276866/ft2_4FGL_J1309.4+4305_daily_bin395.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/276866/ft1_4FGL_J1309.4+4305_daily_bin395.fits outfile=/scratch/kocevski/276866/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin395.fits ra=197.363 dec=43.085 rad=12.0 tmin=341712001.0 tmax=341971201.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.49
user 3.16
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/276866/ft2_4FGL_J1309.4+4305_daily_bin395.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/276866/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin395.fits evtable="EVENTS" outfile="/scratch/kocevski/276866/ft1_filtered_4FGL_J1309.4+4305_daily_bin395.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/276866/ft1_filtered_4FGL_J1309.4+4305_daily_bin395.fits" evtable="EVENTS" scfile=/scratch/kocevski/276866/ft2_4FGL_J1309.4+4305_daily_bin395.fits sctable="SC_DATA" outfile=/scratch/kocevski/276866/ltcube_341712001_341971201_4FGL_J1309.4+4305_daily_bin395.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/276866/ft2_4FGL_J1309.4+4305_daily_bin395.fits
.....................!
real 15.45
user 15.05
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/276866/ft1_filtered_4FGL_J1309.4+4305_daily_bin395.fits evtable="EVENTS" scfile=/scratch/kocevski/276866/ft2_4FGL_J1309.4+4305_daily_bin395.fits sctable="SC_DATA" expcube=/scratch/kocevski/276866/ltcube_341712001_341971201_4FGL_J1309.4+4305_daily_bin395.fits outfile=/scratch/kocevski/276866/expmap_341712001_341971201_4FGL_J1309.4+4305_daily_bin395.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/276866/ltcube_341712001_341971201_4FGL_J1309.4+4305_daily_bin395.fits
.....................!
real 192.74
user 187.12
sys 5.12

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/276866/ft1_filtered_4FGL_J1309.4+4305_daily_bin395.fits scfile=/scratch/kocevski/276866/ft2_4FGL_J1309.4+4305_daily_bin395.fits outfile=/scratch/kocevski/276866/cmap_341712001_341971201_4FGL_J1309.4+4305_daily_bin395.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.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/276866/ft1_filtered_4FGL_J1309.4+4305_daily_bin395.fits scfile=/scratch/kocevski/276866/ft2_4FGL_J1309.4+4305_daily_bin395.fits outfile=/scratch/kocevski/276866/cmap_HighResolution_341712001_341971201_4FGL_J1309.4+4305_daily_bin395.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .57532       1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.051       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10331E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.5026       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .46456       1.0000         .10000E-03   10000.    
     7 'norm      '    2.5651       1.0000         .10000E-03   10000.    
     8 'Prefactor '    59.967       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10416E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .11978E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    5.0521       1.0000         .10000E-03   10000.    
    13 'norm      '    3.5781       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10167E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .20385E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .24773       1.0000         .10000E-03   10000.    
    18 'Prefactor '    91.777       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.1899       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .90561       1.0000         .10000E-03   10000.    
    23 'Prefactor '    41.595       1.0000         .10000E-03   10000.    
    24 'norm      '    20.340       1.0000         .10000E-03   10000.    
    25 'norm      '    5.6686       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .76076       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1288       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=   5788.965     FROM MIGRAD    STATUS=CONVERGED    688 CALLS     3417 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .58944        7.6311        .32849E-05   -.16723E-03
   2  Prefactor     28.962        26.575       -.41107E-05   -.51821E-03
   3  Prefactor     .10000E-03    36.085        .22160E-05** at limit **
   4  Prefactor     .10000E-03    8.1486       -.15961E-06** at limit **
   5  norm          3.5028        2.1847        .74115E-08   -.92464E-04
   6  Prefactor     .45460        3.3383        .44184E-06   -.11467E-03
   7  norm          2.5680        4.6864        .71717E-06    .73857E-04
   8  Prefactor     60.109        73.177        .23043E-05    .11776E-03
   9  Prefactor     .10000E-03    20.174       -.43764E-06** at limit **
  10  Prefactor     .10000E-03    6.4783       -.17051E-06** at limit **
  11  norm          .10003E-03    2.7807       -.52602E-06** at limit **
  12  norm          5.0405        18.988        .98062E-06    .15313E-04
  13  norm          3.5756        3.6293        .64493E-06    .10120E-03
  14  norm          .10000E-03    2.3201       -.53872E-07** at limit **
  15  norm          .10000E-03    5.7649        .66577E-06** at limit **
  16  Prefactor     .10000E-03    1.8248       -.94581E-07** at limit **
  17  Prefactor     .30596        7.0860        .72334E-06   -.21482E-03
  18  Prefactor     91.806        41.775        .38445E-06   -.16355E-04
  19  Prefactor     .10000E-03    43.077       -.57594E-06** at limit **
  20  Prefactor     8.2018        14.557        .27053E-05    .75296E-04
  21  Prefactor     .10000E-03    15.074        .14340E-06** at limit **
  22  norm          .90302        3.0052        .48860E-07   -.12587E-04
  23  Prefactor     41.645        59.586        .19879E-05    .44164E-04
  24  norm          20.340        2.8839        .41875E-07   -.17954E-04
  25  norm          5.6729        10.426        .39477E-06    .12953E-04
  26  Normalizat    .76074        .19934       -.66439E-05   -.15115E-04
  27  Prefactor     1.1286        .23827        .60309E-05   -.34624E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.58944
  Prefactor  = 28.9617
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.50276
  Prefactor  = 0.454601
  norm       = 2.56805
  Prefactor  = 60.1092
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100034
  norm       = 5.04055
  norm       = 3.5756
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.305958
  Prefactor  = 91.8061
  Prefactor  = 0.0001
  Prefactor  = 8.20184
  Prefactor  = 0.0001
  norm       = 0.903023
  Prefactor  = 41.6454
  norm       = 20.3401
  norm       = 5.67293
  Normalizat = 0.760738
  Prefactor  = 1.12857
 **********
 **   18 **HESSE 
 **********

 FCN=   5788.965     FROM HESSE     STATUS=OK           496 CALLS     3913 TOTAL
                     EDM=   .68E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .58944        15.806        .34915E-02   -1.5554    
   2  Prefactor     28.962        27.005        .74333E-04   -1.4631    
   3  Prefactor     .10000E-03    36.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.1623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.5028        2.1848        .86186E-04   -1.5334    
   6  Prefactor     .45460        12.430        .26234E-02   -1.5573    
   7  norm          2.5680        4.6532        .20901E-03   -1.5387    
   8  Prefactor     60.109        73.027        .25906E-03   -1.4156    
   9  Prefactor     .10000E-03    20.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.4871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10003E-03    25.261        .23719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.0405        19.004        .17889E-03   -1.5259    
  13  norm          3.5756        3.5595        .13271E-03   -1.5330    
  14  norm          .10000E-03    2.3219        .11305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.9816        .35548E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.5066        .18300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .30596        67.348        .36208E-02   -1.5597    
  18  Prefactor     91.806        41.652        .41947E-04   -1.3789    
  19  Prefactor     .10000E-03    43.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.2018        14.222        .70046E-03   -1.5135    
  21  Prefactor     .10000E-03    15.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .90302        2.8606        .21483E-03   -1.5518    
  23  Prefactor     41.645        59.582        .62155E-04   -1.4416    
  24  norm          20.340        2.8839        .46392E-04   -1.4806    
  25  norm          5.6729        10.414        .16872E-03   -1.5232    
  26  Normalizat    .76074        .21126        .25506E-03   -1.0154    
  27  Prefactor     1.1286        .25689        .27383E-03   -.88559    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.76367e-08
Minuit parameter uncertainties:
  1  6.10588
  2  27.0164
  3  0.000351873
  4  4.57634e-06
  5  2.18484
  6  4.75481
  7  4.65385
  8  73.1366
  9  6.40257e-05
  10  5.64732e-07
  11  0.00186593
  12  19.0271
  13  3.55971
  14  8.34227e-06
  15  9.7527e-06
  16  6.5935e-05
  17  9.08756
  18  41.6649
  19  0.000140262
  20  14.2283
  21  7.01257e-06
  22  2.86101
  23  59.6674
  24  2.88389
  25  10.4178
  26  0.211485
  27  0.257175
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  5.041e+00  1.903e+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:  1.129e+00  2.572e-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.607e-01  2.115e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 197.363 43.085
Photon Flux Upper Limit: 5.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.09e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/276866/likelihoodResults_341712001_341971201_4FGL_J1309.4+4305_daily_bin395.txt

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) = 5787.64391867
delta logL = 1.32157539596

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5787.62810174
delta logL = 1.33739233055

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5656       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3834       1.0000          .0000       5.0000    
     3 'Normalizat'    .68691       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1715       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5787.628     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      276 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5678        78.203        .46448E-03   -.36589E-03
   2  alpha         3.3830        4.1912        .87625E-02   -.30615E-04
   3  Normalizat    .68689        .20819        .26701E-03   -.15336E-03
   4  Prefactor     1.1715        .27132        .26892E-03   -.13951E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.5678
  alpha      = 3.38296
  Normalizat = 0.686893
  Prefactor  = 1.17155
 **********
 **   18 **HESSE 
 **********

 FCN=   5787.628     FROM HESSE     STATUS=OK            25 CALLS      301 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5678        7.7920        .18579E-04   -1.5330    
   2  alpha         3.3830        1.0075        .35050E-03    .36097    
   3  Normalizat    .68689        .20227        .10680E-04   -1.0441    
   4  Prefactor     1.1715        .25618        .53785E-04   -.87211    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.7581e-11
Minuit parameter uncertainties:
  1  7.79419
  2  1.04158
  3  0.202488
  4  0.256451
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/276866': 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) = 5787.62810159
delta logL = 1.33739247886

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  3.568e+00  7.794e+00  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  3.383e+00  1.042e+00  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.172e+00  2.565e-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:  6.869e-01  2.025e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.84
Ra Dec: 197.363 43.085
Photon Index (Free Index): 3.38 +/- 1.04
Photon Flux (Free Index): 7.24e-08 +/- 5.16e-08
Energy Flux (Free Index): 1.35e-05 +/- 9.74e-06

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/276866/cmap_HighResolution_341712001_341971201_4FGL_J1309.4+4305_daily_bin395.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.09e-05', comment='SUCCESS', energy_flux2='1.35e-05', dlogl='1.34e+00', photon_flux2='7.24e-08', job_status='DONE', time_completed='2021-09-07 01:06:18.198510', photon_index_error2='1.04', photon_index2='3.38', ts='0.08', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='5.54e-08', energy_flux_error2='9.74e-06', EG='0.76', time_epoch_completed='1631001978.2', return_code='0', job_id='276866', GAL2='1.17', EG2='0.69', return_code2='0', photon_flux_error2='5.16e-08', ts2='2.84', photon_index='1.77' WHERE bin_id='395' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:06:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0133>
Subject: Job 276866: <4FGL_J1309.4+4305_daily_bin395> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin395 197.363 43.085 341712001 341971201 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 :                                   833.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             288.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            945 sec.

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

