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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin37
RA = 197.363, Dec = 43.085
tmin = 248918401, tmax = 249177601
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='274101', job_status='RUN', time_executed='2021-09-07 00:42:06.018802', time_epoch_executed='1631000526.02' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='37'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/274101

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/274101/ft1_4FGL_J1309.4+4305_daily_bin37.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/274101/ft2_4FGL_J1309.4+4305_daily_bin37.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/274101/ft1_4FGL_J1309.4+4305_daily_bin37.fits outfile=/scratch/kocevski/274101/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin37.fits ra=197.363 dec=43.085 rad=12.0 tmin=248918401.0 tmax=249177601.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.94
user 1.77
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/274101/ft1_filtered_4FGL_J1309.4+4305_daily_bin37.fits" evtable="EVENTS" scfile=/scratch/kocevski/274101/ft2_4FGL_J1309.4+4305_daily_bin37.fits sctable="SC_DATA" outfile=/scratch/kocevski/274101/ltcube_248918401_249177601_4FGL_J1309.4+4305_daily_bin37.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/274101/ft2_4FGL_J1309.4+4305_daily_bin37.fits
.....................!
real 17.08
user 16.70
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/274101/ft1_filtered_4FGL_J1309.4+4305_daily_bin37.fits evtable="EVENTS" scfile=/scratch/kocevski/274101/ft2_4FGL_J1309.4+4305_daily_bin37.fits sctable="SC_DATA" expcube=/scratch/kocevski/274101/ltcube_248918401_249177601_4FGL_J1309.4+4305_daily_bin37.fits outfile=/scratch/kocevski/274101/expmap_248918401_249177601_4FGL_J1309.4+4305_daily_bin37.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/274101/ltcube_248918401_249177601_4FGL_J1309.4+4305_daily_bin37.fits
.....................!
real 192.06
user 186.73
sys 4.82

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/274101/ft1_filtered_4FGL_J1309.4+4305_daily_bin37.fits scfile=/scratch/kocevski/274101/ft2_4FGL_J1309.4+4305_daily_bin37.fits outfile=/scratch/kocevski/274101/cmap_248918401_249177601_4FGL_J1309.4+4305_daily_bin37.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.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5783       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.3732       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.320       1.0000         .10000E-03   10000.    
     5 'norm      '    1.3491       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.609       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11323E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    8.1653       1.0000         .10000E-03   10000.    
    12 'norm      '    .82776E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.1398       1.0000         .10000E-03   10000.    
    15 'norm      '    3.6359       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.2567       1.0000         .10000E-03   10000.    
    18 'Prefactor '    52.856       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10298E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.2681       1.0000         .10000E-03   10000.    
    22 'norm      '    14.302       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    20.852       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1357       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .79923       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=   4406.682     FROM MIGRAD    STATUS=CONVERGED    663 CALLS     3790 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5828        9.2384       -.44837E-06   -.97897E-04
   2  Prefactor     1.3613        150.88        .18418E-05   -.88307E-05
   3  Prefactor     .10000E-03    15.011       -.14040E-05** at limit **
   4  Prefactor     10.323        22.415        .30885E-06    .30835E-05
   5  norm          1.3490        1.3031       -.12511E-07    .37735E-04
   6  Prefactor     .10000E-03    6.0699       -.23920E-07** at limit **
   7  norm          10.613        5.9824       -.18637E-08    .12463E-03
   8  Prefactor     .10000E-03    14.540        .11341E-05** at limit **
   9  Prefactor     .10000E-03    90.526       -.30706E-05** at limit **
  10  Prefactor     .10000E-03    7.1988       -.59915E-07** at limit **
  11  norm          8.1664        5.8013        .46913E-06   -.18050E-03
  12  norm          .10006E-03    7.9101       -.75846E-06** at limit **
  13  norm          .10000E-03    3.2681       -.33331E-06** at limit **
  14  norm          1.1431        5.3439        .46516E-06   -.82607E-04
  15  norm          3.6360        4.7456        .23084E-07    .35814E-05
  16  Prefactor     .10000E-03    2.4704       -.46589E-06** at limit **
  17  Prefactor     5.2586        12.155        .42675E-05   -.20914E-03
  18  Prefactor     52.886        52.428        .30033E-05    .20701E-03
  19  Prefactor     .10000E-03    31.524       -.36209E-05** at limit **
  20  Prefactor     .10000E-03    54.291        .45612E-05** at limit **
  21  Prefactor     3.2583        236.92       -.16401E-05   -.11678E-04
  22  norm          14.303        6.8613        .20535E-06   -.16869E-04
  23  Prefactor     .10000E-03    25.465        .23213E-05** at limit **
  24  norm          .10000E-03    1.3013       -.17661E-06** at limit **
  25  norm          20.855        22.552        .36867E-06    .36355E-05
  26  Normalizat    1.1357        .19796       -.79634E-06    .11333E-03
  27  Prefactor     .79929        .23461       -.37636E-06    .41030E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.58284
  Prefactor  = 1.3613
  Prefactor  = 0.0001
  Prefactor  = 10.3229
  norm       = 1.34903
  Prefactor  = 0.0001
  norm       = 10.6126
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 8.16638
  norm       = 0.00010006
  norm       = 0.0001
  norm       = 1.14312
  norm       = 3.63601
  Prefactor  = 0.0001
  Prefactor  = 5.25855
  Prefactor  = 52.8864
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 3.25825
  norm       = 14.3027
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 20.855
  Normalizat = 1.13572
  Prefactor  = 0.799285
 **********
 **   18 **HESSE 
 **********

 FCN=   4406.682     FROM HESSE     STATUS=OK           490 CALLS     4280 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5828        8.6021        .18813E-03   -1.5280    
   2  Prefactor     1.3613        134.37        .37189E-03   -1.5475    
   3  Prefactor     .10000E-03    15.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.323        22.385        .12473E-03   -1.5065    
   5  norm          1.3490        1.3297        .72655E-04   -1.5476    
   6  Prefactor     .10000E-03    6.2497        .31902E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.613        5.9704        .11738E-03   -1.5056    
   8  Prefactor     .10000E-03    14.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    93.219        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.2128        .17392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.1664        5.8150        .65143E-03   -1.5136    
  12  norm          .10006E-03    50.572        .36077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.3228        .23295E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.1431        5.1255        .29020E-03   -1.5494    
  15  norm          3.6360        4.7418        .15572E-03   -1.5327    
  16  Prefactor     .10000E-03    2.5515        .10232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.2586        12.571        .87656E-03   -1.5249    
  18  Prefactor     52.886        53.767        .55168E-04   -1.4252    
  19  Prefactor     .10000E-03    32.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    55.441        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.2583        230.38        .22400E-03   -1.5347    
  22  norm          14.303        6.8298        .10591E-03   -1.4951    
  23  Prefactor     .10000E-03    25.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.0872        .14247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          20.855        22.590        .87712E-04   -1.4794    
  26  Normalizat    1.1357        .23013        .21155E-03   -.88613    
  27  Prefactor     .79929        .27376        .30552E-03   -.99755    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86084e-09
