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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin970
RA = 197.363, Dec = 43.085
tmin = 490752001, tmax = 491011201
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='282916', job_status='RUN', time_executed='2021-09-07 01:09:53.283648', time_epoch_executed='1631002193.28' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='970'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/282916

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/282916/ft1_4FGL_J1309.4+4305_daily_bin970.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/282916/ft2_4FGL_J1309.4+4305_daily_bin970.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/282916/ft1_4FGL_J1309.4+4305_daily_bin970.fits outfile=/scratch/kocevski/282916/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin970.fits ra=197.363 dec=43.085 rad=12.0 tmin=490752001.0 tmax=491011201.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.86
user 5.55
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/282916/ft1_filtered_4FGL_J1309.4+4305_daily_bin970.fits" evtable="EVENTS" scfile=/scratch/kocevski/282916/ft2_4FGL_J1309.4+4305_daily_bin970.fits sctable="SC_DATA" outfile=/scratch/kocevski/282916/ltcube_490752001_491011201_4FGL_J1309.4+4305_daily_bin970.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/282916/ft2_4FGL_J1309.4+4305_daily_bin970.fits
.....................!
real 17.71
user 17.12
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/282916/ft1_filtered_4FGL_J1309.4+4305_daily_bin970.fits evtable="EVENTS" scfile=/scratch/kocevski/282916/ft2_4FGL_J1309.4+4305_daily_bin970.fits sctable="SC_DATA" expcube=/scratch/kocevski/282916/ltcube_490752001_491011201_4FGL_J1309.4+4305_daily_bin970.fits outfile=/scratch/kocevski/282916/expmap_490752001_491011201_4FGL_J1309.4+4305_daily_bin970.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/282916/ltcube_490752001_491011201_4FGL_J1309.4+4305_daily_bin970.fits
.....................!
real 194.47
user 188.20
sys 5.57

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/282916/ft1_filtered_4FGL_J1309.4+4305_daily_bin970.fits scfile=/scratch/kocevski/282916/ft2_4FGL_J1309.4+4305_daily_bin970.fits outfile=/scratch/kocevski/282916/cmap_490752001_491011201_4FGL_J1309.4+4305_daily_bin970.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/282916/ft1_filtered_4FGL_J1309.4+4305_daily_bin970.fits scfile=/scratch/kocevski/282916/ft2_4FGL_J1309.4+4305_daily_bin970.fits outfile=/scratch/kocevski/282916/cmap_HighResolution_490752001_491011201_4FGL_J1309.4+4305_daily_bin970.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.59
user 0.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7448       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.2585       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11026E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.5429       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.100       1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.808       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1160       1.0000         .10000E-03   10000.    
    11 'norm      '    .10557E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    20.804       1.0000         .10000E-03   10000.    
    13 'norm      '    .10181E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.6083       1.0000         .10000E-03   10000.    
    15 'norm      '    .17792E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    40.083       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .23450E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.4841       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.5178       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .14885       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3109.676     FROM MIGRAD    STATUS=CONVERGED   1164 CALLS     4331 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7443        3.9909        .16563E-03   -.45406E-04
   2  Prefactor     .10000E-03    13.664        .18142E-02** at limit **
   3  Prefactor     .10000E-03    13.039        .18142E-02** at limit **
   4  Prefactor     .10000E-03    8.1532        .15551E-02** at limit **
   5  norm          1.2579        2.8524        .13736E-03   -.65345E-04
   6  Prefactor     .10000E-03    8.4694        .15683E-02** at limit **
   7  norm          5.5441        5.5262        .12486E-03    .10922E-03
   8  Prefactor     10.077        121.47        .12608E-03   -.60412E-05
   9  Prefactor     21.818        30.439        .85771E-04    .29690E-04
  10  Prefactor     2.1450        54.562        .28356E-03    .11667E-04
  11  norm          .10000E-03    5.2065        .12371E-02** at limit **
  12  norm          20.813        19.272        .43907E-03    .73924E-05
  13  norm          .10001E-03    9.3362        .23397E-02** at limit **
  14  norm          8.6050        7.6635        .13662E-03    .51674E-04
  15  norm          .10001E-03    73.802        .20314E-02** at limit **
  16  Prefactor     .10000E-03    1.8295        .73467E-03** at limit **
  17  Prefactor     .10000E-03    8.1074        .15498E-02** at limit **
  18  Prefactor     40.064        59.947        .63312E-04   -.40905E-04
  19  Prefactor     .10000E-03    34.051        .18142E-02** at limit **
  20  Prefactor     .10000E-03    43.933        .18142E-02** at limit **
  21  Prefactor     .10001E-03    242.67        .18142E-02** at limit **
  22  norm          .10000E-03    1.9484        .75919E-03** at limit **
  23  Prefactor     .10000E-03    41.016        .18142E-02** at limit **
  24  norm          .10001E-03    10.161        .11347E-02** at limit **
  25  norm          2.4821        18.551        .25937E-03   -.13566E-04
  26  Normalizat    1.5177        .25421        .17083E-03    .18567E-04
  27  Prefactor     .14887        .27845        .57388E-03    .10450E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.74429
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.25786
  Prefactor  = 0.0001
  norm       = 5.54414
  Prefactor  = 10.0765
  Prefactor  = 21.8185
  Prefactor  = 2.14503
  norm       = 0.0001
  norm       = 20.8133
  norm       = 0.000100006
  norm       = 8.60497
  norm       = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.064
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100012
  norm       = 2.48212
  Normalizat = 1.51773
  Prefactor  = 0.148871
 **********
 **   18 **HESSE 
 **********

 FCN=   3109.676     FROM HESSE     STATUS=OK           460 CALLS     4791 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7443        3.9908        .66250E-05   -1.5444    
   2  Prefactor     .10000E-03    13.666        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.041        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.1533        .31103E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.2579        2.8522        .54943E-05   -1.5484    
   6  Prefactor     .10000E-03    8.4733        .31365E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.5441        5.5258        .49943E-05   -1.5237    
   8  Prefactor     10.077        121.34        .50433E-05   -1.5073    
   9  Prefactor     21.818        30.428        .34308E-05   -1.4773    
  10  Prefactor     2.1450        54.488        .11342E-04   -1.5415    
  11  norm          .10000E-03    5.2067        .24742E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          20.813        19.270        .17563E-04   -1.4795    
  13  norm          .10001E-03    9.3614        .46794E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.6050        7.6597        .54650E-05   -1.5121    
  15  norm          .10001E-03    76.750        .81256E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.8296        .14693E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.1077        .30996E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     40.064        59.858        .12662E-04   -1.4441    
  19  Prefactor     .10000E-03    34.051        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    43.954        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    242.72        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.9485        .15184E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    41.017        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10001E-03    10.344        .22694E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.4821        18.549        .10375E-04   -1.5393    
  26  Normalizat    1.5177        .25375        .68332E-05   -.77281    
  27  Prefactor     .14887        .27785        .22955E-04   -1.3262    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03714e-09
