/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 18 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 = 7365
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1309.4+4305_daily_bin25
RA = 197.363, Dec = 43.085
tmin = 245808001, tmax = 246067201
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='274084', job_status='RUN', time_executed='2021-09-07 00:41:42.059988', time_epoch_executed='1631000502.06' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='25'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/274084

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/274084/ft1_4FGL_J1309.4+4305_daily_bin25.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/274084/ft2_4FGL_J1309.4+4305_daily_bin25.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/274084/ft1_4FGL_J1309.4+4305_daily_bin25.fits outfile=/scratch/kocevski/274084/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin25.fits ra=197.363 dec=43.085 rad=12.0 tmin=245808001.0 tmax=246067201.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 1.50
user 1.29
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/274084/ft1_filtered_4FGL_J1309.4+4305_daily_bin25.fits evtable="EVENTS" scfile=/scratch/kocevski/274084/ft2_4FGL_J1309.4+4305_daily_bin25.fits sctable="SC_DATA" expcube=/scratch/kocevski/274084/ltcube_245808001_246067201_4FGL_J1309.4+4305_daily_bin25.fits outfile=/scratch/kocevski/274084/expmap_245808001_246067201_4FGL_J1309.4+4305_daily_bin25.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/274084/ltcube_245808001_246067201_4FGL_J1309.4+4305_daily_bin25.fits
.....................!
real 192.67
user 187.12
sys 4.97

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/274084/ft1_filtered_4FGL_J1309.4+4305_daily_bin25.fits scfile=/scratch/kocevski/274084/ft2_4FGL_J1309.4+4305_daily_bin25.fits outfile=/scratch/kocevski/274084/cmap_245808001_246067201_4FGL_J1309.4+4305_daily_bin25.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/274084/ft1_filtered_4FGL_J1309.4+4305_daily_bin25.fits scfile=/scratch/kocevski/274084/ft2_4FGL_J1309.4+4305_daily_bin25.fits outfile=/scratch/kocevski/274084/cmap_HighResolution_245808001_246067201_4FGL_J1309.4+4305_daily_bin25.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.57
user 0.38
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.675       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.392       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.3849       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8315       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.3122       1.0000         .10000E-03   10000.    
    12 'norm      '    15.377       1.0000         .10000E-03   10000.    
    13 'norm      '    6.8813       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.7233       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .35543E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    53.366       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    28.048       1.0000         .10000E-03   10000.    
    22 'norm      '    5.7659       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .79481       1.0000         .10000E-03   10000.    
    25 'norm      '    .58073E-02   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .87925       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2118       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=   6522.531     FROM MIGRAD    STATUS=CONVERGED    647 CALLS     3269 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.675        7.6573       -.22229E-06   -.55787E-04
   2  Prefactor     13.394        20.727        .57297E-06   -.16144E-04
   3  Prefactor     .10000E-03    25.734       -.31357E-06** at limit **
   4  Prefactor     .10000E-03    4.4640        .41237E-07** at limit **
   5  norm          3.3851        2.2249       -.45826E-07   -.13494E-03
   6  Prefactor     .10000E-03    1.1456        .73516E-08** at limit **
   7  norm          .10000E-03    1.2469       -.64440E-08** at limit **
   8  Prefactor     2.8318        102.57        .17120E-06   -.20738E-04
   9  Prefactor     .10000E-03    10.597       -.12318E-06** at limit **
  10  Prefactor     .10000E-03    2.8979       -.10790E-06** at limit **
  11  norm          4.3126        3.5729       -.29839E-07   -.26085E-03
  12  norm          15.377        12.357       -.65090E-07   -.15168E-05
  13  norm          6.8814        3.8224        .25984E-06   -.58884E-03
  14  norm          .10000E-03    3.1482        .84240E-07** at limit **
  15  norm          4.7239        3.7622       -.32183E-06   -.19727E-03
  16  Prefactor     .10000E-03    1.4156        .87138E-06** at limit **
  17  Prefactor     .10000E-03    4.0413       -.11014E-07** at limit **
  18  Prefactor     .10000E-03    8.3215        .13311E-06** at limit **
  19  Prefactor     53.355        54.458       -.12316E-04   -.10649E-03
  20  Prefactor     .10000E-03    6.2095       -.22311E-06** at limit **
  21  Prefactor     28.049        26.863        .57281E-06    .16480E-04
  22  norm          5.7661        3.6045        .50222E-06    .38163E-05
  23  Prefactor     .10000E-03    47.932        .67983E-05** at limit **
  24  norm          .79534        1.1781       -.25405E-06   -.13767E-02
  25  norm          .10014E-03    10.874       -.18906E-05** at limit **
  26  Normalizat    .87904        .15963        .85094E-06   -.39475E-04
  27  Prefactor     1.2119        .20072        .25306E-07    .30852E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.675
  Prefactor  = 13.3937
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.38515
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.83183
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.31263
  norm       = 15.3766
  norm       = 6.8814
  norm       = 0.0001
  norm       = 4.72393
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 53.3548
  Prefactor  = 0.0001
  Prefactor  = 28.0489
  norm       = 5.76612
  Prefactor  = 0.0001
  norm       = 0.795341
  norm       = 0.000100142
  Normalizat = 0.879044
  Prefactor  = 1.21195
 **********
 **   18 **HESSE 
 **********

 FCN=   6522.531     FROM HESSE     STATUS=OK           492 CALLS     3761 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.675        7.6509        .12263E-03   -1.5054    
   2  Prefactor     13.394        20.689        .10945E-03   -1.4976    
   3  Prefactor     .10000E-03    25.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.4655        .16665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.3851        2.2228        .94719E-04   -1.5340    
   6  Prefactor     .10000E-03    1.1469        .84418E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.2520        .88054E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.8318        102.59        .24168E-03   -1.5371    
   9  Prefactor     .10000E-03    10.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.8993        .13426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.3126        3.5597        .13433E-03   -1.5293    
  12  norm          15.377        12.352        .10214E-03   -1.4924    
  13  norm          6.8814        3.7639        .11127E-03   -1.5183    
  14  norm          .10000E-03    3.1574        .13941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.7239        3.7638        .13503E-03   -1.5273    
  16  Prefactor     .10000E-03    6.8731        .17975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.0456        .15853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.3239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     53.355        54.391        .54905E-04   -1.4246    
  20  Prefactor     .10000E-03    6.2216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     28.049        26.783        .75647E-04   -1.4648    
  22  norm          5.7661        3.5998        .11714E-03   -1.5228    
  23  Prefactor     .10000E-03    47.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .79534        1.0736        .10207E-02   -1.5530    
  25  norm          .10014E-03    54.632        .50340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .87904        .18868        .24085E-03   -.97200    
  27  Prefactor     1.2119        .24063        .26871E-03   -.85965    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95573e-09
