/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 192 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7476
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1309.4+4305_daily_bin299
RA = 197.363, Dec = 43.085
tmin = 316828801, tmax = 317088001
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='276711', job_status='RUN', time_executed='2021-09-07 00:54:01.520004', time_epoch_executed='1631001241.52' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='299'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/276711

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/276711/ft1_4FGL_J1309.4+4305_daily_bin299.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/276711/ft2_4FGL_J1309.4+4305_daily_bin299.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/276711/ft1_4FGL_J1309.4+4305_daily_bin299.fits outfile=/scratch/kocevski/276711/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin299.fits ra=197.363 dec=43.085 rad=12.0 tmin=316828801.0 tmax=317088001.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 3.49
user 3.26
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/276711/ft1_filtered_4FGL_J1309.4+4305_daily_bin299.fits evtable="EVENTS" scfile=/scratch/kocevski/276711/ft2_4FGL_J1309.4+4305_daily_bin299.fits sctable="SC_DATA" expcube=/scratch/kocevski/276711/ltcube_316828801_317088001_4FGL_J1309.4+4305_daily_bin299.fits outfile=/scratch/kocevski/276711/expmap_316828801_317088001_4FGL_J1309.4+4305_daily_bin299.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/276711/ltcube_316828801_317088001_4FGL_J1309.4+4305_daily_bin299.fits
.....................!
real 192.18
user 186.87
sys 4.57

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 208 point sources and 0 extended sources

Setting source of interest to:
4FGL J1309.4+4305 @ 197.363 43.085

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/276711/ft1_filtered_4FGL_J1309.4+4305_daily_bin299.fits scfile=/scratch/kocevski/276711/ft2_4FGL_J1309.4+4305_daily_bin299.fits outfile=/scratch/kocevski/276711/cmap_316828801_317088001_4FGL_J1309.4+4305_daily_bin299.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/276711/ft1_filtered_4FGL_J1309.4+4305_daily_bin299.fits scfile=/scratch/kocevski/276711/ft2_4FGL_J1309.4+4305_daily_bin299.fits outfile=/scratch/kocevski/276711/cmap_HighResolution_316828801_317088001_4FGL_J1309.4+4305_daily_bin299.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13161E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.2320       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14372E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.4896       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.7001       1.0000         .10000E-03   10000.    
     8 'Prefactor '    33.811       1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.069       1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.754       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    11.465       1.0000         .10000E-03   10000.    
    13 'norm      '    6.1985       1.0000         .10000E-03   10000.    
    14 'norm      '    .20430E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .21035E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.6305       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.1462       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.5384       1.0000         .10000E-03   10000.    
    24 'norm      '    2.4726       1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1175       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .76685       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=   5604.222     FROM MIGRAD    STATUS=CONVERGED    666 CALLS     3316 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    5.1080       -.26912E-05** at limit **
   2  Prefactor     3.2293        29.834        .15000E-04   -.34750E-03
   3  Prefactor     .10000E-03    52.482       -.37792E-05** at limit **
   4  Prefactor     .10000E-03    4.5114       -.69979E-06** at limit **
   5  norm          5.4893        3.0081        .20537E-07    .17725E-04
   6  Prefactor     .10000E-03    1.8992        .98745E-08** at limit **
   7  norm          7.7005        7.5601       -.45376E-06   -.34843E-03
   8  Prefactor     33.789        39.645       -.65103E-05   -.47015E-03
   9  Prefactor     31.078        32.366        .20273E-05    .10567E-03
  10  Prefactor     22.752        18.077       -.15565E-06   -.68953E-04
  11  norm          .10000E-03    1.9551        .25851E-07** at limit **
  12  norm          11.465        10.840        .36207E-06    .16300E-04
  13  norm          6.1988        4.6698       -.19556E-07   -.15249E-02
  14  norm          .10000E-03    4.8759        .88327E-06** at limit **
  15  norm          .10001E-03    1.8877        .19147E-06** at limit **
  16  Prefactor     3.6305        3.2251        .14916E-06   -.10955E-03
  17  Prefactor     .10000E-03    4.4094        .58157E-06** at limit **
  18  Prefactor     .10000E-03    13.892        .57468E-06** at limit **
  19  Prefactor     .10000E-03    19.693       -.28127E-05** at limit **
  20  Prefactor     .10000E-03    35.892        .39510E-05** at limit **
  21  Prefactor     .10000E-03    9.2056       -.19058E-05** at limit **
  22  norm          2.1465        3.9905        .12978E-05    .63469E-04
  23  Prefactor     6.5403        37.619        .10942E-05    .13211E-04
  24  norm          2.4726        1.2865        .18467E-07   -.71058E-04
  25  norm          .10000E-03    5.2761        .12315E-06** at limit **
  26  Normalizat    1.1175        .16828       -.89266E-06    .68911E-05
  27  Prefactor     .76690        .20074        .48067E-06   -.42283E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100007
  Prefactor  = 3.22935
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 5.48925
  Prefactor  = 0.0001
  norm       = 7.7005
  Prefactor  = 33.7894
  Prefactor  = 31.0778
  Prefactor  = 22.7518
  norm       = 0.0001
  norm       = 11.4654
  norm       = 6.19881
  norm       = 0.000100003
  norm       = 0.000100008
  Prefactor  = 3.63051
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.14647
  Prefactor  = 6.54028
  norm       = 2.47257
  norm       = 0.0001
  Normalizat = 1.11751
  Prefactor  = 0.766898
 **********
 **   18 **HESSE 
 **********

 FCN=   5604.222     FROM HESSE     STATUS=OK           490 CALLS     3806 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    14.217        .31108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.2293        36.766        .11266E-02   -1.5349    
   3  Prefactor     .10000E-03    54.207        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.5237        .15550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.4893        3.0076        .91901E-04   -1.5239    
   6  Prefactor     .10000E-03    1.9003        .10071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.7005        7.5729        .14451E-03   -1.5153    
   8  Prefactor     33.789        41.524        .68916E-04   -1.4545    
   9  Prefactor     31.078        32.501        .71883E-04   -1.4592    
  10  Prefactor     22.752        18.122        .83972E-04   -1.4754    
  11  norm          .10000E-03    1.9608        .10218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          11.465        10.847        .11831E-03   -1.5031    
  13  norm          6.1988        4.2588        .11982E-03   -1.5210    
  14  norm          .10000E-03    8.8410        .28812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10001E-03    16.347        .19818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.6305        3.2153        .12015E-03   -1.5327    
  17  Prefactor     .10000E-03    4.4201        .15363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    19.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    36.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.3065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.1465        3.9265        .19086E-03   -1.5415    
  23  Prefactor     6.5403        37.586        .15695E-03   -1.5196    
  24  norm          2.4726        1.2877        .58861E-04   -1.5393    
  25  norm          .10000E-03    5.2894        .16794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1175        .19638        .20784E-03   -.89192    
  27  Prefactor     .76690        .23241        .30416E-03   -1.0096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.39996e-09
