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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin478
RA = 197.363, Dec = 43.085
tmin = 363225601, tmax = 363484801
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='278165', job_status='RUN', time_executed='2021-09-07 00:55:36.111130', time_epoch_executed='1631001336.11' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='478'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278165

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278165/ft1_4FGL_J1309.4+4305_daily_bin478.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278165/ft2_4FGL_J1309.4+4305_daily_bin478.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278165/ft1_4FGL_J1309.4+4305_daily_bin478.fits outfile=/scratch/kocevski/278165/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin478.fits ra=197.363 dec=43.085 rad=12.0 tmin=363225601.0 tmax=363484801.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 8.32
user 6.74
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/278165/ft1_filtered_4FGL_J1309.4+4305_daily_bin478.fits" evtable="EVENTS" scfile=/scratch/kocevski/278165/ft2_4FGL_J1309.4+4305_daily_bin478.fits sctable="SC_DATA" outfile=/scratch/kocevski/278165/ltcube_363225601_363484801_4FGL_J1309.4+4305_daily_bin478.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/278165/ft2_4FGL_J1309.4+4305_daily_bin478.fits
.....................!
real 12.81
user 12.43
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278165/ft1_filtered_4FGL_J1309.4+4305_daily_bin478.fits evtable="EVENTS" scfile=/scratch/kocevski/278165/ft2_4FGL_J1309.4+4305_daily_bin478.fits sctable="SC_DATA" expcube=/scratch/kocevski/278165/ltcube_363225601_363484801_4FGL_J1309.4+4305_daily_bin478.fits outfile=/scratch/kocevski/278165/expmap_363225601_363484801_4FGL_J1309.4+4305_daily_bin478.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/278165/ltcube_363225601_363484801_4FGL_J1309.4+4305_daily_bin478.fits
.....................!
real 191.36
user 186.61
sys 4.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/278165/ft1_filtered_4FGL_J1309.4+4305_daily_bin478.fits scfile=/scratch/kocevski/278165/ft2_4FGL_J1309.4+4305_daily_bin478.fits outfile=/scratch/kocevski/278165/cmap_363225601_363484801_4FGL_J1309.4+4305_daily_bin478.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.39
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4332       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.3772       1.0000         .10000E-03   10000.    
     5 'norm      '    5.2233       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10504E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    68.219       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7329       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13779E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.8174       1.0000         .10000E-03   10000.    
    13 'norm      '    4.5811       1.0000         .10000E-03   10000.    
    14 'norm      '    .10332E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.5018       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .20108E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    79.519       1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.558       1.0000         .10000E-03   10000.    
    21 'Prefactor '    54.073       1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10293E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    11.227       1.0000         .10000E-03   10000.    
    25 'norm      '    28.281       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .76513       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .87901       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=   2500.256     FROM MIGRAD    STATUS=CONVERGED    663 CALLS     3326 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4346        8.4799        .44228E-05    .33707E-04
   2  Prefactor     .10000E-03    30.591        .11294E-05** at limit **
   3  Prefactor     .10000E-03    15.790       -.15624E-06** at limit **
   4  Prefactor     5.3805        36.115        .63600E-06    .13691E-04
   5  norm          5.2239        3.5304       -.58931E-08   -.32773E-04
   6  Prefactor     .10000E-03    3.7348       -.77006E-07** at limit **
   7  norm          .10007E-03    8.8448       -.15202E-05** at limit **
   8  Prefactor     68.168        92.337        .46121E-05   -.15103E-04
   9  Prefactor     2.7475        75.541        .14826E-05    .98951E-04
  10  Prefactor     .10008E-03    30.425       -.13245E-05** at limit **
  11  norm          .10000E-03    3.1135       -.31107E-07** at limit **
  12  norm          5.8227        20.292       -.71170E-06   -.75987E-05
  13  norm          4.5804        4.3640       -.19517E-06    .11773E-03
  14  norm          .10000E-03    13.299        .63722E-06** at limit **
  15  norm          1.5032        5.6056        .94345E-06   -.78852E-04
  16  Prefactor     .10000E-03    6.2776       -.43347E-06** at limit **
  17  Prefactor     .10000E-03    10.530       -.17080E-06** at limit **
  18  Prefactor     .10000E-03    195.35        .14548E-04** at limit **
  19  Prefactor     79.497        97.290        .23673E-05    .24229E-04
  20  Prefactor     19.562        24.408        .23688E-06   -.29780E-04
  21  Prefactor     54.101        52.733       -.37235E-05   -.12467E-03
  22  norm          .10000E-03    3.5819        .68501E-08** at limit **
  23  Prefactor     .10000E-03    144.47       -.99430E-05** at limit **
  24  norm          11.228        3.3867        .79086E-07   -.12240E-03
  25  norm          28.280        21.621        .13023E-06    .16120E-04
  26  Normalizat    .76516        .24541        .51710E-06    .72980E-04
  27  Prefactor     .87888        .30573       -.21305E-05    .61294E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.43463
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.38052
  norm       = 5.22393
  Prefactor  = 0.0001
  norm       = 0.000100074
  Prefactor  = 68.1684
  Prefactor  = 2.74754
  Prefactor  = 0.00010008
  norm       = 0.0001
  norm       = 5.82271
  norm       = 4.58038
  norm       = 0.0001
  norm       = 1.50319
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 79.4968
  Prefactor  = 19.562
  Prefactor  = 54.1008
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.2277
  norm       = 28.2803
  Normalizat = 0.765163
  Prefactor  = 0.878876
 **********
 **   18 **HESSE 
 **********

 FCN=   2500.256     FROM HESSE     STATUS=OK           488 CALLS     3814 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4346        8.5063        .12950E-02   -1.5396    
   2  Prefactor     .10000E-03    30.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.3805        36.118        .17330E-03   -1.5244    
   5  norm          5.2239        3.5282        .74570E-04   -1.5251    
   6  Prefactor     .10000E-03    3.7361        .94356E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10007E-03    39.368        .23849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     68.168        91.884        .24298E-03   -1.4055    
   9  Prefactor     2.7475        55.819        .24631E-03   -1.5376    
  10  Prefactor     .10008E-03    167.17        .51749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.1159        .86149E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.8227        20.251        .16651E-03   -1.5225    
  13  norm          4.5804        4.3019        .96501E-04   -1.5280    
  14  norm          .10000E-03    13.451        .35192E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.5032        5.5408        .21613E-03   -1.5463    
  16  Prefactor     .10000E-03    6.4528        .24319E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.543        .15846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    199.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     79.497        97.003        .45037E-04   -1.3922    
  20  Prefactor     19.562        24.317        .90567E-04   -1.4823    
  21  Prefactor     54.101        53.557        .54547E-04   -1.4236    
  22  norm          .10000E-03    3.5913        .92127E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    143.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          11.228        3.3872        .47745E-04   -1.5038    
  25  norm          28.280        21.616        .75335E-04   -1.4644    
  26  Normalizat    .76516        .28520        .23008E-03   -1.0137    
  27  Prefactor     .87888        .35636        .27192E-03   -.96883    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54034e-09
