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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin745
RA = 197.363, Dec = 43.085
tmin = 432432001, tmax = 432691201
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='279736', job_status='RUN', time_executed='2021-09-07 01:03:03.201158', time_epoch_executed='1631001783.2' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279736

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279736/ft1_4FGL_J1309.4+4305_daily_bin745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279736/ft2_4FGL_J1309.4+4305_daily_bin745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279736/ft1_4FGL_J1309.4+4305_daily_bin745.fits outfile=/scratch/kocevski/279736/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin745.fits ra=197.363 dec=43.085 rad=12.0 tmin=432432001.0 tmax=432691201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.35
user 5.00
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/279736/ft2_4FGL_J1309.4+4305_daily_bin745.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/279736/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin745.fits evtable="EVENTS" outfile="/scratch/kocevski/279736/ft1_filtered_4FGL_J1309.4+4305_daily_bin745.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.66
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/279736/ft1_filtered_4FGL_J1309.4+4305_daily_bin745.fits" evtable="EVENTS" scfile=/scratch/kocevski/279736/ft2_4FGL_J1309.4+4305_daily_bin745.fits sctable="SC_DATA" outfile=/scratch/kocevski/279736/ltcube_432432001_432691201_4FGL_J1309.4+4305_daily_bin745.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/279736/ft2_4FGL_J1309.4+4305_daily_bin745.fits
.....................!
real 15.86
user 15.37
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279736/ft1_filtered_4FGL_J1309.4+4305_daily_bin745.fits evtable="EVENTS" scfile=/scratch/kocevski/279736/ft2_4FGL_J1309.4+4305_daily_bin745.fits sctable="SC_DATA" expcube=/scratch/kocevski/279736/ltcube_432432001_432691201_4FGL_J1309.4+4305_daily_bin745.fits outfile=/scratch/kocevski/279736/expmap_432432001_432691201_4FGL_J1309.4+4305_daily_bin745.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/279736/ltcube_432432001_432691201_4FGL_J1309.4+4305_daily_bin745.fits
.....................!
real 193.44
user 186.79
sys 4.47

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/279736/ft1_filtered_4FGL_J1309.4+4305_daily_bin745.fits scfile=/scratch/kocevski/279736/ft2_4FGL_J1309.4+4305_daily_bin745.fits outfile=/scratch/kocevski/279736/cmap_432432001_432691201_4FGL_J1309.4+4305_daily_bin745.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 1.12
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/279736/ft1_filtered_4FGL_J1309.4+4305_daily_bin745.fits scfile=/scratch/kocevski/279736/ft2_4FGL_J1309.4+4305_daily_bin745.fits outfile=/scratch/kocevski/279736/cmap_HighResolution_432432001_432691201_4FGL_J1309.4+4305_daily_bin745.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.91
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14911E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    59.509       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.0963       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14848E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    82.164       1.0000         .10000E-03   10000.    
     9 'Prefactor '    35.670       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.189       1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.6163       1.0000         .10000E-03   10000.    
    13 'norm      '    8.4296       1.0000         .10000E-03   10000.    
    14 'norm      '    8.5563       1.0000         .10000E-03   10000.    
    15 'norm      '    .13213E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .86333       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10340E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10488E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    43.741       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11880E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    32.174       1.0000         .10000E-03   10000.    
    22 'norm      '    2.7612       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    7.5369       1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1403       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .58550       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=   4681.081     FROM MIGRAD    STATUS=CONVERGED    678 CALLS     4170 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.2998       -.45013E-07** at limit **
   2  Prefactor     .10032E-03    14.502        .58565E-05** at limit **
   3  Prefactor     59.492        26.785       -.14204E-07    .11017E-03
   4  Prefactor     .10000E-03    8.9800       -.60557E-07** at limit **
   5  norm          3.0959        2.1879       -.29117E-07    .75109E-04
   6  Prefactor     .10001E-03    31.897       -.16145E-04** at limit **
   7  norm          .10000E-03    6.4496       -.58761E-06** at limit **
   8  Prefactor     82.152        54.687        .67280E-06    .17865E-03
   9  Prefactor     35.718        32.598       -.68782E-08    .24299E-03
  10  Prefactor     13.190        14.787        .32623E-06    .45622E-03
  11  norm          .10000E-03    2.0976        .73732E-07** at limit **
  12  norm          7.6165        9.1369       -.67347E-07    .59575E-05
  13  norm          8.3772        10.532        .69653E-06    .14833E-02
  14  norm          8.6412        16.911        .16416E-06    .87745E-03
  15  norm          .10000E-03    2.5997       -.10331E-05** at limit **
  16  Prefactor     .85452        3.4696       -.11229E-05    .43513E-03
  17  Prefactor     .10000E-03    10.307        .63404E-06** at limit **
  18  Prefactor     .10000E-03    20.250        .40418E-06** at limit **
  19  Prefactor     43.789        56.435       -.17820E-05   -.16047E-03
  20  Prefactor     .10000E-03    60.207        .87341E-06** at limit **
  21  Prefactor     32.164        33.451        .30092E-06    .10803E-03
  22  norm          2.7554        5.1239       -.33305E-06    .16197E-03
  23  Prefactor     .10001E-03    27.742       -.23905E-05** at limit **
  24  norm          7.5365        2.0151       -.13635E-07    .24172E-03
  25  norm          .10000E-03    6.1734       -.27578E-07** at limit **
  26  Normalizat    1.1410        .18878       -.30608E-06    .67972E-03
  27  Prefactor     .58486        .22039        .21844E-05    .54158E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100316
  Prefactor  = 59.4918
  Prefactor  = 0.0001
  norm       = 3.09587
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 82.152
  Prefactor  = 35.7184
  Prefactor  = 13.1902
  norm       = 0.0001
  norm       = 7.61652
  norm       = 8.37717
  norm       = 8.64119
  norm       = 0.000100001
  Prefactor  = 0.854524
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 43.7893
  Prefactor  = 0.000100002
  Prefactor  = 32.1636
  norm       = 2.75544
  Prefactor  = 0.000100005
  norm       = 7.53652
  norm       = 0.0001
  Normalizat = 1.14096
  Prefactor  = 0.584856
 **********
 **   18 **HESSE 
 **********

 FCN=   4681.081     FROM HESSE     STATUS=OK           484 CALLS     4654 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.3073        .10132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10032E-03    142.52        .41474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     59.492        26.783        .52009E-04   -1.4164    
   4  Prefactor     .10000E-03    8.9952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.0959        2.1893        .82373E-04   -1.5356    
   6  Prefactor     .10001E-03    32.942        .30802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    6.5949        .33797E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     82.152        54.746        .22156E-03   -1.3893    
   9  Prefactor     35.718        32.733        .67101E-04   -1.4512    
  10  Prefactor     13.190        14.390        .11030E-03   -1.4981    
  11  norm          .10000E-03    2.1016        .96736E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.6165        9.1356        .14531E-03   -1.5156    
  13  norm          8.3772        11.604        .12301E-03   -1.5129    
  14  norm          8.6412        18.707        .13704E-03   -1.5120    
  15  norm          .10000E-03    6.6129        .21199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .85452        3.4604        .23298E-03   -1.5523    
  17  Prefactor     .10000E-03    10.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    20.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     43.789        56.613        .60617E-04   -1.4384    
  20  Prefactor     .10000E-03    61.129        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     32.164        33.431        .70641E-04   -1.4573    
  22  norm          2.7554        5.0734        .19618E-03   -1.5376    
  23  Prefactor     .10001E-03    27.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          7.5365        2.0158        .48420E-04   -1.5159    
  25  norm          .10000E-03    6.1948        .16603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1410        .21644        .20384E-03   -.88447    
  27  Prefactor     .58486        .25233        .33789E-03   -1.0823    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.97545e-09
