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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin294
RA = 197.363, Dec = 43.085
tmin = 315532801, tmax = 315792001
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='276703', job_status='RUN', time_executed='2021-09-07 00:52:42.120558', time_epoch_executed='1631001162.12' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='294'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/276703

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/276703/ft1_4FGL_J1309.4+4305_daily_bin294.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/276703/ft2_4FGL_J1309.4+4305_daily_bin294.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/276703/ft1_4FGL_J1309.4+4305_daily_bin294.fits outfile=/scratch/kocevski/276703/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin294.fits ra=197.363 dec=43.085 rad=12.0 tmin=315532801.0 tmax=315792001.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 15.04
user 2.93
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/276703/ft2_4FGL_J1309.4+4305_daily_bin294.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/276703/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin294.fits evtable="EVENTS" outfile="/scratch/kocevski/276703/ft1_filtered_4FGL_J1309.4+4305_daily_bin294.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.44
user 0.28
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/276703/ft1_filtered_4FGL_J1309.4+4305_daily_bin294.fits" evtable="EVENTS" scfile=/scratch/kocevski/276703/ft2_4FGL_J1309.4+4305_daily_bin294.fits sctable="SC_DATA" outfile=/scratch/kocevski/276703/ltcube_315532801_315792001_4FGL_J1309.4+4305_daily_bin294.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/276703/ft2_4FGL_J1309.4+4305_daily_bin294.fits
.....................!
real 10.56
user 10.13
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/276703/ft1_filtered_4FGL_J1309.4+4305_daily_bin294.fits evtable="EVENTS" scfile=/scratch/kocevski/276703/ft2_4FGL_J1309.4+4305_daily_bin294.fits sctable="SC_DATA" expcube=/scratch/kocevski/276703/ltcube_315532801_315792001_4FGL_J1309.4+4305_daily_bin294.fits outfile=/scratch/kocevski/276703/expmap_315532801_315792001_4FGL_J1309.4+4305_daily_bin294.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/276703/ltcube_315532801_315792001_4FGL_J1309.4+4305_daily_bin294.fits
.....................!
real 155.92
user 151.48
sys 3.69

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/276703/ft1_filtered_4FGL_J1309.4+4305_daily_bin294.fits scfile=/scratch/kocevski/276703/ft2_4FGL_J1309.4+4305_daily_bin294.fits outfile=/scratch/kocevski/276703/cmap_315532801_315792001_4FGL_J1309.4+4305_daily_bin294.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.51
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/276703/ft1_filtered_4FGL_J1309.4+4305_daily_bin294.fits scfile=/scratch/kocevski/276703/ft2_4FGL_J1309.4+4305_daily_bin294.fits outfile=/scratch/kocevski/276703/cmap_HighResolution_315532801_315792001_4FGL_J1309.4+4305_daily_bin294.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.48
user 0.32
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/276703/ft1_filtered_4FGL_J1309.4+4305_daily_bin294.fits', '/scratch/kocevski/276703/ft2_4FGL_J1309.4+4305_daily_bin294.fits', expMap='/scratch/kocevski/276703/expmap_315532801_315792001_4FGL_J1309.4+4305_daily_bin294.fits', expCube='/scratch/kocevski/276703/ltcube_315532801_315792001_4FGL_J1309.4+4305_daily_bin294.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/276703/Model_4FGL_J1309.4+4305_daily_bin294.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/276703/ft1_filtered_4FGL_J1309.4+4305_daily_bin294.fits
Spacecraft file(s): /scratch/kocevski/276703/ft2_4FGL_J1309.4+4305_daily_bin294.fits
Exposure map: /scratch/kocevski/276703/expmap_315532801_315792001_4FGL_J1309.4+4305_daily_bin294.fits
Exposure cube: /scratch/kocevski/276703/ltcube_315532801_315792001_4FGL_J1309.4+4305_daily_bin294.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/276703/Model_4FGL_J1309.4+4305_daily_bin294.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4084.30382942

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    27.969       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1288       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.081       1.0000         .10000E-03   10000.    
     5 'norm      '    5.2698       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.4246       1.0000         .10000E-03   10000.    
     7 'norm      '    17.373       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.314       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11482E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.3383       1.0000         .10000E-03   10000.    
    13 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.5773       1.0000         .10000E-03   10000.    
    15 'norm      '    .11810E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.5099       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.3386       1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.451       1.0000         .10000E-03   10000.    
    21 'Prefactor '    94.560       1.0000         .10000E-03   10000.    
    22 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    124.46       1.0000         .10000E-03   10000.    
    24 'norm      '    5.2316       1.0000         .10000E-03   10000.    
    25 'norm      '    16.308       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2594       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .26920       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=   4083.784     FROM MIGRAD    STATUS=CONVERGED    654 CALLS     3399 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          27.960        14.421        .18281E-05    .17603E-03
   2  Prefactor     2.2255        136.22       -.17669E-04   -.16998E-04
   3  Prefactor     .10000E-03    7.1690        .10760E-06** at limit **
   4  Prefactor     23.076        25.300       -.94819E-06   -.13818E-04
   5  norm          5.2708        2.7177        .79411E-08    .59714E-05
   6  Prefactor     2.4281        6.3315        .28290E-05   -.12663E-03
   7  norm          17.374        6.9886       -.88190E-07   -.13023E-03
   8  Prefactor     13.357        63.063       -.56471E-05    .20346E-04
   9  Prefactor     .10000E-03    62.346        .24517E-05** at limit **
  10  Prefactor     .10000E-03    8.4643        .22229E-06** at limit **
  11  norm          .10000E-03    2.4627        .73692E-07** at limit **
  12  norm          9.3411        10.966        .41144E-06   -.18370E-04
  13  norm          .10000E-03    3.2087       -.44491E-07** at limit **
  14  norm          2.5765        5.1781       -.23181E-06   -.39369E-04
  15  norm          .10000E-03    8.7403        .66122E-06** at limit **
  16  Prefactor     .10000E-03    1.4478       -.56668E-07** at limit **
  17  Prefactor     5.5146        10.774        .58986E-06   -.38115E-04
  18  Prefactor     .10000E-03    87.570       -.33524E-05** at limit **
  19  Prefactor     9.3613        68.316       -.40031E-05    .46221E-05
  20  Prefactor     17.463        17.660        .21509E-06   -.45302E-05
  21  Prefactor     94.607        58.010       -.18004E-05    .84359E-04
  22  norm          .10000E-03    2.7057        .14474E-06** at limit **
  23  Prefactor     124.43        108.80        .22687E-05   -.30415E-04
  24  norm          5.2333        2.3027        .69101E-07   -.34564E-04
  25  norm          16.325        19.511       -.32834E-06   -.12889E-04
  26  Normalizat    1.2589        .24405       -.11931E-05    .15251E-04
  27  Prefactor     .26966        .26669        .43598E-05    .54023E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 27.9596
  Prefactor  = 2.2255
  Prefactor  = 0.0001
  Prefactor  = 23.0764
  norm       = 5.27085
  Prefactor  = 2.42815
  norm       = 17.3743
  Prefactor  = 13.3569
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.34107
  norm       = 0.0001
  norm       = 2.57652
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.51458
  Prefactor  = 0.000100003
  Prefactor  = 9.36129
  Prefactor  = 17.4629
  Prefactor  = 94.6069
  norm       = 0.0001
  Prefactor  = 124.432
  norm       = 5.23335
  norm       = 16.3253
  Normalizat = 1.25886
  Prefactor  = 0.269658
 **********
 **   18 **HESSE 
 **********

 FCN=   4083.784     FROM HESSE     STATUS=OK           496 CALLS     3895 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          27.960        14.249        .75753E-04   -1.4650    
   2  Prefactor     2.2255        134.45        .28259E-03   -1.5410    
   3  Prefactor     .10000E-03    7.1711        .16712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     23.076        25.306        .83374E-04   -1.4747    
   5  norm          5.2708        2.7179        .73398E-04   -1.5249    
   6  Prefactor     2.4281        6.3408        .12231E-02   -1.5396    
   7  norm          17.374        6.9897        .96090E-04   -1.4874    
   8  Prefactor     13.357        62.878        .10978E-03   -1.4977    
   9  Prefactor     .10000E-03    63.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.4886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.4779        .97936E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.3411        10.954        .13115E-03   -1.5097    
  13  norm          .10000E-03    3.2352        .22058E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.5765        5.0858        .19445E-03   -1.5387    
  15  norm          .10000E-03    9.1062        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.4541        .74990E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.5146        10.737        .17117E-03   -1.5238    
  18  Prefactor     .10000E-03    86.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.3613        68.128        .13114E-03   -1.5096    
  20  Prefactor     17.463        17.661        .95876E-04   -1.4872    
  21  Prefactor     94.607        57.768        .20666E-03   -1.3760    
  22  norm          .10000E-03    2.7190        .10239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     124.43        109.65        .18040E-03   -1.3472    
  24  norm          5.2333        2.3004        .60330E-04   -1.5250    
  25  norm          16.325        19.494        .99180E-04   -1.4900    
  26  Normalizat    1.2589        .24373        .19666E-03   -.84803    
  27  Prefactor     .26966        .25576        .46320E-03   -1.2409    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41599e-10
