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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin329
RA = 197.363, Dec = 43.085
tmin = 324604801, tmax = 324864001
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='276758', job_status='RUN', time_executed='2021-09-07 00:52:44.628937', time_epoch_executed='1631001164.63' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='329'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/276758

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/276758/ft1_4FGL_J1309.4+4305_daily_bin329.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/276758/ft2_4FGL_J1309.4+4305_daily_bin329.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/276758/ft1_4FGL_J1309.4+4305_daily_bin329.fits outfile=/scratch/kocevski/276758/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin329.fits ra=197.363 dec=43.085 rad=12.0 tmin=324604801.0 tmax=324864001.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 9.71
user 9.30
sys 0.34

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/276758/ft1_filtered_4FGL_J1309.4+4305_daily_bin329.fits evtable="EVENTS" scfile=/scratch/kocevski/276758/ft2_4FGL_J1309.4+4305_daily_bin329.fits sctable="SC_DATA" expcube=/scratch/kocevski/276758/ltcube_324604801_324864001_4FGL_J1309.4+4305_daily_bin329.fits outfile=/scratch/kocevski/276758/expmap_324604801_324864001_4FGL_J1309.4+4305_daily_bin329.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/276758/ltcube_324604801_324864001_4FGL_J1309.4+4305_daily_bin329.fits
.....................!
real 192.97
user 187.10
sys 5.38

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/276758/ft1_filtered_4FGL_J1309.4+4305_daily_bin329.fits scfile=/scratch/kocevski/276758/ft2_4FGL_J1309.4+4305_daily_bin329.fits outfile=/scratch/kocevski/276758/cmap_324604801_324864001_4FGL_J1309.4+4305_daily_bin329.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/276758/ft1_filtered_4FGL_J1309.4+4305_daily_bin329.fits scfile=/scratch/kocevski/276758/ft2_4FGL_J1309.4+4305_daily_bin329.fits outfile=/scratch/kocevski/276758/cmap_HighResolution_324604801_324864001_4FGL_J1309.4+4305_daily_bin329.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.58
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10338E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.778       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10345E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .51159       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.1841       1.0000         .10000E-03   10000.    
     8 'Prefactor '    108.00       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.188       1.0000         .10000E-03   10000.    
    11 'norm      '    6.5484       1.0000         .10000E-03   10000.    
    12 'norm      '    .24598E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .20374E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.973       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.327       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.1627       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1469       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1369       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=   3097.263     FROM MIGRAD    STATUS=CONVERGED    666 CALLS     3294 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.5143        .11468E-09** at limit **
   2  Prefactor     11.751        29.124       -.91390E-07   -.73689E-05
   3  Prefactor     .10000E-03    34.485       -.58527E-06** at limit **
   4  Prefactor     .10000E-03    20.356        .79915E-07** at limit **
   5  norm          .51136        2.1239        .86023E-06    .77640E-04
   6  Prefactor     .10000E-03    6.5233        .72336E-08** at limit **
   7  norm          3.1840        6.5404        .21695E-06    .91627E-05
   8  Prefactor     107.83        87.011        .55587E-06   -.90947E-05
   9  Prefactor     .10000E-03    38.483        .18638E-06** at limit **
  10  Prefactor     24.180        27.164       -.13846E-06   -.26252E-05
  11  norm          6.5497        9.3006        .12120E-06   -.52228E-05
  12  norm          .10000E-03    90.826       -.13673E-04** at limit **
  13  norm          .10000E-03    2.8336        .91024E-07** at limit **
  14  norm          .10000E-03    5.3166        .77088E-07** at limit **
  15  norm          .10111E-03    4.6803        .72629E-06** at limit **
  16  Prefactor     .10000E-03    3.2412        .47807E-07** at limit **
  17  Prefactor     .10000E-03    5.9840        .29332E-07** at limit **
  18  Prefactor     16.978        47.013       -.75198E-06   -.45468E-04
  19  Prefactor     .10000E-03    29.632        .74759E-07** at limit **
  20  Prefactor     16.333        26.151       -.90930E-06   -.39663E-04
  21  Prefactor     .10000E-03    27.187        .35822E-06** at limit **
  22  norm          1.1610        4.3138        .10556E-05    .53085E-04
  23  Prefactor     .10000E-03    58.386        .16373E-06** at limit **
  24  norm          .10000E-03    .88000        .18124E-06** at limit **
  25  norm          .10000E-03    26.321        .51527E-06** at limit **
  26  Normalizat    1.1471        .24227        .10524E-05   -.96398E-04
  27  Prefactor     1.1367        .29950       -.16440E-05   -.12687E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 11.7515
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.511363
  Prefactor  = 0.0001
  norm       = 3.18402
  Prefactor  = 107.835
  Prefactor  = 0.0001
  Prefactor  = 24.1801
  norm       = 6.54966
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000101106
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.9781
  Prefactor  = 0.0001
  Prefactor  = 16.3334
  Prefactor  = 0.0001
  norm       = 1.16103
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.14706
  Prefactor  = 1.13666
 **********
 **   18 **HESSE 
 **********

 FCN=   3097.263     FROM HESSE     STATUS=OK           490 CALLS     3784 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.5210        .11544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.751        29.140        .11673E-03   -1.5022    
   3  Prefactor     .10000E-03    34.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    20.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .51136        2.0841        .15755E-03   -1.5565    
   6  Prefactor     .10000E-03    6.5502        .13877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.1840        6.5180        .19747E-03   -1.5351    
   8  Prefactor     107.83        86.994        .19350E-03   -1.3627    
   9  Prefactor     .10000E-03    38.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     24.180        27.169        .81448E-04   -1.4724    
  11  norm          6.5497        9.2859        .15682E-03   -1.5196    
  12  norm          .10000E-03    90.944        .40068E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.8564        .91462E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.3386        .12531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10111E-03    9.4231        .38124E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.3234        .19550E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.9852        .13297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.978        46.902        .97216E-04   -1.4884    
  19  Prefactor     .10000E-03    29.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.333        25.889        .99120E-04   -1.4899    
  21  Prefactor     .10000E-03    27.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.1610        4.2124        .19788E-03   -1.5492    
  23  Prefactor     .10000E-03    58.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .89843        .50945E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    26.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1471        .28791        .23038E-03   -.88255    
  27  Prefactor     1.1367        .35412        .28859E-03   -.88303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.57345e-10