Minuit parameter uncertainties:
  1  3.99138
  2  2.19094e-05
  3  2.51827e-05
  4  6.6183e-06
  5  2.85254
  6  4.35292e-05
  7  5.52634
  8  70.1106
  9  30.4499
  10  21.6435
  11  3.75343e-05
  12  19.2762
  13  0.000488168
  14  7.66055
  15  0.0013778
  16  4.76524e-06
  17  1.48104e-05
  18  59.9484
  19  8.50004e-05
  20  4.20763e-05
  21  0.00296271
  22  4.33939e-06
  23  0.000139661
  24  0.000710622
  25  13.5764
  26  0.253963
  27  0.280352
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  2.081e+01  1.928e+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.489e-01  2.804e-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.518e+00  2.540e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.37
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 2.18e-08 +/- 2.02e-08
Energy Flux (Fixed Index): 2.40e-05 +/- 2.22e-05

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

Saving results to:
/scratch/kocevski/282916/likelihoodResults_490752001_491011201_4FGL_J1309.4+4305_daily_bin970.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) = 3109.6306836
delta logL = 0.0455262461501

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3109.62869287
delta logL = 0.0475169781985

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.958       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0066       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5117       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .15090       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=   3109.629     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      224 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.958        604.44        .22414E-02    .30875E-04
   2  alpha         2.0066        2.7910        .36294        .14840E-04
   3  Normalizat    1.5117        .15594        .29807E-01    .19738E-04
   4  Prefactor     .15090        .10901        .12993        .56258E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 19.9582
  alpha      = 2.00662
  Normalizat = 1.51166
  Prefactor  = 0.150898
 **********
 **   18 **HESSE 
 **********

 FCN=   3109.629     FROM HESSE     STATUS=OK            31 CALLS      255 TOTAL
                     EDM=   .26E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.958        18.682        .89654E-04   -1.4814    
   2  alpha         2.0066        .77043        .12557E-01   -.19866    
   3  Normalizat    1.5117        .23954        .17109E-03   -.77451    
   4  Prefactor     .15090        .27152        .57023E-03   -1.3245    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55194e-12
Minuit parameter uncertainties:
  1  18.6878
  2  0.783723
  3  0.239715
  4  0.273821
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/282916': 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) = 3109.62869287
delta logL = 0.04751697847

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.996e+01  1.869e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  2.007e+00  7.837e-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:  1.509e-01  2.738e-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.512e+00  2.397e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.46
Ra Dec: 197.363 43.085
Photon Index (Free Index): 2.01 +/- 0.78
Photon Flux (Free Index): 2.91e-08 +/- 3.58e-08
Energy Flux (Free Index): 1.92e-05 +/- 2.08e-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/282916/cmap_HighResolution_490752001_491011201_4FGL_J1309.4+4305_daily_bin970.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.55e-05', comment='SUCCESS', photon_flux='2.18e-08', energy_flux2='1.92e-05', photon_flux_error='2.02e-08', dlogl='4.75e-02', energy_flux='2.40e-05', photon_flux2='2.91e-08', job_status='DONE', time_completed='2021-09-07 01:20:49.785844', photon_index_error2='0.78', photon_index2='2.01', ts='3.37', fit_tolerance='1e-08', GAL='0.15', photon_index_error='0.00', photon_flux_upper_limit='7.78e-08', energy_flux_error2='2.08e-05', EG='1.52', time_epoch_completed='1631002849.79', return_code='0', job_id='282916', GAL2='0.15', EG2='1.51', return_code2='0', energy_flux_error='2.22e-05', photon_flux_error2='3.58e-08', ts2='3.46', photon_index='1.77' WHERE bin_id='970' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:20:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0005>
Subject: Job 282916: <4FGL_J1309.4+4305_daily_bin970> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin970> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Sep  7 01:07:29 2021
Job was executed on host(s) <bullet0005>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:07:34 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:07:34 2021
Terminated at Tue Sep  7 01:20:50 2021
Results reported at Tue Sep  7 01:20:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin970 197.363 43.085 490752001 491011201 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 :                                   641.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             288.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            801 sec.

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