Minuit parameter uncertainties:
  1  8.60442
  2  27.1115
  3  9.5454e-05
  4  22.4028
  5  1.32973
  6  2.97474e-06
  7  5.97069
  8  8.51756e-05
  9  0.000608479
  10  6.23412e-06
  11  5.81541
  12  0.00347869
  13  2.51535e-05
  14  4.84159
  15  4.74228
  16  3.11085e-05
  17  12.577
  18  53.8159
  19  0.000415591
  20  0.000338303
  21  55.0166
  22  6.8302
  23  0.000230898
  24  3.03173e-05
  25  22.5997
  26  0.230331
  27  0.274227
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.001e-04  3.479e-03  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.993e-01  2.742e-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.136e+00  2.303e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/274101/likelihoodResults_248918401_249177601_4FGL_J1309.4+4305_daily_bin37.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) = 4406.68186442
delta logL = -9.30197102207e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4406.68177074
delta logL = 6.64816070639e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10264E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8474       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1358       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79933       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=   4406.395     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      289 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .70638        22.693        .90712E-02    .75272E-03
   2  alpha         3.6250        4.2848        .43081        .32369E-04
   3  Normalizat    1.1085        .37776E-01    .36701E-01   -.12986E-03
   4  Prefactor     .81399        .46503E-01    .68468E-01   -.96276E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.706379
  alpha      = 3.62495
  Normalizat = 1.10847
  Prefactor  = 0.813989
 **********
 **   18 **HESSE 
 **********

 FCN=   4406.395     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      320 TOTAL
                     EDM=   .50E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .70638        80.887        .81325E-04   -1.5540    
   2  alpha         3.6250        3.1365        .15583E-01    .46674    
   3  Normalizat    1.1085        .23153        .21382E-03   -.89480    
   4  Prefactor     .81399        .27040        .30293E-03   -.99215    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.01062e-07
Minuit parameter uncertainties:
  1  15.1377
  2  10.9228
  3  0.231746
  4  0.270847
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/274101': 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): 102
logL (Free Index) = 4406.39532678
delta logL = 0.286444617391

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  7.064e-01  1.514e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  3.625e+00  1.092e+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.140e-01  2.708e-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.108e+00  2.317e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 197.363 43.085

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/274101/cmap_HighResolution_248918401_249177601_4FGL_J1309.4+4305_daily_bin37.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.02e-05', job_status='DONE', photon_flux_upper_limit='3.66e-08', time_completed='2021-09-07 00:54:07.819478', job_id='274101', GAL2='0.81', fit_tolerance='1e-08', EG2='1.11', EG='1.14', time_epoch_completed='1631001247.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='2.86e-01', ts2='0.58', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='37' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:54:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 274101: <4FGL_J1309.4+4305_daily_bin37> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin37 197.363 43.085 248918401 249177601 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 :                                   719.37 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             324.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            804 sec.

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

