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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin812
RA = 197.363, Dec = 43.085
tmin = 449798401, tmax = 450057601
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='279832', job_status='RUN', time_executed='2021-09-07 01:04:19.367289', time_epoch_executed='1631001859.37' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='812'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279832

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279832/ft1_4FGL_J1309.4+4305_daily_bin812.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279832/ft2_4FGL_J1309.4+4305_daily_bin812.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279832/ft1_4FGL_J1309.4+4305_daily_bin812.fits outfile=/scratch/kocevski/279832/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin812.fits ra=197.363 dec=43.085 rad=12.0 tmin=449798401.0 tmax=450057601.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 4.77
user 4.16
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279832/ft1_filtered_4FGL_J1309.4+4305_daily_bin812.fits evtable="EVENTS" scfile=/scratch/kocevski/279832/ft2_4FGL_J1309.4+4305_daily_bin812.fits sctable="SC_DATA" expcube=/scratch/kocevski/279832/ltcube_449798401_450057601_4FGL_J1309.4+4305_daily_bin812.fits outfile=/scratch/kocevski/279832/expmap_449798401_450057601_4FGL_J1309.4+4305_daily_bin812.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/279832/ltcube_449798401_450057601_4FGL_J1309.4+4305_daily_bin812.fits
.....................!
real 201.15
user 189.39
sys 5.10

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/279832/ft1_filtered_4FGL_J1309.4+4305_daily_bin812.fits scfile=/scratch/kocevski/279832/ft2_4FGL_J1309.4+4305_daily_bin812.fits outfile=/scratch/kocevski/279832/cmap_449798401_450057601_4FGL_J1309.4+4305_daily_bin812.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.69
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/279832/ft1_filtered_4FGL_J1309.4+4305_daily_bin812.fits scfile=/scratch/kocevski/279832/ft2_4FGL_J1309.4+4305_daily_bin812.fits outfile=/scratch/kocevski/279832/cmap_HighResolution_449798401_450057601_4FGL_J1309.4+4305_daily_bin812.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.61
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.7027       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.822       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.5359       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    47.734       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.9947       1.0000         .10000E-03   10000.    
    11 'norm      '    5.3045       1.0000         .10000E-03   10000.    
    12 'norm      '    13.229       1.0000         .10000E-03   10000.    
    13 'norm      '    19.107       1.0000         .10000E-03   10000.    
    14 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14125E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.0116       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.402       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10482E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    10.650       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .14170E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    9.5090       1.0000         .10000E-03   10000.    
    25 'norm      '    .10141E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2919       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .66731       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=   5506.827     FROM MIGRAD    STATUS=CONVERGED   1133 CALLS     3759 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.7012        6.2431        .14449E-03   -.39106E-04
   2  Prefactor     .10000E-03    15.700        .18142E-02** at limit **
   3  Prefactor     16.841        21.032        .97652E-04   -.54369E-04
   4  Prefactor     .10000E-03    7.7752        .18142E-02** at limit **
   5  norm          1.5355        1.8254        .10689E-03   -.13572E-03
   6  Prefactor     .10000E-03    1.9418        .10094E-02** at limit **
   7  norm          .10000E-03    2.0484        .10358E-02** at limit **
   8  Prefactor     .10000E-03    38.317        .18142E-02** at limit **
   9  Prefactor     47.701        42.092        .58038E-04   -.51909E-04
  10  Prefactor     8.9944        13.527        .13364E-03   -.93831E-04
  11  norm          5.3053        6.7075        .17451E-03   -.36978E-03
  12  norm          13.228        12.407        .11013E-03   -.99103E-05
  13  norm          19.109        7.1567        .91629E-04   -.72034E-03
  14  norm          .10000E-03    7.6688        .18142E-02** at limit **
  15  norm          .10000E-03    2.6827        .11789E-02** at limit **
  16  Prefactor     .10001E-03    22.388        .20401E-02** at limit **
  17  Prefactor     .10000E-03    9.4114        .18142E-02** at limit **
  18  Prefactor     .95997        277.39        .82499E-02    .37047E-04
  19  Prefactor     .10000E-03    28.047        .18142E-02** at limit **
  20  Prefactor     12.395        20.338        .11375E-03    .17991E-04
  21  Prefactor     .10000E-03    30.516        .18142E-02** at limit **
  22  norm          10.653        6.7630        .12277E-03    .50283E-04
  23  Prefactor     .10000E-03    59.903        .18142E-02** at limit **
  24  norm          9.5094        2.3708        .54491E-04   -.11079E-03
  25  norm          .10000E-03    6.2844        .18140E-02** at limit **
  26  Normalizat    1.2920        .22197        .21981E-03    .41004E-04
  27  Prefactor     .66733        .25253        .35300E-03   -.23897E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.70117
  Prefactor  = 0.0001
  Prefactor  = 16.8406
  Prefactor  = 0.0001
  norm       = 1.53552
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.7012
  Prefactor  = 8.99444
  norm       = 5.30531
  norm       = 13.2282
  norm       = 19.1093
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.959968
  Prefactor  = 0.0001
  Prefactor  = 12.395
  Prefactor  = 0.0001
  norm       = 10.6527
  Prefactor  = 0.0001
  norm       = 9.50943
  norm       = 0.0001
  Normalizat = 1.29198
  Prefactor  = 0.667329
 **********
 **   18 **HESSE 
 **********

 FCN=   5506.827     FROM HESSE     STATUS=OK           462 CALLS     4221 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.7012        6.2424        .57795E-05   -1.5153    
   2  Prefactor     .10000E-03    15.702        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.841        21.028        .39061E-05   -1.4887    
   4  Prefactor     .10000E-03    7.7754        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.5355        1.8253        .42755E-05   -1.5460    
   6  Prefactor     .10000E-03    1.9418        .20188E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.0484        .20716E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    38.318        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     47.701        42.080        .11608E-04   -1.4326    
  10  Prefactor     8.9944        13.525        .53456E-05   -1.5108    
  11  norm          5.3053        6.7047        .69803E-05   -1.5247    
  12  norm          13.228        12.406        .44051E-05   -1.4980    
  13  norm          19.109        7.1531        .18326E-04   -1.4833    
  14  norm          .10000E-03    7.6695        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.6832        .23578E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    22.860        .40801E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.4125        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .95997        279.68        .32999E-03   -1.5512    
  19  Prefactor     .10000E-03    28.048        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.395        20.338        .45498E-05   -1.5004    
  21  Prefactor     .10000E-03    30.518        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          10.653        6.7541        .49108E-05   -1.5055    
  23  Prefactor     .10000E-03    59.906        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          9.5094        2.3702        .21796E-05   -1.5091    
  25  norm          .10000E-03    6.2852        .36281E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2920        .22101        .43962E-04   -.83806    
  27  Prefactor     .66733        .25254        .14120E-04   -1.0482    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29729e-09