Minuit parameter uncertainties:
  1  7.65158
  2  20.7005
  3  2.99563e-05
  4  7.74543e-07
  5  2.22286
  6  2.20021e-07
  7  1.31006e-06
  8  34.1514
  9  9.55258e-06
  10  4.48239e-07
  11  3.55986
  12  12.3539
  13  3.76407
  14  9.81954e-06
  15  3.76404
  16  6.44779e-05
  17  1.14972e-05
  18  4.17089e-06
  19  54.4421
  20  1.1871e-05
  21  26.7941
  22  3.59989
  23  3.58009e-05
  24  1.07362
  25  0.00557035
  26  0.18882
  27  0.240845
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.538e+01  1.235e+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.212e+00  2.408e-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:  8.790e-01  1.888e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.85
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.61e-08 +/- 1.29e-08
Energy Flux (Fixed Index): 1.77e-05 +/- 1.42e-05

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

Saving results to:
/scratch/kocevski/274084/likelihoodResults_245808001_246067201_4FGL_J1309.4+4305_daily_bin25.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) = 6522.4517019
delta logL = 0.0796050160106

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6522.45121619
delta logL = 0.080090729105

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.670       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9936       1.0000          .0000       5.0000    
     3 'Normalizat'    .87589       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2137       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=   6522.451     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      255 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.679        330.58        .27084E-02    .83632E-04
   2  alpha         1.9943        3.1331        .36583        .31179E-04
   3  Normalizat    .87590        .81695E-01    .44593E-01    .14895E-04
   4  Prefactor     1.2136        .84462E-01    .60720E-01    .66415E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 13.6792
  alpha      = 1.99426
  Normalizat = 0.875904
  Prefactor  = 1.21357
 **********
 **   18 **HESSE 
 **********

 FCN=   6522.451     FROM HESSE     STATUS=OK            33 CALLS      288 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.679        12.625        .54168E-03   -1.4968    
   2  alpha         1.9943        .58707        .13368E-01   -.20370    
   3  Normalizat    .87590        .18518        .24125E-03   -.97312    
   4  Prefactor     1.2136        .23953        .26854E-03   -.85915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.23122e-10
Minuit parameter uncertainties:
  1  12.6271
  2  0.592847
  3  0.185312
  4  0.239749
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/274084': 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) = 6522.45121413
delta logL = 0.0800927913879

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.368e+01  1.263e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.994e+00  5.928e-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.214e+00  2.397e-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:  8.759e-01  1.853e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.00
Ra Dec: 197.363 43.085
Photon Index (Free Index): 1.99 +/- 0.59
Photon Flux (Free Index): 1.96e-08 +/- 1.74e-08
Energy Flux (Free Index): 1.32e-05 +/- 1.43e-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/274084/cmap_HighResolution_245808001_246067201_4FGL_J1309.4+4305_daily_bin25.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.50e-05', comment='SUCCESS', photon_flux='1.61e-08', energy_flux2='1.32e-05', photon_flux_error='1.29e-08', dlogl='8.01e-02', energy_flux='1.77e-05', photon_flux2='1.96e-08', job_status='DONE', time_completed='2021-09-07 00:55:59.498386', photon_index_error2='0.59', photon_index2='1.99', ts='3.85', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', photon_flux_upper_limit='5.01e-08', energy_flux_error2='1.43e-05', EG='0.88', time_epoch_completed='1631001359.5', return_code='0', job_id='274084', GAL2='1.21', EG2='0.88', return_code2='0', energy_flux_error='1.42e-05', photon_flux_error2='1.74e-08', ts2='4.00', photon_index='1.77' WHERE bin_id='25' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:55:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 274084: <4FGL_J1309.4+4305_daily_bin25> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin25> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 00:40:43 2021
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:41:15 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:41:15 2021
Terminated at Tue Sep  7 00:56:00 2021
Results reported at Tue Sep  7 00:56:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin25 197.363 43.085 245808001 246067201 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 :                                   855.40 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             324.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            917 sec.

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