Minuit parameter uncertainties:
  1  14.2505
  2  34.6763
  3  9.10843e-06
  4  25.3177
  5  2.71797
  6  6.3426
  7  6.99004
  8  58.0601
  9  0.000401548
  10  9.88086e-06
  11  4.13002e-06
  12  10.9565
  13  1.5666e-06
  14  5.0866
  15  3.87162e-05
  16  2.27231e-06
  17  10.7403
  18  0.00106286
  19  50.5893
  20  17.6659
  21  57.8024
  22  3.74748e-06
  23  109.828
  24  2.30043
  25  19.5013
  26  0.243949
  27  0.256832
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  9.341e+00  1.096e+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:  2.697e-01  2.568e-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.259e+00  2.439e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.10
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 9.79e-09 +/- 1.15e-08
Energy Flux (Fixed Index): 1.08e-05 +/- 1.26e-05

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

Saving results to:
/scratch/kocevski/276703/likelihoodResults_315532801_315792001_4FGL_J1309.4+4305_daily_bin294.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) = 4082.91049056
delta logL = 0.87371659599

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4082.83968212
delta logL = 0.944525034584

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0210       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.8068       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1344       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .36092       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=   4082.840     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      290 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0206        35.892        .52896E-04   -.20354E-02
   2  alpha         3.8073        4.3924        .81263E-02   -.15188E-03
   3  Normalizat    1.1342        .27170        .20551E-03   -.20243E-03
   4  Prefactor     .36101        .29522        .40366E-03   -.18695E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.02064
  alpha      = 3.80733
  Normalizat = 1.13421
  Prefactor  = 0.361012
 **********
 **   18 **HESSE 
 **********

 FCN=   4082.840     FROM HESSE     STATUS=OK            25 CALLS      315 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0206        4.9055        .21159E-05   -1.5424    
   2  alpha         3.8073        1.1541        .32505E-03    .55029    
   3  Normalizat    1.1342        .23420        .41102E-04   -.88661    
   4  Prefactor     .36101        .26217        .16146E-04   -1.1885    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21265e-09