Minuit parameter uncertainties:
  1  8.31771e-06
  2  0.0134602
  3  26.7887
  4  2.11011e-06
  5  2.18941
  6  0.000831086
  7  0.000106681
  8  54.7794
  9  32.7494
  10  14.3942
  11  1.97129e-05
  12  9.13723
  13  11.6067
  14  18.7195
  15  0.000174823
  16  3.43931
  17  0.000209665
  18  7.11497e-05
  19  56.6825
  20  0.000703601
  21  33.4506
  22  5.07417
  23  0.000782754
  24  2.01586
  25  9.06017e-06
  26  0.216612
  27  0.252819
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  7.617e+00  9.137e+00  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.769e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
351         beta:  8.354e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
352           Eb:  1.387e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  5.849e-01  2.528e-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.141e+00  2.166e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.88
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 7.98e-09 +/- 9.57e-09
Energy Flux (Fixed Index): 8.77e-06 +/- 1.05e-05

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

Saving results to:
/scratch/kocevski/279736/likelihoodResults_432432001_432691201_4FGL_J1309.4+4305_daily_bin745.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) = 4681.08074709
delta logL = 7.42279189581e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4681.08074249
delta logL = 1.20228105516e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.6302       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7649       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1410       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58484       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=   4681.081     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      220 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.6250        521.85        .36294E-02   -.39722E-04
   2  alpha         1.7641        4.1179        .43663       -.15611E-05
   3  Normalizat    1.1410        .13026        .36533E-01   -.12490E-03
   4  Prefactor     .58483        .11629        .76309E-01   -.46804E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.625
  alpha      = 1.76409
  Normalizat = 1.141
  Prefactor  = 0.584833
 **********
 **   18 **HESSE 
 **********

 FCN=   4681.081     FROM HESSE     STATUS=OK            31 CALLS      251 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.6250        9.3442        .14518E-03   -1.5156    
   2  alpha         1.7641        .93206        .21000E-01   -.29879    
   3  Normalizat    1.1410        .20469        .20384E-03   -.88446    
   4  Prefactor     .58483        .25056        .33789E-03   -1.0823    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13122e-11