Minuit parameter uncertainties:
  1  8.51048
  2  1.81571e-05
  3  8.93627e-06
  4  27.9049
  5  3.52838
  6  1.48634e-06
  7  0.00341726
  8  92.076
  9  24.7941
  10  0.00733589
  11  2.87474e-07
  12  20.2748
  13  4.30216
  14  7.41823e-05
  15  5.54266
  16  2.63196e-05
  17  9.62099e-06
  18  0.000738656
  19  97.1971
  20  24.3296
  21  53.6051
  22  1.94561e-06
  23  0.000450604
  24  3.38722
  25  21.6217
  26  0.285759
  27  0.357308
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  5.823e+00  2.027e+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.789e-01  3.573e-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.652e-01  2.858e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/278165/likelihoodResults_363225601_363484801_4FGL_J1309.4+4305_daily_bin478.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) = 2499.21561601
delta logL = 1.04046092476

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2499.1695959
delta logL = 1.08648102832

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3930       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.8559       1.0000          .0000       5.0000    
     3 'Normalizat'    .67107       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94830       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=   2499.170     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      246 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3905        29.337        .92013E-02    .19557E-03
   2  alpha         3.8571        4.3940        .19523        .30577E-04
   3  Normalizat    .67126        .76873E-01    .41903E-01    .78341E-05
   4  Prefactor     .94819        .96107E-01    .45618E-01    .25502E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.39051
  alpha      = 3.85714
  Normalizat = 0.671265
  Prefactor  = 0.948189
 **********
 **   18 **HESSE 
 **********

 FCN=   2499.170     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      279 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3905        48.429        .47442E-04   -1.5472    
   2  alpha         3.8571        4.3093        .83486E-02    .57384    
   3  Normalizat    .67126        .28471        .24359E-03   -1.0504    
   4  Prefactor     .94819        .35752        .26240E-03   -.94477    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.59181e-10
Minuit parameter uncertainties:
  1  16.4261
  2  5.42744
  3  0.285341
  4  0.358416
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278165': 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): 102
logL (Free Index) = 2499.16959399
delta logL = 1.08648294073

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.391e+00  1.643e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  3.857e+00  5.427e+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:  9.482e-01  3.584e-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.713e-01  2.853e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.36
Ra Dec: 197.363 43.085
Photon Index (Free Index): 3.86 +/- 5.43
Photon Flux (Free Index): 8.01e-08 +/- 7.28e-08
Energy Flux (Free Index): 1.31e-05 +/- 1.58e-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/278165/cmap_HighResolution_363225601_363484801_4FGL_J1309.4+4305_daily_bin478.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.55e-05', comment='SUCCESS', energy_flux2='1.31e-05', dlogl='1.09e+00', photon_flux2='8.01e-08', job_status='DONE', time_completed='2021-09-07 01:04:55.819271', photon_index_error2='5.43', photon_index2='3.86', ts='0.11', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='7.79e-08', energy_flux_error2='1.58e-05', EG='0.77', time_epoch_completed='1631001895.82', return_code='0', job_id='278165', GAL2='0.95', EG2='0.67', return_code2='102', photon_flux_error2='7.28e-08', ts2='2.36', photon_index='1.77' WHERE bin_id='478' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:04:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 278165: <4FGL_J1309.4+4305_daily_bin478> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin478 197.363 43.085 363225601 363484801 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 :                                   550.27 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             287.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   573 sec.
    Turnaround time :                            575 sec.

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