Minuit parameter uncertainties:
  1  4.90647
  2  1.21958
  3  0.234411
  4  0.263043
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/276703': 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) = 4082.83968044
delta logL = 0.944526715025

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  2.021e+00  4.906e+00  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  3.807e+00  1.220e+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:  3.610e-01  2.630e-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.134e+00  2.344e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.09
Ra Dec: 197.363 43.085
Photon Index (Free Index): 3.81 +/- 1.22
Photon Flux (Free Index): 1.04e-07 +/- 7.54e-08
Energy Flux (Free Index): 1.72e-05 +/- 1.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/276703/cmap_HighResolution_315532801_315792001_4FGL_J1309.4+4305_daily_bin294.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.52e-05', comment='SUCCESS', photon_flux='9.79e-09', energy_flux2='1.72e-05', photon_flux_error='1.15e-08', dlogl='9.45e-01', energy_flux='1.08e-05', photon_flux2='1.04e-07', job_status='DONE', time_completed='2021-09-07 01:03:16.205274', photon_index_error2='1.22', photon_index2='3.81', ts='2.10', fit_tolerance='1e-08', GAL='0.27', photon_index_error='0.00', photon_flux_upper_limit='5.03e-08', energy_flux_error2='1.08e-05', EG='1.26', time_epoch_completed='1631001796.21', return_code='0', job_id='276703', GAL2='0.36', EG2='1.13', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='7.54e-08', ts2='4.09', photon_index='1.77' WHERE bin_id='294' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:03:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 276703: <4FGL_J1309.4+4305_daily_bin294> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin294> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 00:50:28 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:50:36 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:36 2021
Terminated at Tue Sep  7 01:03:17 2021
Results reported at Tue Sep  7 01:03:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin294 197.363 43.085 315532801 315792001 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 :                                   547.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             242.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   760 sec.
    Turnaround time :                            769 sec.

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