Minuit parameter uncertainties:
  1  9.34597
  2  0.957481
  3  0.204837
  4  0.251038
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279736': 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) = 4681.08074191
delta logL = 1.26072764033e-05

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  7.625e+00  9.346e+00  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.764e+00  9.575e-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:  5.848e-01  2.510e-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.141e+00  2.048e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.88
Ra Dec: 197.363 43.085
Photon Index (Free Index): 1.76 +/- 0.96
Photon Flux (Free Index): 7.94e-09 +/- 1.20e-08
Energy Flux (Free Index): 8.82e-06 +/- 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/279736/cmap_HighResolution_432432001_432691201_4FGL_J1309.4+4305_daily_bin745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.65e-05', comment='SUCCESS', photon_flux='7.98e-09', energy_flux2='8.82e-06', photon_flux_error='9.57e-09', dlogl='1.26e-05', energy_flux='8.77e-06', photon_flux2='7.94e-09', job_status='DONE', time_completed='2021-09-07 01:16:31.030702', photon_index_error2='0.96', photon_index2='1.76', ts='1.88', fit_tolerance='1e-08', GAL='0.58', photon_index_error='0.00', photon_flux_upper_limit='4.23e-08', energy_flux_error2='1.58e-05', EG='1.14', time_epoch_completed='1631002591.03', return_code='0', job_id='279736', GAL2='0.58', EG2='1.14', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='1.20e-08', ts2='1.88', photon_index='1.77' WHERE bin_id='745' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:16:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 279736: <4FGL_J1309.4+4305_daily_bin745> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin745> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep  7 01:00:26 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:00:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 01:00:42 2021
Terminated at Tue Sep  7 01:16:31 2021
Results reported at Tue Sep  7 01:16:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin745 197.363 43.085 432432001 432691201 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 :                                   799.31 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             289.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            965 sec.

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

