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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin622
RA = 197.363, Dec = 43.085
tmin = 400550401, tmax = 400809601
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='278373', job_status='RUN', time_executed='2021-09-07 00:58:31.802598', time_epoch_executed='1631001511.8' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='622'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278373

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278373/ft1_4FGL_J1309.4+4305_daily_bin622.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278373/ft2_4FGL_J1309.4+4305_daily_bin622.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278373/ft1_4FGL_J1309.4+4305_daily_bin622.fits outfile=/scratch/kocevski/278373/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin622.fits ra=197.363 dec=43.085 rad=12.0 tmin=400550401.0 tmax=400809601.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.47
user 4.23
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/278373/ft1_filtered_4FGL_J1309.4+4305_daily_bin622.fits" evtable="EVENTS" scfile=/scratch/kocevski/278373/ft2_4FGL_J1309.4+4305_daily_bin622.fits sctable="SC_DATA" outfile=/scratch/kocevski/278373/ltcube_400550401_400809601_4FGL_J1309.4+4305_daily_bin622.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/278373/ft2_4FGL_J1309.4+4305_daily_bin622.fits
.....................!
real 17.00
user 16.60
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278373/ft1_filtered_4FGL_J1309.4+4305_daily_bin622.fits evtable="EVENTS" scfile=/scratch/kocevski/278373/ft2_4FGL_J1309.4+4305_daily_bin622.fits sctable="SC_DATA" expcube=/scratch/kocevski/278373/ltcube_400550401_400809601_4FGL_J1309.4+4305_daily_bin622.fits outfile=/scratch/kocevski/278373/expmap_400550401_400809601_4FGL_J1309.4+4305_daily_bin622.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/278373/ltcube_400550401_400809601_4FGL_J1309.4+4305_daily_bin622.fits
.....................!
real 193.61
user 188.19
sys 4.45

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/278373/ft1_filtered_4FGL_J1309.4+4305_daily_bin622.fits scfile=/scratch/kocevski/278373/ft2_4FGL_J1309.4+4305_daily_bin622.fits outfile=/scratch/kocevski/278373/cmap_400550401_400809601_4FGL_J1309.4+4305_daily_bin622.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.68
user 0.38
sys 0.18

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .17603E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.9421       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.2173       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .21086E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.6283       1.0000         .10000E-03   10000.    
    12 'norm      '    46.995       1.0000         .10000E-03   10000.    
    13 'norm      '    4.4246       1.0000         .10000E-03   10000.    
    14 'norm      '    .23750E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.9399       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .22637E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    28.893       1.0000         .10000E-03   10000.    
    20 'Prefactor '    35.452       1.0000         .10000E-03   10000.    
    21 'Prefactor '    26.128       1.0000         .10000E-03   10000.    
    22 'norm      '    14.876       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    7.3489       1.0000         .10000E-03   10000.    
    25 'norm      '    .10946E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0687       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .87558       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=   6436.349     FROM MIGRAD    STATUS=CONVERGED    673 CALLS     3360 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.2946        .99947E-07** at limit **
   2  Prefactor     .10014E-03    9.6470       -.17587E-05** at limit **
   3  Prefactor     .10000E-03    6.1908        .84877E-08** at limit **
   4  Prefactor     .10000E-03    7.0177       -.24585E-06** at limit **
   5  norm          3.9422        2.1441       -.13325E-07   -.51256E-04
   6  Prefactor     .10000E-03    2.3594       -.82126E-07** at limit **
   7  norm          1.2189        2.4077       -.32730E-06   -.72662E-03
   8  Prefactor     .10000E-03    24.351       -.17340E-05** at limit **
   9  Prefactor     .10000E-03    7.3353        .14812E-06** at limit **
  10  Prefactor     .10056E-03    13.501        .57366E-05** at limit **
  11  norm          7.6258        5.5547       -.12710E-05   -.14334E-02
  12  norm          46.997        20.494       -.17623E-06   -.82914E-04
  13  norm          4.4219        3.8136        .29704E-06    .98914E-03
  14  norm          .10143E-03    7.6285       -.13298E-05** at limit **
  15  norm          .10000E-03    2.1678       -.14511E-06** at limit **
  16  Prefactor     2.9388        2.7552        .26816E-06   -.44820E-03
  17  Prefactor     .10000E-03    10.351       -.36414E-06** at limit **
  18  Prefactor     .10000E-03    120.99        .13329E-04** at limit **
  19  Prefactor     28.888        41.837       -.42518E-05   -.86966E-04
  20  Prefactor     35.452        21.740        .97764E-07    .25622E-04
  21  Prefactor     26.138        27.525        .18364E-05   -.39960E-04
  22  norm          14.878        5.9840        .81228E-06    .18709E-03
  23  Prefactor     .10000E-03    40.731       -.15872E-04** at limit **
  24  norm          7.3491        1.9109       -.42270E-07   -.37898E-03
  25  norm          .10000E-03    32.232        .12194E-04** at limit **
  26  Normalizat    1.0690        .16251       -.68910E-06   -.55060E-03
  27  Prefactor     .87524        .20129       -.35391E-07   -.37858E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100136
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.94221
  Prefactor  = 0.0001
  norm       = 1.21893
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100565
  norm       = 7.62582
  norm       = 46.9972
  norm       = 4.42191
  norm       = 0.000101426
  norm       = 0.0001
  Prefactor  = 2.93881
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.8876
  Prefactor  = 35.452
  Prefactor  = 26.1377
  norm       = 14.8783
  Prefactor  = 0.000100003
  norm       = 7.34907
  norm       = 0.000100001
  Normalizat = 1.06895
  Prefactor  = 0.875245
 **********
 **   18 **HESSE 
 **********

 FCN=   6436.349     FROM HESSE     STATUS=OK           490 CALLS     3850 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.3060        .11863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10014E-03    46.426        .47423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.1989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.0224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.9422        2.1434        .84088E-04   -1.5311    
   6  Prefactor     .10000E-03    2.3665        .12027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.2189        2.3612        .17075E-03   -1.5487    
   8  Prefactor     .10000E-03    24.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.3519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10056E-03    55.095        .51049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.6258        5.4778        .14520E-03   -1.5156    
  12  norm          46.997        20.495        .58490E-04   -1.4336    
  13  norm          4.4219        4.1233        .11233E-03   -1.5287    
  14  norm          .10143E-03    10.417        .53658E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.2504        .23060E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.9388        2.7439        .11974E-03   -1.5365    
  17  Prefactor     .10000E-03    10.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    122.78        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     28.888        41.768        .74535E-04   -1.4633    
  20  Prefactor     35.452        21.759        .67306E-04   -1.4516    
  21  Prefactor     26.138        27.394        .78371E-04   -1.4685    
  22  norm          14.878        5.9842        .10384E-03   -1.4936    
  23  Prefactor     .10000E-03    40.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          7.3491        1.9116        .54045E-04   -1.5166    
  25  norm          .10000E-03    33.187        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0690        .18982        .22314E-03   -.90755    
  27  Prefactor     .87524        .23559        .30738E-03   -.97012    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43326e-08