Minuit parameter uncertainties:
  1  5.75416e-08
  2  29.1755
  3  3.16975e-05
  4  5.50294e-06
  5  2.06459
  6  1.14267e-06
  7  6.51947
  8  87.0971
  9  1.27552e-05
  10  27.1831
  11  9.28798
  12  0.000388304
  13  9.15392e-07
  14  1.01142e-06
  15  0.00645653
  16  2.20827e-07
  17  2.77631e-07
  18  47.0036
  19  1.44444e-05
  20  25.9068
  21  1.16426e-05
  22  4.21352
  23  2.37964e-05
  24  8.54271e-07
  25  7.99468e-06
  26  0.288302
  27  0.354859
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  3.883e-04  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.137e+00  3.549e-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.147e+00  2.883e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/276758/likelihoodResults_324604801_324864001_4FGL_J1309.4+4305_daily_bin329.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): 102
logL (Free Index) = 3097.26264165
delta logL = -5.23391927345e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3097.17423719
delta logL = 0.0883521155097

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8395       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6203       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1406       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1311       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=   3097.174     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      356 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8323        476.45        .51491E-02    .30480E-03
   2  alpha         2.6169        3.1027        .41212        .74680E-05
   3  Normalizat    1.1405        .59551E-01    .52209E-01   -.20291E-04
   4  Prefactor     1.1312        .72973E-01    .65330E-01    .15611E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.83227
  alpha      = 2.61694
  Normalizat = 1.14051
  Prefactor  = 1.13118
 **********
 **   18 **HESSE 
 **********

 FCN=   3097.174     FROM HESSE     STATUS=OK            33 CALLS      389 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8323        14.109        .20596E-03   -1.5316    
   2  alpha         2.6169        1.4936        .16930E-01    .46794E-01
   3  Normalizat    1.1405        .28115        .23084E-03   -.88461    
   4  Prefactor     1.1312        .35118        .28899E-03   -.88476    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83887e-10
Minuit parameter uncertainties:
  1  14.1208
  2  1.601
  3  0.281524
  4  0.351902
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/276758': 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) = 3097.17423057
delta logL = 0.0883587412791

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  3.832e+00  1.412e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  2.617e+00  1.601e+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.131e+00  3.519e-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.815e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 197.363 43.085

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/276758/cmap_HighResolution_324604801_324864001_4FGL_J1309.4+4305_daily_bin329.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.86e-05', job_status='DONE', photon_flux_upper_limit='7.15e-08', time_completed='2021-09-07 01:04:25.127259', job_id='276758', GAL2='1.13', fit_tolerance='1e-08', EG2='1.14', EG='1.15', time_epoch_completed='1631001865.13', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='8.84e-02', ts2='0.18', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='329' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:04:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 276758: <4FGL_J1309.4+4305_daily_bin329> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin329 197.363 43.085 324604801 324864001 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 :                                   628.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             300.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            833 sec.

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