Minuit parameter uncertainties:
  1  6.2429
  2  6.84928e-06
  3  21.0369
  4  4.9509e-05
  5  1.82538
  6  6.72145e-06
  7  1.52816e-05
  8  0.000149064
  9  42.1063
  10  13.5295
  11  6.70567
  12  12.4085
  13  7.15339
  14  6.6615e-05
  15  8.06154e-07
  16  0.000802811
  17  2.37941e-05
  18  32.9256
  19  7.81001e-05
  20  20.3494
  21  7.99758e-05
  22  6.75456
  23  9.75714e-05
  24  2.37021
  25  3.69365e-06
  26  0.221168
  27  0.252973
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.323e+01  1.241e+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:  6.673e-01  2.530e-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.292e+00  2.212e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.09
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.39e-08 +/- 1.30e-08
Energy Flux (Fixed Index): 1.52e-05 +/- 1.43e-05

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) = 5506.68111554
delta logL = 0.145905143499

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5506.58784074
delta logL = 0.239179946925

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3755       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0586       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2998       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66702       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=   5506.588     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      214 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3370        7.8280        .36921E-02   -.55980E-03
   2  alpha         1.0564        .58976        .47011        .11010E-04
   3  Normalizat    1.2998        .18012        .49583E-01   -.53234E-03
   4  Prefactor     .66683        .21589        .79759E-01   -.16480E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.33697
  alpha      = 1.0564
  Normalizat = 1.29985
  Prefactor  = 0.666827
 **********
 **   18 **HESSE 
 **********

 FCN=   5506.588     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3370        10.449        .14768E-03   -1.5166    
   2  alpha         1.0564        .81082        .19896E-01   -.61559    
   3  Normalizat    1.2998        .20951        .21920E-03   -.83571    
   4  Prefactor     .66683        .25058        .35318E-03   -1.0484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.33267e-10
Minuit parameter uncertainties:
  1  10.4519
  2  0.83382
  3  0.209648
  4  0.251004
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279832': 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) = 5506.58783342
delta logL = 0.239187265134

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  7.337e+00  1.045e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.056e+00  8.338e-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:  6.668e-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.300e+00  2.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.56
Ra Dec: 197.363 43.085
Photon Index (Free Index): 1.06 +/- 0.83
Photon Flux (Free Index): 5.02e-09 +/- 6.45e-09
Energy Flux (Free Index): 3.57e-05 +/- 5.82e-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/279832/cmap_HighResolution_449798401_450057601_4FGL_J1309.4+4305_daily_bin812.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.39e-08', energy_flux2='3.57e-05', photon_flux_error='1.30e-08', dlogl='2.39e-01', energy_flux='1.52e-05', photon_flux2='5.02e-09', job_status='DONE', time_completed='2021-09-07 01:16:47.038135', photon_index_error2='0.83', photon_index2='1.06', ts='8.09', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', energy_flux_error2='5.82e-05', EG='1.29', time_epoch_completed='1631002607.04', return_code='0', job_id='279832', GAL2='0.67', EG2='1.30', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='6.45e-09', ts2='8.56', photon_index='1.77' WHERE bin_id='812' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:16:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 279832: <4FGL_J1309.4+4305_daily_bin812> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin812> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep  7 01:00:32 2021
Job was executed on host(s) <bullet0296>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:01:24 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:01:24 2021
Terminated at Tue Sep  7 01:16:47 2021
Results reported at Tue Sep  7 01:16:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin812 197.363 43.085 449798401 450057601 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 :                                   733.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            975 sec.

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