Minuit parameter uncertainties:
  1  6.17554e-06
  2  0.00502753
  3  3.53814e-06
  4  8.03394e-06
  5  2.14341
  6  7.17074e-06
  7  2.36134
  8  5.96539e-05
  9  8.36237e-06
  10  0.0111644
  11  5.47811
  12  20.4985
  13  4.12354
  14  0.00771027
  15  5.69805e-06
  16  2.74406
  17  1.20176e-05
  18  5.53036e-05
  19  41.8102
  20  21.7639
  21  27.4073
  22  5.98444
  23  0.000753497
  24  1.91163
  25  0.000295327
  26  0.189941
  27  0.23586
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  4.700e+01  2.050e+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:  8.752e-01  2.359e-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.069e+00  1.899e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 24.72
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 4.92e-08 +/- 2.15e-08
Energy Flux (Fixed Index): 5.41e-05 +/- 2.36e-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) = 6435.92844758
delta logL = 0.420750450556

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6435.92203503
delta logL = 0.427162998193

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    42.303       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1558       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0349       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89376       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=   6435.922     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      264 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          42.279        247.17        .15409E-02   -.72025E-04
   2  alpha         2.1549        3.5766        .22237        .43371E-04
   3  Normalizat    1.0348        .12713        .41710E-01   -.15259E-03
   4  Prefactor     .89400        .96991E-01    .68748E-01   -.60729E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 42.2787
  alpha      = 2.15486
  Normalizat = 1.03485
  Prefactor  = 0.893998
 **********
 **   18 **HESSE 
 **********

 FCN=   6435.922     FROM HESSE     STATUS=OK            29 CALLS      293 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          42.279        20.135        .61635E-04   -1.4407    
   2  alpha         2.1549        .40909        .82934E-02   -.13850    
   3  Normalizat    1.0348        .19039        .22613E-03   -.91872    
   4  Prefactor     .89400        .23573        .30413E-03   -.96351    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75634e-11
Minuit parameter uncertainties:
  1  20.138
  2  0.410978
  3  0.190517
  4  0.235997
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278373': 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) = 6435.92202613
delta logL = 0.427171904694

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  4.228e+01  2.014e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  2.155e+00  4.110e-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:  8.940e-01  2.360e-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.035e+00  1.905e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 25.46
Ra Dec: 197.363 43.085
Photon Index (Free Index): 2.15 +/- 0.41
Photon Flux (Free Index): 7.79e-08 +/- 4.24e-08
Energy Flux (Free Index): 3.97e-05 +/- 1.86e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.355e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.614e-03 [aplpy.core]
Saving /scratch/kocevski/278373/cmap_HighResolution_400550401_400809601_4FGL_J1309.4+4305_daily_bin622.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.92e-08', energy_flux2='3.97e-05', photon_flux_error='2.15e-08', dlogl='4.27e-01', energy_flux='5.41e-05', photon_flux2='7.79e-08', job_status='DONE', time_completed='2021-09-07 01:11:40.528256', photon_index_error2='0.41', photon_index2='2.15', ts='24.72', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='1.86e-05', EG='1.07', time_epoch_completed='1631002300.53', return_code='0', job_id='278373', GAL2='0.89', EG2='1.03', return_code2='0', energy_flux_error='2.36e-05', photon_flux_error2='4.24e-08', ts2='25.46', photon_index='1.77' WHERE bin_id='622' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:11:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0181>
Subject: Job 278373: <4FGL_J1309.4+4305_daily_bin622> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin622> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 00:55:36 2021
Job was executed on host(s) <bullet0181>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:55:51 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:55:51 2021
Terminated at Tue Sep  7 01:11:41 2021
Results reported at Tue Sep  7 01:11:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin622 197.363 43.085 400550401 400809601 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 :                                   784.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             284.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            965 sec.

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