Minuit parameter uncertainties:
  1  0.000618332
  2  21.8092
  3  0.000794605
  4  5.39378e-05
  5  3.00769
  6  9.85727e-07
  7  7.57379
  8  41.5598
  9  32.5198
  10  18.1266
  11  9.0766e-07
  12  10.8484
  13  4.25903
  14  0.000301398
  15  0.00073361
  16  3.21545
  17  4.23344e-05
  18  6.40374e-05
  19  0.000460917
  20  0.000252198
  21  0.000217147
  22  3.92694
  23  31.3874
  24  1.28773
  25  8.27213e-06
  26  0.196508
  27  0.232704
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.147e+01  1.085e+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:  7.669e-01  2.327e-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.118e+00  1.965e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.19
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.20e-08 +/- 1.14e-08
Energy Flux (Fixed Index): 1.32e-05 +/- 1.25e-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) = 5603.73066714
delta logL = 0.490987646793

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5603.69671467
delta logL = 0.524940112781

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.4553       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0947       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1198       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76959       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=   5603.697     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      215 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.4256        8.2387        .34466E-02   -.76876E-04
   2  alpha         1.0931        .48055        .40845       -.19451E-04
   3  Normalizat    1.1200        .16025        .37247E-01    .30336E-05
   4  Prefactor     .76935        .19895        .68646E-01    .17201E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.42557
  alpha      = 1.09312
  Normalizat = 1.11998
  Prefactor  = 0.769351
 **********
 **   18 **HESSE 
 **********

 FCN=   5603.697     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.4256        10.381        .13786E-03   -1.5127    
   2  alpha         1.0931        .63661        .17055E-01   -.59771    
   3  Normalizat    1.1200        .18586        .20762E-03   -.89113    
   4  Prefactor     .76935        .23048        .30373E-03   -1.0087    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.78992e-10
Minuit parameter uncertainties:
  1  10.3836
  2  0.647129
  3  0.185974
  4  0.230768
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/276711': 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) = 5603.69670979
delta logL = 0.524944990006

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  8.426e+00  1.038e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.093e+00  6.471e-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:  7.694e-01  2.308e-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.120e+00  1.860e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.24
Ra Dec: 197.363 43.085
Photon Index (Free Index): 1.09 +/- 0.65
Photon Flux (Free Index): 5.72e-09 +/- 6.74e-09
Energy Flux (Free Index): 3.71e-05 +/- 5.16e-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/276711/cmap_HighResolution_316828801_317088001_4FGL_J1309.4+4305_daily_bin299.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.20e-08', energy_flux2='3.71e-05', photon_flux_error='1.14e-08', dlogl='5.25e-01', energy_flux='1.32e-05', photon_flux2='5.72e-09', job_status='DONE', time_completed='2021-09-07 01:05:59.558712', photon_index_error2='0.65', photon_index2='1.09', ts='9.19', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', energy_flux_error2='5.16e-05', EG='1.12', time_epoch_completed='1631001959.56', return_code='0', job_id='276711', GAL2='0.77', EG2='1.12', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='6.74e-09', ts2='10.24', photon_index='1.77' WHERE bin_id='299' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:05:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 276711: <4FGL_J1309.4+4305_daily_bin299> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin299 197.363 43.085 316828801 317088001 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 :                                   699.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            931 sec.

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

